Tag Archives: Linux

Ubuntu Server: rename eth1 to eth0

Today I needed to change / rename network interface name ‘eth1′ to ‘eth0′, after replacing broken network card. I searched for the file ‘/etc/iftab’, and it was not there. The solution lies in the file ‘/etc/udev/rules.d/70-persistent-net.rules’: # PCI device 0×1022:0×2000 … Continue reading

Posted in OS | Tagged , | 7 Comments

Ubuntu Server: How to execute script at startup

Quick and dirty way – add line in file ‘/etc/rc.local’ More reliable way using runlevels

Posted in OS | Tagged , | Leave a comment

VMware ESXi enable remote ssh access (unsupported)

To enable VMware ESXi 4.0 SSH (Windows Putty) access: At physical console press ALT+F1. VMware ESXi banner will appear. There is no prompt on the screen, but type ‘unsupported’ and press Enter. Now at password prompt type root password. You … Continue reading

Posted in OS | Tagged , , , | Leave a comment

Join (merge / concatenate) split files: Windows or Linux

Sometimes you have to join two files together. There are plenty of tools for file spitting and joining (restoring), but I prefer the build in ones. Use copy command under Windows: copy /B file1.ext + file2.ext result_file.ext “B” stands for … Continue reading

Posted in OS | Tagged , | Leave a comment

My Linux command quick reference

My day-to-day job does not involve Linux, so I made a command reference for me. Some useful nix commands: list directory contents ls list directory contents wish permissions, dates, size, etc. ls -l print (name of) working directory pwd text … Continue reading

Posted in OS | Tagged , | Leave a comment

Ubuntu Server static ip problems – ubuntu reverts back to DHCP on its own

Many people report that Ubuntu Server suddenly reverts its static IP address to dynamic (via DHCP). Here are some discussions: static ip reverts back to DHCP (ubuntuforums.org). Static IP reverting to DHCP on Ubuntu Server 8.04 (www.howtogeek.com). This happened to … Continue reading

Posted in OS | Tagged , , , | Leave a comment

How to change Ubuntu Server from dynamic address (DHCP) to a static IP address?

You need to change addresses into following files: /etc/network/interfaces /etc/resolv.conf The following article from www.howtogeek.com prefers vi editor, but I use nano editor. sudo nano /etc/network/interfaces change to something like this iface eth0 inet static      address 192.168.1.5      netmask 255.255.255.0      network … Continue reading

Posted in OS | Tagged , , , | Leave a comment