Mixed short techniques Ubuntu

By admin at 2017-09-29 • 0 collector • 1751 pageviews

config IP and Gateway

----

$ sudo ifconfig eth0 192.168.0.154 netmask 255.255.255.0

$ sudo route add default gw 192.168.0.99 eth0


/etc/init.d/networking restart

----------------------------------------------------------

How to Change MAC Address

------

# /etc/init.d/networking stop

# ifconfig eth0 hw ether 02:01:02:03:04:08

# /etc/init.d/networking start

---------------------------------------------------------

การคอนฟิค ubuntu network

-------

$ sudo nano /etc/network/interfaces


# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).


# The loopback network interface

auto lo

iface lo inet loopback


# The primary network interface

auto eth0

iface eth0 inet static

        address 198.199.114.230

        netmask 255.255.255.0

        gateway 198.199.114.1

        # dns-* options are implemented by the resolvconf package, if installed

        dns-nameservers 8.8.4.4

---------------------------------------------------------

แก้ไข Lacale หาย

-----

no have found locale-gen to be your friend. as in (adding hebrew utf8 for example):


root@world:~# locale-gen en_US.UTF-8

you can even rehash it like so:


root@world:~# dpkg-reconfigure locales

and check that you did good:


root@world:~# locale -a

------------------------------------------------------

คำสัง อัพเกรด ubuntu

-----

# sudo do-release-upgrade -d

-------------------------------------------------------

ติดตั้ง GUI

-----

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install ubuntu-desktop


The above command will install GNOME desktop


If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command

$ sudo apt-get install --no-install-recommends ubuntu-desktop


If you want to install light weight desktop install xfce using the following command

$ sudo apt-get install xubuntu-desktop


If you want to install KDE desktop use the following command

$ sudo apt-get install kubuntu-desktop

---------------------------------------------------------

ติดตั้ง Java 7 ubuntu 12.04

-----

# apt-get install python-software-properties

# sudo add-apt-repository ppa:webupd8team/java

# sudo apt-get update

# sudo apt-get install oracle-java7-installer

# java -version

----------------------------------------------------------


Requires Login

Loading...