LinuxQuestions.org Member Success StoriesJust spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Coolest or best? The best thing I ever did was get rid of windows. The coolest thing I'm going to do is get my roommate's plasmon D dvd disk changer robot working from linux and have it so windows can access it like a normal network drive. I'll get there eventually. (it will be cool because I'll be using open source software all available in linux but not windows which he uses he can can't get it working autonomously through windows
I figured out how to use rsync to back up my system in Alabama to my father's in Florida (and vice versa). Both of us have suffered grievous losses of data, so this takes a lot of worry off my mind. Next step: learn to program cron to do backups automatically and periodically.
I think the coolest thing I've done is log in to the webserver that hosts my website http://shakingthetree.info with ssh.
I move files around, delete old ones, I even use vi editor to edit the css and html files. Why waste time with ftp clients and downloading and uploading? This is the fastest way to edit a hosted file. For example, my band changed the name of one of our songs. i just went with:
This replaced all instances of "get_what_you_need.mp3" with "Want_What_You_Have.mp3." from the beginning of the file to the end. It took about 2 minutes to log in, do this, save and quit the file, then turn off the ssh client.
- running crontab job on desktop-enabled server pc
- opens webpages in firefox once a day
- saves entire page as .png
All this running from crontab. Was tricky to get done. Once I had it done
(with loads a help from this forum on bash scripting and the such)
it looked to easy to be true....
here's the first final code version....
Code:
#!/bin/bash
# Supply url (without http!) to grab as 1st argument
# add protocol in front of $1 had to remove line
# forum thinks its a link :)
# Log some stuff (disk space needs to be filled!)
logger "htv: Starting on $site"
# Define our datastorage
vaultDir="/path/to/imgdir"
# Create directory for the site (if nto already there)
mkdir -p $vaultDir/$1
# Here comes the rocket science.
# On the local display, wake up the screen
env DISPLAY=:0 gnome-screensaver-command -p
# Gimme a minute!
sleep 1
# On the local display, start firefox to grab png for the provided URI.
# With -savedelay 10000 we are waiting 10 secs for the page to load (connection might be slow)
# For this to work, get the plugin at http://pearlcrescent.com/products/pagesaver
env DISPLAY=:0 firefox -saveimage $site -savedelay 10000
# We need to wait until it all completed.
firefoxRunning=`ps aux | grep firefox | grep Sl | wc -l`
while [ $firefoxRunning -gt 0 ]
do
logger "htv: Waiting 1 sec on firefox"
sleep 1
firefoxRunning=`ps aux | grep firefox | grep sl | wc -l`
done
# Notify firefox ready
logger "htv: firefox seems to be done"
# Take todays date as mmddyyyy
date=`date +%m%d%Y`
# Use the date to rename and move the png to datastorage
# We don’t know filename, as pagewrite (free) saves as <title> from HTML
cd /path/to/firefox/downloadFolder
for i in *.png;
do
mv "./$i" "/$vaultDir/$1/$date.png";
done
# Finally put the screen back to sleep
env DISPLAY=:0 gnome-screensaver-command -a
This is probably pathetic but installing Gentoo from the minimal CD was very cool for me. Oh and I had to recompile kernel to get my sound working and also hack the Xorg.conf file to get graphics acceleration.
- running crontab job on desktop-enabled server pc
- opens webpages in firefox once a day
- saves entire page as .png
All this running from crontab. Was tricky to get done. Once I had it done
(with loads a help from this forum on bash scripting and the such)
it looked to easy to be true....
here's the first final code version....
Code:
#!/bin/bash
# Supply url (without http!) to grab as 1st argument
# add protocol in front of $1 had to remove line
# forum thinks its a link :)
# Log some stuff (disk space needs to be filled!)
logger "htv: Starting on $site"
# Define our datastorage
vaultDir="/path/to/imgdir"
# Create directory for the site (if nto already there)
mkdir -p $vaultDir/$1
# Here comes the rocket science.
# On the local display, wake up the screen
env DISPLAY=:0 gnome-screensaver-command -p
# Gimme a minute!
sleep 1
# On the local display, start firefox to grab png for the provided URI.
# With -savedelay 10000 we are waiting 10 secs for the page to load (connection might be slow)
# For this to work, get the plugin at http://pearlcrescent.com/products/pagesaver
env DISPLAY=:0 firefox -saveimage $site -savedelay 10000
# We need to wait until it all completed.
firefoxRunning=`ps aux | grep firefox | grep Sl | wc -l`
while [ $firefoxRunning -gt 0 ]
do
logger "htv: Waiting 1 sec on firefox"
sleep 1
firefoxRunning=`ps aux | grep firefox | grep sl | wc -l`
done
# Notify firefox ready
logger "htv: firefox seems to be done"
# Take todays date as mmddyyyy
date=`date +%m%d%Y`
# Use the date to rename and move the png to datastorage
# We don’t know filename, as pagewrite (free) saves as <title> from HTML
cd /path/to/firefox/downloadFolder
for i in *.png;
do
mv "./$i" "/$vaultDir/$1/$date.png";
done
# Finally put the screen back to sleep
env DISPLAY=:0 gnome-screensaver-command -a
Pause for NUMBER seconds. SUFFIX may be `s' for seconds (the default), `m' for minutes, `h' for hours or `d' for days. Unlike most implementations that require NUMBER be an integer, here NUMBER may be an arbitrary floating point number.
Coolest thing I ever did is what I'm doing now-
Downloading different distro's, extracting the .iso's to see what's inside and smashing them all together into a DVD using make_iso.sh
This morning's Brew includes-
BackTrack3-Final
CentOS-5.2-LiveCD
Debian-Lenny-LXDE-LiveCD
Fedora-10-SugarSpin
grml-full-2008-11
Knoppix-V6.0.1
NetbootCD-2.2 + Slax-6.0.9
SimpleSlax-20070930
Phantomix-4.0.2
If I can successfully put'em together I'm gonna upload the "how-to" to a filesharing site so newbie's can put together this MultiDistro Linux Disco.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.