Tag Archives: Ubuntu

Disappearing folder – bug in Windows 7

In process of testing one of our automation software I hit interesting Windows 7 bug. First I found it in our software, and right away tested this scenario on Windows 7, and bug was there. The bug. Create folder on … Continue reading

Posted in Computers, OS | Tagged , , , , , | 1 Comment

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

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