Linux常用配置彙總(Centos 7及Debian 8)

Centos 7下xrdp配置

http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
http://sigkillit.com/tag/xrdp/
http://bullcreekstudio.com/uncategorized/start-remote-xrdp-session-mate-debian-cuz-gnome-3-just-sucks/)**
rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum -y install xrdp tigervnc-server
systemctl start xrdp.service
systemctl enable xrdp.service
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman

桌面配置(部分可適用於Debian)

Gnome 3
sudo echo "gnome-session" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
KDE
sudo echo "startkde" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service
xfce
sudo echo "startxfce4" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

Debian下kde plasma安裝

http://www.ubuntumaniac.com/2015/05/installupdate-kde-plasma-531-on-ubuntu.html

Debian下vsftp配置

http://www.server-world.info/en/note?os=Debian_8&p=ftp

Debian下JAVA安裝

http://www.chinaitlab.com/Java/dynamic/963085.html
https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps
https://wolfpaulus.com/journal/software/tomcat-jessie/

默認軟件版本配置

http://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux
https://codeghar.wordpress.com/2009/01/27/update-alternatives-in-debian/

Debian默認桌面切換

update-alternatives --config x-session-manager

root用戶圖形界面無法顯示(no protocol specificed)

http://czmmiao.iteye.com/blog/2141131
是由於linux下Xserver的訪問權限控制導致的,默認不允許其他用戶在當前登錄用戶的桌面中顯示圖形界面。
解決方法:
當前登錄用戶運行以下命令
xhost +

通過samba在linux和windows之間共享文件夾

http://blog.csdn.net/loongembedded/article/details/37721883
<>中的內容根據實際情況進行替換
sudo yum install samba samba-client
sudo yum install cifs-utils
sudo mount -t cifs -o username=<username>,password=<password> //<ip address>/<shared folder> /mnt/win/

Debian動態增加/tmp大小

原文地址
dd創建虛擬分區
dd if=/dev/zero of=/usr/tmp-ext bs=1024M count=2
創建文件系統
mke2fs -j /usr/tmp-ext
掛載分區
mount -t ext4 -o loop /usr/tmp-ext /tmp
設置自動掛載分區
在/etc/fstab中將已有/tmp分區掛載註釋,然後添加如下內容:
/usr/tmp-ext /tmp ext4 defaults,loop 0 0
修改權限
chmod 1777 /tmp
chown root.root /tmp

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章