You are currently browsing the monthly archive for May 2009.
This SimpleHelp tip could be very useful.
Unfortunately, it doesn’t work for me. I posted a comment to the blog so I’ll see if a solution results. If I get one, I’ll post as an edit.
[Edit: well, I've figured it out largely with the help of this great tutorial on the sed command. I've posted my findings as comments to the original article so they can all be seen there.
However, the following two commands worked for me
sed '/^#/ d' /boot/grub/menu.lst>/boot/grub/menu.tsl
sed '/^#/d; /^*$/d' /home/paul/Desktop/test.txt
Note that this last command only prints out the file content without commented-out lines while leaving the original file unchanged.
What was in the original article (shown below) did NOT work for me but errored out:
sed ā/ *#/d; /^ *$/dā /etc/httpd/conf/httpd.conf
Note that all were run from # ]
Well, you’re in luck because SimpleHelp provides this nice tutorial on how to do it.
Haven’t tried this yet, but will when I get bored with the default login screen.
Haven’t checked this yet in Moblin, but as it’s Fedora based, this interesting tutorial on getting the most out of Yum should be of use in Moblin.
Yes, Moblin v2.0 Beta, which is still a bit shaky, looks like it’s going to develop into something really useful and widely used in the ever-growing netbook world.
This link from SimpleHelp provides a lot of useful rpm commands which should certainly be handy in Moblin.
Interesting post from Simplehelp where the following command is recommended to copy a large database from one location to another:
# tar cf – * | ( cd /opt/mysql; tar xfp -)
Just discovered this today here (see entry #8 on the list).
In my case I wanted to use it to place a small icon on my Desktop in Ubuntu Jaunty on my EeePC 901, and use this to update my Linux & Stuff blog. This would save me the bother of having to open the blog, click New Post and all the rest of it.
Essentially, this is a test to see just how much more convenient it is and whether there might in fact be some hidden problems.
The first step is to install Gnome-blog from Synaptic. Then, I dragged the icon from Applications>>Blog Entry Poster to my AWN dock. Now the “open book” icon sits in my dock.
One problem, however, is that Gnome-blog doesn’t support wordpress.com blogs. However, this post shows how to get over this problem.
So, if you’re reading this in Linux & Stuff, you know this has worked.
The SimpleHelp blog has a nice post about this useful command. Haven’t tested this yet but I’ll do so now and edit later to let you know if it worked or not.
# at -f /sbin/shutdown -h now -v 00:00
Well, actually that doesn’t work but only because of the command I asked At to schedule for me. It only handles scripts. So, to do the shutdown that I wanted, I wrote this little script (named ~/shutdownx):
#!/bin/bash
killall opera
sleep 2
/sbin/shutdown -h now
Now the command
# at -f ./shutdownx -v 00:00
works fine.
A while ago I was receiving an awful lot of spam written entirely in Chinese characters (actually I really can’t distinguish between Chinese, Japanese or Korean characters so I suppose they could have been in any or all of those languages.
At the time I tried to set up a spam filter based on language but, despite seeking help from various forums, I didn’t manage it.
However, this is possible and it seems to be fairly easy as described in this post.
As it happens however, by recording as spam all of the Chinese stuff, Gmail eventually learned to dump all of this stuff before it got to my inbox so I basically never get any these days.
Actually, I was unaware that Ctr-Alt-BkSpc didn’t restart X in Jaunty. Apparently this function is disabled by default (I wonder why).
However, this post offers some apparently simple ways to get it going again.
Unfortunately, none of them seem to work in Jaunty on my EeePC 901. In particular, making the recommended chnage to /etc/X11/xorg.conf really messed things up such that X wouldn’t start at all. So I had to enter Moblin 2 and take out the newly added section from my xorg.conf.
Even installing dontzap and trying each of the two commands did absolutely nothing.
This is very strange.
Haven’t tried this but it claims to weed out the crap that might accumulate over time in your Mac making it slow and cumbersome.
Unfortunately, although I have a MacBook C2D, I’ve never really warmed to it and it only for Linux these days. Maybe I should go back and learn some more about OS X.
