Saturday, 13 October 2012

Change of blog to www.xenlinux.com

Hi,
I have shifted all my future posts to a .com domain at

www.xenlinux.com

You can contact me at above link.
All my future posts regarding XEN, LINUX and OpenVSwitch can be found on xenlinux.com

Monday, 8 October 2012

DNS through Command line in Ubuntu/Debian

I had a problem with my new Ethernet card, the problem was that "It was NOT working" and I was so tired and sick of it. So I made a way around, rather then looking for a driver(make a module in X-NIX systems) I manually "up" the interface at boot time alone with few changes in /etc/network/interfaces with making the ip of Ethernet card static. Then everything was fine except for two things:

1. I can ping any ip or I can access any ip but the name was not being resolved.
2. The network was not shown connected in network manager of ubuntu.

For the solution of (1), I needed a DNS server. Now since the network was not shown at network manager so I could not put DNS. I thought of setting the DNS at terminal.
I COULD NOT FIND such a command but what I found can be done in most of the systems:
Following is what I did to put DNS in Ubuntu with out network manager:

1. Open /etc/resolv.conf in your favorite editor (I like gedit in GUI and vi in command line)
2.  simply put the following two lines

nameserver 208.76.50.50
nameserver 8.8.8.8
You can put any DNS but I lilke 208.76.50.50 because youtube.com is blocked in my country and by putting this as DNS allows me to access the youtube.com ;)
3. Save and exit
4. You do not even have to restart the networking.
5. Ping the google.com
You can check if DNS is working by issuing the following set of commands :

$ host google.com
$ dig google.com
$ ping google.com
$ nslookup your-domain.com

Friday, 5 October 2012

Stuck at log in of Ubuntu? Try following



Stuck at log in of Ubuntu? Try following
So there I was working with Ubuntu and smartdomains. I was trying to install some plugins with java. As I rebooted the system I was shocked to see that the desktop would display the log in screen. I was able to put my password but then after accepting the password, the log in screen would reappear and it gets annoying after a number of log ins. So I tried to find a solution. As I found that there was a problem with the current log in screen. So I installed a new by doing the following: 
·         when you get to the graphical login screen hit Ctrl+Alt+F2, thus you get to a textual login
·         put in your name and password (password is not displayed when you type, neither as stars or bullets)
·         type sudo apt-get install gdm and hit enter, give your password and wait to get a line ending with a dollar sign again
·         type sudo dpkg-reconfigure gdm
·         hit enter at the first screen
·         select gdm in the list you get in the second screen with the arrow keys
·         hit the tab button (above the caps lock one), now you see the word Ok highlighted. Hit enter
·         type "sudo reboot" and hit enter. You'll get another graphical login screen, but you'll be able to log in!
·         P.S.: (1) if you are used to run some programs like ifconfig or others which are administrative ones from a terminal emulator (e.g. gnome-terminal) you'd better add a line like PATH="$PATH:/sbin:/usr/sbin" at the end of the .bashrc file in your home directory. You can do it with echo 'PATH="$PATH:/sbin:/usr/sbin"' >> ~/.bashrc. (2) if you want to change back to the other graphical login screen from time to time and see if it was bug-fixed and it works again you can run sudo dpkg-reconfigure gdm and select lightdm and reboot (doesn't look like it works if you just run sudo pkill X)

Cheers!