-
軟件更新源
http://blog.csdn.net/paincupid/article/details/52895676修改/etc/apt/sources.list文件,用下面的地址替換原來的官方默認地址 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
-
如果是debian/ubuntu可以使用build-dep命令來自動安裝依賴包。
sudo apt-get build-dep python-mysqldb
-
所需工具,vsftpd ,byobu,openssh-server
byobu ->sudo apt-get install byobu ctrl+a+c->新建新的終端 ctrl+a+數字->切換終端 openssh-server ->sudo apt-get install openssh-server ->查看與管理ftp服務: 啓動ftp服務:service vsftpd start 查看ftp服務狀態:service vsftpd status 重啓ftp服務:service vsftpd restart 關閉ftp服務:service vsftpd stop vsftpd ->sudo apt-get install vsftpd
-
使用vi命令時,不能正常編輯文件,使用方向鍵時老是出現很多字母
因爲沒有安裝VIM,安裝vim即可解決。->執行命令 sudoapt-get install vim
-
Linux Tab鍵命令補全失效解決辦法
查看/etc/passwd文件(該文件存儲的是操作系統用戶信息) [plain] view plain copy root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh news:x:9:9:news:/var/spool/news:/bin/sh uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh irc:x:39:39:ircd:/var/run/ircd:/bin/sh gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh nobody:x:65534:65534:nobody:/nonexistent:/bin/sh libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:103::/var/spool/exim4:/bin/false statd:x:102:65534::/var/lib/nfs:/bin/false vansome:x:1000:1000:vansome,,,:/home/vansome:/bin/bash sshd:x:103:65534::/var/run/sshd:/usr/sbin/nologin hadoop:x:1001:1001::/home/hadoop:/bin/sh ganglia:x:104:106:Ganglia Monitor:/var/lib/ganglia:/bin/false
該文件存放的用戶信息由6個分號組成的7個信息,解釋如下
(1):用戶名。
(2):密碼(已經加密)
(3):UID(用戶標識),操作系統自己用的
(4):GID組標識。
(5):用戶全名或本地帳號
(6):開始目錄
(7):登錄使用的Shell,就是對登錄命令進行解析的工具。
從該文件可以看出hadoop用戶所用的命令解析shell爲sh。因爲是命令解析的原因導致Tab鍵不能補全,故修改當前出錯用戶的shell。
在root用戶下修改由[plain] view plain copy hadoop:x:1001:1001::/home/hadoop:/bin/sh
修改爲
[plain] view plain copy hadoop:x:1001:1001::/home/hadoop:/bin/bash
重啓console,問題解決。
所以應該是在裝某個軟件的時候篡改了/etc/passwd文件,或者在創建用戶的時候指定了shell爲sh,導致tab鍵不能正常補全。 -
vm擴展分區大小
http://blog.csdn.net/Timsley/article/details/50742755 -
安裝vivado
-
編譯uboot
-
ubuntu 下如何下載linux內核源碼
-
ubuntu打實時內核補丁(RT-PREEMPT kernel)
http://blog.csdn.net/x356982611/article/details/77370385 -
Linux內核源代碼獲取方法
https://www.cnblogs.com/JiYF/p/6139038.html -
線程編譯問題(undefined reference to `pthread_create’)
http://blog.csdn.net/silentpebble/article/details/6906117
編譯rtlinux 應用報錯的解決辦法。 -
軟鏈接建立
ln -s /home/work/xlnx-4.0 source===建立軟連接
/home/work/xlnx-4.0 =====所要指向的源文件目錄
source ======該文件夾需要更改指向文件
ln -f -s /home/work/xlnx-4.0 source ======覆蓋原有軟鏈接的命令
source -> /home/work/xlnx-4.0/
Ubuntu16.04.3常用工具,環境設置,常用操作
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.