峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
2019-04-15 |Nonni | TSI

http://www.jetbrains.com/pycharm/download/
下载PyCharm for Linux

sudo -i
vi /usr/share/applications/Pycharm.desktop

[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh 实际路径/bin/pycharm.sh
Icon= 实际路径/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
2019-04-15 |Nonni | TSI

https://music.163.com/#/download

sudo -i
dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb
apt-get install -f

sudo netease-cloud-music
2019-04-15 |Nonni | TSI

https://pinyin.sogou.com/linux/?r=pinyin

下载安装文件后,执行:

sudo -i
dpkg -i sogoupinyin_2.2.0.0102_amd64.deb
apt-get install -f

安装输入法前端所需的ui动态库:

apt-get install fcitx-ui-classic && apt-get install fcitx-ui-light

reboot

2019-04-15 |Nonni | TSI

https://www.debian.org/

添加sudo:

su
apt-get install sudo

修改sudoers:

vi /etc/sudoers

在%sudo ALL=(ALL:ALL) ALL 下添加

yourusername  ALL=(ALL:ALL) ALL

修改源:

vi /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 9.8.0 _Stretch_ - Official amd64 DVD Binary-1 20190415-12:12]/ stretch contrib main
deb http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib 
deb http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib 
deb http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib 
deb-src http://mirrors.ustc.edu.cn/debian/ stretch main non-free contrib 
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-updates main non-free contrib 
deb-src http://mirrors.ustc.edu.cn/debian/ stretch-backports main non-free contrib

apt-get update
2019-04-10 |Nonni | TSI
yum update

防火墙:

firewall-cmd --permanent --add-service vnc-server
systemctl restart firewalld.service

X-Window:

yum groupinstall "X Window System"
yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
unlink /etc/systemd/system/default.target
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

sync
reboot

VNC SERVER:

cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

vim /etc/systemd/system/vncserver@:1.service
找到最下面的类似几行替换:

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver :1 -geometry 1280x720 -depth 24"
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target

重启systemd:

systemctl daemon-reload

设置密码:

vncpasswd

控制命令:
开机启动VNC:

systemctl enable vncserver@:1.service

启动服务:

systemctl start vncserver@:1.service

or

vncserver

关闭 VNC 服务:

systemctl stop vncserver@:1.service

禁止VNC开机启动:

systemctl disable vncserver@:1.service

VNCview连接:
IP:1