Ubuntu is a Linux-based system. All of its software is updated through the command: apt-getinstall. 1. Implement Chinese input. This command is used to build the gcc compiler. ubuntu is a debian variant. debian tends to use packaged files for execution, while general linux is compiled based on source code, through gcc and make. Sudoapt-getinstallbuild-essent
Ubuntu is a Linux-based system. All of its software is updated through the command: apt-get install.
I,
Implement Chinese Input
This command is used to build the gcc compiler. This ubuntu is a debian variant, and debian tends to use packaged files.
While common linux is compiled based on source code and completed through gcc and make.
Sudo apt-get install build-essential
This command is used to patch the compiling environment.
Apt-get build-dep vim-gtk
This command is used to initialize scim Chinese.
Sudo apt-get install scim-pinyin im-switch
Im-switch-z en_US-s scim-pinyin
So far, the Environment supports Chinese characters.
II,
In Ubuntu, the traditional UNIX 'root' is blocked (that is, you cannot use root to log on ).
Run the command with the root permission and add the 'sudo' command before each command.
Start a root shell (for example, a window where you can run the root command) and use:
Sudo-s
III,
The wireless NIC driver cannot be used up:
View the wireless device settings of the system:
Iwconfig,
Port ath0 to automatically obtain the ip address
Dhclient ath0
Auto enable ath0 to scan available Wireless Networks
Sudo iwlist ath0 scan
Ath0 Scan completed:
Cell 01-Address: 00: 0C: 41: 9D: 3D: 2D
ESSID: "linksys"
Mode: Master
Frequency: 2.437 GHz (Channel 6)
Quality = 53/94 Signal level =-42 dBm Noise level =-95 dBm
Encryption key: on
Bit Rates: 1 Mb/s; 2 Mb/s; 5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra: bcn_int = 100.
Disable Network
Sudo ifdown ath0
Activate the network
Sudo idup ath0
Set the wireless network channel, which should be consistent with the AP
Sudo iwconfig ath0 channel 6
Set essid
Sudo iwconfig ath0 essid linksys
Set Mode
Sudo iwconfig ath0 mode managed
All the interfaces we can see with the ifconfig command are not necessarily activated, just like ath0. I found that even if ath0 is not activated, it will be displayed in it.
When I configured the wireless network, I encountered a situation where I could not obtain the ip address, but I have activated the network in the system --> network. In fact, at this time, several operations may be required.
Debug the wireless network:
1. First, we need to see our wireless devices in the system-system management-network connection, just like my wireless device is ath0, and select its properties, in the displayed dialog box, select enable connection and dhcp as the connection configuration. Do not enter other items and activate the connection.
2. Run the sudo iwlist ath0 scan command to scan all wireless networks.
Ath0 Scan completed:
Cell 01-Address: 00: 0C: 41: 9D: 3D: 2D
ESSID: "linksys"
Mode: Master
Frequency: 2.437 GHz (Channel 6)
Quality = 48/94 Signal level =-47 dBm Noise level =-95 dBm
Encryption key: on
Bit Rates: 1 Mb/s; 2 Mb/s; 5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra: bcn_int = 100.
3. Set ath0 with the obtained AP information:
Ty @ tonylinux :~ $ Sudo iwconfig ath0 essid linksys
Ty @ tonylinux :~ $ Sudo iwconfig ath0 mode managed
Ty @ tonylinux :~ $ Sudo iwconfig ath0 channel 6
Ty @ tonylinux :~ $ Sudo iwconfig ath0 enc 15ADE315F326F81545C51EA031
The channel must be consistent with the channel you see using the scan command.
4. Obtain the dhcp client ip Address
Sudo dhclient ath0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/ath0/00: 0f: 20: 95: 67: 9e
Sending on LPF/ath0/00: 0f: 20: 95: 67: 9e
Sending on Socket/fallback
DHCPREQUEST on ath0 to export 255.255.255 port 67
DHCPACK from 192.168.1.1
Bound to 192.168.1.108 -- renewal in 34542 seconds.
5. Use ifconfig to view the obtained ip address.
Ty @ tonylinux :~ $ Ifconfig
Ath0 Link encap: Ethernet HWaddr 00: 0F: 20: 95: 67: 9E
Up broadcast multicast mtu: 1500 Metric: 1
RX packets: 783 errors: 545 dropped: 0 overruns: 0 frame: 545
TX packets: 1017 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 200
RX bytes: 571504 (558.1 KiB) TX bytes: 261708 (255.5 KiB)
Interrupt: 11 Memory: f8b20000-f8b30000
Eth0 Link encap: Ethernet HWaddr 00: 08: 02: DA: 56: 7E
Up broadcast multicast mtu: 1500 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B)
Interrupt: 11
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 22 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 22 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 1184 (1.1 KiB) TX bytes: 1184 (1.1 KiB)
This ends.