Showing posts with label Arch Linux. Show all posts
Showing posts with label Arch Linux. Show all posts

Thursday, July 01, 2010

Tidbit: Fonts - The Subtle Eyecandy

Us Linux users, for the most part, enjoy tweaking and fine tuning our computers so that they are just right for us. That is just the kind of users we are. Apart from being functional, we also love eyecandy, and it shows in all the different desktop effects, add-ons and themes available. But one thing I often see ignored are fonts. Considering that while you're not spinning the cube or wobbling the window, all you see are widgets, images and text, it makes sense to say that fonts are a very important part of the user experience. So, I just want to share a few tweaks I use to make my user experience better. Of course, beauty is in the eye of the beholder. Use what works for you!


Set your system-wide font configurations


There are many tweaks and settings available for fonts. For a full description read this. I prefer to use a ready-made font configuration and a good one is PaulBredbury's configuration. Follow the link in the forum post to his latest configuration file and save it as ~/.fonts.conf in your home folder. Log out and log back in.


Find a font you like


This is a matter of personal taste, so there is no 'best font'. However, I find that fonts that require a minimal amount of antialiasing (blurring around the edges) without looking pixelated or blocky work the best. This means they will look crisp and they will 'pop', making them easier and a joy to read. Generally, for screens, sans serif fonts are recommended.


Personally, I have taken a liking to the taller sans serif fonts like Droid Sans, Aurulent Sans, DejaVu Sans Condensed and Aller. You can find them all and more on Font Squirrel. Install your preferred font using the GUI tool in your distro or unpack them to your ~/.fonts directory.


Set the font as your system default


Depending on your desktop environment the steps will be slightly different.

  • Gnome: Preferences > Appearance > Fonts Tab

  • KDE: System Settings > Application Appearance > Fonts

  • LXDE or Mint Fluxbox: Preferences > Appearance > Fonts combo box


One more thing


So far it's all nice, easy and nothing new. There is one more thing that I like to do and that is bring my preferred font to the web. I force the browsers to render pages using the font I want and IMO it makes for a much more pleasant experience. Here's how I do it for the browsers I use.

  • Firefox: Edit > Preferences > Content tab. In there set your default font, then click 'Advanced' and set your font there as well. Unselect the option 'Allow pages to choose their own fonts, instead of my selections above'. Save your settings.

  • Google Chrome and Chromium: Install the Chrome Stylist extension. In the extension's 'Options' page, go to the Styles tab and click 'Add new style'. In the dialog that appears, name your new style, select 'All sites', paste the following CSS code into the text box, then enable and save the settings.

  • Opera (10.60): Create a file ~/.opera/styles/user/user.css and paste the CSS code below into the file. In the address bar of Opera, navigate to opera:config. In the filter field type in 'local css'. Set the value of 'Local CSS File' to the file you just created and 'Local CSS Files Directory' to the directory containing the file. Save your changes.


CSS for Chrome and Opera


* { font-family: "Droid Sans" !important; }


Replace 'Droid Sans' with the font of your choice.


Log out and back in, just to make sure all is freshly loaded and enjoy your uniformly crisp and beautiful fonts both on the desktop and online!

Monday, January 18, 2010

LQ Votes Again!

We have the Grammys, the Oscars, the Golden Globes, the Webbys and the LQ Members' Choice Awards! Yes folks, it is that time of the year - time for the 2009 LinuxQuestions.org Members Choice Awards!



For as long as I've been using Linux, the Linux Questions site and forums have been a wealth of help, ideas and knowledge. It is probably the largest non distro specific Linux forum out there with over 420,000 registered members. Every year members of the Linux Questions community vote for their favorite applications, programming languages, distributions, toolkit, desktop environment and more! It is a great way to show your support and appreciation for the projects you love and use, to find projects that are sparking others' interest and feel the pulse of what's beating in the the heart of the Linux world.



Voting ends on February 9th. So head over, register (if you're not already registered) and vote!

Sunday, January 17, 2010

Tidbit: Firefox Extension - Invert Colors

I spend a lot of time in front of the computer screen and this can be a real strain on the eyes. The easiest way for me to cope with this is to use dark themes and reduce the brightness of the screen. But these have their limitations. Using dark themes only affects window decorations and system wigdets, while decreasing brightness can make things near unreadable especially during the day time. Then there is the fact that most a lot of my time on the computer is spent in the web browser where themes have no effect and most pages are bright.



Enter Invert Colors. This is a great little experimental addon for Firefox. Basically it does does what it says on the box. It inverts the colors of web pages and removes background images. It works relatively well. So far only one site (www.hattrick.org) crashes Firefox with this Addon enabled. Gmail is not affected by this addon but this can be rectified easily with Gmail themes.



In general, sites continue to work well although some buttons and links do not appear on some sites e.g. the thumbs up and down icons for youtube comments. Pages look more "90s" without all the images and backgrounds. But the important thing is that it does what I expect it to do and that is dim down the pages and reduce eye strain. If you would rather Invert Colors does not modify a site, you can configure it to do just that. Simply disable it for the site and reload to see the page as it was meant to be.



I would recommend Invert Colors to someone who likes dark themes because they are easy one the eyes and can handle the less flashy and occasionally buggy web experience. I certainly think it is worth it. If you use some other method to achieve this effect, please do let me know!



Here are some example screenshots




Invert Colors


Click here for a Google Wave invite. First come, first serve!

Tuesday, December 22, 2009

Merry Christmas!




Hope everyone out there has a blessed Christmas!


Music: Mishal Moore - Merry, Merry, Merry Christmas

Text from here.

Images found using Google.

Video compiled using only free and open source software (Kdenlive, The GIMP, KDE 4 and of course Linux!)

Poor art and video directing by yours truly :)

