Tampilkan postingan dengan label terminal. Tampilkan semua postingan
Tampilkan postingan dengan label terminal. Tampilkan semua postingan

How to Add or create default gateway from terminal in Ubuntu

How to Add or create default gateway from terminal in Ubuntu
I've been so rarely using terminal for my working in ubuntu, and sometime i have to use terminal to remote my server.

I ll share you "How to Add or create default gateway from terminal in Ubuntu"
because i have cased for changing default gateway on my server.
I had a little confused before but i found an article and it was helpful.

It,s piece of cake.

1.

open terminal

2

sudo route add default gw 192.168.1.251 eth0

3 

sudo /etc/init.d/networking restart

done!

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

These terminal commands should solve your problem:

1. 

Remove the Merge List by opening a terminal (Press Ctrl+Alt+T to launch) and run this command:

sudo rm /var/lib/apt/lists/* -vf

2.

Next, generate a new one by running a simple update:

sudo apt-get update