| View previous topic :: View next topic |
| Author |
Message |
tcrroadie
Joined: 12 Nov 2007 Posts: 7 Location: Michigan, USA
|
Posted: Wed Nov 14, 2007 12:53 am Post subject: How To: Free Up System RAM To Increase Performance |
|
|
This guide will explain how to easily free up some system ram by disabling unneeded services and the graphical login manager GDM. This guide focuses on the Gnome desktop and Fluxbox window manager. As we already know, the PS3 has a rather limited amount of system ram that can at times cause system slow downs. By disabling unneeded background services such as the print server CUPS and the system task scheduler CRON, we can free up some needed ram. We will also be disabling Gnome's graphical login manager GDM, which alone will free up about 30megs of RAM. The use of the Fluxbox window manager over Gnome will free up an additional 80 megs of RAM. So lets begin.
Step 1
Log into Gnome and disable any services that you may not need by going to System > Administration > Services. Simply uncheck the check box next to any service that you do not want started when you boot Linux. You will also need to uncheck the check box next to GDM since we will be setting up the system to launch your Gnome desktop from a text log in screen. Just ignore the message you receive about data loss.
Step 2
Disable any Gnome specific utilities such as Network Manager and Update Notifier that run in the background by removing them from your session startup list. System > Preferences > Sessions. Again uncheck the check box next to each service that you do not want to start when you log into Gnome.
Step 3
Now we will create a simple text file which will enable us to start our preferred desktop environment from the command line after we log into our system. The name of the file we need to create is called .xinitrc. Working in your users home directory, open a terminal and launch the terminals text editor nano.
Within this file we need to place the path to the launch script for our preferred desktop environment. To start up the Gnome desktop environment we need to add this line to our .xinitrc file.
| Code: | | exec /usr/bin/gnome-session |
Now save the file and exit nano by pressing ctrl+x.
Step 4
Now you can test out your work by restarting your PS3 and booting into your Linux installation. Now instead of GDM starting up, you will receive a text terminal to log into your system with. Simply login with your user name and password. Now to start Gnome simply issue the command startx.
Step 5
Now we will install a low resource window manager called Fluxbox. To install Fluxbox from your terminal run
| Code: | | sudo apt-get install fluxbox |
To launch Fluxbox in place of the Gnome desktop, replace the line you entered in your .xinitrc file earlier with this one.
| Code: | | exec /usr/bin/fluxbox |
As an added tip when editing your .xinitrc file, you can have multiple entries in your .xinitrc and simply comment out the lines that you want to disable with the # symbol. For example to launch Fluxbox instead of Gnome, your .xinitrc file would look like this.
| Code: | # Start the Gnome Desktop
# exec /usr/bin/gnome-session
# Start the Fluxbox Window Manager
exec /usr/bin/fluxbox |
You can also use an alternative lighter weight file manager from the XFCE desktop called Thunar.
| Code: | | sudo apt-get install thunar |
You can find more information on the configuration of Fluxbox at the links below.
http://fluxbox-wiki.org/index.php/Category:English_howtos
http://fluxbox.sourceforge.net/docbook/en/html/
You can download themes and wallpapers for Fluxbox from book-look.org
http://www.box-look.org/ |
|
| Back to top |
|
 |
fusionisthefuture

Joined: 28 Oct 2007 Posts: 21
|
Posted: Fri Nov 16, 2007 12:03 am Post subject: |
|
|
in feisty i had the option to uncheck gdm in the sessions manager. but in gutsy i dont. am i the only one? how do i change this with a terminal?
thanks,
-arne _________________ mythtv + PS3 + hdhomerun = so much unused potential
dell 2407wfp-hc |
|
| Back to top |
|
 |
tcrroadie
Joined: 12 Nov 2007 Posts: 7 Location: Michigan, USA
|
Posted: Fri Nov 16, 2007 5:41 pm Post subject: |
|
|
Hi fusionisthefuture,
That is odd. The option was in my Gutsy install. Regardless, this is how to disable GDM from your terminal.
You need to disable GDM in your current runlevel. Ubuntu's default runlevel is 2. You can find out what runlevel you are currently in, using the runlevel command.
| Code: | kris@T23:~$ runlevel
N 2 |
All of the startup scripts (which are actually symbolic links) are stored in your /etc/rc2.d directory. The directory rc2.d is for runlevel 2. Lets move to this directory.
Now if you run the command ls, you will see the link to the GDM startup script within this directory.
| Code: | kris@T23:/etc/rc2.d$ ls
K20wifi-radar S11klogd S20powernowd
K89cron S12dbus S20rsync
README S13gdm S90binfmt-support
S05vbesave S20apmd S98usplash
S10acpid S20apport S99acpi-support
S10powernowd.early S20hotkey-setup S99rc.local
S10sysklogd S20makedev S99rmnologin
S10xserver-xorg-input-wacom S20nvidia-kernel S99stop-readahead |
In my example, it is S13gdm. Now simply rename this file to K13gdm using the mv tool.
| Code: |
sudo mv S13gdm K13gdm |
Now restart your PS3 and you should be all set.
Last edited by tcrroadie on Sat Feb 23, 2008 2:34 pm; edited 2 times in total |
|
| Back to top |
|
 |
