LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

silly bash cgi script

Posted 07-15-2011 at 07:50 AM by peonuser
Updated 07-31-2011 at 11:19 PM by peonuser

http://www.instructables.com/id/Simp...om-a-web-page/
Member
Posted in Uncategorized
Views 425 Comments 0 peonuser is offline
Old

Hi

Posted 07-15-2011 at 12:54 AM by Chankey Pathak

Hello world!
LQ Newbie
Posted in Uncategorized
Views 335 Comments 0 Chankey Pathak is offline
Old

pwm and saving file space.

Posted 07-14-2011 at 08:45 AM by peonuser

Wrote a little freebasic program that did not require any extra hardware to experiment with pwm.

Code:
01	cls
02	for x = 1 to 50
03	for y =1 to x
04	locate 1,1
05	?"1";
06	for z = 1 to 500000 step 5
07	next z
08	next y
09	for a = 1 to 50 -x
10	locate 1,1
11	?" ";
12	for z = 1 to 500000 step 5
13	next z
14	next a
15	next x

Automated...
Member
Posted in Uncategorized
Views 408 Comments 0 peonuser is offline
Old

vpnc auto-reconnect script

Posted 07-14-2011 at 02:05 AM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 07-15-2011 at 01:38 AM by rocket357

A native Cisco VPN client doesn't exist for OpenBSD, so I wrote this little script to make vpnc more useful. It detects when the vpn tunnel fails and re-establishes it.

Code:
#!/bin/ksh

# This script was developed on OpenBSD with ksh as the primary shell.

# set INT_SERVER to a list of 5 ping-able machines behind your vpn gateway
# ip addresses can be repeated if you have less than five machines.
set -A INT_SERVER 192.168.1.16 192.168.1.201
...
Member
Posted in Uncategorized
Views 13144 Comments 2 rocket357 is offline
Old

Convert ext2 to ext3 file system

Posted 07-13-2011 at 11:31 PM by blue_print

The conversion procedure is very simple enough. Let us assume /dev/sda6 (ext2 now) mounted on /convert. You will be seeing fstb entries like,
Code:
/dev/sda6         /convert             ext2    defaults        0 0
Unmount the partition
Code:
umount /dev/sda6
Enable Journal (converting to ext3) using tune2fs command,
Code:
tune2fs -j /dev/sda6
Edit /etc/fstab and for /dev/sda6 change the file system type to ext3. Finally, the entry should be like this,
Code:
/dev/sda6
...
Member
Posted in Linux Basics
Views 4455 Comments 1 blue_print is offline

  



All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration