[STICKY] Newcomer, newbie, links, commands to porteus linux

Post here if you are a new Porteus member and you're looking for some help.
User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

[STICKY] Newcomer, newbie, links, commands to porteus linux

Post#1 by francois » 05 Apr 2014, 17:52

Trying to organize the information in my head, I thought that sometime it is better to do so on paper. Here is the electronic version about these handy topics and related threads on the web for porteus and very often for linux.

This is a work in progress (some suggestions will be added incrementally, and some links provided to most of the concepts proposed here in):

How should I ask questions linux wise or on porteus forum:
viewtopic.php?f=35&t=44
http://www.catb.org/~esr/faqs/smart-questions.html


Google my friend
, even better than the porteus search:
https://www.google.com

NICE COMMANDS AND APPLIED EXAMPLES:
- print part of your folder structure:
https://www.geeksforgeeks.org/tree-command-unixlinux/

Code: Select all

root@porteus:/mnt# tree -L 2
.
├── live
│   ├── bin
│   ├── cleanup
│   ├── dev
│   ├── etc
│   ├── fatal
│   ├── finit
│   ├── init -> linuxrc
│   ├── lib
│   ├── linuxrc
│   ├── memory
│   ├── mnt
│   ├── opt
│   ├── porteus
│   ├── proc
│   ├── root
│   ├── run
│   ├── sys
│   ├── tmp
│   ├── union
│   ├── usr
│   └── var
├── sda1
│   └── EFI
...
Note; get tree package with usm -g tree

- know what is on your hdd:

Code: Select all

root@porteus:~#  lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
├─sda1 ext4         b676287d-75a3-4639-b742-e5703d0f9242 
├─sda2                                                   
├─sda3 ext4         ce203970-b1ff-4fcc-bccb-613047477db4 /
├─sda4 swap         f4ca5e60-d626-43b4-979f-535b070aa04a [SWAP]
├─sda5 ext3         205a4449-b7a3-4a02-a519-87e956d29d27 
└─sda6 ext3         cbfac467-1766-4867-99d7-6c40308e3d35 
sdb                                                      
└─sdb1 ext2         cb81a316-66b7-4a04-9760-43357614fc06 
sr0                                                      
root@porteus:~# 
- dependency checking:
viewtopic.php?f=48&t=5416

Code: Select all

guest@porteus:~$ which nemo
/usr/bin/nemo
guest@porteus:~$ ldd /usr/bin/nemo | grep "not found"
PORTEUS ESSENTIALS.

Passwords:
Guest user is guest
Root user is toor

Hibernate
hibernate function to shutdown
where sdxy=the identity of the swap file (to find swap file use fdisk -l or lsblk -f command)
Example (the resume cheatcode as to be added to the appropriate location in the /boot/syslinux/porteus.cfg file:

Code: Select all

root@porteus:~# lsblk -f
NAME   FSTYPE   LABEL   UUID                                 MOUNTPOINT
sda                                                          
├─sda1 ext4     manjaro de406fa9-c113-4b08-9c2a-cba933499f3f /mnt/sda1
├─sda2                                                       
├─sda5 ext4             e70b84a5-da6d-4005-809f-cec19c0694cc /mnt/sda5
├─sda6 ext4             5f5e395e-b078-47d7-a974-d431ffd699b7 /mnt/sda6
└─sda7 swap             ad800b6d-428c-451f-8eb8-1ee7ecaac8f1 [SWAP]

Code: Select all

LABEL gui
MENU LABEL Graphics mode (LXQT)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus resume=/dev/sda7
Saving changes or persistence in porteus (using a Linux file system is certainly wise):
. Why using Linux file system is wiser:
http://forum.porteus.org/viewtopic.php?f=81&t=4659
. cheat code for persistence:
viewtopic.php?f=39&t=985
But if you need a USB install compatible with windows fear file system, here is Ed_P advice:
http://forum.porteus.org/viewtopic.php?f=81&t=4740

Porteus official installation guide (this file is within the porteus.iso /boot/docs/install.txt:
****BACKUP YOUR ESSENTIAL INFORMATION OR BE SURE OF WHAT YOU ARE DOING****

Code: Select all

***************************************
* Official Porteus Installation Guide *
***************************************
spacebar = pagedown
q = quit


Introduction:
-----------------

Porteus is a linux distribution that runs live, without being 
'installed' natively like most other operating systems. Porteus creates 
its file system on the fly, within seconds, every time it is started 
up. This allows it to be run from many different kinds of media, 
including:

1)Writeable CD's or DVD's
2)USB Flash Drives (aka Pendrives)
3)External or Internal Hard Drives
4)Other writeable media, including flash cards, mp3 players, etc. 
(these installations are not covered by this Guide).

