LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

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

Posted 01-03-2011 at 12:30 AM by MrCode
Updated 01-03-2011 at 12:40 AM 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:

Code:
$ 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)
Member
Views 17210 Comments 8 MrCode is offline
Old

Slackware-13.1-Hacks-Emptying trash files

Posted 01-02-2011 at 12:10 AM 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 1378 Comments 1 arniekat is offline
Old

Slackware-13.1-Hacks-Changing System Time

Posted 01-01-2011 at 11: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 pool.ntp.org

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 1044 Comments 1 arniekat is offline
Old

Slackware-13.1-Hacks-Mount ISO Image

Posted 01-01-2011 at 11: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 11725 Comments 4 arniekat is offline
Old

Slackware-13.1-Hacks-Emptying tmp

Posted 01-01-2011 at 11: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 945 Comments 1 arniekat is offline

  



All times are GMT -5. The time now is 03:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration