Tag: ubuntu

List of groups in Ubuntu

To get a list of groups in Ubuntu: getent group

How to enable mod_rewrite in WordPress

…so you can have descriptive URLs like ours. Three easy steps: 1) First, from /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/rewrite.load 2) Then… /etc/init.d/apache2 restart 3) Last, add this stuff to your virtual host definition (in my case, /etc/apache2/sites-available/everythingiscrap) RewriteEngine On RewriteOptions Inherit I guess  you could say that the last step is to ENABLE descriptive permalinks in …

Continue reading

Who's logged into Ubuntu right now

Simple command… w It gives you a simple list of who's logged in, how, from where, and what they're doing. Very useful.

Resetting your ethernet port indexes in Ubuntu

I ran into a situation where I had cloned a virtual machine (VHD) of Ubuntu and networking stopped functioning. Running ifconfig only displayed information for the loopback; it was as if the (virtual) network card wasn't installed, which wasn't the case. What really happened was this: The installation of Ubuntu thought that it now had …

Continue reading

Static IP in Ubuntu

It's all in the file /etc/network/interfaces. You should see an entry like this: auto eth0 iface eth0 inet dhcp Change it to something like this auto eth0 iface eth0 inet static address 192.168.1.192 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 192.168.1.1 192.168.1.2 Then… /etc/init.d/networking restart At this point…you'll usually lose connection 🙁 …but that's good, because your …

Continue reading

Installing Stuff on Ubuntu

Many of the core applications you'll need for Ubuntu are available through the APT package handling utility. For instance: to install emacs… apt-get install shellinabox This downloads the appropriate package files you need, and installs the application for you. All you need to know to use apt-get is the name of the package you want …

Continue reading

What! Ubuntu doesn't allow you to log in as root?

Just like Windows Vista & Windows 7 you can't log into Ubuntu as administrator (root). This is as it should be. However, some tasks require you to escalate your permissions before they can run. To do this in Ubuntu: sudo [command] As long as your user has permission to do so, then you'll be able …

Continue reading

New Virtual Host in Apache on Ubuntu

I'm an IIS guy, so Apache seems arcane to me. And the creation of a new website (aka Virtual Host) was difficult at first, but seems straightforward enough to me now. Here's how it's done. Create a text file that will define your website in /etc/apache2/sites-available. In that text file goes a description of your …

Continue reading

Mounting a CD in Ubuntu

Mounting a CD in Ubuntu isn't as easy as it should be, but it is a lot easier than I thought it would be. mount cdrom That's it. The CD is now mounted and available in /cdrom.

Shell in a Box is great

What a great idea! It's an AJAX shell that gives you access to your Linux command line. Just grab Shell in a Box and install it.