Skip to content

Category Archives: Linux

Virtualbox Network Bridge in Windows Vista

Getting the Linux guest host to use the same network adapter as windows requires you to create a virtual interface and then bridging it to your physical interface. Pretty interesting stuff.
[Via]

Delete Files Older Than x Days on Linux

 Works in cygwin as well. Bye bye old logs.
find /path/to/files* -mtime +5 -exec rm {} \;
Source: Delete Files Older Than x Days on Linux :: the How-To Geek

Forever For Now – VMWare Player Image Creation

How to get VMWare player running a fresh OS install.  
The trick to getting more out the VMWare Player and VMWare Server than a few premade images is actually two-fold, let me guide you through the process of almost getting a free VMWare Workstation replacement.
Source: Forever For Now – VMWare Player Image Creation

Linux and UNIX df command help

Oh my disk space! 
DF Tells you how much free disk space is available for each mount you have.
df -hdf /directoryname

Source: Linux and UNIX df command help

Ubuntu: How to mount an ISO Image

 Accessing an ISO file without burning is part of a balance diet.
To mount Image (ISO) file
sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop
To unmount Image (ISO) file
sudo umount /media/iso/

Source: Ubuntu:Edgy -

Linux TAR Command

 I’m always forgetting the switches.
create: tar -cvf mystuff.tar mystuff/ tar -czvf mystuff.tgz mystuff/
extracting: tar -xvf mystuff.tar tar -xzvf mystuff.tgz testing/
viewing: tar -tvf mystuff.tar tar -tzvf mystuff.tgz

Source: Linux TAR Command

Create a text file in Linux

 Writing documentation just got a whole lot eaiser.
Create a text file * There are many ways to create a file. Here is a simple three-step method to save text information:
Type cat >newfilename. This puts the cursor at the beginning of a new line, without a prompt.
You can now type or paste (see below) [...]

Setting the Linux Host Name

 Sendmail was taking a while to start up on mrcentos. Had to add an entry in /etc/hosts.
Configuring /etc/hosts
If your IP address is assigned to you by a DHCP server, then /etc/hosts is configured as follows:
127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox
If you have a static IP address, then /etc/hosts is configured as follows:
127.0.0.1 [...]

Installing groups of software

 I was just going to install apache on the machine but this takes care of everything.
Suppose you have not installed “Web Server” packages yet. Here is how you can install them using groupinstall option via yum in FC3.
[tchung@tchung-fc3 ~]$ sudo yum groupinstall “Web Server”

Source: FedoraNEWS.ORG

How to remove unwanted services from centOS Linux

 Fresh OS install at home, left the damn firewall on. This got rid of iptables service.
If you find a package that you do not require then stop the service and prevent it from starting on boot:

service [package] stop
chkconfig [package] off

Source: how to remove unwanted services from centOS Linux