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

Thread: jwm howto?

  1. #1
    Join Date
    Apr 2009
    Beans
    6

    jwm howto?

    I have installed Ubuntu 8.04 LTS via alternate installer, and did a console/text (f4) install on an old laptop.

    I've installed xorg, jwm and slim (sudo apt-get install xorg jwm slim).

    Now I need a few things:

    - a graphical way to shutdown the computer
    - "sudo for x" so that I can run things like synaptics, etc. from the GUI.
    - some sort of graphical network manager, so I can set up the network interface from the GUI (must support wireless).

    Any ideas on what packages to install, or other ways (configuration steps), inorder to achive this?

    Thanks,
    Per

  2. #2
    Join Date
    Dec 2008
    Location
    United States
    Beans
    766
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: jwm howto?

    for a lightweight gui i would go with Fluxbox

  3. #3
    Join Date
    Apr 2009
    Beans
    6

    Re: jwm howto?

    Quote Originally Posted by andrea000 View Post
    for a lightweight gui i would go with Fluxbox
    Thank you for the suggestion (and link). I am considering Fluxbox; but will installing Fluxbox in itself take care of my "requirements"? (If not, I'd like to know how to take care of those three things under Fluxbox as well)

    Regards,
    Per

  4. #4
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,189

    Re: jwm howto?

    - a graphical way to shutdown the computer
    2 ways you can go about it, just do it by adding to the menu or via script. any which way make sure you add the "NOPASSWD:" to visudo for the commands.
    example:
    you ALL=(ALL) NOPASSWD: /sbin/shutdown, /sbin/reboot, /sbin/halt, /sbin/poweroff

    menu:
    Code:
    <Program label="Reboot">exec sudo reboot</Program>
    <Program label="Shutdown">exec sudo halt</Program>
    <Exit label="Exit-X" confirm="false"/>
    script:
    Code:
    #!/bin/sh
    XMESSAGE=$(which gxmessage) || XMESSAGE=xmessage
    
    $XMESSAGE " Logout Selections " -center -buttons "Cancel":1,"Reboot":2,"Shutdown":3,"Exit X":4  
    case $? in
    1) exit 0 ;;
    2) sudo reboot ;;
    3) sudo halt ;;
    4) jwm -exit ;;
    esac

    - "sudo for x" so that I can run things like synaptics, etc. from the GUI.
    sudo apt-get install gksu
    then for those programs that need a password use gksudo.
    example:
    Code:
    <Program label="Package Manager">exec gksudo synaptic</Program>
    - some sort of graphical network manager, so I can set up the network interface from the GUI (must support wireless).
    sudo apt-get install network-manager
    add "nm-applet" to your startup.
    example:
    Code:
    <StartupCommand>
    nm-applet
    </StartupCommand>
    Last edited by kerry_s; April 30th, 2009 at 01:30 AM.

  5. #5
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,189

    Re: jwm howto?

    oops, i meant to put a copy of my .jwmrc for your pickings.
    it's really modified, i was practising my vi and went to town on it.
    there's also another version on the forums somewhere that has icons and looks like gnome if you want to search for that.
    here 1: http://ubuntuforums.org/showthread.p...=.jwmrc&page=5

    mind you i change all the time, so you can fine several different 1's, most of the time i like simple.

    Code:
    <?xml version="1.0"?>
    
    <JWM>
    
    	<!-- Startup commands -->
    <StartupCommand>
    </StartupCommand>
    
    	<!-- Group settings -->
    <Group>
    <Name>xmessage</Name>
    <Name>xpad</Name>
    <Option>noborder</Option>
    <Option>nolist</Option>
    <Option>notitle</Option>
    </Group>
    
    <Group>
    <Name>pidgin</Name>
    <Name>orage</Name>
    <Option>nolist</Option>
    </Group>
    
    	<!-- Logout menu -->
    <RootMenu height="0" onroot="0" labeled="true" label="Logout Options">
    <Separator/><Separator/>
    <Program label="Suspend">exec sudo pm-suspend</Program>
    <Program label="Reboot">exec sudo reboot</Program>
    <Program label="Shutdown">exec sudo halt</Program>
    <Exit label="Exit-X" confirm="false"/>
    </RootMenu>
    
    <RootMenu height="0" onroot="12">
    </RootMenu>
    
    	<!-- Main menu / Right click -->
    <RootMenu height="0" onroot="3" labeled="true" label="Main Menu">
    <Separator/><Separator/>
    <Menu label="Accessories">
    <Program label="Edit Menu">exec mousepad ~/.jwmrc</Program>
    <Program label="Terminal">exec xterm</Program>
    <Program label="Calculator">exec xcalc</Program>
    <Program label="Notes">exec xpad</Program>
    </Menu>
    <Menu label="Graphics">
    <Program label="Paint">exec mtpaint</Program>
    </Menu>
    <Menu label="Internet">
    <Program label="WWW-Browser">exec epiphany | xmessage " Loading " -center -timeout 10 &amp;</Program>
    <Program label="Messenger">exec pidgin</Program>
    </Menu>
    <Menu label="Office">
    <Program label="Docs">exec abiword</Program>
    </Menu>
    <Menu label="Sound + Video">
    <Program label="Media Player">exec gnome-mplayer</Program>
    <Program label="Alsa">exec xterm -e alsamixer</Program>
    </Menu>
    <Menu label="System Tools">
    <Program label="Htop">exec xterm -e htop</Program>
    <Program label="Gparted">exec gksudo gparted</Program>
    <Program label="Configuration Editor">exec gconf-editor</Program>
    </Menu>
    <Separator/>
    <Menu label="Places">
    <Program label="Home Folder">exec Thunar</Program>
    <Program label="Desktop">exec Thunar ~/Desktop</Program>
    <Program label="Scripts">exec Thunar ~/Scripts</Program>
    </Menu>
    <Separator/>
    <Menu label="Preferences">
    <Program label="Appearance">exec lxappearance</Program>
    </Menu>
    <Menu label="Administration">
    <Program label="Root File Manager">exec gksudo "Thunar /"</Program>
    <Program label="Root Terminal">exec gksudo "xterm -rv -fn 9x15"</Program>
    </Menu>
    <Separator/>
    <Program label="Logout">exec $HOME/Scripts/logout</Program>
    <Separator/>
    <Restart label="Restart JWM"/>
    </RootMenu>
    
    <RootMenu height="0" onroot="45">
    </RootMenu>
    
    	<!-- Volume menu -->
    <RootMenu height="0" onroot="6" labeled="true" label="Volume">
    <Separator/><Separator/>
    <Program label="100">exec amixer set Master 100% unmute</Program>
    <Program label="75">exec amixer set Master 75% unmute</Program>
    <Program label="50">exec amixer set Master 50% unmute</Program>
    <Program label="25">exec amixer set Master 25% unmute</Program>
    <Program label="Mute">exec amixer set Master toggle</Program>
    </RootMenu>
    
    	<!-- Quicklaunch menu -->
    <RootMenu height="0" onroot="7" labeled="true" label="Quick Launcher">
    <Separator/><Separator/>
    <Program label="Terminal">exec xterm</Program>
    <Program label="File Manager">exec Thunar</Program>
    <Program label="Web Browser">exec epiphany | xmessage " Loading " -center -timeout 10 &amp;</Program>
    </RootMenu>
    
    <RootMenu height="0" onroot="89">
    </RootMenu>
    
    	<!-- Bottom panel -->
    <Tray x="0" y="-1" height="0">
    <TrayButton label="  JWM   ">root: 3</TrayButton>
    <TrayButton label="_">showdesktop</TrayButton>
    <TrayButton label=" +  ">root: 7</TrayButton>
    <TaskList/>
    <Dock/>
    <TrayButton label=" V  ">root: 6</TrayButton>
    <Clock format=" %l:%M   ">exec orage</Clock>
    <!--<Pager/>-->
    </Tray>
    
    	<!-- Top panel -->
    <Tray valign="top" halign="center" height="0" layer="0">
    <Clock format="   %A   |   %B   |   %D   "/>
    </Tray>
    
    <Tray x="-30" y="-50" height="0" layer="0">
    <TrayButton icon="logout.png">root: 0</TrayButton>
    </Tray>
    
    	<!-- Styles -->
    <WindowStyle>
    <Font>Verdana-7</Font>
    <Width>4</Width>
    <Height>18</Height>
    <Active>
    <Text>white</Text>
    <Title>gray20</Title>
    <Corner>gray20</Corner>
    <Outline>gray20</Outline>
    </Active>
    <Inactive>
    <Text>white</Text>
    <Title>gray20</Title>
    <Corner>gray20</Corner>
    <Outline>gray20</Outline>
    </Inactive>
    </WindowStyle>
    
    <TaskListStyle>
    <Font>Verdana-7</Font>
    <ActiveForeground>white</ActiveForeground>
    <ActiveBackground>gray30</ActiveBackground>
    <Foreground>white</Foreground>
    <Background>gray20</Background>
    </TaskListStyle>
    
    <TrayStyle>
    <Font>Verdana-12</Font>
    <Background>gray20</Background>
    <Foreground>white</Foreground>
    </TrayStyle>
    
    <PagerStyle>
    <Outline>black</Outline>
    <Foreground>white</Foreground>
    <Background>gray20</Background>
    <ActiveForeground>white</ActiveForeground>
    <ActiveBackground>gray30</ActiveBackground>
    </PagerStyle>
    
    <MenuStyle>
    <Font>Verdana-12</Font>
    <Foreground>white</Foreground>
    <Background>gray20</Background>
    <ActiveForeground>white</ActiveForeground>
    <ActiveBackground>gray30</ActiveBackground>
    </MenuStyle>
    
    <PopupStyle enabled="false"/>
    
    	<!-- Icon paths -->
    <IconPath>
    $HOME/.icons
    </IconPath>
    
    	<!-- Desktops -->
    <Desktops count="1">
    <!--<Background type="command">exec eval `cat $HOME/.fehbg`</Background>-->
    </Desktops>
    
    	<!-- Actions -->
    <DoubleClickSpeed>400</DoubleClickSpeed>
    <DoubleClickDelta>2</DoubleClickDelta>
    <FocusModel>click</FocusModel>
    <SnapMode>screen</SnapMode>
    <MoveMode>outline</MoveMode>
    <ResizeMode>outline</ResizeMode>
    
    	<!-- Keyboard shortcuts  -->
    <Key mask="A"  key="F2">exec: gmrun</Key>
    <Key mask=""   key="Print">exec: scrot %T.png -e 'mv $f ~/Desktop';xmessage " Screenshot Done! " -center</Key>
    <Key mask="A"  key="Print">exec: xterm -g 35x0+0+0 -e scrot -cd 5 %T.png -e 'mv $f ~/Desktop'</Key>
    <Key mask=""   key="Super_L">exec: xset dpms force off</Key>
    <Key mask="CA" key="Delete">exec: sudo reboot</Key>
    
    </JWM>
    Last edited by kerry_s; April 7th, 2009 at 04:11 AM.

  6. #6
    Join Date
    Apr 2009
    Beans
    6

    Re: jwm howto?

    Quote Originally Posted by kerry_s View Post
    oops, i meant to put a copy of my .jwmrc for your pickings.
    it's really modified, i was practising my vi and went to town on it.
    there's also another version on the forums somewhere that has icons and looks like gnome if you want to search for that.
    here 1: http://ubuntuforums.org/showthread.p...=.jwmrc&page=5
    [--&<---8<--]
    Awesome, thanks a lot! Vi rules (The Gnome look sounds kewl, I'll have a look once I get the stuff working)

    Regards,
    Per

  7. #7
    Join Date
    Apr 2009
    Beans
    6

    Re: jwm howto?

    Great! Thank you so much!

    Quote Originally Posted by kerry_s View Post
    sudo apt-get install network-manager
    add "nm-applet" to your startup.
    example:
    Code:
    <StartupCommand>
    nm-applet
    </StartupCommand>
    I can't get this one working though; nm-applet seems to not be part of network-manager??? Do I need network-manager-gnome, or something like that as well? (I was hopeing to avoid as many Gnome deps as possible)

    Are there any alternative packages?

    Regards,
    Per

  8. #8
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,189

    Re: jwm howto?

    Quote Originally Posted by pgo View Post
    Great! Thank you so much!



    I can't get this one working though; nm-applet seems to not be part of network-manager??? Do I need network-manager-gnome, or something like that as well? (I was hopeing to avoid as many Gnome deps as possible)

    Are there any alternative packages?

    Regards,
    Per
    you might, i'm not sure. have you tried rebooting first to make sure network manager has control of the network devices? try running nm-applet from the terminal see what it says.

    yes, there is others. i'm not sure what is in the repo though i use arch linux now.
    i hear wicd is pretty good, try> sudo apt-get install wicd
    for the tray: wicd-client

    don't worry about libaries they don't affect performance, i have lots of gnome and xfce4 in mine and i'm running on a low spec laptop 450mhz 256mb ram.
    Last edited by kerry_s; April 7th, 2009 at 08:20 AM.

  9. #9
    Join Date
    Apr 2009
    Beans
    6

    Re: jwm howto?

    Quote Originally Posted by kerry_s View Post
    you might, i'm not sure. have you tried rebooting first to make sure network manager has control of the network devices? try running nm-applet from the terminal see what it says.
    Yeah, I think I tried rebooting. And I couldn't find nm-applet from the shell. So I assume the applet is part of network-manager-gnome and network-manager-kde(?).

    Quote Originally Posted by kerry_s View Post
    yes, there is others. i'm not sure what is in the repo though i use arch linux now.
    i hear wicd is pretty good, try> sudo apt-get install wicd
    for the tray: wicd-client
    Wicd is working out fine for me, thanks again It will be the universe repository for Ubuntu Jaunty. For hardy I had to add deb http://apt.wicd.net hardy extras to /etc/apt/sources.list. And then run: wget -q http://apt.wicd.net/wicd.gpg -O- | sudo apt-key add - followed by: sudo apt-get install wicd.

    Quote Originally Posted by kerry_s View Post
    don't worry about libaries they don't affect performance, i have lots of gnome and xfce4 in mine and i'm running on a low spec laptop 450mhz 256mb ram.
    OK, it's just that I was hopeing to make a nice, lean, clean, absolute minimal desktop install. And, it's seems I've made it now thanks to you. (I'll make a small howto and put on the web somewhere)

    Regards,
    Per
    Last edited by pgo; April 7th, 2009 at 10:00 AM.

  10. #10
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,189

    Re: jwm howto?

    i just came back to tell you to grab wicd if you could.
    i was just trying it another machine, i couldn't even get networkmanager working, but wicd worked right away.

    minimal and something you really want to use kinda clash.
    for example:
    pcmanfm is small does the job, but thunar is way better, never crashes, slows down or has thumbnail problems. thunar comes with other xfce4 junk.

    firefox is great, but it's a pig on resources, epiphany on the other hand can do the same thing firefox does, but is heavily simplified. epiphany comes with gnome junk

    etc...

    it's just a matter of what you want, i got mine to setup to work in as little as 122mb ram(minus vid) which is what my test laptop has. this laptop has 256mb so it has no problems running the same apps that work good on the 122mb laptop.
    i can go days without ever dipping into swap on 256mb.
    Last edited by kerry_s; April 30th, 2009 at 01:30 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •