<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://antix.mepis.org/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://antix.mepis.org/index.php?title=Further_Lighten_antiX_Ratpoison!&amp;feed=atom&amp;action=history</id>
		<title>Further Lighten antiX Ratpoison! - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://antix.mepis.org/index.php?title=Further_Lighten_antiX_Ratpoison!&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://antix.mepis.org/index.php?title=Further_Lighten_antiX_Ratpoison!&amp;action=history"/>
		<updated>2013-05-20T22:38:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.1</generator>

	<entry>
		<id>http://antix.mepis.org/index.php?title=Further_Lighten_antiX_Ratpoison!&amp;diff=1519&amp;oldid=prev</id>
		<title>Anticapitalista at 21:53, 26 July 2007</title>
		<link rel="alternate" type="text/html" href="http://antix.mepis.org/index.php?title=Further_Lighten_antiX_Ratpoison!&amp;diff=1519&amp;oldid=prev"/>
				<updated>2007-07-26T21:53:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:2007-07-25-185444_1024x768_scrot.png|thumb|antiX + Ratpoison]]&lt;br /&gt;
&lt;br /&gt;
==Sudo and Ratpoison!==&lt;br /&gt;
&lt;br /&gt;
Many thanks to macondo.&lt;br /&gt;
&lt;br /&gt;
Sudo is installed by default in antiX&lt;br /&gt;
&lt;br /&gt;
Edit the file /etc/sudoers&lt;br /&gt;
&lt;br /&gt;
  # nano /etc/sudoers&lt;br /&gt;
&lt;br /&gt;
and added the last 2 lines for myself and my wife (the only other user) and left it looking like this:&lt;br /&gt;
&lt;br /&gt;
  # sudoers file.&lt;br /&gt;
  #    # This file MUST be edited with the &amp;quot;visudo&amp;quot; command as root.&lt;br /&gt;
  #&lt;br /&gt;
  # See the man page for details on how to write a sudoers file.&lt;br /&gt;
  #&lt;br /&gt;
  # Host alias specification&lt;br /&gt;
  # User alias specification&lt;br /&gt;
  # Cmnd alias specification&lt;br /&gt;
  # User privilege specification&lt;br /&gt;
    root ALL=(ALL) ALL&lt;br /&gt;
    onthego ALL=/usr/sbin/mesm&lt;br /&gt;
    %users ALL=/usr/bin/apt-get -s upgrade&lt;br /&gt;
    macondo ALL = NOPASSWD : ALL&lt;br /&gt;
    giovi ALL = NOPASSWD: /sbin/halt, /sbin/reboot&lt;br /&gt;
&lt;br /&gt;
saved/exit&lt;br /&gt;
&lt;br /&gt;
then I tested it, as user:&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
works fine. My wife can only shutdown and reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.nongnu.org/ratpoison/ '''Ratpoison''']&lt;br /&gt;
&lt;br /&gt;
Ratpoison is a very light wm that only uses 1,4 MB RAM (acording to ps aux), whereas icewm and fluxbox use 4-5 MB RAM, so if you got an old box..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To install, a simple:&lt;br /&gt;
&lt;br /&gt;
  #apt-get install ratpoison&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The version for rp in the ubuntu repos is not the latest (1.4.0) and I wanted the latest (1.4.1). I couldn't remember what came by default with antiX so I installed everything:&lt;br /&gt;
&lt;br /&gt;
  $ sudo apt-get install zip unzip bzip2 build-essential xorg-dev checkinstall&lt;br /&gt;
&lt;br /&gt;
it told me some were already the latest versions and proceeded to install the rest. I created a new folder in my /home and named it 'source', then went to the rp website:&lt;br /&gt;
&lt;br /&gt;
  http://www.nongnu.org/ratpoison/&lt;br /&gt;
&lt;br /&gt;
and downloaded the source to my /home/macondo/source folder, read the INSTALL section, then moved/cd to rp's location:&lt;br /&gt;
&lt;br /&gt;
  $ cd /home/macondo/source/rat&amp;lt;TAB&amp;gt; to autocomplete the name&lt;br /&gt;
&lt;br /&gt;
once there, I proceeded to compile it:&lt;br /&gt;
&lt;br /&gt;
  as user:&lt;br /&gt;
  ./configure&lt;br /&gt;
  make&lt;br /&gt;
  sudo checkinstall -D&lt;br /&gt;
  (D for Debian and S for Slackware)&lt;br /&gt;
&lt;br /&gt;
then installed the newly made .deb:&lt;br /&gt;
  sudo dpkg -i rat &amp;lt;TAB key&amp;gt; &amp;lt;Enter&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and that was it, added this to my .ratpoisonrc:&lt;br /&gt;
