Bo Wu's IT Lab

If winter comes, can spring be far behind?

Browsing Posts in System Administration

1. How to change the UUID for a vdi (Disk Image) file? [vbox@myhost HardDisks]$ VBoxManage internalcommands setvdiuuid mydisk.vdi VirtualBox Command Line Management Interface Version 3.0.2 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. UUID changed to: ee32ff3a-1e86-4387-a753-a51d1528a0fe 2. How to delete eth0, eth1, eth2…? (1) Edit /etc/udev/rules.d/rules.d/70-persistent-net.rules delete lines, like eth0, eht1, eth2… (2) In [...]

If you have a SMTP email server and you want to test if it is working properly, you can following the steps below to test it. user_name@myhost:~$ telnet 127.0.0.1 25 Trying 127.0.0.1… Connected to 127.0.0.1. Escape character is ‘^]’. 220 myhost ESMTP Sendmail 8.14.3/8.14.3/Debian-9ubuntu1; Sat, 16 Jan 2010 17:28:30 -0800; (No UCE/UBE) logging access from: [...]

Remove a Service: # update-rc.d -f apache2 remove cd /etc/init.d # update-rc.d -f apache2 remove Removing any system startup links for /etc/init.d/apache2 … /etc/rc0.d/K09apache2 /etc/rc1.d/K09apache2 /etc/rc2.d/S91apache2 /etc/rc3.d/S91apache2 /etc/rc4.d/S91apache2 /etc/rc5.d/S91apache2 /etc/rc6.d/K09apache2 Add a Service: # update-rc.d apache2 start 91 2 3 4 5 . stop 09 0 1 6 . Adding system startup for /etc/init.d/apache2 … [...]

1. Change IP Address: Usually, you need to change from DHCP client to a Static IP address.

Make sure the gs (Ghostscript) is installed, and type following command: gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished a.pdf b.pdf

1. How To Create an ISO Image from a CD or DVD 1) Insert the CD or DVD that you want to make an ISO image of. 2) Open a terminal window. 3) Execute the following command: cat /dev/scd0 > /home/your_username/image_file.iso where /dev/scd0 is the device name for your drive (to find this, go to [...]