All of the editing in this tutorial will be done from the command line. You can substitute vi for geany and use a graphical text editor, if you so desire. You will need to enable line numbers in geany. View->Editor->Show Line Numbers
Disable Save on Shutdown
In previous versions of puppy linux you only had to edit the rc.shutdown file. Starting with at least v.5.4 you also have to edit the wmpoweroff and wmreboot files.
Step #1: Edit rc.shutdown
Command:
Code: Select all
vi /etc/rc.d/rc.shutdown
The specific section of code you are looking for deals with the pupmode that was set when you first booted Puppy Linux. Your pupmode is set to 5, if puppy wasn't able to find a pupsave file. What we are doing here is making puppy skip the Pup Save Dialog, so we will always get a fresh puppy when rebooting.
Use the down arrow key to scroll down to line 286. Notice the line numbers at the bottom of the console window. This file has 693 lines and we start at line 1 so you should see 1/693.
Use the Following Commands in vi to edit, stop editing, save, quit, and quit without saving.
Insert Key to Start Edit Mode in vi.
Escape Key to Stop Edit Mode in vi.
Press : and it will bring up the vi command line.
w on the vi command line to save the file.
q on the vi command line to quit/exit the file.
q! on the vi command line to quit the file without saving, if necessary.
Step #2: Edit wmpoweroff and wmreboot
Command:
Code: Select all
vi /usr/bin/wmpoweroff
(Follow the same basic steps for editing the file in vi as outlined in Step#1.)
This code in this file is also dealing with the pupsave dialog and pupmode 5.
Command:
Code: Select all
vi /usr/bin/wmreboot
This code in this file is pretty much identical to the code in wmpoweroff, but is called here on a reboot.
Disable Ctrl+Alt+Backspace and Virtual Terminal Switching
Step #1: Edit xorg.conf
Command:
Code: Select all
vi /etc/X11/xorg.conf
Uncomment the line: Option "DontVTSwitch".
Change the value "false" to "true" in the line: Option "DontZap" "false".
Uncomment the line by deleting the # sign at the beginning of the line.
Step #2: Edit xorg.conf0
Command:
Code: Select all
vi /etc/X11/xorg.conf0
Remove all Desktop Icons
Step #1: Edit PuppyPin
Command:
Code: Select all
vi /root/Choices/ROX-filer/PuppyPin
Delete lines in vi by moving the cursor to the line you want to delete and double tapping the d key.
Repeat Step#1 for the file /tmp/PuppyPin
Command:
Code: Select all
vi /tmp/PuppyPin
(The X Server is the Linux program that allows you to see things on your screen.)
Step #2: Configure Drive Icon Manager
Right-Click any Drive Icon and select Run Desktop Drive Icon Manager.
Uncheck all boxes in all tabs of the Drive Icon Manager.
Step #3: Edit .xinitrc
Command:
Code: Select all
vi /root/.xinitrc
They contain clean_desk_icons and pup_event_frontend_d which apparently add the Drives icon to the desktop.
Restart X server to implement the changes: Menu->Exit->Restart Graphical Server
You should now have a desktop devoid of icons. Yay!