Home > Linux > Ubuntu Configuration

Ubuntu Configuration

So I installed Xubuntu a little while ago and started configuring it for one of my main systems instead of quick VMs that I destroy after I’m done testing what I wanted on them. I’m not that use to deb systems and the apt package management. Here are a few of the things I did when configuring my system.

Installed a web services for development. Includes all basic LAMP services apache2, mysql and php5. Note you’ll save yourself some time/stress/headaches if you also include the php5-mysqlnd (native driver) as well. php5-gd is an image library.

$ sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysqlnd php5-gd

## Another nice thing is being able to edit the web root with your user and have the group assigned correctly.
## this example the webroot is /var/www we set the group to www-data what apache will be running as.
## Then we set the sticky bit for the group so all files created under it will be assigned that group.
## Just be sure to either include your user in the group so you have access to it or set the files to your user.
$ sudo gpasswd <USER> www-data
$ sudo chown :www-data /var/www
$ sudo chmod g+s /var/www

To use the most current Nvidia drivers. Make sure you have the source for your kernel before downloading so we don’t get issues.

$ sudo apt-get install build-essential linux-headers-`uname -r`
$ sudo apt-get install nvidia-experimental-310

I was going to install the direct Nvidia drivers and needed to disable the GUI init run levels for a second so I only started with a CLI. I could do it by simply editing the GRUB file.

$ sudo vim /etc/default/grub
## Edit the following line
## becomes
## Run the GRUB2 builder
$ sudo update-grub

Setup wireshark so any user can capture packets (prevents the requirement of running it as root).

## If it's not already installed
$ sudo apt-get install libcap2-bin
## Create a wireshark group so anyone in the group can capture packets, and get the new group rights in your current login session
$ sudo passwd -a <USER> wireshark
$ usermod -a -G wireshark <USER>
$ newgrp wireshark
## Set the group for the dumpcap so only root and the group can execute it.
$ sudo chown root:wireshark /usr/bin/dumpcap
$ chmod 750 /usr/bin/dumpcap
## Set the file up correctly
$ sudo setcap cap_net_raw,cap_net_admin,cap_dac_override+eip /usr/bin/dumpcap
Categories: Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: