If, like me you have recently upgraded to Firefox 3 and you have spent years using Tabbed Browser Preferences to manage your tabs position in the window, colour, order etc etc, then you, like me, are quite disappointed with the lack of configuration the tab bar has within Firefox 3.
Developer Comments:
This extension is an enhancement for the basic tab controls provided in Firefox 1.0. It replaces the existing user interface with a new, more visible user interface, and also includes UI for other hidden features that are part of the browser, as well as features provided explicitly by the extension.
Tabbrowser Prefs is not currently available for Firefox 3 on Windows or Linux, which left me feeling frustrated. I would love to have felt annoyed, but can you really be annoyed when the info to build your very own plugin is out there?
I decided I had to do something. I had to have my tab bar on the bottom of the window at least. So, I went off and researched it.
After about 5 minutes I found out that the main interface to Firefox is controlled entirely by CSS. This is perfect. I located the CSS style sheet, googl’d some more and found the CSS variables needed to modify the interface settings. So now I am going to share it with everyone of you.
Ubuntu Hardy Heron Version
Open up nautilus and show hidden files. then navigate to:
- /home/.mozilla/firefox/your.profile/chrome
By default userChrome.css fie does not exist, so you need to create it before you can start adding your preferences. There’s actually an example file that exists by default, called userChrome-example.css. You can just rename that file by removing the -example part. Then open this file in leaf/mouse pad or any other text editor and add the following code and save it.
- /* Display the tabbar at the bottom */
#content > tabbox { -moz-box-direction: reverse; }
Windows XP/Vista Versions
Open up My Computer or File Explorer and show hidden files. then navigate to:
- C:\Documents andSettings\[UserName]\ApplicationData\Mozilla\Firefox\Profiles\your.proifile\chrome
By default userChrome.css fie does not exist, so you need to create it before you can start adding your preferences. There’s actually an example file that exists by default, called userChrome-example.css. You can just rename that file by removing the -example part. Then open this file in notepad or any other text editor and add the following code and save it.
- /* Display the tabbar at the bottom */
#content > tabbox { -moz-box-direction: reverse; }
How to: Install Ubuntu packages with HTML link
Apturl allows you to install Ubuntu packages from a website using the following syntax: apt:packagename (where packagename is the name of the package you wish to install
For example, I wanted to install a new pixel ruler (link courtesy of Borntwisted) called KRuler. If I was to install this directly from my web browser I would need to write the link in my HTML like so:
- <a href=”apt:kruler”>Click here to install Kruler</a>
This would then give me the following link:
If you click the link (providing you are using Ubuntu as your Operating System) you will get the follwoing:

Once you click ok, and type in your admin password you will get the download screen as it downloads the package ready for installation

And then the obligatory install screen will be shown:

This is a perfect tool for bloggers, how to’ers and manual writers writing for Ubuntu installs etc. I know I will be using it in all my future blogs and how to’s in the future.
Go ahead, give it a shot
How to: Increase ext3 and reiserfs performance
NOTE: This How To: is for Ubuntu Linux (all versions) but should work on any version of Linux that supports the ext3 filesystem and reiserfs filesystem. This How To: is offered as is and I cannot take responsibility for any problems you suffer as a result of modifying yoru core system files.
ext3 Filesystem
The ext3 or third extended filesystem is a journalled file system that is commonly used by the Linux operating system. It is the default file system for many popular Linux distributions
Features of ext3 File System
The ext3 file system is essentially an enhanced version of the ext2 file system. These improvements provide the following advantages
Availability
After an unexpected power failure or system crash, each mounted ext2 file system on the machine must be checked for consistency by the e2fsck program. This is a time-consuming process that can delay system boot time significantly, especially with large volumes containing a large number of files. During this time, any data on the volumes is unreachable.
The journaling provided by the ext3 file system means that this sort of file system check is no longer necessary after an unclean system shutdown. The only time a consistency check occurs using ext3 is in certain rare hardware failure cases, such as hard drive failures. The time to recover an ext3 file system after an unclean system shutdown does not depend on the size of the file system or the number of files; rather, it depends on the size of the journal used to maintain consistency. The default journal size takes about a second to recover, depending on the speed of the hardware.
Data Integrity
The ext3 file system provides stronger data integrity in the event that an unclean system shutdown occurs. The ext3 file system allows you to choose the type and level of protection that your data receives. By default, Most Linux Distributions configures ext3 volumes to keep a high level of data consistency with regard to the state of the file system.
Speed
Despite writing some data more than once, ext3 has a higher throughput in most cases than ext2 because ext3’s journaling optimizes hard drive head motion. You can choose from three journaling modes to optimize speed, but doing so means trade offs in regards to data integrity.
Easy Transition
It is easy to change from ext2 to ext3 and gain the benefits of a robust journaling file system without reformatting.
ReiserFS
ReiserFS is a general-purpose, journaled computer file system designed and implemented by a team at Namesys led by Hans Reiser.ReiserFS is currently supported on Linux and may be included in other operating systems in the future. Introduced in version 2.4.1 of the Linux kernel, it was the first journaling file system to be included in the standard kernel.
ReiserFS Features
ReiserFS has fast journaling, which means that you don’t spend your life waiting for fsck every time your laptop battery dies, or the UPS for your mission critical server gets its batteries disconnected accidentally by the UPS company’s service crew, or your kernel was not as ready for prime time as you hoped, or the silly thing decides you mounted it too many times today.
ReiserFS is based on fast balanced trees. Balanced trees are more robust in their performance, and are a more sophisticated algorithmic foundation for a file system. When we started our project, there was a consensus in the industry that balanced trees were too slow for file system usage patterns. We proved that if you just do them right they are better–take a look at the benchmarks. We have fewer worst case performance scenarios than other file systems and generally better overall performance. If you put 100,000 files in one directory, we think its fine; many other file systems try to tell you that you are wrong to want to do it.
ReiserFS is more space efficient. If you write 100 byte files, we pack many of them into one block. Other file systems put each of them into their own block. We don’t have fixed space allocation for inodes. That saves 6% of your disk.
Ext3 & ReiserFS has three kinds of journaling methods
1) Journal Data Writeback
2) Journal Data Ordered
3) Journal Data
By default the the 2nd method is used.To speed things up we will make it use method 1. The price to pay is that it may allow old data to appear in files after a crash and journal recovery.
How to make ext3 or reiserfs use journal data writeback
First you need to take a back up of the fstab file using the following command
- sudo cp /etc/fstab /etc/fstab.orig
Edit the /etc/fstab file using the following command
- sudo gedit /etc/fstab
Add the thing marked in bold to your fstab root mount line.
- /dev/hda1 / ext3 defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid,nouser,data=writeback 0 1
Save that file and exit
You need to take a Grubmenu file backup using the following command
- sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.orig
Now you need to edit the grub menu list file using the following command
- sudo vi /boot/grub/menu.lst
look for the following two lines
- # defoptions=quiet splash
- # altoptions=(recovery mode) single
change to
- # defoptions=quiet splash rootflags=data=writeback
- # altoptions=(recovery mode) single rootflags=data=writeback
Save that file and exit
Now you need to update the grub using the following command
- sudo update-grub
the added flags will automatically be added to the kernel line and stay there in case of kernel update
Changes to Ext3 FileSystem Only
Note:- tune2fs only works for ext3. Reiserfs can’t change the journal method
Before rebooting change the filesystem manually to writeback using the following command
- sudo tune2fs -o journal_data_writeback /dev/hda1
Check that it is running or not using the following command
- sudo tune2fs -l /dev/hda1
Remove update of access time for files
Having the modified time change you can understand but having the system updating the access time every time a file is accessed is not to my liking. According to the manual the only thing that might happen if you turn this off is that when compiling certain things the make might need that info.
To change this do the following
- sudo vi /etc/fstab
add the following marked in bold
- /dev/hda1 / ext3 defaults,errors=remount-ro,noatime,auto,rw,dev,exec,suid,nouser,data=writeback 0 1
Now reboot and enjoy a much faster system
Mount network shares at boot. (Ubuntu)
If, like me you have your media and web server kept on another machine, and get annoyed having to put your username and password in each time you want to grab a file or listen to music, then this is for you.
This is the most secure method I could come up with, simply put, if your main machine is not logged on as you, then the shares cannot be accessed without the username and password. When you are logged on these details will be called from a file that is owned by the root user.
This tutorial will assume you have samba already installed on your media/web server. Without it, this will not work.
The following must be done on the SERVER machine
- sudo gedit /etc/samba/smb.conf
I am using GEDIT here to make it easier for you to amend the file. I much prefer PICO, or you may wish to use VI, if your balls are bigger than King Kongs.
Make the following changes:
- workgroup = “WORKGROUP”
Note: The name of the workgroup (in quotes) must be the same on your windows and/or your Ubuntu box. If you do not know the name or your workgroup, look under “My Network Places” on your windows box, select “Microsoft Windows Network” and you will see a list of your workgroups.
Default workgroup on windows XP, home edition is MSHOME (not WORKGROUP).
underneath it, add
- netbios name = name_of_your_server (no spaces)
For example
- netbios name = my_new_smb_server
Make sure the “security” option is set to “user” before moving on.
Scroll down to the bottom of the file and add the following lines:
- [Name_of_folder]
- path = /path/to/file
- browseable = yes
- writable = yes
- read only = no
- guest ok = no
- create mask = 0644
- directory mask = 0755
- force user = root
- force group = root
Do not forget to change the name of the folder and the path to the folder. The name you give this folder will appear in the network folder on your Ubuntu box. ie. Music or Vids etc. and the PATH will be something like this path = /home/user/Music. You will get the jist of it.
Save the changes and close the file.
Restart the samba daemon
- sudo /etc/init.d/samba restart
The following must be done on YOUR computer
Open a terminal session and type the following commands one by one, allowing each of them to finish before executing the next one.
- sudo apt-get install samba
- sudo apt-get install smbfs
Now that you have the core files installed we need to do some configuration.
All folders that you wish to have mounted go into a root level folder called /media. This is much nicer than previous and other version of linux where it was called /mnt. now most will know this means MOUNT but some may not. Anyway, lets get on with it.
Lets make that new directory. If you decided to call your share name “Music” in the part above, you would do this:
- sudo mkdir /media/Music
Obviously, you name it how you want it. for example, I have many shares such as /media/Vids, /media/Music, /media/WWW etc etc.
Now type the following command
- gksudo gedit /root/.smbcredentials
This will create a hidden file called .smbcredentials in your root folder. We will store your username and password in this file for ease of access later on
Insert the following lines into the file: (substituting “yourusername” and “yourpassword” for your ubuntu machine login details)
- username=yourusername
- password=yourpassword
Save and exit the file and issue these commands one by one:
- sudo chmod 700 /root/.smbcredentials
- sudo cp /etc/fstab /etc/fstab_backup
- gksudo gedit /etc/fstab
Now you should be presented with another file. In here we will make the mods that mount those folders on boot up so you don’t have to touch them again. Put the following line at the bottom of the file, making the changes to the location of your server machine. for example, mine is at 192.168.1.125 so I would do this
- //path_to_server/folder_name /media/folder_name smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
Once you have added all your mount points and changed the names to correspnd with your details., save and exit the file.
Now issue this final command:
- sudo mount -a
Your new mount points will appear as drive locations on your Desktop and in the Places menu
Citrix ICA Client install on Ubuntu (Feisty and Gutsy)
Citrix is a system that allows you to run applications you have at work/home from anywhere in the world or on your local area network (LAN) from a remote workstation.
You have real time access to run your applications as fast as if you are in the office. It does not matter if you’re using a dialup modem, DSL, ISDN, or T1 to access citrix remotely. Connection speeds become even less of an issue with high speed broadband connections pretty much the norm around the world now.
Citrix was built for virtualisation in mind, and obvioulsy owing to the fact that Microsoft is pretty much everywhere these days the main applications are easy to install on a windows machine, I am not going to cover that in the slightest.
To install Citrix ICA presentation client on your Ubuntu PC then follow the steps below.
Open a Terminal session
The three links below are using the new AptURL command which is installed by default on Ubuntu Gutsy and allows people like myself and any other tutorial writer to make it easier for you to install the packages you need. Just click the link and it will install the package for you. If this does not work, type the following command into the terminal window.
- sudo apt-get install apturl
Now that is out of the way, continue on.
- Click here to install libxaw6
- Click here to install libmotif3
- Click here to install alien (used to convert RPM to DEB packages)
You will now need to download the RPM file from Citrix. NOTE: It is version 10.6 (at time of writing) and is the second download icon (again, at time of writing). As the file names will change with new releases you will need to modify the tutorial to reflect this. You can however just grab the file from me.
Grab the file from here. I believe it is version 10.0 which is slightly out of date but works solidly so I recommend using it.
- http://www.citrix.com/site/SS/downloads/details.asp?dID=2755&downloadID=3323#top
Save the file to your desktop (this tutorial assumes you save it to your desktop, if not please change commands accordingly)
In your terminal window you now need to change to the directory where you saved the file, then we will begin converting and installing.
- cd Desktop
Now that you are on the desktop we now need to convert the file into a .Deb package that Ubuntu can handle.
- sudo alien ICAClient-10.0-2.i386.rpm
Once the file is converted we now need to install it.
- sudo dpkg -i icaclient_10.0-3_i386.deb
Now need to make this work through Firefox web-browser. We will create some symbolic links for Firefox so that it knows how to open the Citrix application file when you attempt to login.
- sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla/plugins/npica.so
- sudo ln -s /usr/lib/ICAClient/npica.so /usr/lib/mozilla-firefox/plugins/npica.so
Restart Firefox
Navigate to your Citrix server and login. Click on the application you want to launch. If it asks you to save/open with you will need to choose “open with” and navigate to the following folder:
- /usr/lib/ICAClient
and choose to open with the following application.
- wfica
You should now be good to go.
Edit
I am aware that some people get Font errors with the Citrix Client, it is safe to ignore but if you wish to fix them you can drop me a line in the comments and I will write up the fix.
Categories
News from the BBC
Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in /home/gecko/public_html/rsslib.php on line 91
Warning: DOMDocument::load(http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml) [domdocument.load]: failed to open stream: no suitable wrapper could be found in /home/gecko/public_html/rsslib.php on line 91
Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml" in /home/gecko/public_html/rsslib.php on line 91
0
by Soddengecko @ 20:14