Porteus comes in the form of an ISO image file. An ISO file is an 
'image' of what should be on a CD/DVD. This file can be burned as a CD 
or DVD, or it can be mounted as a file system or upacked to gain 
access to the files for flash drive or hard drive installations. 
Burning the file to a CD is the easiest method of installation, but 
none of the changes you make (or files that you download) will be 
saved once the system is rebooted*. Installing Porteus to a flash 
drive or hard drive will allow you boot up more quickly, save changes 
to your flashdrive and add new files and programs easily.

*Note that changes to your system can be saved to external media when 
running Porteus (from a CD or otherwise), using the 'changes=' 
cheatcode, and specifying the path to the desired storage location. 
You can find more information on this and many other useful cheatcodes 
in the file /boot/docs/cheatcodes.txt.


Downloading Porteus
-----------------------

Porteus is available for 32-bit (i486) and 64-bit (x86_64) architectures.
If you are running a 64-bit computer system, then you can download either 
edition. If you are running a 32-bit system, then you must download 
the 32-bit edition. Both editions can be downloaded by going to 
http://www.porteus.org and clicking on the 'Download' button at the top 
of the page.  From there, you can select your edition from the dropdown 
menus.

Once your download is complete, you should also download the 
md5sums.txt file (from the same directory as the .iso file you just 
downloaded) and check to make sure the Md5 sum of your .iso file 
matches the Md5 sum listed in the md5sums.txt file. This will ensure 
that the .iso file was not corrupted while being downloaded. If your 
Md5 sum does not match, you should delete the .iso file and download 
it again, or Porteus may not run properly. If you do not already have 
software to check the Md5 Sum, you can use some freely available 
software, such as winMd5.


*******************************************
* Burning an ISO file to a CD or DVD Disk *
*******************************************

Most CD/DVD creation software has a function to 'burn an image to 
disk'. Please be aware that this is not the same as simply burning a 
file to disk or creating a 'data disk'. The end result should not be a 
disk that contains the .iso file, e.g. 'Porteus-v2.0-i486.iso'. The 
end result should be a disk that contains two folders: one called 
'boot' and one called 'porteus'.

If your current CD/DVD creation software doesn't contain the function 
to 'burn an image to disk' then you can use some freely available 
software, such as imgburn.

Steps to install (varies by CD creation program):
----------------------------------------------------

1) Insert a blank writeable CD or DVD.

2) Start your CD/DVD creation software and select 'burn image' or 
'burn image to disk'

3) Navigate to and select the Porteus .iso file

4) Burn the file to the disk.

5) Check the CD to make sure it contains the 'boot' and 'porteus' 
folders.

6) Reboot your computer, leaving the disk in your computer.

In order for your computer to run Porteus from the CD, you must make 
sure that your BIOS is set to boot to your CDROM device first, before
booting to your hard disk. If you are unsure how to change the boot 
order in your BIOS, please see Appendix A.


*******************************************
* Installing Porteus to a USB Flash Drive *
*******************************************

As of Porteus Version 1.1, the officially supported method for 
installing Porteus to a flash drive or hard drive is to burn 
the ISO image to a CD following the instructions written above,
then boot Porteus from the CD and run the program 'Porteus Installer', 
which can be found in the KDE, LXDE, Razor or Xfce menu under the 'System'
heading.  This program detects the available devices attached 
to your system and automates the installation procedure.

Note that you must have an existing, formatted partition for this 
installation program to work.

If you would prefer to install without burning Porteus to a CD (either 
from Windows or from a Linux OS), then you can accomplish this by manually 
extracting the ISO and executing the relevant script to install the 
bootloader of your choice.  To install using this method, please follow 
the instructions below:

