terminal
Remove all files but one with rm
· โ˜• 1 min read · โœ๏ธ Sathya
Is there any way to remove all of the files in a directory except for one with a certain filename? For instance, if I had a directory containing the files file1, file2, and dontdelete. Would there be any way to quickly delete file1, and file2 and not dontdelete? I know that I could just do rm file1 file2 but that wouldn’t work for a bunch of files. Also, I’m on Mac OS X if that makes a difference

[How-to] Solve Partitions not detected during Ubuntu 10.10 Maverick Meerkat Install
· โ˜• 2 min read · โœ๏ธ Bharath

It has been quite a while since I wrote here. Did not find time nor issues to write about.

I tried to install Ubuntu 10.10. The Partition Manager did not detect my partitions. It listed my entire hard disk as one “Unallocated Free Space”. I was puzzled. Everything was fine under Windows XP. Or so I thought.

My hard disk is a 60GB one., partitioned into 10, 25 and 25 GBs. My Disk Management under XP listed thus:


[How to] Search through Bash history
· โ˜• 1 min read · โœ๏ธ Sathya
Quick tip - if you use the Terminal as much as I do, ever been in a situation where you’ve written a particularly long command, and then want to issue that command again but can’t recall it ? Use the history command, and pipe it to grep to search it! history | grep -i <search-term> This will give you all commands with the search term and the corresponding line number.

Always display the location bar in Nautilus
· โ˜• 1 min read · โœ๏ธ Sathya
This is a pretty good tip. The default style irritates me to no end. Check out the full post, there are some great tips, especially if you’re new to Nautilus like me. Ever since some distros started their attempt to become more โ€œuser-friendlyโ€ and gaining the nice looks, some default features got changed. In this case, itโ€™s the location bar. Instead of it they got some buttons that shows the location and let you navigate through the directories!

ArchLinux Install & Setup Guide โ€“ Part 1 โ€“ The actual install
· โ˜• 6 min read · โœ๏ธ Sathya

Been a while since I posted ;) For some strange reason, recently I got an urge to try out ArchLinux{#aptureLink_BWSwiwROlt}. After much deliberation finally decided to try out ArchLinux again, in VirtualBox{#aptureLink_YQu9cIpVYm}. My little install guide I compiled as I was reading through the Official ArchLinux Install Guide{#aptureLink_OrVThoOrTI} + Beginner’s Guide{#aptureLink_AMQvvRytbx}.

Please note: This is highly customized according to *my* requirements and nowhere as thorough /generalized as the official guides. Still, it might help you. Here we go -


Mounting file system created by Wubi in other Linux distros
· โ˜• 1 min read · โœ๏ธ Sathya

I wasn’t aware of this tiny little thing ย - the filesystem in the ย file created by a Wubi install can be easily mounted as a loop device.


[How-to] Make nVidia settings persistent and retain the settings in Ubuntu 9.10 Karmic Koala
· โ˜• 2 min read · โœ๏ธ Bharath

Nvidia Proprietary Drivers need nvidia-settings to set screen resolution and change other settings. In previous versions of Ubuntu and in other distros to make them permanent (used in every session) you click the “Save to X configuration file”. From Karmic on there is no xorg.conf by default!

As a result, nvidia-settings is not able to save the settings and every time I logged in I hadย  to change the resolution (Phew!!!). Then Sathya helped me. He gave me aย link from Ubuntu Forums{#aptureLink_MZsWFB9Cv4}. Then I did the following to fix the problem:


Updating to openSUSE 11.2
· โ˜• 1 min read · โœ๏ธ Sathya

As mentioned openSUSE 11.2 is now available. If you’re on previous versions of openSUSE you can do an inplace upgrade to 11.2 by using zypper.

openSUSE 11.0/openSUSE 11.1

Just change the repos to mention 11.2 instead of 11.0/11.1, as shown in the pic:


[How-to] Fix โ€œE: Unable to parse package file /var/lib/apt/extended_states (1)โ€ error in Synaptic or apt-get
· โ˜• 1 min read · โœ๏ธ Bharath
This is just a quick tip. If you are getting this error message in Synaptic: E: Unable to parse package file /var/lib/apt/extended_states (1) E: _cache->open() failed, please report or this error in apt-get in command line: Reading package listsโ€ฆ Done Building dependency tree Reading state informationโ€ฆ Error! E: Unable to parse package file /var/lib/apt/extended_states (1) and both just fail to open or install, then just execute this in command line (terminal):

openSUSE 11.2 Milestone 8 And Release Candidates(RC) add boot from USB flash disk option, hereโ€™s how to use it
· โ˜• 2 min read · โœ๏ธ Sathya

Howdy folks! Been a *loong* time since I last posted isn’t it? Just been busy with work & travel (won’t bore you with the details, just check my personal blog{#aptureLink_20DGMzo67U}).

I’ve been looking forward to the upcoming openSUSE 11.2 version ( it’s no secret that I’m a fan of openSUSE{#aptureLink_yxkV6H9kot}), but the main problem for me was that I don’t like holding onto optical media, and have a 8gig USB flash disk, especially for these things.

Unfortunatelyย  openSUSE has been lacking a install/boot from USB flash drive for quite sometime, upto now that is. The last Milestone (M8) and the first release candidate, RC1 includes support for booting from USB flash disks.

You will need access to a Linux environment, inorder to accomplish this step.