Expand an EXT4, on a SCSI device
If you have vmware ESXi or Microsoft Hyper-v, you can expand a disk, from the hypervisor console, very simple. But afterwards the partition the servers is not expand.It is always a good idea to...
Kenneth Qvistgaard Dalbjerg, IT Konsulent i århus
If you have vmware ESXi or Microsoft Hyper-v, you can expand a disk, from the hypervisor console, very simple. But afterwards the partition the servers is not expand.It is always a good idea to...
If you have a host with multiple IP address on it, and you need to change witch IP address it present it with on the Internet, you can change the Default IP address, by...
Here is a guide to compile a kernel 3.6.X kernel for hyper-v the debian way.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
sudo apt-get install git-core kernel-package fakeroot build-essential ncurses-dev #Download the latest kernel cd /usr/src sudo wget --continue http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6.6.tar.bz2 sudo tar jxvf linux-3.6.6.tar.bz2 cd linux-3.6.6 #Copy kernel config to the new source sudo cp /boot/config-`uname -r` ./.config #Choice what you want #Hyper-V is locate at: Device Drivers, Microsoft Hyper-V guest support sudo make menuconfig #Compile the kernel sudo make-kpkg clean sudo fakeroot make-kpkg --initrd --append-to-version=-hyperv01 kernel_image kernel_headers cd .. sudo dpkg -i linux-image-3.6.* sudo init 6 |
If you want to find any hidden files (Files with a dot first), you can use this command:
1 |
find ./ -name '.*' |
You can change ./ to be /var/www to find any hidden files in /var/www
If you have a shellscript thats run okay from shell, but not will running from cron, run this command (This is what it looks like when cron run it)
1 |
/bin/sh -c "(export PATH=/usr/bin:/bin; /usr/local/bin/shellscript.sh)" |
This command will kill all instance from
1 |
ps aux | grep samba |
1 |
kill $(ps aux | grep 'samba' | awk '{print $2}') |
You can use this command to get the list of the number of file in current directory
1 |
ls -1 ./ | wc -l |
1 |
Or |
1 |
ls -1 /var/log | wc -l |
1 |
to get the number of files in /var/log |
I have a Ubuntu server where there was a problem with .local address, i could’t look up the zone from the server. After a little search i found that Avahi (Zeroconf) was the problem....
First you need to install: http://www.vmware.com/download/download.do?downloadGroup=VI-RCLI-U2 This is a vmware Remote CLI tools. Install it on a windows machine. After you install remember to log out and the log in, else you will get...
Setting up Pure ftpd to run on certains port is very simple. Log on to you linux box and run this command: echo “60010 60030” > /etc/pure-ftpd/conf/PassivePortRange /etc/init.d/pure-ftpd restart or if you run mysql...
Sidste kommentar