Before nuking the old machine
dpkg --get-selections | grep -v deinstall > dpkg-selections
tar czfv etc-apt.tgz /etc/apt dpkg-selections (copy etc-apt.tgz to another machine or usb)
After Reinstall/upgrade OS
untar etc/apt and copy back to /etc
tar xzfv etc-apt.tgz
(NOTE: if you are upgrading, replace the old build for the new build in sources and in source-list.d. ie: replace karmic with lucid, if you do this some apps may not install specially any ppa's you've added)
apt-get update
dpkg --set-selections < dpkg-selections
apt-get apt-get dselect-upgrade
Showing posts with label Tech. Show all posts
Showing posts with label Tech. Show all posts
Friday, April 30, 2010
Saturday, November 21, 2009
Wednesday, June 10, 2009
Linux: Find ip of known MAC address
Useful for DHCP only networks where you can't get a reservation and have multiple machines (laptop / desktop) and you reservations are short. Requires nmap, and nmap must run as root to get the scan the subnet and get the MAC. Copy and paste this into a script file.
#!/bin/bash
# enter known values
other_mac=00:00:00:00:00:00 <-- change for the mac of the machine you want to find
subnet=1.2.3.1-254 <--change for your subnet
# don't modify from here on down
# set current date stamp
prefix=`echo $subnet | /usr/bin/cut -d "." -f1`
# find the mac of wanted pc with nmap and get current ip
# requires nmap, and nmap has to run as root, you can add your account to sudoers with visudo
# username ALL= NOPASSWD: /usr/bin/nmap
newip=`/usr/bin/sudo /usr/bin/nmap -nsP $subnet | /bin/grep -B1 -i "$other_mac" | grep $prefix | /usr/bin/cut -d " " -f2 | egrep -iv "[a-z]|[A-Z]"`
#do whatever you want here, add to your hosts file, launch command with ip, etc...
#vncviewer $newip -compresslevel 0 -quality -5
echo $newip
#!/bin/bash
# enter known values
other_mac=00:00:00:00:00:00 <-- change for the mac of the machine you want to find
subnet=1.2.3.1-254 <--change for your subnet
# don't modify from here on down
# set current date stamp
prefix=`echo $subnet | /usr/bin/cut -d "." -f1`
# find the mac of wanted pc with nmap and get current ip
# requires nmap, and nmap has to run as root, you can add your account to sudoers with visudo
# username ALL= NOPASSWD: /usr/bin/nmap
newip=`/usr/bin/sudo /usr/bin/nmap -nsP $subnet | /bin/grep -B1 -i "$other_mac" | grep $prefix | /usr/bin/cut -d " " -f2 | egrep -iv "[a-z]|[A-Z]"`
#do whatever you want here, add to your hosts file, launch command with ip, etc...
#vncviewer $newip -compresslevel 0 -quality -5
echo $newip
Monday, June 08, 2009
Ubuntu Jaunty: Gmail as default mailto: handler
First, make Firefox 3 use Gmail for sending page links (right click Send Link) and handling mailto: links.
- Open Firefox
- Click Edit/Preferences
- Click Applications
- Find mailto: and change to "Use Gmail"
- On your desktop toolbar, click System/Preferences/Preferred Applications
- On the "Internet" tab, Mail Reader, change to Custom
- In the "Command" box type: firefox %s
- Click close to save your new settings.
- Right click on any file and click "Send to..."
- Change Send as: to "Email (Evolution)"
- Put email address in the Send to box.
- Click Send.
Friday, June 05, 2009
Ubuntu Jaunty: Getting WMV to Play
Add the medibuntu repo's and get them approved
install smplayer and the supporting codecs and libraries
that should do it. if you are not running jaunty, just rename the jaunty bits to your distro on medibuntu, that "should" work.
UPDATE
Alternatively, install this package (which I haven't tested) to play and record most common multimedia formats, including MP3, DVD, Flash, Quicktime, WMA and WMV, including both standalone files and content embedded in web pages. (should work for Jaunty, Ibex and Hardy)
- sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
- sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
install smplayer and the supporting codecs and libraries
- sudo apt-get install w32codecs libdvdcss2 mozilla-mplayer smplayer
that should do it. if you are not running jaunty, just rename the jaunty bits to your distro on medibuntu, that "should" work.
UPDATE
Alternatively, install this package (which I haven't tested) to play and record most common multimedia formats, including MP3, DVD, Flash, Quicktime, WMA and WMV, including both standalone files and content embedded in web pages. (should work for Jaunty, Ibex and Hardy)
- sudo apt-get install ubuntu-restricted-extras
Wednesday, November 12, 2008
How to Fix WebEx in Ubuntu (Hardy,Ibex)
Webex uses a Java client that will not work on a default installation of Ubuntu (Hardy or Ibix) the following steps will fix that. This works for viewing/listening to live and recorded presentations. I don't know if it will work for remote desktop sharing.
(works for 32bit, I'm told it doesn't in 64bit)
1. sudo apt-get install libstdc++5 sun-java6-plugin
2. Edit your ~/.profile and add these two lines:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.66
export PATH=$JAVA_HOME/bin:$PATH
3. Restart X by logging off/on or ctrl+alt+backspace
(works for 32bit, I'm told it doesn't in 64bit)
1. sudo apt-get install libstdc++5 sun-java6-plugin
2. Edit your ~/.profile and add these two lines:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.66
export PATH=$JAVA_HOME/bin:$PATH
3. Restart X by logging off/on or ctrl+alt+backspace
Thursday, November 06, 2008
Thursday, October 23, 2008
Wednesday, October 22, 2008
Tuesday, October 21, 2008
Tuesday, October 07, 2008
Tuesday, September 16, 2008
10 surprising things about Windows Server 2008
10 surprising things about Windows Server 2008 - Program - Windows - Builder AU
"There is nothing particularly flashy or standout about it. But at the same time, it is a solid, high quality product. And that is exactly what system administrators need."
"There is nothing particularly flashy or standout about it. But at the same time, it is a solid, high quality product. And that is exactly what system administrators need."
Friday, August 08, 2008
Tuesday, July 29, 2008
Tuesday, June 03, 2008
Thursday, May 29, 2008
G.ho.st: A beggining for Israeli-Palestinian peace?
G.ho.st - Home Page, Virtual Computer (VC), Web OS (WebOS) and Online Storage

The wall that separates G.ho.st's Palestinian office in Ramallah from its office in the central Israeli town of Modiin.
The goal of G.ho.st is not as lofty as peace, although its founders and
employees do hope to encourage it. Instead G.ho.st wants to give users
a free, Web-based virtual computer that lets them access their desktop
and files from any computer with an Internet connection. G.ho.st,
pronounced “ghost,” is short for Global Hosted Operating System.
Source: Web Start-Up a Joint Israeli-Palestinian Venture - NYTimes.com
The wall that separates G.ho.st's Palestinian office in Ramallah from its office in the central Israeli town of Modiin.
The goal of G.ho.st is not as lofty as peace, although its founders and
employees do hope to encourage it. Instead G.ho.st wants to give users
a free, Web-based virtual computer that lets them access their desktop
and files from any computer with an Internet connection. G.ho.st,
pronounced “ghost,” is short for Global Hosted Operating System.
Source: Web Start-Up a Joint Israeli-Palestinian Venture - NYTimes.com
Wednesday, February 20, 2008
Monday, February 18, 2008
Subscribe to:
Posts (Atom)
-
Recently I made a bonehead mistake and turned off the web gui for my DD-WRT. Luckily I was able to ssh into it, but that was rather useless ...
-
The historic firearms company has voiced its concern over the rising epidemic of school shootings plaguing the nation. "Enough thoughts...