Development is made easier by running a full development environment on your workstation. I personally run a full LAMP (Linux, Apache, MySQL, PHP) environment that allows me to test what I am developing on my workstation. In this case I am on my new Dell Inspiron E1505n running Ubuntu 7.04 Feisty Fawn.
One of the problems with doing this is the need to play with permissions on ever site in the server root. So instead I am using ‘userdir’ to keep the sites for easy development and testing. In other words I use apache to pull the site from my home directory for display in my browser. Here is how I did it.
Continue reading Apache redirecting to home directory using userdir module
I am pretty mobile, and find it a pain to boot up my laptop every time I need it. So instead I simply close it to put it into suspend mode, and simply open it and log in without the needed wait for booting up. (Even though Ubuntu loads very quickly.)
The problem is that sometimes the laptop does not recover, and I am faced with a black screen instead of my login screen. This forces me to force shutdown by hitting the power button, or forcing reboot by hitting Ctrl+Alt+Delete.
After some searching I found a remedy that seems to have fixed the problem. I simply added ‘noapic nolapic’ to my boot. Here is how I did it:
$ sudo vi /boot/grub/menu.lst
Then I found the “kernel” line that corresponds with my boot process, and appended ‘noapic nolapic’ to the end of it. Here is how that line looked when I was finished:
kernel /vmlinuz-2.6.20-16-generic noapic nolapic
Your line may differ slightly, but simply appending to the end will work fine.
I recently had the need to restart Plesk on a server. Everything on the server was running just fine, but Plesk was not responding.
After some searching I found these handy lines that allowed me to get Plesk back up and running.
# /etc/rc.d/init.d/psa stopall
# /etc/rc.d/init.d/psa start
Note: Must be run as root, or su.
I have a Microsoft Optical Desktop Elite Keyboard and Mouse for Bluetooth, and wanted to get them working on my newly installed Ubuntu 7.04 Feisty Fawn desktop. (This was my choice after the adventure of Windows Vista deciding it was not Genuine 1 1/2 months after install, even though it was.) See this article for the details.
I found the basics of this article on the Ubuntu forums, but found that I needed to adapt it a bit. So here is that article, with my changes/additions.
Continue reading Microsoft Bluetooth keyboard and mouse on Ubuntu 7 (Feisty Fawn)
The uptime command is very handy to get a snapshot of info about the servers time since last reboot, and load.
20:43:04 up 40 days, 13:43, 6 users, load average: 2.03, 1.68, 1.5
Breakdown of results:
- The current time (20:43:04)
- How long the system has been running in days and hours (up 40 days 13:43)
- How many users are currently logged on (6 users)
- The system load averages for the past 1, 5, and 15 minutes (2.03, 1.68, 1.5)
This is the same information contained in the header line displayed by w and top command:
Note that w displays who is logged on and what they are doing.
The top command provides a dynamic real-time view of a running Linux/UNIX/BSD system.