~~~~~~~~~~~~~~~~~
| From Windows: |
~~~~~~~~~~~~~~~~~

Porteus can be installed to a flash drive by copying the files from the 
.iso file to the flash drive and then making the drive bootable. 
Please note that you must be logged in as an administrator (or run the 
included 'Porteus-installer-for-Windows.exe' file with administrative 
priveleges) to make your drive bootable from Windows.

In order to install Porteus to a flash drive, you must first extract 
the porteus .iso file so that you can copy the included folders 
('boot' and 'porteus') to your flash drive. This can be done with 
archival software, similar to unzipping a .zip file. If your existing 
archival software cannot extract an .iso file, then try installing the 
free application 7zip or winrar. Once it is installed, you can right 
click on the .iso file, choose 7zip from the right-click menu (or, 
open winrar and navigate to the .iso's location), and select the option 
to extract the file.

(*NOTE* you can also use a program called wincdemu, which will allow 
you to double click on the .iso file and then access the folders 
inside it as if it were a CD mounted in your CD drive.)

If you have already created a bootable Porteus CD, you can also 
insert that CD and copy the files from there.

Steps to install:
---------------------

1) Insert your flash drive and open it to view the contents. Make a 
note of the Drive Letter assigned to this drive (e.g. E:\)

2) Copy the folders 'boot' and 'porteus' from the .iso file to the 
top-level directory of your flash drive (meaning the files should not 
be placed inside any other folders on the drive. For example, they 
should be located at E:\boot and E:\porteus, assuming your flash drive 
is device E:\).

3) Navigate into the boot folder that you just copied to your flash 
drive. You should see a file there called Porteus-installer-for-Windows.exe. 
Right click on this file (make sure it is Porteus-installer-for-Windows.exe 
and not Porteus-installer-for-Linux.com) and choose to run it as an 
administrator. A window will appear asking you to confirm that the correct
drive or partition is being selected for installation.  Double check that
the information shown is correct, and press Enter to complete the 
installation.

4) After running the installation program, you should be able to boot 
Porteus from your flash drive. Reboot your computer, and make sure 
that your BIOS is set to boot from the USB device first, before it 
boots to your hard disk. If you are unsure how to change the boot 
order in your BIOS, please see Appendix A.

*NOTE* If you are having problems making your drive bootable from 
within Windows or if you do not have administrative priveleges, try 
burning Porteus to a CD or DVD using the instructions above, and then 
either run the 'Porteus Installer' program (which can be found in the 
KDE, LXDE, Razor or Xfce menu under the 'System' heading) or follow the 
instructions below to install Porteus to a USB flash drive from within 
Linux.

*NOTE* If your flashdrive is formatted with a Windows filesystem (e.g. 
FAT or NTFS), none of the changes you make to your system will survive 
between reboots (Porteus will default to "Always Fresh" mode). If you 
would like to save your changes, you can create a '.dat' file 
container for this purpose. See Appendix B below for more information 
about this very important feature, which is required for saving your 
changes to a partition formatted with a Windows filesystem.

~~~~~~~~~~~~~~~
| From Linux: |
~~~~~~~~~~~~~~~

*PLEASE NOTE* If you experience problems when running the Porteus
installation scripts from your existing Linux distribution, please 
burn the Porteus ISO to a CD (see above instructions) and boot from 
that for the installation to USB. The method described below should 
work from most Linux distributions, but full compatibility with every 
distribution is not guaranteed. 

Installing Porteus through Linux is similar to installing through 
Windows. You must have root (super user) priveleges on your system in 
order to run the installation script.

Before installing, you must extract or mount the .iso file in order 
to copy the /boot and /porteus directories to your target device. Some 
archiving programs are capable of extracting the .iso, or you can 
simply mount it with the following commands:

mkdir /mnt/loop
mount -o loop /path/to/file.iso /mnt/loop

If you are using Porteus for this installation, you can simply enter:

mloop /path/to/file.iso

And you can then navigate to /mnt/loop to access the necessary files. 
If you are running from a Porteus CD, you can navigate to /mnt/sr0/ 
and copy the files from there.

Steps to Install:
---------------------

