Ubuntu 使用
Posted Elan9145
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 使用相关的知识,希望对你有一定的参考价值。
1)初始安装后,方向键/退格键乱码
/etc/vim/vimrc.tiny
set compatible->set nocompatible
下面再增加一行:
set backspace=2
2)配置网卡信息
/etc/network/interfaces
reboot
3)创建用户,并授予root权限
useradd -r -m -s /bin/bash elan
chmod u+w /etc/sudoers
在root下面跟着加上
elan ALL=(ALL:ALL) ALL
4)vmware环境中安装vmware tool
vCenter中选择安装vmware tool,这会自动将vmware tool的内容加载到光盘中:
elan@elan-virtual-machine:/media/elan/VMware Tools$ su - root Password: root@elan-virtual-machine:~# df -h Filesystem Size Used Avail Use% Mounted on udev 486M 4.0K 486M 1% /dev tmpfs 100M 1.2M 99M 2% /run /dev/sda1 15G 3.8G 11G 27% / none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 497M 152K 497M 1% /run/shm none 100M 68K 100M 1% /run/user /dev/sr0 56M 56M 0 100% /media/elan/VMware Tools root@elan-virtual-machine:~# cd /media/elan/VMware\\ Tools/ root@elan-virtual-machine:/media/elan/VMware Tools# ls manifest.txt VMwareTools-10.2.0-7253323.tar.gz vmware-tools-upgrader-64 run_upgrader.sh vmware-tools-upgrader-32 root@elan-virtual-machine:/media/elan/VMware Tools# root@elan-virtual-machine:/media/elan/VMware Tools# tar -xzf VMwareTools-10.2.0-7253323.tar.gz -C /tmp root@elan-virtual-machine:/media/elan/VMware Tools# cd /tmp root@elan-virtual-machine:/tmp# ls config-err-Kugrt6 unity_support_test.1 vmware-tools-distrib root@elan-virtual-machine:/tmp# cd vmware-tools-distrib/ root@elan-virtual-machine:/tmp/vmware-tools-distrib# ls bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl root@elan-virtual-machine:/tmp/vmware-tools-distrib# ./vmware-install.pl
5)源
16.04 国内清华大学的源
https://www.linuxidc.com/Linux/2017-11/148627.htm
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
14.04 源
https://blog.csdn.net/u010053463/article/details/49300625
6)关防火墙
sudo ufw disable
以上是关于Ubuntu 使用的主要内容,如果未能解决你的问题,请参考以下文章
续:纠正:ubuntu7.04可以安装,而且完美的安装 ! for《Oracle-10.2.0.1,打补丁10.2.0.5:在 debian 版本4不含4以上,及 ubuntu 7.04不含(代码片段
ubuntu16.04 yum报错:There are no enabled repos. Run “yum repolist all“ to see the repos you have.(代码片段
应用程序启动器 “sublime_text.desktop“ 还没有被标记为 信任。如果您不知道这个文件的来源,那么启动它可能会不安全。解决sublime在ubuntu中不支持中文输入问题。(代码片段