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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值