VMWare Workstation 10.0.4 install guest tool on RHEL7

Summary install GCC and kernel-devel require to remove open-vm-tools Error struct dentry has no member named d_alias Error struct dentry has no member named d_count successful result Reference Summary Installed the Vmware tool in the RHEL7 guest system, during the installation, encountered compiling problem for vmhgfs application (for file share between host and guest system).

Shrink existing /home LVM with xfs format

Summary ProblemNo free sectors available install xfsdump dump the home system to temhomedump umount home delete create and format with shrank size mount restore home successful result reduced to 10G from 108G problem still exist cannot create new partition below action will crash the root system Refernce Summary If you require to shrink the file system with xfs format, unfortunately there is no method to do so, in my case, the /root and /home system was installed in the LVM, and with xfs file system, cannot do much to /root system, dumped out /home file system, format and shrank the file system and restored the /home system.

RHEL7 rename VM in libvirt+KVM

Summary virsh command control Requirement on change domainVM name Procedure to change the domain VM name shutdown the virtual machine dump xml to xml file modify the xml file to change the domainVM name Undefine old virtual machine Define new virtual machine Reference Summary I have created VM in libvirt + KVM under RHEL7 environment, but requires to rename the domain name of the VM, find out the way by export xml file, modify and import again, achieved the change domain name effect.

Embedded Linux S3C2440 environment setup

Summary Create Virtualbox image from USB image USB to serial port usage use putty as hyper terminal Use minicom in Fedora Linux Network connection between S3C2440 and Virutalbox USB connection between S3C2440 and Virtualbox Reference Link Summary Setup the embedded Linux S3C2440 environment recently, by using Fedora Linux system in Virtualbox, the USB to serial port, did the minicom setup, network connection setup etc.

在AWS Ubuntu上安装和配置VNC并通过SSH隧道连接

在AWS Ubuntu上安装和配置tightvncserver, 并通过SSH隧道进行了远程桌面连接,记录下实验流程。 1,安装tightvncserver 由于已经安装了 xfce4 xfce4-goodies,所以此处不需要安装。以下指令安装tightvncserver。 sudo apt-get update sudo apt-get install tightvncserver 2,设置vncserver的密码,登录使用 如果没有设置用户名和密码,需要设置,我在先前的实验中已经设置了用记名ubuntu和密码,所以我这里不需要设置。设置用户名密码具体参见:连接AWS EC2 Linux instance Ubuntu远程桌面 设置vncserver的密码,这里密码最长为8个字符,设置密码的同时,系统对vncserver时行了相应的设置。 ncserver 3,设置VNC服务器 主要是设置VNC服务器启动时的执行的指令,VNC开始启动时,自动启动一个服务器例程,使用显示端口5901,VNC识别为 :1,同理新开的端口为:2,:3,依此类推,端口使用为5900+x。 要配置5901设置,首先停止在端口5901上运行的例程, vncserver -kill :1 配置 xstartup 文件,首先备份原始的文件以防以后用到, mv ~/.vnc/xstartup ~/.vnc/xstartup.bak 创建一个新的xstartup 文件, emacs ~/.vnc/xstartup 在文件中加入以下三行内容, #!/bin/bash xrdb $HOME/.Xresources startxfce4 & 第一行指令xrdb $HOME/.Xresources告诉GUI的框架读取服务器的.Xresources文件,.Xresources是用户改变图形桌面设置,例如终端颜色,字符指针风格和字体等。 第二行指令告诉服务器启动XFCE,能够通过相应图形界面软件管理服务器。 修改为可执行, sudo chmod +x ~/.vnc/xstartup 4,设置VNC服务文件 为了更好地控制VNC服务器,将其配置成Ubuntu的VCN服务,更加方便地进行start,stop, restart操作。 创建一个新的服务文件vncserver, sudo emacs /etc/init.d/vncserver 第一部分是声明一些VNC会用到的通用的设置,例如用户名和分辨率等。 #!/bin/bash PATH="$PATH:/usr/bin/" export USER="ubuntu" DISPLAY="1" DEPTH="16" GEOMETRY="1024x768" OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost" .