Stratos Gerakakis

Ubuntu Snippets

Tagged as: ubuntu  linux 

Sep 9 2010

These are little Ubuntu snippets, that I always forget!

Changing the timezone

sudo dpkg-reconfigure tzdata

Create and mount xfs filesystem

$ sudo apt-get install xfsprogs
$ sudo mkfs.xfs /dev/sdf

Add to fstab:

/dev/sdf   /my/location   xfs  defaults,nobootwait,noatime    0    0

(Tested on Amazon EC2 EBS volume.)

Timestamp too far in the future

    su rm -rf /var/run/sudo/Username

(Username: the name of the Ubuntu user, that should behave like root)