Archive

标签为 ‘UBUNTU’的文章

TigerVNC on ubuntu 20.0

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

0

How to resize LVM on Centos7/Ubuntu14.04 ?

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

完整阅读

0

Ubuntu 14.04 General config

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

0

Ubuntu 64bit 桌面版 4G内存只支持3.5G [已解决]

刚刚注意到,我的系统是64bit的桌面版,发现4G的内存只支持了3.5G。
不明白是怎么回事。。。
在网上有人说只要是64bit的系统,就可以支持4G及更大的内存。
另外还有人说只有ubuntu 64bit server版的才支持,不解中,说法真多呀。。。
根据资料,我的主板最多能支持16G的内存。
我的主板是华硕的:P5N7A-VM
完整阅读

0

Ubuntu AR5001X+ 无线网卡性能 续

已经对AR5001X+在linux下的性能彻底失望了,我又测试了下,发现问题很严重,但又不清楚具体是什么问题,难道无线网卡性能差,可以影响整个网络的性能?!

以下是Topology:

                                          +------+
                                          |Remote|
                                          |  PC  |
                                          +--+---+
                                             |
                                             |
                                             |
                                             |
                                            -+--
+------------+                          ///-    -\\\
| ubuntu9.10 |        +---------+      /            \
| Wifi:54/70 |  WLAN  |         |     |              |
| +--------+ + - - - -+ TPLink  +-----|  Internet    |
| | Vmware | |        +         |     |              |
+-+--------+-+        +---------+      \            /
  | Olive  |                            \\\-    -///
  +--------+                                ----

完整阅读

0
blonde teen swallows load.xxx videos