<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TJLUG &#187; Lenny</title>
	<atom:link href="http://www.tjlug.org/category/linux/debian-linux/lenny-debian-linux-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tjlug.org</link>
	<description>The stone age is an electrical power cut away !</description>
	<lastBuildDate>Sun, 25 Jul 2010 14:29:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting up file sharing on debian lenny</title>
		<link>http://www.tjlug.org/2010/07/05/setting-up-file-sharing-on-debian-lenny/</link>
		<comments>http://www.tjlug.org/2010/07/05/setting-up-file-sharing-on-debian-lenny/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 14:48:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows - SAMBA]]></category>

		<guid isPermaLink="false">http://www.tjlug.org/?p=422</guid>
		<description><![CDATA[If you have installed Debian Lenny with file sharing (in the lenny installer), you will need to add users to that installation and specify folders that need to be shared, here i will show you how to add a user and share a folder with that user. If you have not installed file sharing while [...]]]></description>
			<content:encoded><![CDATA[<p>If you have installed Debian Lenny with file sharing (in the lenny installer), you will need to add users to that installation and specify folders that need to be shared, here i will show you how to add a user and share a folder with that user.</p>
<p>If you have not installed file sharing while installing Debian lenny, you need to install them, the easiest way to do that is</p>
<p>run the command</p>
<p>aptitude</p>
<p>using the arrow keys and the enter key, expand “TASKS” then place the bar over File Server, then the plus sign to select it (Shift +), right after hit “g” then “g” on your keyboard to install them.</p>
<p>Once done, Download the following files and place them in /etc/samba/ replacing any existing files (Backup your own files)</p>
<p>wget http://www.linuxhowtodocs.com/samba_base.zip</p>
<p>unzip samba_base.zip -o -d /etc/samba</p>
<p>Now to adding users, from the following 3 commands, After the second and after the third command, you will be asked to chose a password for the user joe</p>
<p>useradd joe -m -G users<br />
passwd joe<br />
smbpasswd -a joe</p>
<p>Now with this out of the way, Edit the file /etc/samba/smb.conf</p>
<p>The following need to be edited</p>
<p>netbios name : Should become the name of the computer on the network, in windows, this is the machine’s name<br />
hosts allow : If your network is like mine where PCs take IP addresses of the form 192.168.2.x, then this one should be 127. 192.168.2. where 127 is for the local machine, the following part of the IP is the part of the IP that prefixes the IP of all network machines that should be able to access this file server (usually you will change the 2 with a 0 or 1)<br />
interfaces : 127.0.0.1/8 192.168.2.0/24, like above, if your IP subnet is not 192.168.2.x, change it here (usualy you will change the 2 with a 0 or 1)<br />
remote announce : if your subnet does not start with  192.168.2. then change it to your own (usually you will change the 2 with a 0 or 1)<br />
remote browse sync : if your subnet does not start with 192.168.2. then change it to your own (usualy you will change the 2 with a 0 or 1)</p>
<p>Now scroll down, you will see a sample folder, edit that to the folder you want to share, and copy it over and over again for any other folders that you want to share, You are done, now you should be able to open those folders from the network.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tjlug.org/2010/07/05/setting-up-file-sharing-on-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to mount a ram hard disk in Linux</title>
		<link>http://www.tjlug.org/2010/02/01/how-to-mount-a-ram-hard-disk-in-linux/</link>
		<comments>http://www.tjlug.org/2010/02/01/how-to-mount-a-ram-hard-disk-in-linux/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 08:54:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hard disks]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[ramdisk]]></category>

		<guid isPermaLink="false">http://www.tjlug.org/?p=358</guid>
		<description><![CDATA[In this post, i will show you how to create a very fast, 0 latency hard drive from the extra gigabyte or 2 on your system 1- You need to change the boot options to allow this&#8230; Since i use debian lenny, my boot options look like this in /boot/grub/menu.lst title        Debian GNU/Linux, kernel [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, i will show you how to create a very fast, 0 latency hard drive from the extra gigabyte or 2 on your system</p>
<p>1- You need to change the boot options to allow this&#8230;</p>
<p>Since i use debian lenny, my boot options look like this in /boot/grub/menu.lst</p>
<p>title        Debian GNU/Linux, kernel 2.6.26-2-686<br />
root        (hd0,1)<br />
kernel        /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet<br />
initrd        /boot/initrd.img-2.6.26-2-686</p>
<p>We need to append ramdisk_size=1572864 if we wanted a 1.5GB RAM drive, make sure you have 1.5GB EXTRA on your system, let&#8217;s say you must have a minimum of 2GB for the system to run using the 512MB you are leaving the system with</p>
<p>title        Debian 1.5GB Ramdisk, kernel 2.6.26-2-686<br />
root        (hd0,1)<br />
kernel        /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet ramdisk_size=1572864<br />
initrd        /boot/initrd.img-2.6.26-2-686</p>
<p>You are done for now, if you want to format and use it do this</p>
<p>/sbin/mkfs.ext2 /dev/ram0</p>
<p>Remember that you need to format as ext2 and not ext3, i have seen people format the hard drive as EXT3, why would you ever need Journaling on a RAM disk that is already volatile (Deleted when you reboot)</p>
<p>mkdir /ramdisk<br />
mount /dev/ram0 /ramdisk</p>
<p>You can now get creative and format or load a disk image at boot time, in any case, the RAM is only allocated to the disk when you use it, but you really don&#8217;t need to know that to use your new RAM hard disk</p>
<p>NOTE: I chose to explain RAM disk because later on i will show you what advantages we can get from having a block level device, you can surely do this without modifying boot options by simply using tempfs or RAMFS that give you an instant ram disk, but it is not a block level device in that case</p>
<p>Testing Speed</p>
<p>So, you want to see how fast it is, but for that we need a data source that can push this thing to the maximum, the answer is /dev/zero that responds with a stream of zeros, so let us write a 1.3GB file to our new volatile hard disk</p>
<p>dd if=/dev/zero of=/ramdisk/pathtoimage.img bs=1M count=1300</p>
<p>On my computer, this took about 4.54006 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tjlug.org/2010/02/01/how-to-mount-a-ram-hard-disk-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>installing Debian Lenny extra steps</title>
		<link>http://www.tjlug.org/2010/02/01/installing-debian-lenny-extra-steps/</link>
		<comments>http://www.tjlug.org/2010/02/01/installing-debian-lenny-extra-steps/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 06:25:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.tjlug.org/?p=354</guid>
		<description><![CDATA[This is how i install Debian lenny at the office on all computers NOTE: (192.168.2.133) has apt-cacher, my PC 192.168.2.106 has a php script that responds with the caller&#8217;s IP 1- Put the Lenny Mini-CD into the computer 2- Follow instructions, when asked about a proxy, the address is http://192.168.2.133:3142/ 3-Once done, run apt-get update [...]]]></description>
			<content:encoded><![CDATA[<p>This is how i install Debian lenny at the office on all computers</p>
<p>NOTE: (192.168.2.133) has apt-cacher, my PC 192.168.2.106 has a php script that responds with the caller&#8217;s IP</p>
<p>1- Put the Lenny Mini-CD into the computer<br />
2- Follow instructions, when asked about a proxy, the address is http://192.168.2.133:3142/<br />
3-Once done, run</p>
<p>apt-get update</p>
<p>apt-get install ssh openssh-server</p>
<p>4- Finding out our Network IP address, you can simply issue the command</p>
<p>ifconfig</p>
<p>The above will give us the IP address of this pc</p>
<p>5- Now we can go back to the Windows PC and start WinSCP and PUTTY to edit files and do stuff, i use sourceedit as the editor because i want to save any edited file as linux text (Line break is different)</p>
<p>6- connect via putty and WinSCP to the computer so we can edit some files&#8230;</p>
<p>7- Fix /etc/apt/sources.list to have the apt-cacher &#8230; and comment out the CD</p>
<p>so deb &#8220;http://ftp.us.debian.org/debian/ lenny main&#8221; becomes &#8220;deb http://192.168.2.133:3142/ftp.us.debian.org/debian/ lenny main&#8221;</p>
<p>The above lines save internet bandwidth by caching the files on the network</p>
<p>8- Now, we want the PC to request the same IP every time so that we always know how to connect to it.</p>
<p>edit /etc/network/interfaces,</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
initially it looks like this<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>auto lo<br />
iface lo inet loopback</p>
<p>allow-hotplug eth0<br />
iface eth0 inet dhcp</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
But we want it to look like this<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># The primary network interface<br />
allow-hotplug eth0<br />
iface eth0 inet static<br />
address 192.168.2.112<br />
netmask 255.255.255.0<br />
gateway 192.168.2.1</p>
<p>auto eth0</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8212;-DONE&#8212;</p>
<p>And now we are probably set to connect to this PC every time (Static Network IP), and to use aptitude without waiting for ages to download the packages from the internet</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tjlug.org/2010/02/01/installing-debian-lenny-extra-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
