Archive for category Linux
Ubuntu for 30 Days – Day 3 thru 10
Posted by clamasters in Linux, Ubuntu, blog on July 13th, 2009
I was a little busy with work and baby prep so I really wasn’t on the computer all that much however, I am really liking the shear number of applications that are at my finger tips. I started using workspaces a bit more. At home I only have a single 17″ monitor, I know I know. Hopefully it’s only temporary. I’m used to having duals at work so it’s a bit of a change.
I will say that I am liking Rhythmbox as my music player and started using Miro for my video podcasts or videocasts…whatever you want to call them. I really only watch Hak5 so far but I’m sure I’ll be adding more in the future.
I had been having some problems staying connected to my VPN at work via the Cisco VPN app so I really haven’t been interfacing to my work from home a lot except from my eeePC. I want to do a site to site from home to work but I’m sure my employeer wouldn’t want that.
Sorry for the boring update, hopefully some good stuff coming up.
Ubuntu for 30 Days – Day 2
Posted by clamasters in Linux, Ubuntu on July 2nd, 2009
Until about an hour ago, tonight’s Ubuntu experience was “meh”. I really couldn’t think of anything that I actually wanted to do. I then remembered that the pictures needed offloaded from our camera from Jessica’s baby shower. After a little wrestling with a bad cable connection (camera’s fault) I was greeted with a happy to import greeting from “f-spot”. For such a simple application it has some neat features including the ability to export as a gallery which I like to do from time to time. Here is a quick example. I do have to say, the photo management in f-spot is pretty good. I still went ahead and installed the Ubuntu package for Picasa. I use the web albums as a backup for any of my photos so it makes sense. It appears that all the features of the Windows version are in the Linux version as well so no lack luster there.
I’m still enjoying the simplicity of Rhythmbox as the music player. Connected to last.fm it plays much like Pandora does and I really like the popups to let me know what song/artist is playing.
Doing my everyday tasks (gmail, wordpress, etc.) really is not effected by the use of Ubuntu as they are all browser based. I upgraded my install of wordpress today and needed an application like WinSCP for Ubuntu. Turn’s out that it’s built in. NEAT… Go to “Places” –> “Connect to Server” then using SSH as the connection type I was given a file/folder manager access to my server via SFTP/SSH.
So far so good.
Ubuntu for 30 Days – Day 1
Posted by clamasters in Linux, Ubuntu, blog on July 1st, 2009
Tonight was a little rocky for Mr. Ubuntu. I was trying to help my father out with an Outlook Express issue obviously on a Windows machine. My typical remote access solution would not work as it requires Windows as the support PC. However, I went ahead and tried to do a terminal server connection to a server on his network and then launch the application. In this case ShowMyPC. The connection was SLOW!!! I then started searching around for something that was cross compatible. I found YuuGuu but apparently am too dumb to figure it out.
Does anyone have a recommendation for remote support TO Windows and OS X workstations and servers FROM linux? Preferably Ubuntu. I prefer free solutions but would be willing to pay a small fee if needed as long as it also supported support from Windows as I could use it from my job.
On a softer note, I do like RhythmBox. I want to get Pandora playable inside there but that can come later.
Setting up VPNC and the Network Manager VPN piece was pretty easy. All through apt-get… I needed this to connect into my work place and do time entries and remote support stuff.
So far so good. With the exception to remote support to Windows based clients, I’m pretty rock solid on Ubuntu.
5 Minute Cron Tutorial – Linux Task Scheduler
Posted by clamasters in Linux, blog on August 19th, 2008
Cron is an exceptionally useful tool in the Linux world where administrative tasks can easily be rolled up into shell, php, perl, and python scripts among other things. Per a website that I just came across, the word cron comes from the Greek word chronos which means time.
First, lets setup the environment. I use VI as my text editor on Linux and you can view my “60 second VI tutorial” on here as well. To ensure that VI will be our crontab (cron table) editor we will need to edit your “.profile” file for whatever user you are going to be logged in with (typically root).
vi /root/.profile
Add one of thefollowing lines above the second fi to match your preference.
export EDITOR=/usr/bin/vi #if you have just VI installed
export EDITOR=/usr/bin/vim.basic #if you have VIM installed
Ensure that you save it with :wq.
Now that we have that out of the way, lets start scheduling tasks.
Since backups are traditionally something that you would want to automate or schedule, I’ll use it as my main example but first I’ll break down the cron scheduling syntax.
| Field | Meaning (input) |
| 1 | Minutes (0-59) |
| 2 | Hours (2-24) |
| 3 | Day of the Month (1-31) |
| 4 | Month (1-12) January thru December |
| 5 | Day of the week (0-6) Sun thru Sat |
| 6 | User to execute the command |
| 7 | Command to execute |
0 2 * * * root tar czf /var/backup/www.tar.gz /var/www >> /dev/null 2>&1
With the above example and the table of what each field does, you get can put together that at 0200 or 2:00 AM every day root will be running “tar czf /var/backup/www.tar.gz /var/www >>/dev/null 2>&1″ which is telling tar to tar up /var/www into /var/backup/www.tar.gz and /dev/null 2>&1 is a way to have the command put any output into a “trash can” if you will Alternately you can specify a log file for that output to go with “>> /var/log/cronforcommand.log 2>&1″. The * in a schedule means to omit that portion of the schedule.
That one was pretty basic so I’ll get a little more complicated now. Matter of fact, I’ll just skip the user and command to execute from now on and focus on the command structure for scheduling with cron
EXAMPLES:
Every Minute – * * * * *
Every 5 Minutes – 0,5,10,15,20,25,30,35,40,45,50,66 * * * *
Every 5 Minustes (Simple) – */5 * * * *
Every Hour – * */1 * * *
Every 2 hours – * */2 * * *
Every Day @2:00 AM – 0 2 * * *
Every Day @ 6:00 PM – 0 18 * * *
Every Sunday @ 3:15 AM – 15 3 * * 0
On Feburary 11 @ 10:00 PM – 0 22 11 2 *
That pretty much covers the majority of typical uses for cron. Obviously this is a very powerful tool and can do so much more but for this post, I think it’ll do. If I messed anything up , please let me know.Â
Enjoy.
Excelent Time Management Video – Randy Pausch
Posted by clamasters in Linux, blog on August 11th, 2008
At work, I find it somewhat hard to stay on task. I like it when I get real material things that can help manage my time. One of they guys I work with sent me a link for this lecture by Randy Pausch. As he recently passed due to cancer, this speaks volumes for his character as he had approximately 3 months to live at the time of this talk. Please enjoy.