Advertise with Googlier.com Allan Feid - eee https://allanfeid.com/category/tags/eee en Installing an Atheros Based Wireless Card on the Eee 901 https://allanfeid.com/content/installing-atheros-based-wireless-card-eee-901 <div class="field field-name-body field-type-text-with-summary field-label-hidden view-mode-rss"><div class="field-items"><div class="field-item even" property="content:encoded"><p>So, I got pretty fed up with the Ralink RA2860 wireless card that comes with my ASUS Eee 901. It does not play well with <a href="http://www.remote-exploit.org/backtrack.html" title="Backtrack">Backtrack 3</a> nor does it do packet injection. I want to turn this thing into a nice little security machine that I can bring with me and easily start testing some networks. In order to do that I got a new <a href="http://www.oxfordtec.com/us/MiniPCI-EXPRESS-Wireless/c42/p149/GIGABYTE-GN-WS50G--802.11-b/g-Atheros-AR5007-chipset-minicard-mPCI-express-card/product_info.html" title="Gigabyte GN-WS50G">Atheros based card from Gigabyte</a>. This card is known to work well with Backtrack and of course is highly supported in the Linux world. For those that care, it is an Atheros AR5007 chipset.</p> <p>Once I got the part in the mail I opened it up to install:</p> <p><center><br /> <img src="/sites/default/files/tmb_eee_open.JPG" alt="Opening the Eee PC and removing the MiniPCI Express wireless card" /></center></p> <p>Very simple to open, all you have to do is remove two screws and take off the plate. To remove the wireless card, take off the two pigtail connectors, which I have circled in red, then remove the two screws circled in blue. Finally move the two pigtail wires and you should see the card pop itself up.</p> <p><center><br /> <img src="/sites/default/files/tmb_eee_card_compare.JPG" alt="Ralink RA2860 and Gigabyte GN-WS50G side by side" /></center></p> <p>Remove the MiniPCI Express card and insert your new wireless card. Then screw it back in and pop on the pigtail connectors. You are now good to go. If you're using Windows I'll assume you have to install the drivers included but on Ubuntu and Backtrack my card was recognized instantly.</p> <p><center><br /> <img src="/sites/default/files/tmb_eee_new_card.JPG" alt="New Gigabyte GN-WS50G Atheros AR5007 based card in my Eee 901" /></center></p> <p>Enjoy your new Atheros based wifi card!</p> </div></div></div><section class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above view-mode-rss"><h2 class="field-label">Tags:&nbsp;</h2><ul class="field-items"><li class="field-item even"><a href="/category/tags/linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Linux</a></li><li class="field-item odd"><a href="/category/tags/eee" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">eee</a></li><li class="field-item even"><a href="/category/tags/wireless" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">wireless</a></li><li class="field-item odd"><a href="/category/tags/atheros" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">atheros</a></li><li class="field-item even"><a href="/category/tags/ra2860" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">ra2860</a></li><li class="field-item odd"><a href="/category/tags/backtrack" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Backtrack</a></li></ul></section> Thu, 25 Dec 2008 17:28:14 +0000 Allan Feid 26 at https://allanfeid.com Eee Tips: Reduce disk writes by utilizing tmpfs https://allanfeid.com/content/eee-tips-reduce-disk-writes-utilizing-tmpfs <div class="field field-name-body field-type-text-with-summary field-label-hidden view-mode-rss"><div class="field-items"><div class="field-item even" property="content:encoded"><p>I've got an ASUS Eee PC 901/Linux with the solid state drive (SSD). I've been having issues with the /tmp dir and /var/log dir utilizing too much of my 4GB drive. So to fix this I <a href="http://forum.eeeuser.com/viewtopic.php?id=5984" title="moving parts of /var to RAM to minimize writes">came across this eeeuser.com thread</a> which talks about moving those directories to RAM. The process is pretty straight forward and will increase the life of your SSD. Find out what I did below.</p> <!--break--><p><strong>Overview</strong><br /> This will move /tmp, /var/tmp, and /var/logs to RAM using <a href="http://en.wikipedia.org/wiki/TMPFS" title="an explanation of tmpfs">tmpfs</a> which means everything will be deleted on a reboot. That is fine since both /tmp and /var/tmp are deleted on reboot anyway. For the logs, however, we can create a couple scripts to backup only the logs from the last session as it's not really necessary to keep tons of logs on a netbook. In case you're wondering, I'm running <a href="http://www.ubuntu-eee.com/" title="Ubuntu Eee's Official Site">Ubuntu Eee</a> on my Eee PC.</p> <p><strong>Edit /etc/fstab</strong><br /> As a quick warning, MAKE BACKUPS!! This file is crucial to the inner workings of Ubuntu. Once you've got a backup all you need to do is add a few lines to move the directories to tmpfs.</p> <pre> tmp /tmp tmpfs noexec,nosuid,rw,size=8192k 0 0 vartmp /var/tmp tmpfs noexec,nosuid,rw,size=1024k 0 0 varlog /var/log tmpfs noexec,nosuid,rw,size=8192k 0 0 </pre><p> If you're wondering why I gave <cite>/tmp</cite> 8MB in memory it is because Flash videos need a good amount of space and will hang if you only give it 1MB. So if you don't plan on streaming anything through Flash you can lower size=8192k to 1024k. </p> <p><strong>Create a couple scripts for our log problem</strong><br /> So in order to only keep logs from the last session we'll make a simple script and have it launch on shutdown but before that create the directory /var/log_bkup.</p> <pre>sudo mkdir /var/log_bkup</pre><p> That's where the tar archive of the logs will be stored. Here's the script to remove the old and bring in the new:</p> <p><cite>file: /etc/init.d/logbkup.sh</cite></p> <pre> #!/bin/sh if [ -f /var/log_bkup/log_bkup.tar.gz ]; then /bin/rm /var/log_bkup/log_bkup.tar.gz fi echo "Backing up logs to tar archive..." /bin/tar czf /var/log_bkup/log_bkup.tar.gz /var/log </pre><p> This next script will create a skeleton in /var/log so all the directories already exist to avoid any problems.</p> <p><cite>file: /etc/init.d/mklogdir.sh</cite></p> <pre> echo "Creating directories in /var/log" /bin/mkdir /var/log/apparmor /bin/mkdir /var/log/apt /bin/mkdir /var/log/cups /bin/mkdir /var/log/dist-upgrade /bin/mkdir /var/log/fsck /bin/mkdir /var/log/gdm /bin/mkdir /var/log/news /bin/mkdir /var/log/samba /bin/mkdir /var/log/unattended-upgrades /bin/mkdir /var/log/installer </pre><p> Make sure the scripts are executable</p> <pre> sudo chmod +x /etc/init.d/mklogdir.sh sudo chmod +x /etc/init.d/logbkup.sh </pre><p> Link them to various rc directories so they run at the proper times (startup/shutdown)</p> <pre> sudo ln /etc/init.d/mklogdir.sh /etc/rc2.d/505mklogdir.sh sudo ln /etc/init.d/logbkup.sh /etc/rc0.d/515logbkup.sh sudo ln /etc/init.d/logbkup.sh /etc/rc6.d/515logbkup.sh </pre><p> <strong>Finish up</strong><br /> Pretty much done at this point. Just want to remove everything in /tmp and /var/tmp to avoid any issues when remounting on next boot with everything running in tmpfs.</p> <pre> sudo rm -rf /tmp/* /var/tmp/* </pre><p> Go ahead and reboot. You should now be running a system with a lot less disk writes. All your log writes will now only be written once per session instead of little writes here and there every time something happens.</p> </div></div></div><section class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above view-mode-rss"><h2 class="field-label">Tags:&nbsp;</h2><ul class="field-items"><li class="field-item even"><a href="/category/tags/ubuntu" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Ubuntu</a></li><li class="field-item odd"><a href="/category/tags/linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Linux</a></li><li class="field-item even"><a href="/category/tags/tmpfs" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">tmpfs</a></li><li class="field-item odd"><a href="/category/tags/eee" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">eee</a></li><li class="field-item even"><a href="/category/tags/ssd" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">ssd</a></li><li class="field-item odd"><a href="/category/tags/tips" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">tips</a></li><li class="field-item even"><a href="/category/tags/tutorial" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">tutorial</a></li></ul></section> Tue, 02 Dec 2008 06:07:09 +0000 Allan Feid 21 at https://allanfeid.com