Linux Blog

Upgrading Slackware to Current

Filed under: Linux Video Tutorials — TheLinuxBlog.com at 12:09 am on Tuesday, July 29, 2008

Hey there everyone!

I actually made this Linux video tutorial on how to upgrade Slackware to Current quite some time ago but forgot to post it. The sound quality of this video is not the best, so I’d adjust the volume if I were you.

Anyhow, here is the video:


on a side not there are more Linux Video Tutorials to come!

Suspend Scripts for the Toshiba Tecra M2

Filed under: Quick Linux Tutorials,Shell Script Sundays — TheLinuxBlog.com at 12:15 am on Sunday, March 30, 2008

As you may know if you are a regular reader I own a Toshiba Tecra M2. One of the things that annoyed me was I had to turn the brightness up every time my computer came out of standby mode. A fix for this is to adjust the brightness every time the computer comes out of standby mode.

The script is intended to be run under cron. I have mine set up to suspend after 5 minutes of the lid being closed.

if [ $(cat /proc/acpi/button/lid/LID/state | sed 's/state:      //') == "closed" ]; then
VAR=$(cat /proc/acpi/toshiba/lcd | sed 's/brightness:              //' grep -v levels);
sudo su -c "echo mem > /sys/power/state";
if [ $VAR -eq 1 ]; then
ACTION=ADD;
elif [ $VAR -eq 7 ]; then
ACTION=SUB;
else
ACTION=ADD;
fi;
if [ $ACTION == "ADD" ]; then
VAR=$(($VAR + 1));
else
VAR=$(($VAR - 1));
fi;
sudo su -c "echo brightness:$(echo $VAR) > /proc/acpi/toshiba/lcd";
fi;

I run this with the following cron entry:

*/5 * * * * sh hibernate.sh

The script first checks the current brightness. If the brightness is currently 1 or 7 it adjusts the mathematic operation so that when the laptop is opened the brightness is adjusted. Basically if the brightness is one, it adds one. If the brightness is 7 or any other value it subtracts one. This is currently working out quite well for me. I don’t know how useful this is to any body else, unless you happen to have a Toshiba that is doing the same thing but it should give you a good overall idea of how to perform basic mathematic operations in bash.

Slackware-Current Xfce 4.4.2 Updates

Filed under: General Linux,Linux Software — TheLinuxBlog.com at 1:33 pm on Wednesday, December 5, 2007

Slackware 12 - Current, Firefox, Xfce 4.4.2 Screenshot.I upgraded my Slackware Box to Slackware-Current yesterday and there are many updated packages. Here is the Slackware Current Changelog.

Included is Xfce 4.4.2, this is the newest Xfce and has many bug fixes and a minor security bug fix in terminal. For the entire list you can look at the Xfce – 4.4.2 changelog

Firefox 2.0.0.11 is in this release which is good because sometimes the current repository contains older versions of Firefox.

The screenshot is just a screenshot of the GetFireFox page. Also, you will notice the nice transparencies feature of Xfce. Click it for the larger version.

MPlayer Installer

Filed under: The Linux Blog News — TheLinuxBlog.com at 7:54 am on Monday, December 3, 2007

The current MPlayer Installer script that I uploaded to this site had a slight problem.

mplayer_setup.sh: line 9: rm-rf: command not found

I have fixed the spacing issue and re-uploaded the file.

Once I had done this I tried reinstalling again just to make sure it works and found out that it doesn’t work any more. The reason being the MPlayer package has been removed.

That being said I am going to be working on a new version of the Slackware Mplayer Installer but the first priority is to make the installer work. I will be swapping the essential codec pack to the all codec pack bundle. Then I will be working on making the installer more user friendly.

Hang tight, I should have it fixed soon. Once it is, I’ll make another post.