Just some links, notes, photos, quotes, and stuffs.

Linux

Linux Command to Get Unix Timestamp

This will display number of seconds since 1970-01-01 00:00:00

$ date +%s

Fixing BADSIG 40976EAF437D05B5 in Ubuntu

The problem:

W: GPG error: http://archive.ubuntu.com jaunty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: You may want to run apt-get update to correct these problems

How to fix it:

sudo aptitude -o Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update

Ubuntu Magic SysRq Keys

The magic SysRq keys are key combinations within the Linux kernel that allows the user to perform various low level commands regardless of the system's state, except during kernel panics or freezes. It is often used to recover from X server freezes, or to reboot a computer without corrupting the file system.

Reboot:

Alt + SysRq + R + E + I + S + U + B

Shutdown:

Alt + SysRq + R + E + I + S + U + O

Detailed references:

Permanently Add Static Route in Ubuntu

1. Create a file named "static-routes" or something similar in /etc/networks/if-up.d directory.

sudo vi /etc/networks/if-up.d/static-routes

2. Add routing command(s) into the file.

#!/bin/sh
 
/sbin/route del -net default gw 10.102.74.1 netmask 0.0.0.0 dev eth0
/sbin/route add -net 10.0.0.0 gw 10.102.74.1 netmask 255.0.0.0 dev eth0

3. Make the file executable.

sudo chmod +x /etc/networks/if-up.d/static-routes

4. Reboot the system.

Disabling and Uninstalling AppArmor on Ubuntu Server

sudo /etc/init.d/apparmor stop
sudo update-rc.d -f apparmor remove
sudo aptitude remove apparmor apparmor-utils

Ubuntu Title Font

download it here: UbuntuTitle - Ubuntu Wiki

Open Source E-Books for Linux

Lists of books about: Installation and Getting Started, Security, System Administration, Programming, Migration, Kernel, and more.

Daily Artisan ยป Open Source E-Books for Linux

Disabling Console Beeps in Ubuntu

Put this in /etc/rc.local

for i in 1 2 3 4 5 6
do
    setterm -blength 0 > /dev/tty$i
done

Installing LAMP on Ubuntu Server

sudo aptitude install apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server

Installing XFCE4 on Ubuntu Server

  • install XFCE4 only
sudo aptitude install xorg xfce4
  • or install Xubuntu desktop
sudo aptitude install xubuntu-desktop
Syndicate content