1) Insert your flash drive. If a window automatically pops up when 
you plug it in, click to open the device. This will mount your flash 
drive and you can see its path by opening a console and typing:

mount

If the device is not mounted automatically, then you can open a 
console and type:

fdisk -l

to get the path of your flash drive (e.g., /dev/sdb1), and then:

mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1

(substitute sdb1 with the name of your device if it was listed 
differently in fdisk)

Make note of the device's name, as this is the device which will need 
to be modified by a script later in the process.

2) Copy the /boot and /porteus folders from the Porteus .iso file (or 
from a Porteus CD) to your flash drive.  These folders can be placed in 
the top level directory on your drive, but as of Porteus version 2.0, 
you can place these folders inside a subdirectory and your bootloader
configuration file will be adjusted automatically to boot from that
location.

3) Open a console and change directories to the boot folder that you 
just copied into the flash drive, e.g.

cd /mnt/sdb1/boot

Execute the Porteus-installer-for-Linux.com script:

sh Porteus.installer-for-Linux.com

*NOTE* If you are not running as root already, you must use the su or 
sudo command and enter your root password before starting this script, 
or it will not be able to configure your device properly.

This script will ask you to confirm the drive or partition on which you are 
installing Porteus.  Make sure the information displayed is correct, and
then press Enter to complete the installation.  The extlinux bootloader 
will be installed on devices that are formatted with ext2/3/4, FAT16/32,
ntfs and btrfs filesystems. LILO will be installed on partitions formatted
with any other filesystem.

5) After running the install script, you should be able to boot 
Porteus from your flash drive. Reboot your computer, and make sure 
that your BIOS is set to boot from the USB device first, before it 
boots to your hard disk. If you are unsure how to change the boot 
order in your BIOS, please see Appendix A.

*NOTE* If your flashdrive is formatted with a Windows filesystem 
(e.g. FAT or NTFS), none of the changes you make to your system will 
survive between reboots (Porteus will default to "Always Fresh" mode). 
If you would like to save your changes, you can create a '.dat' file 
container for this purpose. See Appendix B below for more information 
about this very important feature, which is required for saving your 
changes to a partition formatted with a Windows filesystem.


*****************************************************
* Installations to Internal or External Hard Drives *
*****************************************************

Porteus can be installed to hard drives, but it should be left in its 
compressed state (otherwise known as a 'Frugal' installation). 
Installing extracted files to a hard drive is not supported; it is 
suggested that you install Slackware Linux instead if you wish to have 
an Operating System installed to your system natively.

Creating a 'Frugal' installation is very similar to installing on a 
USB drive. Porteus can be installed on it's own partition, or it can 
be installed side by side with Windows or another Linux OS on the same 
partition.

If Porteus is the only Operating System that you are installing to a 
device (internal or external), follow the instructions given above for 
burning the ISO to a CD and booting from it, and then run the 'Porteus 
Installer' program, which can be found in the KDE, LXDE, Razor or Xfce
menu under the 'System' heading.

You can also follow the instructions to manually unpack the ISO to your
target drive and run the installers as described in the "Install to USB"
section.

For directions on installing Porteus to a device that will also run 
other operating systems, please visit the documentation section and/or 
the community forum at the Porteus website, at http://porteus.org. 
These installations are highly variable depending on whether or not 
Windows needs to be installed on the device, and on what bootloader 
is used for the system.

*NOTE* If your drive is formatted with a Windows filesystem (e.g. 
FAT or NTFS), none of the changes you make to your system will survive 
between reboots (Porteus will default to "Always Fresh" mode). If you 
would like to save your changes, you can create a '.dat' file 
container for this purpose. See Appendix B below for more information 
about this very important feature, which is required for saving your 
changes to a partition formatted with a Windows filesystem.


$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ APPENDIX A: Configuring your boot settings in BIOS $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

In order to boot Porteus from a device other than your computer's 
hard drive, you must make sure that your BIOS is set to boot from that 
device before booting the first hard disk.

To enter the BIOS of your machine, you will need to press a particular 
key during your computer's startup procedure. The exact key varies 
from computer to computer, but is typically shown briefly during 
startup, and it is usually one of the following keys:
F1, F2, F12, Esc, Tab, etc.

