Ubuntu

From V.S.V., Inc.
Jump to: navigation, search

Disabling the Guest account in Ubuntu 12.04

Ubuntu 12.04 uses a window manager called Light DM. By default there is a Guest account. To disable it, you need to edit the configuration file:

sudo vi /etc/lightdm/lightdm.conf

And add the line:

allow-guest=false

to the "[SeatDefaults]" section.

After you save the file, you need to restart Light DM. You can do that either by rebooting your computer or running:

 sudo restart lightdm

Either way, make sure you have saved all your work because all you apps will be closed.

Allowing users to enter their own ID or pick from a list in Ubuntu 12.04

sudo vi /etc/lightdm/lightdm.conf

Add the line:

greeter-show-manual-login = true

to the "[SeatDefaults]" section.

After you save the file, you need to restart Light DM. You can do that either by rebooting your computer or running:

 sudo restart lightdm

Either way, make sure you have saved all your work because all you apps will be closed.

Forcing users to enter their ID in Light DM

sudo vi /etc/lightdm/lightdm.conf

Add the line:

greeter-hide-users = true

to the "[SeatDefaults]" section.

After you save the file, you need to restart Light DM. You can do that either by rebooting your computer or running:

 sudo restart lightdm

Either way, make sure you have saved all your work because all you apps will be closed.

Enabling LDAP client in Ubuntu 12.04

Run:

sudo dpkg-reconfigure ldap-auth-config

Answer all the questions.

Edit /etc/pam.d/common-session and add:

session    required     pam_mkhomedir.so

to the end of the file.

Enabling the Gnome desktop to Ubuntu 12.04

Run each of the following commands and reboot. After the reboot you can click on the gear on the login screen and you will have a choice of Unity, Gnome Classic or Gnome 3.

sudo apt-get install gnome-session-fallback
sudo apt-get install indicator-applet-appmenu
sudo apt-get install gnome-tweak-tool

Cleaning up unused packages in Ubuntu

Run the following command:

 apt-get autoremove

Making sudo work with LDAP in Ubuntu 12.04

Everything in this section needs to be done as root or another privileged user.

Edit /etc/nsswitch.conf and add the following line to the end of it.

sudoers: files ldap

Then you need to create several symlinks to /etc/ldap/ldap.conf Some of these files may already exist. If they do, just move them aside before making the symlinks.

ln -s /etc/ldap/ldap.conf /etc/ldap.conf
ln -s /etc/ldap/ldap.conf /etc/sudo-ldap.conf
ln -s /etc/ldap/ldap.conf /etc/nslcd.conf

Now edit /etc/ldap/ldap.conf and add the following lines to the end of it.

SUDOERS_BASE dc=example,dc=com
SUDOERS_DEBUG 0

Set the first line to whatever the top of your LDAP tree is. The second line makes sure the debug info is turned off. If you need to turn it on, set this number to 2 and save the file. The change is immediate and you will see lots of output on the screen the next time you do a sudo command.

Making the Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) work in Ubuntu 12.04

Run the following command:

sudo apt-get install b43-fwcutter firmware-b43-installer

Synaptic errors

Problem:

E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
E: _cache->open() failed, please report.

Solution:

 sudo apt-get update

Installing CPAN modules

I found this little nugget of wisdom on Stackoverflow. (Thanks mvp)

Ubuntu provides a lot of Perl packages natively, with following naming convention: package name always starts with lib, then Perl package name like XML::LibXML is converted to lower case and :: replaced to dash - (XML::LibXML => xml-libxml), and finally -perl suffix is added. In other words, native package name for XML::LibXML would be libxml-libxml-perl. So, in your case, you simply run this command and it will pull all necessary dependencies automatically:

sudo apt-get install libxml-libxml-perl

If you don't like this package for any reason you can uninstall it with sudo apt-get remove. If you use CPAN, it is very difficult to uninstall it reliably.

Maverick Meerkat

Maverick Meerkat quirk

Return to: Main