Nobody was Born with Linux Knowledge

To content | To menu | To search

Admin

Administration

Entries feed - Comments feed

Thursday 8 December 2011

Change the hostname and domain of ubuntu/linux

Hostname and domain in ubuntu linux are displayed follwoing the pattern:

username@hostname.domain

In order to change the latter two open a terminal and type:

sudo hostname host.domain

replacing host.domain with your own e.g. laptop.aldeby

Ensure that the changes are also reflected in the following files:

/etc/hosts
/etc/hostname
/etc/resolv.conf

The latter is only needed if you have edited it before, otherwise simply reboot your computer or restart networking services.

Monday 18 April 2011

Linux Ubuntu force fsck filesystem check at reboot

If you need to force the disk check of a non root partition you just need to unmount it and run fsck. If you need to force the root file system check though you either use a liveUSB distro or need to adopt one of the following caveats in order to force the automated filesystem check at reboot:

a) using /forcefsck

By creating /forcefsck file you will force the Linux system to perform a full file system check. Create a file called forcefsck: sudo touch /forcefsck Now reboot the system

b) using shutdown command

The -F option force fsck on reboot, login as root and type the following command to reboot and run fsck: # sudo shutdown -rF now

Wednesday 2 March 2011

wireless: remember the firmware!

After a fresh install you may notice the wireless card, although being recognized by NwtworMnaager, always displaying a "Disconnected" or "Card not ready" status. Furthermore command
sudo iwconfig
may show up the wireless card correctly, however this is not listed in the output of
sudo ifconfig
You may try forcibly enabling the wireless interface typing
sudo ifconfig wlan0 up
however the following error message would be displayed:
siocsifflags operation not permitted
The reason why may likely be the wireless card kernel module has been loaded, however it needs the corresponding firmware which has not been automatically installed. Using your package manager enable the Restricted sources and install the corresponding firmware packages. These usually are:
sudo apt-get install firmware-linux firmware-realtek firmware-ralink firmware-iwlwifi firmware-intelwimax firwmare-atheros
More easily in synaptic search for the keyword 'firmware' and install the one corresponding to your wireless card brand. Disabling and re-enabling your card via keyboard shortcut should suffice to load the firmware, otherwise reboot.

Tuesday 1 March 2011

Cannot authenticate privileged applications

It may happen that trying to run an application requiring root / administrator privileges you cannot pass the authentication screen.

After entering the password it always reports back it's a wrong password. The password dialog looks like this:  This misbehavior is due to a misconfiguration: gksu has to be configured as a front-end to sudo and not su. In a terminal type:
gksu-properties


and select sudo as Authentication mode  That's all!

- page 1 of 8