EdgarS
Joined: 10 Dec 2007 Posts: 10
|
Posted: Mon Dec 10, 2007 7:36 pm Post subject: |
|
|
| men can you expand the tutorial please, i´m a newbie in linux i followed all the tutorial step by step but when i log in in fluxbox i dont know waht to do plz help |
|
| Back to top |
|
 |
Nergar
Joined: 26 Dec 2007 Posts: 1
|
Posted: Fri Dec 28, 2007 8:02 am Post subject: |
|
|
This should be in a wiki or something, and if you could explain how a little more about linux desktops,
maybe having IceWM or FVWM would be lighter than gnome/kde/xfce and not as confusing as *box window managers |
|
| Back to top |
|
 |
Radical Dreamer
Joined: 04 Mar 2008 Posts: 4
|
Posted: Thu Mar 06, 2008 2:25 pm Post subject: |
|
|
I did everything you said and it worked great, speed is way up.... now if only I had sound. I've tried various things on i found from google, but none of them worked.
So frankly I have no sound at all, not when watching a video and not when playing an SNES game. Any sugestions? |
|
| Back to top |
|
 |
drwells
Joined: 14 Oct 2007 Posts: 2
|
Posted: Sat Mar 08, 2008 5:32 pm Post subject: |
|
|
I'd like to start off saying great guide. It worked very well, you could give a warning that unchecking GDM will kill your current gnome session. This was unexpected, but fortunately I have a laptop I could pull your guide up on.
I followed the guide and booted up to a terminal did the startx. However, running Gnome I still use basically all of my system ram. What is the point of disabling GDM if Gnome uses up all of my system RAM anyways? I might as well leave GDM running, eh?
Correct me if I'm mistaken, but you could just leave GDM installed and install alternate desktop managers XFCE/fluxbox/KDE4 and boot those via GDM or XDM. This would skip dumping the user to a terminal (oh noez!) and apparently costs no more ram than remove the desktop manager. |
|
| Back to top |
|
 |
jms
Joined: 30 Dec 2007 Posts: 109 Location: Tre
|
Posted: Sat Mar 08, 2008 7:57 pm Post subject: |
|
|
| drwells wrote: |
Correct me if I'm mistaken, but you could just leave GDM installed and install alternate desktop managers XFCE/fluxbox/KDE4 and boot those via GDM or XDM. This would skip dumping the user to a terminal (oh noez!) and apparently costs no more ram than remove the desktop manager. |
Yes, that's correct. Installing for example fluxbox should create a fluxbox session to gdm's session list. But you could also create a script which launches xsession at boot and you wouldn't need gdm at all. Like it used to be at ancient times... |
|
| Back to top |
|
 |
WeeBaldFella
Joined: 13 Mar 2008 Posts: 1 Location: Poole, UK
|
Posted: Thu Mar 13, 2008 1:36 pm Post subject: |
|
|
Hi,
I have a fresh install of Gutsy (just set up the resolution and internet connection) on my PS3 and have followed your tutorial up to the part where i go get fluxbox (sudo apt-get install fluxbox).
Unfortunately i can't give the exact message (posting from work .. shhh ) but i basically get told that fluxbox is not found.
I can browse the internet so i know my connection is ok. What can i do from here?
Also when I tried to compile from the source tarball for some reason gcc failed. I think i am missing something important but not sure what.
Hope you can help,
<=S=> |
|
| Back to top |
|
 |
jordan
Joined: 25 Mar 2008 Posts: 3
|
Posted: Tue Mar 25, 2008 8:53 am Post subject: |
|
|
| You need to disable GDM in your current runlevel. Ubuntu's default runlevel is 2. You can find out what runlevel you are currently in, using the runlevel command. |
|
| Back to top |
|
 |
|