&lt;br /&gt;
  alias term exec aterm&lt;br /&gt;
  escape F8&lt;br /&gt;
  warp on&lt;br /&gt;
  startup_message off&lt;br /&gt;
  set winname class&lt;br /&gt;
  defborder 0&lt;br /&gt;
  defpadding 0 0 0 0&lt;br /&gt;
  defbarpadding 0 0&lt;br /&gt;
  exec xsetroot -solid black -cursor_name left_ptr&lt;br /&gt;
  bind semicolon colon&lt;br /&gt;
  bind colon exec&lt;br /&gt;
&lt;br /&gt;
  alias showroot exec ratpoison -c fdump; ratpoison -c 'select -' -c only&lt;br /&gt;
  alias unshowroot exec ratpoison -c &amp;quot;frestore at $HOME/.rpfdump&amp;quot;&lt;br /&gt;
  bind B showroot&lt;br /&gt;
&lt;br /&gt;
  ###Shortcut for apps&lt;br /&gt;
  bind F12 exec xfe&lt;br /&gt;
  bind F11 exec xchat&lt;br /&gt;
  bind F10 exec xzgv&lt;br /&gt;
  bind F9 exec aterm -e elinks&lt;br /&gt;
  bind o exec opera&lt;br /&gt;
  bind f exec firefox&lt;br /&gt;
  bind F6 exec sylpheed-claws-gtk2&lt;br /&gt;
  bind F5 exec aterm -e scrot -c -d 10&lt;br /&gt;
  bind x exec xtrlock&lt;br /&gt;
  bind r restart&lt;br /&gt;
  bind Delete exec sudo halt&lt;br /&gt;
  bind W exec ~/bin/windows&lt;br /&gt;
  bind c exec aterm&lt;br /&gt;
&lt;br /&gt;
  #numpad numbers work to select window&lt;br /&gt;
  bind KP_0 select 0&lt;br /&gt;
  bind KP_1 select 1&lt;br /&gt;
  bind KP_2 select 2&lt;br /&gt;
  bind KP_3 select 3&lt;br /&gt;
  bind KP_4 select 4&lt;br /&gt;
  bind KP_5 select 5&lt;br /&gt;
  bind KP_6 select 6&lt;br /&gt;
  bind KP_7 select 7&lt;br /&gt;
  bind KP_8 select 8&lt;br /&gt;
  bind KP_9 select 9&lt;br /&gt;
&lt;br /&gt;
voilà!&lt;br /&gt;
&lt;br /&gt;
  F8 + c &amp;lt;will launch aterm, etc&amp;gt;&lt;br /&gt;
  F8 + o &amp;lt;launches opera&amp;gt;&lt;br /&gt;
  F8 + f &amp;lt;launches firefox&amp;gt;&lt;br /&gt;
  F8 + Delete &amp;lt;shutdown&amp;gt;&lt;br /&gt;
  F8 + r &amp;lt;restart&amp;gt;&lt;br /&gt;
  F8 + a &amp;lt;will give you time and date&amp;gt; (in the upper right corner)&lt;br /&gt;
  F8 + w &amp;lt;will show what windows you got open&amp;gt;&lt;br /&gt;
  F8 + k &amp;lt;closes the app you're using&amp;gt;&lt;br /&gt;
  F8 + s &amp;lt;splits the screen horizontally&amp;gt;&lt;br /&gt;
  F8 + S &amp;lt;splits the screen vertically&amp;gt;&lt;br /&gt;
  F8 + Q &amp;lt;unsplits, back to normal&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To move between screens a la alt-tab, there are 3 ways:&lt;br /&gt;
&lt;br /&gt;
  F8+F8&lt;br /&gt;
  F8+Enter&lt;br /&gt;
  F8+Space bar&lt;br /&gt;
&lt;br /&gt;
For a Run box, add the following to the bottom of the .ratpoisonrc file:&lt;br /&gt;
&lt;br /&gt;
  # top-level shortcuts (don't require prefix key)&lt;br /&gt;
  definekey top C-space exec&lt;br /&gt;
  definekey top Print exec aterm -e scrot -c -d 10&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ctrl + spacebar will give me run box on the right hand corner, good for sudoing and launching apps as user.&lt;br /&gt;
&lt;br /&gt;
The reason I use F8 as my meta key is because I don't have to move my hand from the keyboard, but you could replace F8 with the keys Pause, Insert, or the default Ctrl+t (C-t).&lt;br /&gt;
In order to take a screenshot all I have to do is press the Print key,&lt;br /&gt;
nifty huh?&lt;/div&gt;</summary>
		<author><name>Anticapitalista</name></author>	</entry>

	</feed>