Nerd How

Browsing better on USB linux persist systemsan

Ok so say you have cracked your head open trying to get a linux distro to persist on your flash drive and finally got it working. Everything works like it’s supposed to, becausie it’s w. It acts like a real (slow) desktop save for a few limitations with the disk.

However: there’s one problem with it: when you browse the internet, it uses a cache folder inside of the usb drive. This is very bad; It writes all of the websites to the ‘disk’, then deletes them when you clear your temporary files. It happens again and again and again until your usbstik is completely worn out and useless.

So it turns out that debian based (all?) distros automatically mount a dynamically-sized temp partition in your RAM on startup. This simply means that the system allocates it’s own piece of space in Computer X’s memory for applications to use. Since it is memory inside of a computer, it can be reused many, many more times than a usb drive’s memory can.

If we set firefox to store it’s temporary data inside of that RAM partition, it will make the life of the usb drive longer and also speed up page rendering.  Fortunately, the process for doing that is fast and easy.

Note: This is not just for usb drives. You can also do this on regular computers.

Ok, enough useless explenation:

Go to firefox in your linuxbox (if you aren’t already in it) and push ctrl+t to make a new tab. In that new tab, type ‘about:config’ in the urlbar.  We really don’t care about firefox’s warranty, since it’s open source. (; Click the button to continue. This brings you to the advanced settings menu for firefox. Right click some place that’s empty and go ‘New>String.’ Call the string ‘browser.cache.disk.parent_directory’ ( Minus quotes, of course. )  Store the data ‘/dev/shm’ (where the temp partition is mounted, usually) in the string, then restart firefox. Now it’s saving its cache in the temp partition. You’re all set!

Library computers

Posted in News and Instructable updates, Reviews and reports, Software, Technical computer stuff by Enth Degree on December 28, 2008

At our library, we have around 20 or so of these computers, running Windows XP pro with some kind of pcLocker program set up to manage users’ time limits. (~45 minutes I believe. ) All of the computers are hooked up to a main server at the frontdesk, where , upon request, oneself can ask for the librarian to unlock ‘Internet Computer #N’  for an hour of Internet usage. At the end of the session, or when the time limit runs out, all downloaded files ( Including the cache, AFAIK ) are deleted, other changes to the disk are reversed, and the computer goes back into its dormant ‘ugly screen-saver’ stage until the dude at the frontdesk enables it again. The system seems to work pretty well for both sides; the employee just slides the library card  through the reader and the visitor is all set for 45 minutes of censored, un-anonymous, monitored Internet usage.

Many libraries these days have similar Internet access points.  Many of these computers also have about as many security holes as swiss cheese in a colander cap.

Today I had the personal pleasure (; of finding one of these flaws and reporting it. While my workaround did not get me Admin privileges or the ability to save to disk, it did take away the time limit and you didn’t have to go ask someone to activate a computer or anything. Rather simple, really:

Push ctrl+alt+del to get into the Windows XP Pro management applet thing, then log off and wait for the profile to reload. While it reloads, quickly double click on the firefox icon while the computer lock program loads (the desktop is still showing during that time.) and let it run until the lock program is up and you can’t do anything again. Do ctrl+alt+del again, and this time hit shutdown. Firefox pops up asking if you want to save tabs on next init. Hit cancel, exit firefox, and you’re in.

Of course, it is highly unlikely that your library is uing the same software as mine is, so these instructions are probably void.

Anyway, I broke into 3 of these terminals (just to let them know that this really did work on ALL of their computers ) and punched in the above instructions into notepad, along with a few links to some Ubuntu websites, lest they consider using a less trashy operating system. I decided to do it anonymously, and just leave the message on an open notepad for some hapless employee to notice  later. (After all, I still couldn’t save files, and I didn’t take the time to get the admin password either. ) But of COURSE some hapless worker bee HAD to walk up JUST when I was about half way done with the note, so I had to scramble so I wouldn’t get ratted. The way it was, the note made me look like I was some black hat trying to give the info to other kids. In order to escape conforontation, I staked out in the darkest corner of the library with my laptop and lvl’d ++ in Runescape until we left for home.

While I was over there, I overheard the employee make a loud personal phonecall to the IT guy, trying to explain what had happened ( the staff must have hired him. He seemed pretty clueless. )  Evidently the employee took it the right way ( He called me a ‘patriot’ (; ) but the IT guy seemed to disagree. To him I was a so called ’spammer.’  When she hung up they both decided that it was a toss up whether I was on their side or not, so I guess it’s pretty good that I did it incoginito.

Later she made another phonecall to try and solve the actual problem.

We all await my next visit to the library. I used this same method at my old library in Oregon, and they started using Ubuntu, so why shouldn’t these people? I guess we will just have to wait and see…

To be cont. O_o

=_= I don't know what to write about.

Cheepie UMPC

O_õ

Click on the link. Clicky Clicky.

Not exactly CHEAP, but it’s a fraction of the price of most of the others of that format out there. For ~$150 more munnies, you can get one with Windoze Hex-Pee on it (B1E) , or alternatively, one with a touchscreen (B1LH) .

Look at the cool ‘ergonomic’ design.

USB UBUNTU guide done, but not verified.

Posted in News and Instructable updates, Technical computer stuff by Enth Degree on June 4, 2008

My guide is FINALLY done! It hasn’t been verified to work yet, though it should make a casper-rw Linux just fine. I’m gonna delete my old ‘not working’ post to prevent people from getting scared away from trying it.

Ubuntu 8.04 Hardy Heron (save changes) on a USB drive

Posted in Cool, Reviews and reports, Technical computer stuff, Weird, Über-Nerd by Enth Degree on June 4, 2008

-= ~(O_o)***THIS GUIDE WAS MADE OBSOLETE BY THE LINKED POST. IT HAS BEEN LEFT UP FOR REFERENCE AND ARCHIVING GO AWAY.***(o_O)~ =-

One of the problems with Operating Systems like Windows is that the
only way you can really make it ‘portable’ to the extent that you can
carry it around in your pocket is if you use something like BartPE,
which is really based as a recovery-suite maker. But that’s different
with Linux. You might now be thinking that a portable Linux operating
system would exist only in a special ‘condensed’ distribution featuring
ugly shoes (no offence) or a catchy theme song.
But if you think about it, USB sticks are the same kind of memory (sort
of) that we use in our regular computers’ hard disks. So why not just
install a full-size ubuntu distro on a USB stick? That’s right; why
not? The answer is this: Because if you do, the USB stick get’s worn
out fast, and stops working after a few boots. So the ppl at Linux came
up with a way of reading and writing changes to the disk when
necessary, and they called it ‘casper persistence’. However, in this
release of Ubuntu (Hardy Heron 8.04) it. doesn’t seem to work for some
reason. So to obtain ‘casper persistence’ you have to get in and fix it
yourself. This guide shows you how to get Ubuntu 8.04 Hardy Heron onto
any portable storage device with 1 gigabyte or more.

Before you
begin the tutorial, it is assumed that you have the following:

–A portable storage device (Like a thumbdrive or something) with 1 gigabyte of space or more.

Recommended over one gigabyte, since the Operating System takes up about 800 megabytes, and you need some room for apps and documents. Be sure to back up everything on it, since you will be hopelessly wiping it all out in the first few steps of the tutorial.

–A computer running Ubuntu 8.04 Hardy heron.

If you don’t run Linux on any of your computers , and don’t plan to, that is OK. Get the VMware Player (free but big download.) And then get the Ubuntu desktop vmware applet *english edition* ( or whatever else you wanna call it. ) at that website. Yeah, I know its a huge download. If you want to save yourself some greif just use the TORRENT file with some torrent manager like U|torrent


–An Ubuntu Hardy Heron 8.04 disk image .iso file.

If you had to follow the above steps, there is no need to downlode it again. Put it in your HOME/*username* directory.

–This file from Ryan Cloke’s Website. Put it on your desktop.

1. Okay, so let’s get started. First you have to set up your computers boot sequence with this guide. You have to move your ‘USB-STORAGE DEVICE’ listing to the top. This will force your computer to look at the USB port for an operating system before it scans the HardDrive for one. This option is not included on some older computers. Sorry. You might try a laptop or something.

2. Now that you are booted to Ubuntu Linux, it’s time to ready your Portable Drive to be able to handle linux. Plug in your memory card and move the ISO file you copied there earlier to the ‘home/*username*’ directory. (Whenever you see ‘*username*’ replace it with your username if you are using ubuntu as your desktop. If you are using VMware, then replace it with the word ‘jars’. The password for the VMware version is ‘jars’ also.

3. Now go to the terminal (Grr. Evil terminal. :evil: ) by clicking on the dropdown menu on the top of the screen Applications>Acessories>Terminal.

type: sudo su

Hit enter. You might have to type in your password if you set one.

fdisk -l

//FYI, that’s a lowercase L, not the number 1. Fdisk means Format Disk (It’s just the name of a program; it won’t format your disk.) and the -l means ‘list’

Hit enter…
and you get a list of all of the drives plugged into the computer. Usually your portable one has the smallest numbers and is near the bottom. Look for something like ‘/dev/sdX*’ (X replaced by the corresponding letter and * replaced by a number, if there is one there at all.) Remember it, or even write it down; you will use it a lot throughout the entire tutorial.

I refer to it as *thingyourememberedearler*. It is usually followed by a number. Type in the number also without spaces. It’s not a typo.

4. Now type in

gksudo gparted

/*Takes you into superuser mode (Sudo means ’superuser-do’. It’s made
for terminal applications, and Gksudo is focused more on ones with
‘button click’ GUI user interfaces.) and logs you in as the super user.
Super user has complete admin privleges and is included by default in
ubuntu. After it logs you on it will open up the Gnome Partition
Editor. You don’t have to read the entire wikipedia article on the
link, but it helps to know what you are doing. It is very dangerous to
edit the partitions if you do it carelessly. */

If nothing happens, or the terminal blurts out some kind of error, type

sudo apt-get install gparted

5. A window will pop up called GParted. On the right side of the window you will see a dropdown menu. Open that up and select the one with the text you remembered earlier. It is VERY important that you select the RIGHT ONE. There is a long box below that that represents the single partition on the thumbdrive. Right click on it and select ‘unmount’. If there are any other boxes beside that one, unmount them also. Unless you know that there is more than one Partition (Not gigabyte) on the disk, you have PROBABLY SELECTED THE WRONG LISTING FROM THE DROPDOWN BOX. CHECK AGAIN
IF THERE ARE TWO BOXES. Now click on the box again and then click the delete button near the top of the window.

6. Now you should see one big gray bar that says ‘unallocated’ in the middle. Click on it to select it and then click the ‘new’ button near the top to make a new partition on the disk. Make it a ‘FAT16′ partition with a ‘new size’ of 770 MB. Hit OK and then make another partition using up the rest of the spacewith a ‘ext2′ file system. Right click on the 770 MegaByte one, and click on flags. Check the ‘boot’ selection on the window that pops up and hit ok. That tells the BIOS that the computer can boot to it. After you have done all this, hit apply. These last few steps are very important, so here is a step-by step analysis of what you are going to do in them:

USB-Ubuntu Gparted steps

Numbers change depending on how big your SD card is. Hit apply. After everything is finished exit out of the terminal, which, in turn, will exit gparted.

7. Now that you have a prepared USB drive, you have to prepare the operating system. First you type into
the terminal:

mkdir hardy-usb

//Okay, all that does is make a directory in /*username*/ called hardy-usb.

sudo mkdir /mnt/iso

//Same, only it makes a directory in /mnt called iso

sudo mount -o loop ubuntu-8.04-desktop-i386.iso /mnt/iso

//Mounts your ubuntu disk image to /mnt/iso

cd /mnt/iso

//Goes to the /mnt/iso directory you just made. This is also where the disk image is, so there are a whole lot of files there.

cp -rf casper dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines casper/vmlinuz casper/initrd.gz install/mt86plus /home/*username*/hardy-usb/

// o_O That looks really scary, but all it does, really, is copy and paste everything from /mnt/iso into your hardy-usb directory. Just because it preforms a simple task doesn’t mean you can make a mistake in typing it. Best to copy and pate it instead.

cd /home/*username*/hardy-usb/

//Goes to the hardy-usb directory

mv isolinux.cfg syslinux.cfg

// Takes isolinux.cfg and renames it to syslinux.cfg, deleting the syslinux.cfg that’s already there. (if it exists)

sudo gedit syslinux.cfg &

//Opens up the default GNOME text editor: Gedit. It edits the file we previously renamedsyslinux.cfg. The & means that after you close gedit, you will goback to terminal mode. Erase everything in the text editor that pops up. Paste in all of this text:


DEFAULT usblive
GFXBOOT bootlogo
APPEND
file=/preseed/ubuntu.seed boot=casper initrd=initrd.gz quiet splash –
LABEL usblive
menu label ^Start Ubuntu and save changes to USB
kernel vmlinuz
append
file=/preseed/ubuntu.seed boot=casper persistent initrd=initrd.gz quiet splash –
LABEL live
menu label ^Try Ubuntu without any change to your computer
kernel vmlinuz
append
file=/preseed/ubuntu.seed boot=casper initrd=initrd.gz quiet splash –
LABEL live-
install
menu label ^Install Ubuntu
kernel vmlinuz
append
file=/preseed/ubuntu.seed boot=casper only-ubiquity initrd=initrd.gz quiet splash –
LABEL memtest
menu label Test ^memory
kernel mt86plus
append -
LABEL hd
menu label ^Boot from first hard disk
localboot 0×80
append -
DISPLAY isolinux.txt
TIMEOUT
300
PROMPT
1
F1 f1.txt
F2 f2.txt
F3 f3.txt
F4 f4.txt
F5 f5.txt
F6 f6.txt
F7 f7.txt
F8 f8.txt
F9 f9.txt
F0 f10.txt

Save everything and exit gedit.

8. Open up a new terminal and type in:
gksudo nautilus
//Thanks, Andy Woodhead.

Type in the password if you have to. A file explorer should pop up. Now remember that file that you downloaded from Ryan Cloke’s Website? well in the new explorer that you opened up go to the home/*username*/hardy-usb directory and click and drag the initrd.gz file from the desktop into the explorer to move it. Replace the existing one that was already there, or delete it beforehand.
9. Type:

sudo umount /dev/*thingyourememberedearlier*1
//Unmounts the first partition in the USB drive. The the linux partition.

sudo umount /dev/*thingyouremembmeredearlier*2

//Unmounts the second partition in the USB drive.

sudo mkfs.vfat -F 16 -n UbuntuLive /dev/*thingyourememberedearlier*1

//This formats the linux partition to what we need it to be. You can change ‘UbuntuLive’ with any 9-letter klaus you want the usb drive to be called.

sudo mkfs.ext2 -b 4096 -L casper-rw /dev/*thingyouremembmeredearlier*2

// This formats the memory partition to what we need it to be. Don’t change the ‘casper-rw’. Nuff said.

sudo mkdir /mount/usb

// Makes a directory in /mount called usb

sudo mount /dev/*thingyourememberedearlier*1 /mount/usb

// Mounts your linux partition in the /mount/usb directory you made earlier.

cd /home/*username*/hardy-usb

// (c:

sudo cp -rf .disk * /mount/usb

// Copies EVERYTHING in the hardy-usb directory to the linux partition.

sudo umount /mount/usb

// Unmounts whatever is mounted in /mount/usb.

sudo apt-get install syslinux mtools

// Installs the syslinux mtools packages.

sudo syslinux -f /dev/*thingyourememmberedearlier*1

//Uses syslinux to fix the linux partition one last time.

You are done!!! :mrgreen: :mrgreen: :mrgreen: :!: :!: :!: :!: :!:
Reboot and see how it works!

Based on (but not the same as) a guide by Ryan Cloke.

Comment if you have any problems and I will try and help in any way that I can.

-= ~(O_o)***-=THIS GUIDE WAS MADE OBSOLETE BY THE LINKED POST. IT HAS BEEN LEFT UP FOR REFERENCE AND ARCHIVING. GO AWAY.***(o_O)~  =-

Enthdegree discovers Greasemonkey

Greasemonkey is a firefox extention that changes the way some things are displayed using JavaScript. (note; not Java.) It has tons of user-made scripts that handle how firefox handles things. It won’t work on Flash, though. I heard the name a few years ago, but thought that it was illegal or something, so I didn’t look it up or anything.

Some typical greasemonkey scripts include:

  • Auto fill forms.
  • Alter the formatting of text, borders, graphics, etc. (For example, highlight first-run programs in a TV listing.)
  • Remove specific content, such as advertising, popups, even whole sections of a page. (For example, filter specific posters from a message board site.)
  • Alter page content and layout beyond what the author considered. (For example, add table headers, floating elements, etc.)
  • Add links, buttons, or any other type of HTML element anywhere on the page. (For example, embed Google Reader into Gmail, thus providing an RSS feed option.)
  • Enhance the content of pages by correlating information from related pages on the same site, and/or other sites. (For example, show a list of competing retailers’ prices for the same product.)
  • Add extended JavaScript behavior to pages. (For example, discover RSS feeds on the current page, displaying them in a floating panel. Let the user save an FLV file from popular video streaming sites such as Google Video, YouTube, and Facebook.)

Quoted from Wikipedia.

The first thing that I thought when I started using it was that ‘people could make malicious scripts to steal information.’ That is true, but the community is trying hard to tell everyone whether scripts are safe or not. The big website for downloading them even lets you look at the code before installing it. If you can determine whether it is safe or not, you should be fine. The community reviews lots of the scripts also, so that’s good.

I have only just started really using it, so the only scripts I have enabeled right now are:

Secure Wiki

Google Secure Pro

YouTube Lyrics

WordPress Comment Ninja

Starting to work on the USB Persistence 8.04 Ubuntu!

Posted in News and Instructable updates, Technical computer stuff by Enth Degree on May 3, 2008

They finally did it!

I will write a nerdhow screenshot-version. (c: W00T! I am excited to get a bootable persistent linux in my pocket. Who isn’t? :lol:

Also, I might be getting a wiki via PBwiki soon…

Here’s a link if you want your own. Looks like pretty good warrez.

Spambots continue to function more efficently and so does my browser

I continue to get ~900+ spam a day for reasons unknown. Maybe the wordpress staff will do something about it. I still think it’s from the little ‘possibly an announcement’ post.

Atleast ASKIMET catches everything.

Cool wikihow page that I blogged with some code google gave me:

How to Make Firefox Load Pages Faster

from wikiHow – The How to Manual That You Can Edit

Firefox is cool, and it can be tweaked to load broadband pages extra fast. Here’s how.

Steps

  1. Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:network.http.pipelining,network.http.proxy.pipelining,network.http.pipelining.maxrequests
  2. Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
  3. Alter the entries as follows:
  4. Set “network.http.pipelining” to “true”
  5. Set “network.http.proxy.pipelining” to “true”
  6. Set “network.http.pipelining.maxrequests” to 8. This means it will make 8 requests at once. There is no point setting it higher then 8 as it is capped at 8 max. [The default value for this setting is 4]
  7. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.
  8. If you’re using a broadband connection you’ll load pages MUCH faster now!

Tips

  • Alternately, you could install Fasterfox, an extension which does some of this automatically, and makes tuning easier.
  • To alter the entries, double-click on the one you wish to alter
  • For more information on Firefox Tuning see the Firefox Tuning sticky thread at the independent MozillaZine forums.
  • Also the MozillaZine Knowledge Base on Network entries in about:config and what they do.
  • You can also run Firefox in your RAM (no reading from the HD means faster Firefox) by following this article.
  • If you have problems like slow down, pages not loading or images loading weird, just undo the tweaks in about:config

You can also do this in the Internet explorer browser, In opera an alternative is: go to opera:config and go to performance. Then change the max number of connections to 32

Warnings

  • Take note that doing this can actually make certain pages run SLOWER.

Related wikiHows

Article provided by wikiHow, a collaborative writing project to build the world’s largest, highest quality how-to manual. Please edit this article and find author credits at the original wikiHow article on How to Make Firefox Load Pages Faster. All content on wikiHow can be shared under a Creative Commons license.

Anonymous?

Posted in News and Instructable updates, Technical computer stuff, Weird, Über-Nerd by Enth Degree on April 26, 2008

Just how anonymous are YOU?

Geo Web Tool

Seriously, this thing is SCARY. Look at how much they can find out about you using JUST an IP address.
O.o