Google
 

Linux Distro Counter

Welcome to Open Source Software and Linux Blog.

Hi, everyone!. I just created this blog to share knowledge about open source software and Linux. If you all have knowledge and info related to open source / Linux, please share or send me an email. Thanks ^_^

Wednesday, May 30, 2007

How to mount CD-ROM in console (no GUI)

Not everybody using a latest PC or Server. Some administrator prefer to install linux without GUI (just console) at old server/PC to run it smoothly. This is the way how to mount cd-rom on console.

1. Go to /mnt with this command
:~# cd /mnt

2. Create directory 'cdrom' with command:
:~# mkdir cdrom

3. Run this command
:~# mount /dev/cdrom /mnt/cdrom

How to check the mount process is success:

1. Insert the cd into cd-rom drive
2. Go to /mnt/cdrom with this command and list it to see what contents in your cd.
:~# cd /mnt/cdrom
:~# ls

That's all.

Wednesday, May 23, 2007

How to look IP address in Linux and Windows(not opensource software)

To look IP address in Linux:
1. Open terminal
2. Type "ifconfig" without "". It's will show like picture below:


To look IP address in Windows:
1. Open Windows command prompt
2. Type "ipconfig". It's will show like picture below:



The defferences is linux use "ifconfig" and windows "ipconfig" ^_^

How to implement a hosts.allow and hosts.deny (tcpwrappers)

To make your server block and allow some deamon process like sshd, ftpd and etc; use this configuration:

1. Open terminal
2. su - if you not a root user
3. Use your favorite editor like vi or nano. In this case I use vi editor.
4. Type "vi /etc/hosts.deny" without "".
5. At the buttom line just type "ALL:ALL:deny" to restricted all of deamon process
6. Save it.
7. Open "/etc/hosts.allow" with vi editor
8. At the buttom line "ALL:(some ip that you allow):allow" to allow anything from my IP address
9. Save it.

Done.

You can test to use sshd or ftpd to the server from others pc/server.

Tuesday, May 22, 2007

How to make sure your pc are use HyperThreading processor on Linux?

To make sure you PC or server running on HyperTreading processor is easy. This is the best way; even though you have utility software to check it.

1. Open your terminal
2. login as root if you not on root user. Use "su -" without "" command to login as a root.
3. Type "top" without ""
4. Press button 1 on your keyboard and you will see such as picture below.

Linux Games Links

These is some links for Linux games:

http://www.linuxgames.com/
http://happypenguin.org/

Enjoy! :-)