Category: Linux
-
Load Linux Kernel module on boot
Edit the /etc/modules file and add the name of the module (without the .ko extension) on its own line. On boot he kernel will try to load all the modules named in this file.
-
Switch your CentOS systems to Oracle Linux
From https://linux.oracle.com/switch/centos/ Simply use the following two commands : curl -O sh centos2ol.sh after a few downloads and updates, bang. You’re running Oracle Enterprise Linux.
-
Mount ISO images under Linux
Procedure to mount ISO images under Linux 1) You must login as a root user, if not root user then switch to root user using following command: $ su – 2) Create the directory i.e. mount point: # mkdir -p /mnt/disk 3) Use mount command as follows to mount iso file called disk1.iso: # mount…
-
Boot linux into single user mode
Press Esc when prompted during boot up. hit “e” for edit The lines for the boot appear, including the kernel line. I hit “e” on the kernel line and add the word single to the end of the line hit “b” for boot.
-
Cron on Linux
Today I found a very good explaination on how Cron works on linux here : Cron on Linux. It’s well set out and explained. Very helpful.
-
Open Linux Firewall Port
Open port 80 Open flle /etc/sysconfig/iptables: # vi /etc/sysconfig/iptables Append rule as follows: -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT Save and close the file. Restart iptables: # /etc/init.d/iptables restart via http://www.cyberciti.biz/faq/howto-rhel-linux-open-port-using-iptables/
-
How to mount a windows share in Linux
1) Make sure you have following information: ==> Windows username and password to access share name ==> Sharename (such as //server/share) or IP address ==> root level access on Linux 2) Login to Linux as a root user (or use su command) 3) Create the required mount point: # mkdir -p /mnt/ntserver 4) Use the…
-
How to turn on or off colors in bash
Type the following command for just this listing, $ ls –color=none Or remove the alias with the unalias command: $ unalias ls via How to turn on or off colors in bash.
-
How to change hostname in Linux
I’m trying to build an Oracle RAC system at work to understand how it works better. As part of this I had to build three Linux systems. I built one, then cloned it (it was a virtual machine in VMware). But having done that, it of course kept the hostname of the first machine. So…
-
Dropbox Secure backup, sync and sharing made easy.
I was reading a post over on LifeHacker about some the Top 10 Ubuntu downloads and one of the applications they mentioned was Dropbox. I’d seen the name around before but hadn’t gotten around to trying it yet. So I decided it was time. It’s pretty good. If you use Windows, Ubuntu or Red Hat…