Question: **This question is Not about how to set up VPN on an Ubuntu server.** 

Edited: I think what I'm looking for is the way to set up a PPTP VPN client on my Ubuntu server by command line.

I have an Ubuntu server running and connected to the internet. I also have a VPN service (PPTP) running on another Linux machine. Now all I want to do is configure this Ubuntu server so that all the internet traffic it generates goes through the VPN.

How can I achieve this?

Answer: 
change the `GRUB_TIMEOUT=10` to zero

This is my Configuration file:

```
GRUB_DEFAULT="Ubuntu, with Linux 3.2.0-30-generic-pae"
#GRUB_HIDDEN_TIMEOUT=10
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

```

First, write the name of the OS that you want to boot to directly. Mine is Ubuntu. So you will write it as in the `GRUB_DEFAULT="Ubuntu, with Linux x.x.x-xx-generic-pae"`

then I used 1 second in the `GRUB_TIMEOUT=` to give me 1 second before selecting the default OS (if I need to boot to another OS for example Xubuntu)

as for `GRUB_CMDLINE_LINUX_DEFAULT=""` if you remove `quite splash` it will show you texts instead of the Ubuntu logo during the booting process (I like it this way :P )

---

There is another solution: 

There is a program called [boot-repair](https://help.ubuntu.com/community/Boot-Repair) which helps in configuring with a GUI.

![enter image description here](https://i.stack.imgur.com/6Uhd9.png)

![enter image description here](https://i.stack.imgur.com/KpxQp.png)

as you can see from the image. there is a box called `Unhide boot menu`. Just uncheck the box and press appy. You can access this by clicking on the advanced options arrow.

to install boot repair

```
sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair

```

and then run `boot-reapir` either from the terminal or from the dash.

---

3rd solution:

ou can use an easy to use GUI app called grub-customizer to make your life a little easy. As the name suggests, you can do much more than just reordering Grub menu entries with it.

You can install it by:

```
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

```

![enter image description here](https://i.stack.imgur.com/8Jfeb.png)

as you can see from the menu there is `show menu` option. Unhceck and see if it works
I had the problem that the grub menu appeared always after I used the AUFS (unionfs) to put the root filesystem readonly. I had phisically to hit the enter key at the server after every boot. I followed the instructions here : [disable grub 2 menu](http://www.linuxquestions.org/questions/linux-server-73/how-to-disable-grub-2-menu-even-after-server-crash-796562/). Since, I had no problems at all.

Edit the /boot/grub/grub.cfg and change:

```
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi

```

To 

```
if [ ${recordfail} = 1 ]; then
  set timeout=1
else
  set timeout=10
fi

```