Once you press the specified key, you will be shown the BIOS menu. 
While in BIOS, the legend for using the keyboard is at the bottom of 
the screen. Inside the BIOS menu, you should look for your 'boot 
order' option, and set your desired device (CDROM or USB device) to 
the top of the list. Once you have changed your boot order, press F10 
to save your changes and exit. If you are planning to boot to a USB 
device, make sure it is plugged in when you enter your BIOS, as some 
systems will only show the USB option when a USB device is present.

Many machines also have another key to press during startup that 
allows you to choose which device to boot from, without entering 
the BIOS. While this is very handy, at some stage you will probably 
want to change the BIOS setting so you don't have to keep pressing 
this button at every boot. Be aware if your machine contains sensitive 
data and is used by other people that leaving the setting to 'boot 
from USB' presents a security risk. Others could also plug in a device 
and boot to their own OS and access the information on your hard drive.

No Boot from USB in BIOS?
-------------------------

Don't panic just yet, you may still be able to boot from your USB 
device. Porteus contains a boot loader called Plop. Using this boot 
loader, you can plug in your USB device as well as a Porteus CD. Boot 
to the CD and when the Porteus menu comes up, highlight the Plop Boot 
Manager and press enter to start up Plop. Within Plop, you can select 
'USB', and press enter to boot from the USB device.


$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Appendix B - Saving changes to a Windows Filesystem $
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Porteus allows users to save their changes (i.e., system settings, 
downloaded files, bookmarks, browser history, etc) to a folder or 
image file (aka container) that exists outside of Porteus' core files. 
The 'changes=' cheatcode parameter sets the location for these 
changes. When you start Porteus with this cheatcode (enabled by 
default for USB installations), it will boot up the operating system 
and then apply your changes from this location. By default, Porteus is 
set to save these changes to /porteus/changes.

If you are installing Porteus to a device that is formatted with a 
Windows filesystem (e.g. FAT 32, NTFS, etc), you are required to use 
a '.dat' container for your changes. This container allows you to 
retain linux permissions and symlinks, which are necessary for your 
system to run properly and securely. 

While starting up, Porteus will run a check to see if you are asking 
it to save changes directly to a device with a Windows filesystem.  
If you are, then Porteus will boot without saved changes enabled.  To 
create a '.dat' container file and start saving your changes, boot 
Porteus into GUI, then open up the menu and navigate to 
"System -> Porteus save file manager" (NOTE:  You can also access this 
program through "Porteus Settings Centre", which will help you to
customize various settings, including creation of a save.dat).
Click on this application to open it, and click on the "Create" button. 
It will ask you for the name, size and location where you want to 
create it .  You can choose any name you like, for example, porteussave, 
save, mychanges, etc (upon creation, the .dat suffix will be added). 
You must then enter the size of the container in megabytes and a the
location on disk (e.g. /mnt/sdb1/porteus/, if sdb1 is your 
desired storage device), then click 'OK' and it will be created 
and placed on your storage device.  In order to start saving your changes, 
you will need to make a simple modification to the file that configures 
your bootup procedure.   The save.dat manager will walk you through 
these changes, but just in case, here are the necessary steps to 
peform this manually:

As root, open the file /boot/syslinux/porteus.cfg. You will have several 
entries in this file, which look like this:

/**************************************************************/

LABEL kde
MENU LABEL Graphics mode (KDE).
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz changes=/porteus
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL vmlinuz
APPEND initrd=initrd.xz copy2ram 
TEXT HELP
Run Porteus the same as above,
but first copy all data to RAM
to get a huge speed increase
(needs >768MB)
ENDTEXT


/**************************************************************/


You will need to edit the end of the APPEND line, to make it read 
'changes=/porteus/save.dat' (without the quotes, using the name you 
specified earlier). Save this file and upon reboot your changes 
will be saved to this container.

*NOTE* If you need to gain access directly to the files in your 
save.dat container (if, for example, you boot into 'Always Fresh' 
mode and need to remove or edit one of your saved files), you can 
mount the container on a loop, using these commands in a console:

mkdir /mnt/loop
mount -o loop /mnt/live/mnt/sdXN/save.dat /mnt/loop

