Time of Update: 2017-02-20
標籤:return repo clu sudo add end color names 複製 安裝codeblocks:sudo add-apt-repository
Time of Update: 2017-02-21
Linux Mint,linuxmint查看依賴dpkg --get-selections|grep 軟體名軟體源更新 System Settings->Software Sources 更新系統$ sudo apt-get update$ sudo apt-get upgrad$ sudo apt-get dist-upgrad安裝多媒體解碼$ sudo apt-get install ubuntu-restricted-extras安裝專有驅動$
Time of Update: 2017-02-21
在ubuntu中安裝chrome,ubuntu安裝chromeubuntu內建的firefox不好用,而且chrome儲存有很多有用的書籤,遂想在ubuntu中安裝chrome瀏覽器。綜合網上的各種安裝chrome方法,我安裝chrome瀏覽器比較簡單明了。step1 下載chrome瀏覽器 https://www.google.com/chrome/browser/desktop/index.htmlstep2 終端輸入:sudo apt-get install -f (終端快速鍵 carl+
Time of Update: 2017-02-20
Linux 使用者管理1 (/etc/passwd),etcpasswdLinux所有的使用者都在/etc/passwd檔案裡面。 1、為什麼需要使用者 1)電腦及網路資源的合理分配 2)可以控制使用者訪問系統的許可權。3)身份認證 4) 進程
Time of Update: 2017-02-19
Linux命令學習1(awk、grep),awkgrep1、AWK內部代碼編寫(為了更好的理解)BEGIN{size=0}{ if($5>4096){ size=size+$5; printf("%-10i%s\n",$5,$9)}}END{print "size is",size/1024/1024}2、去掉斷行符號,加上其他部分ls -l|awk 'BEGIN{size=0}{if($5>4096){size=size+$5;printf("%-10i%s\n"
Time of Update: 2017-02-21
apache,apache官網yum install httpd\* -yiptables -I INPUT 1 -p tcp --dport 80 -j ACCEPTservice iptables save 1 vim /etc/httpd/conf/httpd.conf2 3 ServerTokens OS //顯示版本號碼4 ServerRoot "/etc/httpd" //預設路徑5 PidFile run/httpd.pid
Time of Update: 2017-02-21
Linux 使用者管理2,linux使用者管理2Linux 使用者管理2添加修改和刪除使用者,必須是超級管理員root帳號才可以進行的操作,所以噹噹前帳號不是超級管理員root帳號時,首先要先切換為root帳號。,ylq為普通使用者,執行添加使用者時,會出現的錯誤: 快捷切換為root使用者:添加使用者useradd命令此時便可以執行添加使用者的操作了:也可以使用cat
Time of Update: 2017-02-21
vsftp,vsftpd1 yum install vsftpd -y2 iptables -I INPUT 1 -p tcp --dport 20:21 -j ACCEPT3 service iptables save 1 vim /etc/vsftpd/vsftpd.conf 1 anonymous_enable=YES // 匿名帳戶可登陸 2 anon_root=/var/ftp/ // 匿名使用者登入目錄 預設為 /var/ftp/ 3 local_enable=
Time of Update: 2017-02-19
Debian, Ubuntu linux安裝openjdk,ubuntuopenjdksudo apt-get install openjdk-8-jre這隻是單單安裝了jre而已,不要安裝這個安裝下面這個就行了sudo apt-get install openjdk-8-jdk 配置環境gedit /etc/profile添加#set jdk environment export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Time of Update: 2017-02-20
使用光碟片iso實現Linux作業系統的自動安裝部署,isolinux前邊寫了一篇使用 PXE 的方式大量安裝作業系統,不是任何時候任何地方都有環境來通過 PXE 方式來進行安裝。如果此時需要通過光碟片安裝,預設的情況下是通過互動式方式進行安裝,其實也可以通過 kickstart 的方式來實現自動化安裝部署。光碟片通過 ks.cfg 進行安裝的實現方式比較簡單,下邊簡單的進行總結。一、實現原理光碟片通過讀取 ks.cfg 檔案來實現安裝作業系統,ks.cfg
Time of Update: 2017-02-19
linux常用命令大全,linux常用命令常用指令ls 顯示檔案或目錄 -l 列出檔案詳細資料l(list) -a 列出目前的目錄下所有檔案及目錄,包括隱藏的a(all)mkdir
Time of Update: 2017-02-21
apache+ssl+ca,apachessl第一步:搭建apache伺服器,這在上篇部落格中已經完成 http://www.cnblogs.com/sangmu/p/6422238.html第二步:安裝ssl yum install mod_ssl -y iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT service iptables save 1 vim /etc/httpd/conf.d/ssl.conf 2
Time of Update: 2017-02-19
使用xmanager接收圖形介面,xmanager圖形介面假設在win(192.168.0.101)上安裝了xmanager,想接收來自linux(192.168.100.16)的圖形介面。 1.在win端開啟Xmanager - Passive 2.在linux上設定DISPLAY環境變數 export DISPLAY=192.168.0.101:0.0 其中 192.168.0.101是接收圖形的用戶端地址。
Time of Update: 2017-02-19
enc28j60網卡驅動模組添加進linux核心,Kconfig,Makefile配置過程,enc28j60kconfig這裡是要把http://www.cnblogs.com/hackfun/p/6260396.html中的enc28j60網卡驅動模組,添加到2.6.22.6核心中,這個模組代碼不需要任何修改。只需要在核心目錄下的相關配置指令檔,如Makefile,Kconfig,.config等,修改某些配置就行。enc28j60網卡驅動模組使用到的幾個檔案:enc28j60.cenc28j
Time of Update: 2017-02-20
centos配置supervisord動作記錄,centossupervisordSupervisor是由python語言編寫,基於linux作業系統的一款伺服器管理工具,用以監控伺服器的運行,發現問題能立即自動預警及自動重啟等功能。centos預設安裝的是python2.7.5,最好不要改變升級,我升級了python,到2.7.13升級python後,yum不可用,需要修改一下 /usr/bin/yum,把第一句的#!/usr/bin/python改為#!/usr/bin/python2.7.
Time of Update: 2017-02-21
Linux~串連windows的ftp,unzip出現的問題,ftpunzip在linux進行串連windows下的ftp伺服器ftp://192.168.2.71輸入使用者名稱和密碼登陸成功 當使用get把檔案下載後,然後unzip進行解壓時,出現了問題error [10201_database_linux32.zip]: start of central directory not found; zipfile
Time of Update: 2017-02-20
使用隨身碟安裝ubuntu系統,u盤ubuntu系統一、製作ubuntu的隨身碟啟動盤1.1 下載ubuntu https://www.ubuntu.com/download1.2 下載安裝 UltralSO軟碟通1.3 開啟軟碟通點擊檔案開啟step1下載好的ubuntu的iso檔案 完成載入1.4 插入隨身碟 點擊隨身碟啟動項 找到寫入硬碟映像選項1.5 點擊便捷啟動 寫入新的磁碟機引導區--Syslinux 點擊確定1.6 點擊寫入按鈕 再點擊確認後開始寫入
Time of Update: 2017-02-20
find尋找命令,find尋找find# 格式 find [路徑] [參數] [運算式] -exec 指令 {} \ ;-{} 代表find找到的檔案-\ 禁止轉意 ; 表示本行指令結束# find /sbin -type f -size +1M -exec ls {} \;--在/sbin目錄中尋找檔案類型為常規檔案並且檔案大小大於1M,再使用ls命令來查看找到的檔案的類型# find /sbin -type f -size +1M -exec cp {} /tmp \;參數:
Time of Update: 2017-02-18
CENTOS 配置串口串連1、修改 vi/boot/grub/grub.conf (修改內容為紅色標註位置)# grub.conf generated by anaconda## Note that you do not have to rerun grubafter making changes to this file# NOTICE:You have a /boot partition. Thismeans that#all kernel and initrd paths are
Time of Update: 2017-02-18
CentOS 7添加自訂系統服務Centos7開機啟動項分為system和user兩種類型比如像mysql這種不用登陸就可以啟動並執行就是system型,放在/usr/lib/systemd/system下,反之,使用者登入後才能啟動並執行程式,存在使用者(user)裡。假如我自訂了一個系統服務,叫mytest.server,檔案格式可參考system目錄下的其他檔案。執行 systemctl enable mytest.service 設定開機自啟動 systemctl start