No copyright infringement intended.


Here's another Google Wave invite!

Tuesday, December 15, 2009

Acer Extensa 5630EZ Review

After almost 5 years of service I decided it was time to move on from my trusty Acer Aspire 3003NLMi and get myself a new laptop. But first of all, like a good geek, I must pay homage. The Aspire was my main machine and it took everything I threw at it. And then some. All Linux Mint Fluxbox CEs that I was responsible for were built on it. But the AMD Sempron 3000+, 768MB RAM and 40GB HD just weren't cutting it. Not to mention the Broadcom wireless card that required a proprietary driver, the SiS integrated graphics chip that has poor support in Linux and many ailing components.



This time around I was determined to choose wisely. I did my research and armed with my new found knowledge I set out on my hunt. For almost two months I scoured websites and brochures looking for that perfect deal. I settled for the Acer Extensa 5630EZ and here is my review after about a week of tinkering.




Acer Extensa 5630EZ


Let's get to the juicy stuff.


The Specs.



  • CPU: Intel Dual Core T4300 running at 2.1GHz with 1MB L2 Cache and an Intel Chipset

  • Memory: 3GB (2+1) DDR2 @ 667MHz

  • Graphics: Mobile Intel Graphics Media Accelerator 4500M with 64MB dedicated memory

  • Storage: 320GB Western Digital drive spinning @ 5200rpm

  • Display: 15.4" WXGA Acer CrystalBrite 1280x800 display (8ms/220nit)

  • Audio: Intel 82801I HD Audio Controller

  • Ethernet: NetXtreme BCM5764M Gigabit Ethernet PCIe

  • Wireless: Atheros AR928X 802.11b/g/Draft-N Wireless Network Adapter

  • Bluetooth 2.1+EDR

  • Integrated Acer Crystal Eye webcam with 640x480 resolution

  • Multi layer DVD-RW optical drive

  • PCMCIA card slot

  • 6 cell Li-ion Battery with a claimed 3 hours of juice

  • 3 USB ports

  • 1 VGA port

  • 2 Stereo speakers

  • Weighs about 3kgs



What I like



First of all, there is the price. I bought this machine for a few Lei shy of 1,800RON. I think that is quite a bargain for a new laptop! Most other laptops in the price range where Intel Celeron based and most netbooks were only 100-300RON cheaper! Also, I made it a point to buy a laptop either with Linux or no OS preinstalled. This one came with Linpus Linux. Plus 1 for Linux sales!



The laptop seems of a good build quality. The exterior is sturdy black plastic with a textured matte finish which looks simple but very good. The display hinges are wide and feel like they will survive my torture. The full size keyboard has a curved layout and the keys have good travel and feel. The touchpad is a decent size and has a metal bezel that adds a nice touch to the otherwise understated look. The display is very clear and bright (sometimes too bright) with a glossy finish. The speakers are loud enough (they are average laptop speakers).



This Acer machine runs cool and quiet. The fan only occasionally spins into action and even then it is quiet. Under normal use temperatures hover around 45°C. The underside is never too hot for comfort.



So far everything works out of the box in Linux! It is such a boon to have full support for your hardware. Just a little research goes a long way to enhancing your user experience. Running Linux Mint 8, CPU frequency scaling, 3D accelerated desktop effects, wireless (using the ath9k driver), bluetooth, the webcam and the hotkeys (some required configuring) all worked fine. I also installed and am using Arch Linux without any closed drivers.



It is no slouch. OK, it is no speed demon by today's standards either, but I am very pleased with the performance. Benchmarks are mostly academic, though I might put it through its paces at a later time. Nowadays, when 3GB of RAM doesn't seem all that much it is a real joy to be using Linux. Even with a lot of applications running (during normal use), I have never seen my RAM usage go over 2GB. Also many 3D games work e.g. Warzone 2100, Tuxkart, Neverball, Neverputt, World of Goo and Globulation 2. After 5 years of Sudoku and Solitaire, I was like a kid on Christmas morning!



What I don't like



