方法如下:
Restart Machine
HOLD Shift Button ( You will get message “GRUB Loading“)
Select the Kernel ( Don’t select Recovery Mode)
Press the e key to edit the entry
Select the line starting with the word “linux”
Append the init=/bin/bash to the end of the linux line.
Now Press F10 to boot with provided option.
Now You need to mount File System ( / ) into Read-Write Mode
mount -o remount,rw /
Now execute passwd command to Reset root password.
For root User passwd ...
通过iptables可以做转发
123456789101112131415161718192021222324252627282930313233IPT="/sbin/iptables"/bin/echo "1" > /proc/sys/net/ipv4/ip_forward/sbin/modprobe ip_tables/sbin/modprobe iptable_filter/sbin/modprobe iptable_nat/sbin/modprobe ip_conntrack/sbin/modprobe ip_conntrack_ftp/sbin/modprobe ip_nat_ftp$IPT -F$IPT -t nat -F$IPT -X$IPT -t nat -X$IPT -Z$IPT -t nat -Z#DNAT 做端口转发$IPT -t nat -A PREROUTING -d 192.168.19.102 -p tcp --dport 33 -j DNAT --to-destination 192.167.19.101:2 ...
查询磁盘对应关系:
12345678910111213141516[root@xenserver-eqtwbths ~]# ll /dev/disk/by-id/total 0lrwxrwxrwx 1 root root 9 Jun 5 13:24 edd-int13_dev81 -> ../../sdblrwxrwxrwx 1 root root 10 Jun 5 14:14 edd-int13_dev81-part1 -> ../../sdb1lrwxrwxrwx 1 root root 9 Jun 5 13:24 edd-int13_dev82 -> ../../sdclrwxrwxrwx 1 root root 9 Jun 5 13:24 edd-int13_dev83 -> ../../sddlrwxrwxrwx 1 root root 10 Jun 5 13:24 edd-int13_dev83-part1 -> ../../sdd1lrwxrwxrwx 1 root root 9 Jun 5 13:24 scsi-SATA ...
暂未分类
未读首先找到下载包的地址 (使用的是centos6)
1http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler26/CentOS_CentOS-6/noarch/
添加国内epel源:
1wget http://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
本次测试下载这三个包:
123cobbler-2.6.5-9.1.noarch.rpm cobbler-web-2.6.5-9.1.noarch.rpm koan-2.6.5-9.1.noarch.rpm
下载rpm包:
123wget http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler26/CentOS_CentOS-6/noarch/cobbler-2.6.5-9.1.noarch.rpm wget http://download.opensuse.org/repositories ...
Remastering the Ubuntu Desktop ISO is easy considering the existing graphical tools but did you ever wanted to build your custom Ubuntu Server Edition ISO ?
Preparing the EnvironmentYou’ll need a clean copy of the Ubuntu Server ISO that you want to customize. Since 10.04 is the latest Ubuntu version I will write down my examples using it but everything should work pretty much unchanged for older or newer versions.
After you have you have the original iso image downloaded, make a copy it’s conten ...
一个参数的修改
12345d-i clock-setup/utc-auto boolean false (不用utc)d-i clock-setup/ntp boolean false (不时间同步)d-i netcfg/disable_autoconfig boolean true (关闭自动网络配置)d-i netcfg/use_autoconfig boolean false (不使用自动配置文件)d-i apt-setup/use_mirror boolean false (不使用apt 镜像)
写于: 2014年08月07日更新于: 2015年03月24日
暂未分类
未读软件下载地址:
1http://sourceforge.net/projects/iso2usb/files/latest/download?source=dlp
写于: 2014年08月04日更新于: 2015年03月24日
将fio-2.1.10.tar.gz拷贝到linux服务器的/usr/src/下
解压源码包:
12root@grandocean:/usr/src# tar xvf fio-2.1.10.tar.gz root@grandocean:/usr/src# cd fio-2.1.10/
安装依赖包:
1root@grandocean:/usr/src/fio-2.1.10# apt-get install pkg-config gtk+-2.0 libaio-dev
开启gfio:
1root@grandocean:/usr/src/fio-2.1.10# ./configure --enable-gfio
编译fio:
1root@grandocean:/usr/src/fio-2.1.10# make fio
编译gfio:
1root@grandocean:/usr/src/fio-2.1.10# make gfio
启动server模式:
1root@grandocean:/usr/src/fio-2.1.10# ./fio -S
测试脚 ...
持续运行一个命令,并且将结果输出到文本
1234567#! /bin/shwhile [ 2 > 1 ]do echo `date` >> recode.txt df -h >> recode.txt sleep 5done
写于: 2014年06月12日更新于: 2015年03月24日
暂未分类
未读在/etc/default/halt 增加下面
1INIT_HALT = POWEROFF
另一种方法:
I have the same problem and found a solution which worked out for me.
Type in terminal:
1234567sudo -i (to get a root shell, sudo gedit is not recommended)gedit /etc/default/grubFind the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"Save the file and close the file.Finally, in terminal: update-grubexit (to end the root shell)
写于: 2014年05月0 ...