31 March 2012

Edimax EW-7811Un on Ubuntu 10.04 LTS

Posted: March 31st, 2012 | Author: Jon | Filed under: Technology | Tags: , , , , , , , , | No Comments »

I’ve recently re-purposed my old desktop PC to be a server running Ubuntu 10.04 LTS. As it’s an old box it’s not exactly quiet so I placed it under the stairs which posed a problem connection wise. In the end I decided to connect it up via wireless rather than run an Ethernet cable to it, so after doing a bit of research I went for the Edimax EW-7811Un nano USB adaptor from Amazon.

According to the Edimax web site Linux drivers were available for it and there were a few posts on the Ubuntu forums & wiki saying that people had got it working:

The USB adaptor uses the RealTek rtl8192cu chip according to this Debian wiki page and the filename of the Edimax driver package.

I tried the Edimax drivers first but I was getting pretty random results so I switched to RealTek’s  own drivers which seemed a lot more stable, and they seem to update them quite often too.


22 June 2008

Set Group ID permission in Linux

Posted: June 22nd, 2008 | Author: Jon | Filed under: Technology | Tags: , , , | No Comments »

How to set the default group for files and directories created under a certain directory. By default Linux uses the group of the user account used to create the file, on Debian this is usually users. The following commands should be run under the root account.

First change the group on the directory to the one you want to be used as the default:

chgrp group /path/to/directory

Then set the Group ID permission on the folder:

chmod g+s /path/to/directory

That’s all you need to do if the directory is empty, every file or sub directory created underneath this directory will inherit the group value we’ve set. If you already have sub directories in this directory and you want to set the default group value on those too then you’ll need to run the following command: 

find /path/to/directory -type d -exec chmod g+s {} \;

That’s it, job done!


7 June 2008

Set service to auto start on Red Hat EL

Posted: June 7th, 2008 | Author: Jon | Filed under: Technology | Tags: , , , | No Comments »

To set a service to automatically start at boot time on Red Hat Enterprise Linux (or CentOS) use the following command:

/sbin/chkconfig –level <level> <service> on

<level> is the runlevel, use 3 as it’s the ‘Full multi-user text mode’ runlevel on Red Hat EL/CentOS.
<server> is the name of service, i.e. the script in /etc/init.d/

Or you can use the ncurses-based /sbin/ntsysv utility.