If you've ever had a DVD that was having problems you might want to consider trying out ddrescue. I used it on a video that had one too many scratches on it and it created a reusable iso that worked well enought to watch.
user@machine-> aptitude show ddrescue
Package: ddrescue
State: installed
Automatically installed: yes
Version: 1.13-3
Priority: optional
Section: universe/utils
Maintainer: Ubuntu MOTU Developers
Uncompressed Size: 77.8k
Depends: libc6 (>= 2.5-0ubuntu1)
Description: copies data from one file or block device to another dd_rescue is a tool to help you to save data from crashed partition. It tries to read and if it fails, it will go on with the next sectors where tools like dd will fail. If the copying process is interrupted by the user it is possible to continue at any position later. It can copy backwards.
Wednesday, February 6, 2008
How To Fix A Bad DVD
Posted by Joseph at 10:42 PM 0 comments
Labels: linux command
rdesktop Minimize From Full Screen
After spending the time to get a Xubuntu workstation to VPN into a Windows environment I realized that I've become accostomed to using Windows Remote Desktop in full screen however when running rdesktop in full screen the small bar at the top that allow you to minimize didn't appear. The solution is easy however, CTRL+ALT+ENTER and it reduced size so you can see your XFCE panel.
If you're not sure how to launch rdesktop in full screen here is an example of the command that is launched from an icon on my panel.
rdesktop -T "AD Main" -d ADDomain -u ADAdmin -f -a 15 -P 192.168.0.1
Posted by Joseph at 6:47 AM 1 comments
Labels: linux
Tuesday, February 5, 2008
021 no connection named [OpenSWAN]
Since it had been over a year since I had last used OpenSWAN I couldn't remember why this error occurred. Searching Google for 021 no connection named "blah" was not producing a fix. Finally, and I admit this a little embarrassed I read the manual and found that I had forgot to do after configured the /etc/ipsec.conf file.
user@machine ~> sudo ipsec auto --add myconnection
So if you see the following in the future don't forget to add the connection.
user@machine ~> sudo ipsec whack --name myconnection --initiate
021 no connection named "myconnection"
Posted by Joseph at 1:00 PM 5 comments
Labels: linux, linux command, vpn
Restarting Pluto [OpenSWAN]
If you've suffered the same fate as I have...the inability to locate solutions on restarting pluto aside from the infamous RTM this post if for you.
First we'll make sure pluto is running and get the PID
user@machine ~> sudo ipsec setup --status
IPsec running - pluto pid: 8794
pluto pid 8794
No tunnels up
Now we restart everything related to ipsec
user@machine ~> sudo /etc/init.d/ipsec restart
ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: Starting Openswan IPsec 2.4.6...
ipsec_setup: insmod /lib/modules/2.6.22-14-generic/kernel/net/key/af_key.ko
ipsec_setup: insmod /lib/modules/2.6.22-14-generic/kernel/net/ipv4/xfrm4_tunnel.ko
ipsec_setup: insmod /lib/modules/2.6.22-14-generic/kernel/net/xfrm/xfrm_user.ko
Last but not lease lets make sure pluto restarted and has a new PID
user@machine ~> ipsec setup --status
IPsec running - pluto pid: 9193
pluto pid 9193
No tunnels up
There are probably other ways of accomplishing this as well however so if you know please add a comment letting everyone know.
Posted by Joseph at 12:57 PM 0 comments
Labels: linux, linux command, vpn