where sdXN is the name of your device, e.g. sdb1.

You will then have access to these files, in /mnt/loop

~~~~~~~~~~~~~~~

Thanks for using Porteus!
Already bundled packages are available and could be added once porteus is installed. These are few, but the most demanded additional packages for porteus: alternative web browser, skype, printing module, etc.. They should to be dowloaded to the /porteus/modules folder or to the /porteus/optional folder if you want to trigger them only when needed with a few clicks. Proprietary graphic drivers for amd and nvidia are also available:
- 32 bit:
http://dl.porteus.org/i586/current/modules/
http://dl.porteus.org/i586/current/drivers/
- 64 bit:
http://dl.porteus.org/x86_64/current/modules/
http://dl.porteus.org/x86_64/current/drivers/
or better: one of these mirrors: http://porteus.org/porteus-mirrors.html

Porteus package manager is called usm (unified slackware manager). It comes in two flavors command line and gui. usm will install additional packages to your installation resolving the dependencies.
. the usm gui:
panel menu > system > usm
..at first use you must update usm and update all database.
. usm command line:

Code: Select all

root@porteus:~# usm -u (to update database)
root@porteus:~# usm -h (to see the different possible arguments)
root@porteus:~# usm sbo -s package-name (to search for a given package to be build from source)
-the devel.xzm bundled package is necessary for usm sbo to build packages from source.
links for devel.xzm:
- 32 bit:
http://dl.porteus.org/i586/current/kernel/
- 64 bit:
http://dl.porteus.org/x86_64/current/kernel/
or better: one of these mirrors: http://porteus.org/porteus-mirrors.html

Very useful programs specific to porteus. These will definitely make your linux life better. A must have a look to:
panel menu > system > porteus system center

Porteus or linux freezes, the emergency procedure ctrl-alt-* and more, i.e. alt+sysrq+BUSIER-reversed (REISUB: Raising Elephants Is So Utterly Boring):
http://unix.stackexchange.com/questions ... op-freezes

A single window freezes. Use xkill in command line:

Code: Select all

root@porteus:~# xkill
FAQ on porteus (though a little outdated, people rarely refer to it):
http://www.porteus.org/faq.html

Cheatcodes on porteus:
http://www.porteus.org/tutorials/26-gen ... -them.html

Changing the guest and root passwords:

Code: Select all

guest@porteus:$ passwd
Old password: guest

Code: Select all

guest@porteus:$ su
Password: toor
root@porteus:~# passwd
Changing password for root
MORE REFINED PORTEUS INSTALLATION PROCEDURES.

Essential threads to syslinux:
https://wiki.archlinux.org/index.php/Sy ... ainloading
http://www.syslinux.org/wiki/index.php/HowTos
http://www.syslinux.org/wiki/index.php/ ... _and_Vista
-the syslinux bootloader config file for porteus is:
/boot/syslinux/porteus.cfg
-porteus forum examples for syslinux:
.dual boot windows-porteus
http://forum.porteus.org/viewtopic.php?f=81&t=4408

Bootloaders and menu entries for porteus and other OSES in a multiboot fashion:
http://forum.porteus.org/viewtopic.php?f=48&t=4471

