Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Blogs
User Name



Something to do if you're REALLY bored...

Posted 01-02-2011 at 11:30 PM by MrCode
Updated 01-02-2011 at 11:40 PM by MrCode
Tags boredom

I've come up with a little something you can do with dd and SoX if you're really bored and can't think of anything else to do:

$ dd if=<whatever file here> of=<whatever output file here> bs=<1024/512>k skip=<# of MiB to skip through the file (or in increments of 0.5 MiB if you supplied 512k as the block size)> count=<MiB of content (or in increments of 0.5 MiB)>
$ play -q -t raw -s -b 16 -v 0.03125 -c 2 -r 48k <output file from dd>
Attached Files
File Type: txt isoechoexample1.oga.txt (159.2 KB, 7 views)
Views 23187 Comments 8 MrCode is offline

Slackware-13.1-Hacks-Emptying trash files

Posted 01-01-2011 at 11:10 PM by arniekat

These instructions are for deleting files that will not go away when you empty the trash using the icon on your desktop.

The trash files are kept in /home/<user_name>/.local/share/Trash/files

$ su
$ <Root_Password>

# cd /home/<user_name>/.local/share/Trash/files
# rm -rf /home/<user_name>/.local/share/Trash/files/files_that_wont_go_away
LQ Newbie
Posted in Uncategorized
Views 1744 Comments 1 arniekat is offline

Slackware-13.1-Hacks-Changing System Time

Posted 01-01-2011 at 10:39 PM by arniekat

This will adjust your system time and correct it using a Stratum 2 Time Server. The quickest way to change your system time is to do the following:

$ su

$ <Root_Password>

# ntpdate

You should see confirmation that it worked. The second way of doing this (in case the first way did not work) is to get the IPV4 address or hostname of a Local (meaning in your time zone) Stratum 2 Time Server from the following website:...
LQ Newbie
Posted in Uncategorized
Views 1275 Comments 1 arniekat is offline

Slackware-13.1-Hacks-Mount ISO Image

Posted 01-01-2011 at 10:18 PM by arniekat

Suppose you have an ISO Image of a CD/DVD and you want/need to get some information off the disc image. You can mount it as a filesystem and use your file browser to see its contents.

Create a directory to mount the ISO Image:

$ su
$ <Root_Password>
# mkdir -p /mnt/disk

Now mount the *.iso file system to the mount point:

# mount -o loop /<Path_To_ISO_Image>/<Name_of_ISO>.iso /mnt/disk
# cd /mnt/disk...
LQ Newbie
Posted in Uncategorized
Views 16105 Comments 4 arniekat is offline

Slackware-13.1-Hacks-Emptying tmp

Posted 01-01-2011 at 10:09 PM by arniekat

# This will empty the /tmp folder when you shutdown or
# reboot the machine
# Add this line to /etc/rc.d/rc.6

echo "Emptying /tmp"
rm /tmp/* -rf &1>2 > /dev/null

The /dev/null part gets rid of any output/error codes.

I placed it between the following sections in /etc/rc.d/rc.6

# Save the system time to the hardware clock using hwclock --systohc.
if [ -x /sbin/hwclock ]; then
# Check...
LQ Newbie
Posted in Uncategorized
Views 1075 Comments 1 arniekat is offline


All times are GMT -5. The time now is 07:23 PM.

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