The synaptics touchpad doesn't seem to recognize two or more finger actions. Thus things like two-finger scrolling are not possible. My not knowing how to configure it is also a possibility. The touchpad buttons are a bit too plasticky. They have some play, the travel is very little and the clicking action gives a cheap plastic sound. My biggest issue with this that my old Acer laptop had the same kind of touchpad buttons. And after repeated use they started getting stuck on the down click, thus becoming mostly useless. Preemptively, I have configured my touchpad to handle all clicking actions, so hopefully they'll last longer.



Another issue, which is more a matter of personal preference, is that the audio I/Os are located in the front of the laptop. This means that if you're using headphones, the jack is prone to getting bumped and skewed if the machine is placed on the lap and from hands moving around the touchpad. It's not a big deal if your headphones get messed up but eventually the headphone socket develops some play and causes contacts inside to become loose. That is annoying and will require sending the laptop for repairs. Manufacturers, please put the audio I/Os on the side!



The ath9k driver in the 2.6.31 kernel is not the best around. Quite frequently (2-3 times a day under heavy traffic e.g. file transfers), it would lose the signal and refuse to reconnect. The only way to get it working again was to reboot. Thankfully, upgrading to the 2.6.32 kernel solves this problem.



The glossy LCD display can be quite reflective but setting the brightness to maximum counters this for the most part.



What I haven't tried



I haven't tested the battery life yet. The battery requires formatting which means a 16 hour charge with the laptop off. I'm not bored of fiddling with it just yet to leave it off that long.



The ethernet card hasn't been used yet simply because wireless works. Anyway, I haven't yet come across an ethernet card that doesn't work in Linux. Then there is the PCMCIA card slot, because I don't have anything to put in it.



What I would have liked



The only thing that I really wanted that is not in this machine is a card reader. I just wanted the freedom to not worry about compatibility of various devices with Linux. But if I really need it, a card reader is not an expensive purchase.



That about wraps up my review. Once again, Acer has won me over with their product. At this price point there is almost no competition, even if it was on a Christmas sale. I am very pleased with my purchase. I would definitely recommend it, and more especially to Linux users.



Here is a Google Wave invitation. First come, first serve! If you do get it, drop me a line so that I know it works.

Thursday, December 10, 2009

Tidbit: Migrating Data From One Computer To Another in Linux

There comes a time when a computer user gets a new machine and has to migrate his/her data. This is far from a fun experience. Wouldn't it be nice if you could have all your files and settings transfered to the new machine? I'm sure there are many ways to go about this, but this is the way I did it using rsync.


For clarity's sake, commands run on the old machine will be pink and commands run on the new machine will be blue.


First, I installed rsync and openssh on both machines using the package manager. For openssh you need at least the server on the old machine and the client on the new one.


Ubuntu/Mint: $ sudo aptitude install rsync openssh-server
Ubuntu/Mint: $ sudo aptitude install rsync openssh-client

Arch Linux (as root): # pacman -Sy rsync openssh
Arch Linux (as root): # pacman -Sy rsync openssh


Secondly, you will need to have both your machines on the same network. I have a wireless router at home, so that simplified things having both laptops connect to the local network. However, a 802.11b wireless network plus ~30GB of data makes for a lot of waiting while things are copied over. If you do not have a home network, you could use a crossover cable to connect the two machines together. Basically, make sure the machines can ping each other. You may need to change the firewall settings to allow a connection to the SSH server. Then, start up the Open SSH server on the old one.


Ubuntu/Mint: $ sudo /etc/init.d/ssh restart
Arch Linux (as root): # /etc/rc.d/sshd restart


Thirdly, we will create a folder where we will put all our data and then copy the files over.


Ubuntu/Mint/Arch: $ mkdir ~/<destination folder>
Ubuntu/Mint/Arch: $ rsync -avz --progress <user name on old machine>@<IP address of old machine>:/home/<user name on old machine>/ ~/<destination folder>
E.g. $ rsync -avz --progress shane@192.168.16.100:/home/shane/ ~/from-old-machine


You will be prompted for the password of the user on the old machine. Once it starts, sit back and wait. If the transfer gets interrupted you can resume it later with the same command. If a file has been modified on the old machine after if has been copied over, it will be updated. See the rsync man page for more info. If you want any settings from your old machine e.g. your Firefox plugins, saved passwords and bookmarks, move the ~/from-old-machine/.mozilla folder to ~/.


If you want the entire setup to be transfered over as is, log out from the GUI on the new machine and log in on a virtual terminal (Ctrl+Alt+F1). This will delete all user files and settings on the new machine. Run:


Ubuntu/Mint/Arch: $ rm -rf ~/* ~/.??*
Ubuntu/Mint/Arch: $ rsync -avz --progress shane@192.168.16.100:/home/shane/ ~/


Enjoy your new computer!


[EDIT] I am not sure if this will work, but here is a Google Wave invitation. First come, first serve!