Occasionally you need to generate a bunch of random files with random content, usually for testing compression, user quotas or miscellaneous stuff.
Here’s one way, using the bash shell and a few handy linux utilities.
The bash $RANDOM function. It generates a random number between 0 – 32767.
Linux DD utility, to output files.
/dev/(h|s)da, your hard drive in [...]
So you’ve installed the latest development builds of Chromium for Fedora Linux. The only thing lacking is that youtube is not loading. If not, what are you waiting for? Refer to one of my previous posts.
First make sure you install the Adobe yum repository.
As root:-
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Then install the flash plugin.
yum install flash-plugin.i386
The flash plugin [...]
Sometimes, you may run into problems updating Fedora via yum. What you could do is temporarily disable the offending repository, and update everything else while the errors are being fixed upstream.
List out your enabled yum repositories.
$ yum repolist
You would get something like this:
[raja@atreides ~]$ yum repolist
Loaded plugins: fastestmirror, presto, refresh-packagekit
repo id [...]
July 18, 2009 - 8:39 pm
Tags: bind, caching-nameserver, caching-only, chroot, fedora, fedora 11, How To, Linux, named, nameserver
Posted in How To, Linux | 5 comments
Having a caching only name-server on your local Machine speeds up your browsing. Here’s how to set up a slightly more secure caching server using ISC Bind in Fedora 11.
Install bind and bind-chroot packages
# yum install bind bind-chroot
Edit your /etc/sysconfig/named file.
# vim /etc/sysconfig/named
Add the following line:
ROOTDIR="/var/named/chroot"
Edit your /etc/named.conf file.
# vim /etc/named.conf
Change the following line:
listen-on port [...]
Some times it necessary to change your network MAC address on your linux box.
Unlike Windows, which requires some registry editing or even specialized tools, its just a command line away in Linux.
For example, lets change the MAC address of your first netwrok card, usually called eth0.
Let’s swith to being the root user and view the [...]
You can do a spell check on from the command line in Linux.
First, make sure you have aspell installed. In Fedora, just yum install it.
$ yum install aspell
You’ll also need a dictionary, from which aspell can search for words.
A yum search aspell will give you a list.
[raja@atreides visilon]$ yum search aspell
———————————————————–
aspell-af.i586 : Afrikaans dictionaries [...]
July 12, 2009 - 10:12 pm
Tags: bash, cli, files, How To, Linux, mass rename, rename, script, scripting, sed
Posted in How To, Linux | 2 comments
When entrusted with the chore of renaming multiple file, the convenience of a script shines. After all, we ain’t robots designed to do just one thing. Today, I’ll show one method of renaming files, using a for loop in bash.
First, the task we are going to do:
We have a list of files:
[raja@atreides test]$ ls
data_file_1 [...]
VirtualBox 3.0.2 has been released. This is a maintenance release, but it solves a lot of problems. For example, 3D accleration works way better now if you have Desktop Effects enabled. A definite recommended upgrade.
Many people use dynamic dns for different purposes. I use it to give my home machine a public presence. I choose DynDNS for my needs. Its a leader in this segment and have been around for a long time.
First, you’ll need to register for a free account at their site. Once you’ve chosen a domain [...]
After installing Fedora, or most linuxes, you may realise that the Windows key that you used during the unenlightened days doesnt work anymore. Even worse, you cannot seem to use it as part of you Keyboard shortcuts. Gives some weird irony when reading about Dead Keys.
Enabling the Windows Key is easy, Just go to System [...]
July 7, 2009 - 12:11 pm
Thanks a lot Raja! It enabled me to complete my otherwise straightforward quest to set VBox 3.0 up!
August 4, 2009 - 3:44 am
after all that i still can’t get it to work any other advice
August 30, 2009 - 5:58 pm
I’m having same problem here…..after changing as suggested. my USB mouse only can be worked in the virtual unless I turned off it.
August 11, 2009 - 10:49 am
I modified the /etc/rc.sysinit exactly as you posted here. I rebooted and now my Windows Vista guest is recognizing my iPod and Logitech camera. Thank you! Please continue your good work.
August 21, 2009 - 3:48 am
I did exactly as you instructed – I was trying to access my cell phone via USB port – instead when I went back to boot my VBox running Windows 7, I lost access to my mouse (am using a MS Trackball connected via USB port – so, after all that, I can’t access pointer in VBox, so will have to undo rc.sysinit edits.
August 21, 2009 - 3:49 am
BTW: is that a mistake, or, as I read on your instructions, there’s a space between gr and oup in the rc.sysinit line for /etc/gr oup
August 22, 2009 - 12:39 pm
Thank’s. From all the other sites this was the only one which worked. I appreciate your information very much.
August 30, 2009 - 5:56 pm
It seems does not work on my machine.
I still can’t see any USB device except Mouse.
September 25, 2009 - 12:50 pm
bug in the instructions that begin
“So, your /etc/rc.sysinit should change from:”
/etc/gr oup)
should be:
/etc/group)
October 1, 2009 - 4:40 am
When changing gid of usbfs to vboxusers, as you described, my USB-printer/scanner stopped working (CUPS said: USB-Backend failing…). On my machine I had to change gid of usbfs to lp, and make any user a member of this group. This way VBox sees USB-devices, and the host continues to access printer and scanner correctly.
October 29, 2009 - 7:17 pm
Perfect solution. Works like a charm. Finally a solution that works
Thanks