Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Installing Ubuntu on slower computers with less RAM

  1. #1
    Join Date
    Jul 2005
    Location
    California
    Beans
    173

    Installing Ubuntu on slower computers with less RAM

    Recently, I've been reading on this forum about people who've installed Ubuntu on computers with low RAM by doing the server installation, then doing something like this:

    Code:
    apt-get install xserver-xorg
    apt-get install xfce4
    I'd like to ask, which packages exactly do you need to install when you do that? I think there's more than just that needed to get it working. I searched the forum but I wasn't able to find the post that I had read about this in.
    Also, for people who've done this, what were the results like?
    Let's discuss this.

  2. #2
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Installing Ubuntu on slower computers with less RAM

    Advantages and Disadvantages of 64bit.(Plus install Guides)

    ‘In search of some small measure of peace, that we all seek, and few of us ever find.’

  3. #3
    Join Date
    Sep 2005
    Location
    Michigan, USA
    Beans
    289
    Distro
    Ubuntu Breezy 5.10

    Re: Installing Ubuntu on slower computers with less RAM

    I'll bite. I keep a small partition alongside my breezy partition for a 'server' install, pretty much as a sandbox to try different setups with. It currently wieghs in at about 850 MB, with openbox, pypanel, firefox, thunderbird, rox-filer, leafpad, xterminal, menu and some other utilities and themes (screenshot.) I use this when I feel like delving more into the inner workings of gnu/linux, which is quite often. Here's what I do:

    After doing a 'server' install of Ubuntu, immediatlely fire up aptitude. The advantage of aptitude is that you can install and try out many different packages, and when you uninstall them, it cleans out any unneeded dependancies. You don't really need much other than the basics, if you're decent at editing configuration files.

    Here are just a few of the possibilies I've tried:

    menu - for 'debian menu' access, recommended
    mc and htop - because I like them
    xdm or wdm - for a light display manager, optionally
    x-window-system-core - X!
    xscreensaver - optionally
    xterm or xterminal - two good terminal emulators, recommended

    WWW Browser of choice (w3m is installed):
    lynx, links, elinks, links2 - console
    links2, dillo, firefox, mozilla - graphical

    Email Client of choice (mutt is installed):
    sylpheed, evolution, thunderbird, mozilla - graphical

    File Manager of choice (the commandline is installed ):
    mc - console
    worker, emelfm, gentoo, rox-filer - graphical

    Finally, 'The Desktop', if you will:

    openbox - really light
    obconf - if you want a configuration frontend for openbox
    fspanel, fbpanel, pypanel, or perlpanel - if you want a panel with openbox

    blackbox, icewm, fluxbox, windowmaker - a bit heavier, but not much

    xfce4 - also one that I like, with goodies of course

    apmd, acpi, and/or acpid - if you miss any powermanagement

    gtk-theme-switch - nice for setting gtk and gtk2 themes

    Then any other utilities you want, installed as needed...

    Even without X at all:
    htop - sysmon, frienlier than top
    mc - filemanager, reader, and editor
    gpm - mouse support for console
    screen - console multiplexer
    centericq - messaging
    mp3blaster - music
    elinks - www
    mutt - email (installed)
    nano - editor (installed)

    Of course, the are far more choices than what is listed here.
    Last edited by SilentCacophony; October 12th, 2005 at 01:13 AM.

  4. #4
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    Re: Installing Ubuntu on slower computers with less RAM

    I'm on my Ubuntu lite right now. XFCE+kdm+Ubuntu base.

    And it rocks.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  5. #5
    Join Date
    Apr 2005
    Location
    Mars
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Installing Ubuntu on slower computers with less RAM

    Quote Originally Posted by poofyhairguy
    I'm on my Ubuntu lite right now. XFCE+kdm+Ubuntu base.

    And it rocks.
    Silly question, but what's kdm?

  6. #6
    Join Date
    Jul 2005
    Location
    Ohio, USA
    Beans
    115
    Distro
    Kubuntu 6.06

    Re: Installing Ubuntu on slower computers with less RAM

    Try this post:

    http://www.ubuntuforums.org/showthre...ght=xfce+gnome

    I loaded up a box with this and added the KDE, Gnome, and other apps that I like. I'm about to switch over to it full time.

    KDM- Kde desktop manager? Like GDM, it is the session login screen. Somone correct me if I'm wrong.

    Hope this helps,
    Bill
    Having too much fun for free.

    (\ /)
    (O.o)
    (> <)

    If it worked like Windows, Linux would suck. It would be an inferior copy that nobody would use.

    Registered Linux Use #400727.

  7. #7
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    Re: Installing Ubuntu on slower computers with less RAM

    Quote Originally Posted by racecat
    KDM- Kde desktop manager? Like GDM, it is the session login screen. Somone correct me if I'm wrong.

    Hope this helps,
    Bill
    Correct.
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  8. #8
    Join Date
    Mar 2005
    Location
    Ice cold Norway
    Beans
    519

    Smile Re: Installing Ubuntu on slower computers with less RAM

    Quote Originally Posted by SilentCacophony
    I'll bite. I keep a small partition alongside my breezy partition for a 'server' install, pretty much as a sandbox to try different setups with. It currently wieghs in at about 850 MB, with openbox, pypanel, firefox, thunderbird, rox-filer, leafpad, xterminal, menu and some other utilities and themes.
    Hi! I'm trying to do a similar install on an old laptop. I have little experience with setting up X and Openbox. Can you please post your resource files under ~/.config/openbox? I also want to know how you get pypanel running if that is okay.

    Cheers!

  9. #9
    Join Date
    Sep 2005
    Location
    Michigan, USA
    Beans
    289
    Distro
    Ubuntu Breezy 5.10

    Re: Installing Ubuntu on slower computers with less RAM

    Quote Originally Posted by graabein
    Hi! I'm trying to do a similar install on an old laptop. I have little experience with setting up X and Openbox. Can you please post your resource files under ~/.config/openbox? I also want to know how you get pypanel running if that is okay.

    Cheers!
    Hi. Well, I use the obconf utility to configure OpenBox, but here's my ~/.config/openbox/rc.xml file contents, which is all that's in that folder:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Do not edit this file, it will be overwritten on install.
            Copy the file to $HOME/.config/openbox/ instead. -->
    <openbox_config xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/                 file:///usr/share/openbox/rc.xsd">
    
    <resistance>
      <strength>20</strength>
      <screen_edge_strength>30</screen_edge_strength>
    </resistance>
    
    <focus>
      <focusNew>yes</focusNew>
      <followMouse>yes</followMouse>
      <focusLast>no</focusLast>
      <focusDelay>500</focusDelay>
      <raiseOnFocus>no</raiseOnFocus>
    </focus>
    
    <theme>
      <name>curdled2</name>
      <titlelayout>NLIMC</titlelayout>
    </theme>
    
    <placement>
      <policy>Smart</policy>
    </placement>
    
    <desktops>
      <number>4</number>
      <firstdesk>1</firstdesk>
      <names>
        <name>one</name>
        <name>two</name>
        <name>three</name>
        <name>four</name>
      </names>
    </desktops>
    
    <resize>
      <drawContents>yes</drawContents>
    </resize>
    
    <dock>
      <position>TopLeft</position>
      <stacking>Top</stacking>
      <direction>Vertical</direction>
      <floatingX>0</floatingX>
      <floatingY>0</floatingY>
      <autoHide>no</autoHide>
      <hideDelay>300</hideDelay>
      <moveButton>A-Left</moveButton>
    </dock>
    
    <keyboard>
      <chainQuitKey>C-g</chainQuitKey>
    
      <keybind key="A-F10">openbox-themes
        <action name="MaximizeFull"/>
      </keybind>
      <keybind key="A-F5">
        <action name="UnmaximizeFull"/>
      </keybind>
      <keybind key="A-F12">
        <action name="ToggleShade"/>
      </keybind>
      <keybind key="C-A-Left">
        <action name="DesktopLeft"><wrap>no</wrap></action>
      </keybind>
      <keybind key="C-A-Right">
        <action name="DesktopRight"><wrap>no</wrap></action>
      </keybind>
      <keybind key="C-A-Up">
        <action name="DesktopUp"><wrap>no</wrap></action>
      </keybind>
      <keybind key="C-A-Down">
        <action name="DesktopDown"><wrap>no</wrap></action>
      </keybind>
      <keybind key="S-A-Left">
        <action name="SendToDesktopLeft"><wrap>no</wrap></action>
      </keybind>
      <keybind key="S-A-Right">
        <action name="SendToDesktopRight"><wrap>no</wrap></action>
      </keybind>
      <keybind key="S-A-Up">
        <action name="SendToDesktopUp"><wrap>no</wrap></action>
      </keybind>
      <keybind key="S-A-Down">
        <action name="SendToDesktopDown"><wrap>no</wrap></action>
      </keybind>
      <keybind key="C-A-d">
        <action name="ToggleShowDesktop"/>
      </keybind>
      <keybind key="A-F4">
        <action name="Close"/>
      </keybind>
      <keybind key="A-Tab">
        <action name="NextWindow"/>
      </keybind>
      <keybind key="A-S-Tab">
        <action name="PreviousWindow"/>
      </keybind>
      <keybind key="A-F7">
        <action name="Move"/>
      </keybind>
      <keybind key="A-F8">
        <action name="Resize"/>
      </keybind>
      <keybind key="A-F9">
        <action name="Iconify"/>
      </keybind>
      <keybind key="A-space">
        <action name="ShowMenu"><menu>client-menu</menu></action>
      </keybind>
    </keyboard>
    
    <mouse>
      <dragThreshold>3</dragThreshold>
      <doubleClickTime>200</doubleClickTime>
    
      <context name="Frame">
        <mousebind button="A-Left" action="Drag">
          <action name="Move"/>
        </mousebind>
        <mousebind button="A-Left" action="Click">
          <action name="Raise"/>
        </mousebind>
        <mousebind button="A-Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="A-Middle" action="Drag">
          <action name="Resize"/>
        </mousebind> 
        <mousebind button="A-Middle" action="Click">
          <action name="Lower"/>
        </mousebind>
        <mousebind button="A-Right" action="Press">
          <action name="ShowMenu"><menu>client-menu</menu></action>
        </mousebind>
        <mousebind button="A-Up" action="Click">
          <action name="DesktopPrevious"/>
        </mousebind>
        <mousebind button="A-Down" action="Click">
          <action name="DesktopNext"/>
        </mousebind>
        <mousebind button="C-A-Up" action="Click">
          <action name="SendToDesktopPrevious"/>
        </mousebind>
        <mousebind button="C-A-Down" action="Click">
          <action name="SendToDesktopNext"/>
        </mousebind>
      </context>
      <context name="Titlebar">
        <mousebind button="Left" action="Drag">
          <action name="Move"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="Raise"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="DoubleClick">
          <action name="ToggleShade"/>
        </mousebind>
        <mousebind button="Middle" action="Press">
          <action name="Lower"/>
        </mousebind>
        <mousebind button="Up" action="Click">
          <action name="Shade"/>
        </mousebind>
        <mousebind button="Down" action="Click">
          <action name="Unshade"/>
        </mousebind>
        <mousebind button="Right" action="Press">
          <action name="ShowMenu"><menu>client-menu</menu></action>
        </mousebind>
      </context>
      <context name="Handle">
        <mousebind button="Left" action="Drag">
          <action name="Move"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="Raise"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Middle" action="Press">
          <action name="Lower"/>
        </mousebind>
      </context>
      <context name="BLCorner">
        <mousebind button="Left" action="Drag">
          <action name="Resize"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
      </context>
      <context name="BRCorner">
        <mousebind button="Left" action="Drag">
          <action name="Resize"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
      </context>
      <context name="TLCorner">
        <mousebind button="Left" action="Drag">
          <action name="Resize"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
      </context>
      <context name="TRCorner">
        <mousebind button="Left" action="Drag">
          <action name="Resize"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
      </context>
      <context name="Client">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
          <action name="Raise"/>
        </mousebind>
        <mousebind button="Middle" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Right" action="Press">
          <action name="Focus"/>
        </mousebind>
      </context>
      <context name="Icon">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Right" action="Press">
          <action name="ShowMenu"><menu>client-menu</menu></action>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="ShowMenu"><menu>client-menu</menu></action>
        </mousebind>
      </context>
      <context name="AllDesktops">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="ToggleOmnipresent"/>
        </mousebind>
      </context>
      <context name="Shade">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="ToggleShade"/>
        </mousebind>
      </context>
      <context name="Iconify">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="Iconify"/>
        </mousebind>
      </context>
      <context name="Maximize">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Middle" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Right" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="ToggleMaximizeFull"/>
        </mousebind>
        <mousebind button="Middle" action="Click">
          <action name="ToggleMaximizeVert"/>
        </mousebind>
        <mousebind button="Right" action="Click">
          <action name="ToggleMaximizeHorz"/>
        </mousebind>
      </context>
      <context name="Close">
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
        </mousebind>
        <mousebind button="Left" action="Click">
          <action name="Close"/>
        </mousebind>
      </context>
      <context name="Desktop">
        <mousebind button="Up" action="Press">
          <action name="DesktopPrevious"/>
        </mousebind>
        <mousebind button="Down" action="Press">
          <action name="DesktopNext"/>
        </mousebind>
        <mousebind button="A-Up" action="Press">
          <action name="DesktopPrevious"/>
        </mousebind>
        <mousebind button="A-Down" action="Press">
          <action name="DesktopNext"/>
        </mousebind>
        <mousebind button="Left" action="Press">
          <action name="Focus"/>
          <action name="Raise"/>
        </mousebind> 
        <mousebind button="Middle" action="Press">
          <action name="ShowMenu"><menu>client-list-menu</menu></action>
        </mousebind> 
        <mousebind button="Right" action="Press">
          <action name="ShowMenu"><menu>root-menu</menu></action>
        </mousebind>
      </context>
      <context name="MoveResize">
        <mousebind button="Up" action="Press">
          <action name="DesktopPrevious"/>
        </mousebind>
        <mousebind button="Down" action="Press">
          <action name="DesktopNext"/>
        </mousebind>
        <mousebind button="A-Up" action="Press">
          <action name="DesktopPrevious"/>
        </mousebind>
        <mousebind button="A-Down" action="Press">
          <action name="DesktopNext"/>
        </mousebind>
      </context>
    </mouse>
    
    <menu>
      <!-- You can specify more than one menu file in here and they are all loaded,
           just don't make menu ids clash or, well, it'll be kind of pointless -->
    
      <!-- system menu files on Debian systems -->
      <file>/var/lib/openbox/debian-menu.xml</file>
      <file>debian-menu.xml</file>
    
      <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
      <file>menu.xml</file>
    </menu>
    
    </openbox_config>
    I find that the fonts in most of the openbox themes are small for my tastes, so I usually edit the font lines at the end of the themerc files in the theme folders for larger fonts. If you install the openbox-themes package, they will be in the /usr/share/themes folder.

    I like to start in console mode, and issue a 'startx' when/if I want X, so I made an ~/.xinitrc file to handle starting the necessary apps for that. A simple one:

    Code:
    eval `cat $HOME/.fehbg` &
    pypanel &
    exec openbox
    That uses feh to set a backdrop image, starts pypanel, and finally openbox. Note the & symbol following the commands preceding openbox, so that the commands are forked to the background. You could use this to start other apps that you usally use automatically, as well.

    As for pypanel, it requires hand-editing the config file: ~/.pypanelrc

    Code:
    #------------------------------------------------------------------------------
    #
    #                         PyPanel v2.3 Configuration
    #
    # This configuration file is a Python script that will be executed when
    # PyPanel is started.  In order for PyPanel to start properly, make sure that
    # this file contains proper Python formatting and no syntax errors.
    #------------------------------------------------------------------------------
    VERSION         = 2.3           # Config file version
    
    #------------------------------------------------------------------------------
    # Colors: Format is hex triplet - 0xrrggbb
    #------------------------------------------------------------------------------
    BG_COLOR        = "0xd6d6d6"    # Panel background and tinting color
    TASK_COLOR      = "0x000000"    # Normal task name color 
    FOCUSED_COLOR   = "0x1826de"    # Focused task name color
    SHADED_COLOR    = "0x808080"    # Shaded task name color 
    MINIMIZED_COLOR = "0x808080"    # Minimized task name color 
    DESKTOP_COLOR   = "0x000000"    # Desktop name color
    CLOCK_COLOR     = "0x000000"    # Clock text color
    LINE_COLOR      = "0x606060"    # Vertical line color
    
    #------------------------------------------------------------------------------
    # Panel Spacing and Location Options: Measured in pixels
    #------------------------------------------------------------------------------
    P_LOCATION      = 1             # Panel placement: 0 = top, 1 = bottom
    P_WIDTH         = 0             # Panel width: 0 = Use full screen width
    P_START         = 0             # Starting X coordinate of the panel
    P_SPACER        = 6             # Spacing between panel objects
    P_HEIGHT        = 24            # Panel height
    
    #------------------------------------------------------------------------------
    # Icon Size Options: Measured in pixels
    #------------------------------------------------------------------------------
    I_HEIGHT        = 16            # Panel application icon height
    I_WIDTH         = 16            # Panel application icon Width 
    APPL_I_HEIGHT   = 24            # Application launcher icon height
    APPL_I_WIDTH    = 24            # Application launcher icon width
    TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
    TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                    # If TRAY_I_WIDTH is set to 0, then the
                                    # width specified by the tray app will be used
                                    
    #------------------------------------------------------------------------------
    # Panel Clock Format: 'man strftime' for detailed formatting options and help
    #------------------------------------------------------------------------------
    CLOCK_FORMAT    = "%Y-%m-%d %H:%M"    # Ex: 2004-09-25 17:45 
    
    #------------------------------------------------------------------------------
    # Clock Delay: Seconds between each clock update during periods of inactivity
    #------------------------------------------------------------------------------
    CLOCK_DELAY     = 20
    
    #------------------------------------------------------------------------------
    # Hidden Application List: Apps listed here will not be display on the panel
    # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
    # Ex: ["xmms", "xine", "gDesklets"]
    #------------------------------------------------------------------------------
    HIDE_LIST       = []            
                       
    #------------------------------------------------------------------------------
    # Hidden Panel Size: Size of the panel when it's hidden/minimized
    #------------------------------------------------------------------------------
    HIDDEN_SIZE     = 2
    
    #------------------------------------------------------------------------------
    # Panel Text Font: This option takes either a traditional or Xft font string 
    # Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
    #     "aquafont-8" 
    #------------------------------------------------------------------------------
    FONT            = "bitstream vera sans-8"
    
    #------------------------------------------------------------------------------
    # Show All Applications: Show apps from all desktops or just the current
    # 0: Disabled - Only applications on the current desktop will be displayed
    # 1: Enabled  - Selected apps are moved to the current desktop
    # 2: Enabled  - Current desktop is changed to the selected apps desktop
    #------------------------------------------------------------------------------
    SHOWALL         = 0             # 0, 1 or 2 - see descriptions above
    
    #------------------------------------------------------------------------------
    # Show Minimized/Iconified Applications: Show only minimized apps or all apps
    # 0: Disabled - Show all applications on the panel
    # 1: Enabled  - Show only minimized apps on the panel
    #------------------------------------------------------------------------------
    SHOWMINIMIZED   = 0
    
    #------------------------------------------------------------------------------
    # Application Icon List: List of custom icons for specific applications
    # The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
    #
    # The "default" entry is used for applications with no icon.  If left "",
    # PyPanel will use the default icon distributed with the source.
    #
    # Add entries using the following format -
    #     "<application name>" : "<full path to icon>",
    #------------------------------------------------------------------------------
    ICON_LIST       = {
                       "default" : "",
                       "example" : "/usr/share/imlib2/data/images/audio.png",
                      }
                      
    #------------------------------------------------------------------------------
    # Application Launch List: Ordered list of icons and applications for the
    #                          application launcher.
    # 
    # Add entries using the following format -
    #     ("<executable>", "<full path to icon>")
    #------------------------------------------------------------------------------
    LAUNCH_LIST     = [
                       ("Terminal", "/home/brian/.icons/ROX/48x48/apps/gnome-terminal.png"),
                       ("firefox", "/home/brian/.icons/ROX/48x48/apps/xfce-internet.png"),
                       ("rox-filer", "/home/brian/.icons/ROX/48x48/apps/file-manager.png"),   
                      ]
    
    #------------------------------------------------------------------------------
    # Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
    # BG_COLOR is used for tinting
    #------------------------------------------------------------------------------
    SHADE           = 50
    
    #------------------------------------------------------------------------------
    # Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
    #------------------------------------------------------------------------------
    ABOVE           = 1             # Panel is always above other apps
    APPICONS        = 1             # Show application icons
    AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
    SHOWLINES       = 0             # Show object seperation lines
    SHOWBORDER      = 0             # Show a border around the panel
    
    #------------------------------------------------------------------------------
    # Desktop Names: Configure the names of your desktops
    # If the option is [], PyPanel will attempt to use the desktop name specified
    # by the XServer, if that fails it will use the desktop number as its name
    # Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
    #------------------------------------------------------------------------------
    DESKTOP_NAMES   = []
    
    #------------------------------------------------------------------------------
    # Panel Layout:       -----------------------------------
    #                     [  1  ][  2  ][  3  ][  4  ][  5  ]
    #                     -----------------------------------
    #
    # The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
    # in the diagram above.  Each of the following objects can be enabled by
    # assigning it a section number or disabled by assigning it 0:
    #------------------------------------------------------------------------------
    DESKTOP         = 1             # Desktop name section
    TASKS           = 3             # Task names section (cannot be disabled!) 
    TRAY            = 4             # System tray section
    CLOCK           = 5             # Clock section
    LAUNCHER        = 2             # Application launcher section
    
    #------------------------------------------------------------------------------
    #                       Button Event Function Definitions
    #------------------------------------------------------------------------------
    # Left click   - button 1 
    # Middle click - button 2
    # Right click  - button 3
    # Wheel up     - button 4
    # Wheel down   - button 5 
    #
    # changeDesktop(x)
    # - Change Desktop: Increase or decrease the current desktop by 'x' amount
    # 
    # toggleShade(task)
    # - Shade or Unshade an application
    #
    # toggleHidden()
    # - Minimize the panel to the top or bottom depending on its start location
    #
    # toggleMinimize(task, traise=1)
    # - Minimize or Unminimize an application and optionally raise it
    #
    # taskRaise(task, focus=1)
    # - Raise an application to the top of the window list and optionally focus it 
    #
    # taskLower(task, focus=0)
    # - Lower an app to the bottom of the window list and optionally focus it
    #
    # taskFocus(task)
    # - Give focus to the selected application, if it has focus then minimize it
    #
    # showDesktop()
    # - Toggle between hiding and unhiding ALL applications
    #------------------------------------------------------------------------------
    
    #----------------------------------
    def desktopButtonEvent(pp, button):
    #----------------------------------
        """ Button event handler for the panel's desktop object """
            
        if button == 1:
            pp.changeDesktop(-1)
        elif button == 2:
            pp.changeDesktop(2)
        elif button == 3:
            pp.changeDesktop(1)
        elif button == 4:
            pp.changeDesktop(1)
        elif button == 5:
            pp.changeDesktop(-1)
            
    #--------------------------------
    def clockButtonEvent(pp, button):
    #--------------------------------
        """ Button event handler for the panel's clock object """
        
        if button == 1:
            os.system("xclock &")
        elif button == 2:
            pass
        elif button == 3:
            pp.toggleHidden()  
        elif button == 4:
            pp.showDesktop()
        elif button == 5:
            pp.showDesktop()
            
    #--------------------------------
    def panelButtonEvent(pp, button):
    #--------------------------------
        """ Button event handler for the panel with no active tasks """
        
        if button == 1:
            pass
        elif button == 2:
            pass
        elif button == 3:
            pass
        elif button == 4:
            pass
        elif button == 5:
            pass
            
    #-------------------------------------
    def taskButtonEvent(pp, button, task):
    #-------------------------------------
        """ Button event handler for the panel's tasks """
        
        if button == 1:
            pp.taskFocus(task)
        elif button == 2:
            # Destroy the application
            task.obj.destroy()
        elif button == 3:
            # Ex. - XMMS doesn't shade, so we want to minimize it instead and
            #       still use button 3 to shade other applications
            #       task.tclass is the tasks class name (WM_CLASS)
            if "xmms" in task.tclass:
                pp.toggleMinimize(task)
            else:
                pp.toggleShade(task)
        elif button == 4:
            pp.taskRaise(task, focus=1)
        elif button == 5:
            pp.taskLower(task, focus=0)
    While it's fairly usable in it's default state, it's also quite customizable. The above has had some color and transparency changes, along with a few custom lauchers added. It's fairly well commented, so is not terribly difficult to edit.

    Note that the laucher icons listed specify my home directory, and applications which may or may not be present, so would need to be changed.

    The 'Panel Layout' section has the launchers turned off in the default mode, while I have set them to the second position in mine.

    You can even set a 'Hide List' if there are applications that you don't want to have displayed on the panel when executed.

    Anyway, it's not for everyone, but I enjoy customizing my 'linux experience'. I had some better examples awhile back, but I hosed them to do a fresh breezy install some time ago, so it's a pretty simple setup now.

  10. #10
    Iandefor is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Sep 2005
    Location
    New York
    Beans
    Hidden!

    Re: Installing Ubuntu on slower computers with less RAM

    Quote Originally Posted by PatrickMay16
    Recently, I've been reading on this forum about people who've installed Ubuntu on computers with low RAM by doing the server installation, then doing something like this:

    Code:
    apt-get install xserver-xorg
    apt-get install xfce4
    I'd like to ask, which packages exactly do you need to install when you do that? I think there's more than just that needed to get it working. I searched the forum but I wasn't able to find the post that I had read about this in.
    Also, for people who've done this, what were the results like?
    Let's discuss this.
    There are a lot of dependencies to get X and XFCE running. My suggestion would be to look at the dependencies in Synaptic.

    The results were usable, but, on the whole, I prefer GNOME. I had a magnificently old computer I installed Xubuntu on (64 megs of ram) and it was still slow. I did some hacking and managed to make Enlightenment the default WM, which really made it faster. Check here for instructions on how to do it.
    This space intentionally left blank.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •