2月 23rd, 2020
Install Desktop Gnome
root@server-test:/opt# apt-get install -y ubuntu-desktop
Install/Config TigerVNC
root@server-test:/opt# apt -y install tigervnc-standalone-server
......
root@server-test:/opt# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
root@server-test:~# more /root/.vnc/xstartup
# create new (or add to the end)
exec /usr/bin/gnome-session &
# start with diplay number [1], screen resolution [800x600]
root@server-test:~#
root@server-test:~# vncserver :1 -geometry 800x600 -localhost no
New 'gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1 (root)' desktop at :1 on machine gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1.log
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd gcsprendpoint-yonzhao2test-share-flat2-ni9ngm-server-ne.novalocal:1 to connect to the VNC server.
Access by TigerVNC Client
Other
2020-07-24 Update: Change to TightVNC
I found an issue that cannot input anything when login via tigerVNC, normal user is ok after disable screen auto clock, but root couldn’t login in. So I transfer to TightVNC that work perfect now. Follow install guide:
How to Install and Configure VNC on Ubuntu 20.04
12月 20th, 2017
After install Centos7, found disk size less, so I need resize the disk, you can use some tools to achieve the function, e.g: GParted or disk-genius. But if your Server disk format is LVM, you can easy to manual adjust that. I don’t know how to resize LVM by Gparted or disk-genius. For this article, will discuss how to adjust Centos7/Ubuntu14.04 by LVM. That should same action/command in Centos and Ubuntu.
If you want to check steps in Ubuntu, can check this attachment: lvm-resize-ubuntu14.04
1. Follow disk info
Check system contents by “sudo df -H”, check all disk status by “sudo fdisk -l”.
[root@frank ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/myvg-root 7.4G 7.4G 4.0M 100% /
devtmpfs 2.1G 0 2.1G 0% /dev
tmpfs 2.1G 250k 2.1G 1% /dev/shm
tmpfs 2.1G 9.5M 2.1G 1% /run
tmpfs 2.1G 0 2.1G 0% /sys/fs/cgroup
/dev/mapper/myvg-home 731M 140M 591M 20% /home
/dev/sda1 521M 126M 396M 25% /boot
/dev/sr0 4.2G 4.2G 0 100% /run/media/root/CentOS 7 x86_64
2. Relationship for VG, PV and LV
完整阅读
7月 17th, 2015
Not use ubuntu for long time… some useful commands had forgot, summary again:
1. Permit root login
gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf –> “greeter-show-manual-login=true”
sudo passwd root
reboot
2. Change language
gedit /etc/default/locale –> change what do you want
reboot
3. Script couldn’t run on linux “bad interpreter: No such file or directory”
that should dos format, need change to unix format
vi xxx
check format by “:set ff” or “:set fileformat”
change format by “:set ff=unix” or “:set fileformat=unix”
:wq
4. Enable ssh service
sudo apt-get install openssh-server
gedit /etc/ssh/sshd_config –> “PermitRootLogin yes”
restart by “/etc/init.d/ssh restart”
check by “ps -ef|grep ssh”
reboot
5. Disable firewall
check whether enable by “ufw status”
disable by “ufw disable”
6. Change update source
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list
sudo apt-get update
Refer to default source, can reference this article.
7. Change ip address, add/del GW route, add text to file
sudo ifconfig eth1 up
sudo ifconfig eth0 down
sudo ifconfig eth1 up 10.0.0.30 netmask 255.255.255.128
sudo route add -net 0.0.0.0/0 gw 10.0.0.126 dev eth1
sudo echo ‘nameserver x.x.x.x’ >> /etc/resolv.conf
8. Install DHCP Server
sudo apt-get install isc-dhcp-server
vim /etc/default/isc-dhcp-server
2月 8th, 2010
刚刚注意到,我的系统是64bit的桌面版,发现4G的内存只支持了3.5G。
不明白是怎么回事。。。
在网上有人说只要是64bit的系统,就可以支持4G及更大的内存。
另外还有人说只有ubuntu 64bit server版的才支持,不解中,说法真多呀。。。
根据资料,我的主板最多能支持16G的内存。
我的主板是华硕的:P5N7A-VM
完整阅读
2月 6th, 2010
已经对AR5001X+在linux下的性能彻底失望了,我又测试了下,发现问题很严重,但又不清楚具体是什么问题,难道无线网卡性能差,可以影响整个网络的性能?!
以下是Topology:
+------+
|Remote|
| PC |
+--+---+
|
|
|
|
-+--
+------------+ ///- -\\\
| ubuntu9.10 | +---------+ / \
| Wifi:54/70 | WLAN | | | |
| +--------+ + - - - -+ TPLink +-----| Internet |
| | Vmware | | + | | |
+-+--------+-+ +---------+ \ /
| Olive | \\\- -///
+--------+ ----
完整阅读