linux poison RSS
linux poison Email
0

HowTo create and use RAM disks

The following example will create a RAM Disk 1M in size:

# dd if=/dev/zero of=/dev/ram bs=1k count=1000
# mke2fs -m0 /dev/ram 1000
# mkdir /mnt/ram
# mount /dev/ram /mnt/ram
Read more
1

htaccess Editor: create .htaccess online

.htaccess Editor is a free Web 2.0-like tool that lets you quickly generate .htaccess files for your hosted website. To use, simply select a category on the left, and edit the parameters to your liking on the right. Then observe as .htaccess Editor sticks the proper code in the textbox at the bottom.

When you've set all of your parameters, simply copy/paste the generated text into a file that you call .htaccess and put it in the root folder of your website's files (something like "public_html" if you're using a hosting company) or a subdirectory of that folder. The tool lets you set things like basic authentication, redirects, default pages, error pages (like 404), and access restrictions.


Read more
0

After 50,000 visitors, here are some of the statistics – Firefox wins

After getting 50,000 plus visitors to my blog, here are some of the interesting statistics from Google Analytics.


Top 10 Browsers









Top 10 OperatingSystems










Top 10 OS/Browser Combinations









Top 10 Country













Top 10 SearchEngine










Top 10 Content/Post
Read more
1

"init: Id "x" respawning too fast: disabled for 5 minutes."

In most distributions this means that the system is booting by default into runlevel 5, which is supposed to respawn (re-start again after it’s been exited) a graphical login via xdm, kdm, gdm, or whatever, and the system can’t locate the program.

However, “Id” can also indicate the absence or misconfiguration of another program, like mingetty, if init tries to respawn itself more than 10 times in 2 minutes.

Id “x” is the number in the leftmost column of the /etc/inittab file:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

Commenting the offending line out and then fixing the errant program and testing on the command line will allow you to see any error messages that go to standard error output (console) if the errors are not going to the system log file. Uncomment the line and restart init
with “kill -SIGHUP 1″ or “telinit q” to cause init to reinitialize and reread the /etc/inittab file.

Some systems, however, rewrite /etc/inittab when booting. In that case, refer to the init man page, and/or the settings in /etc/sysconfig/init.

Refer to the init and /etc/inittab man pages for detailed information.
Read more
0

Linux Runlevels explained

Mode Directory Description
0 /etc/rc.d/rc0.d Halt
1 /etc/rc.d/rc1.d Single-user mode
2 /etc/rc.d/rc2.d Not used (user-definable)
3 /etc/rc.d/rc3.d Full multi-user mode (no GUI interface)
4 /etc/rc.d/rc4.d Not used (user-definable)
5 /etc/rc.d/rc5.d Full multiuser mode (with GUI interface)
6 /etc/rc.d/rc6.d Reboot
Read more
Related Posts with Thumbnails