Commands, files and programs to make your life easier managing your operating system on hard disk drive and usb keys:
-fdisk -l (and other fdisk commands)
http://www.howtogeek.com/106873/how-to- ... -on-linux/
-blkid (get the uuid's of your hdd and usb partitions: universal unique identifier)
-gparted (gui for partitioning disks)
http://www.dedoimedo.com/computers/gparted.html
-grubconfig: installing porteus on a drive with grub legacy: grubconfig
http://forum.porteus.org/viewtopic.php?f=62&t=946
-grub2: installing porteus on a drive with grub 2
http://forum.porteus.org/viewtopic.php?f=48&t=1790
http://phoxis.org/2010/02/03/installing ... ootloader/
-usb install
.dd method:
http://community.linuxmint.com/tutorial/view/1094 =@ `crunchbang is dead, no more link`

Code: Select all

fdisk -l (to get to know the device occupied by the usb key)

Code: Select all

dd if=/mnt/sda5/isos/porteus-version.iso of=/dev/sdX bs=4M;sync
.unetbootin: usb install of live disk with persistence (once the iso is downloaded):

Code: Select all

unetbootin
.usb install with squeeze.deb package:
https://packages.debian.org/squeeze/unetbootin
.usb creator (available on debian, ubuntu or elementary os):
http://www.ubuntu.com/download/desktop/ ... -on-ubuntu

-fstab and mount -a
http://crunchbang.org/forums/viewtopic.php?id=18613

-rsync for formating and moving data from one partition to another (here from sdax to sday):
***USE WITH CAUTION*** this could result in the loss of important information if wrongly used:

Code: Select all

rsync -av --delete /mnt/sdax/ /mnt/sday     #here sday is the partition where you want to transfer the information 
http://bbs.archbang.org/viewtopic.php?id=1295

-rsync from a vbox installation to a hdd partition:
https://wiki.archlinux.org/index.php/Mo ... al_machine

OTHER PORTEUS USEFUL TIPS.

Very interesting commands (with the terminal):
-poweroff
-reboot
-startx (will start the graphic environment when you are in text mode)
-xrandr (straightening up your screen(s), dual display, changing screen resolution, etc.)
http://forum.porteus.org/viewtopic.php?f=61&t=3203
-ln -s (making a softlink to a file)
http://www.cyberciti.biz/faq/creating-s ... olic-link/

Code: Select all

ln -s {target-filename} {symbolic-filename}
where target-filename is the original file that you want to link
-locate, slocate, mlocate (small tools to find files, usefull when building a package with missing dependencies)
http://wiki.gentoo.org/wiki/Mlocate
-mc (midnight commander, a cli mode file manager, for some reasons better than locate to find a file)
http://en.wikipedia.org/wiki/Midnight_Commander
-init 3 (command to leave the X environment for the command line environment)
-path command to know where you can put a script:
http://www.wikihow.com/Change-the-Path- ... e-in-Linux

Code: Select all

root@porteus:~# echo $PATH
here an hypothetic example where you want to add a new path like /sbin for which blkid was not responding but /sbin/blkid was responding

Code: Select all

export PATH=$PATH:/sbin
blkid           #here to test the effect of the change of path
Then permanently change the path setting by adding the same line to your ~/.bashrc file


Specific porteus commands:
- mloop (will mount the porteus iso so that you can copy files to hdd or usb)
- example of an analog procedure on any linux system would be:
http://www.cyberciti.biz/tips/how-to-mo ... linux.html

Code: Select all

root@sensei:~/Downloads# mkdir -p /mnt/disk
root@sensei:~/Downloads# mount -o loop Sensei-v3.1-rc1-x86_64.iso /mnt/disk
mount: block device /root/Downloads/Sensei-v3.1-rc1-x86_64.iso is write-protected, mounting read-only
root@sensei:~/Downloads#
- booting an iso from grub2 (any iso including porteus):
http://www.howtogeek.com/196933/how-to- ... ard-drive/

Interesting porteus scripts:
-changes-time
http://forum.porteus.org/viewtopic.php?f=81&t=3292

Package managers:
-usm
http://sourceforge.net/p/usm/wiki/Home/
-skackyd (a package manager, almost obsolete with famous usm brokenman's package manager)
http://forum.porteus.org/viewtopic.php?f=48&t=142
-amypkg (lightweight slackware package manager, takes in account dependencies)
http://sourceforge.net/projects/amypkg/
-slapt-get and gslapt its gui interface
http://forum.porteus.org/viewtopic.php?f=75&t=1479
http://forum.porteus.org/viewtopic.php?f=53&t=115
-other package managing interesting solutions:
http://slackware.wordpress.com/2007/10/ ... age-tools/

Useful hyperlinks for slackware packages, but also other packages that maybe easily transformed into porteus modules:
http://pkgs.org/
http://slackware.org.uk/slackware/
http://www.slacky.eu/slacky/Pagina_principale
http://www.slackware.com/~alien/slackbuilds/
http://packages.slackware.com
https://www.porteus-apps.org/
-more difficult ones
http://slackbuilds.org/repository/14.1/
https://www.debian.org/distrib/packages

Other topics:
. menu editor written in java (lxmed) for lxde, lxqt, xfce, and why not kde:
viewtopic.php?f=132&t=4113
. creating .desktop file:
https://developer.gnome.org/integration ... es.html.en
. .desktop file gui, the exo package:
http://www.linuxfromscratch.org/blfs/vi ... e/exo.html
..command line for exo package creation of a .desktop file;
root@porteus:~# exo-desktop-item-edit - ... plications

.synchronizing rebarbative clock time (eastern day time for example):
http://forum.porteus.org/viewtopic.php?f=48&t=5633

. interesting packages for old linux box:
. qtweb:
http://forum.porteus.org/viewtopic.php? ... 538#p31538

Last edited 201230 by francois.
Last edited by ncmprhnsbl on 13 Sep 2019, 02:09, edited 17 times in total.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Some of my favorites links: porteus and linux

Post#2 by francois » 13 Apr 2014, 18:11

Added a few useful commands: ln -s, init 3
Prendre son temps, profiter de celui qui passe.

User avatar
Obosan
Samurai
Samurai
Posts: 114
Joined: 28 Mar 2014, 17:02
Distribution: Porteus v5.01 MATE
Location: JAPAN

Re: Some of my favorites links: porteus and linux

Post#3 by Obosan » 13 Apr 2014, 18:44

@francois!
The information is quite useful for Chobo like me.
Good Job :good:

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Some of my favorites links: porteus and linux

Post#4 by francois » 13 Apr 2014, 22:04

I am happy that it could be of some use for you.

For chobo, I used to say naive user, some other persons call them newbies, in french we say novice.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Some of my favorites links: porteus and linux

Post#5 by francois » 30 Aug 2014, 15:41

Updated first post for freezing in porteus linux.
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Some of my favorites links and commands: porteus and lin

Post#6 by brokenman » 30 Aug 2014, 21:22

Change into last directory created:

Code: Select all

mkdir -p /home/guest/some/annoying/long/path/
cd !$
Porteus v3.0.1+
In terminal:

Code: Select all

translate en fr "How are you today?"
I also took the liberty of adding another slackware packages link to your initial post. Hope that's ok.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Some of my favorites links and commands: porteus and lin

Post#7 by francois » 31 Aug 2014, 21:07

No problem at all. :)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favorite links and commands: porteus and linux

Post#8 by francois » 22 Jan 2015, 20:23

Added a number of additional commands and links.
Prendre son temps, profiter de celui qui passe.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4124
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Re: Newcomers favorite links and commands: porteus and linux

Post#9 by ncmprhnsbl » 30 Jan 2015, 23:00

https://www.porteus-apps.org/
and freestylers slackware repos (though thy're covered by pkgs.org)
he's been quiet lately, hope the living statues haven't got him :(
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favorite links and commands: porteus and linux

Post#10 by francois » 31 Jan 2015, 18:40

Links have been included in the first post.

For sure the return of the bad boy would be good for this community. I hope he his safe and healthy. :)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favorite links and commands: porteus and linux

Post#11 by francois » 22 Mar 2015, 00:29

Added porteus installation, access to some bundles, info on usm, rearanged the material in terms of priority :D
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favourite links and commands: porteus and linu

Post#12 by francois » 27 Mar 2015, 03:16

grub2 boot from iso with persistence:
https://www.google.ca/search?client=ubu ... 8gezgIH4Ag
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favourite links and commands: porteus and linu

Post#13 by francois » 19 Jun 2015, 12:09

There has been numerous demands about persistence of saving changed on porteus installations USB and hdd. I open a contest on the porteus best thread on the topic. What is your proposition?
Prendre son temps, profiter de celui qui passe.

Seva
Samurai
Samurai
Posts: 134
Joined: 30 Apr 2015, 12:00
Distribution: XFCE Porteus Desktop 3.1 64bit
Location: Moscow, Russia

Re: Newcomers favourite links and commands: porteus and linu

Post#14 by Seva » 19 Jun 2015, 12:21

no need to install Porteus
posted from Porteus

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Newcomers favourite links and commands: porteus and linu

Post#15 by francois » 19 Jun 2015, 19:43

What do you mean?
Prendre son temps, profiter de celui qui passe.

Post Reply