Showing posts with label Tech. Show all posts
Showing posts with label Tech. Show all posts

Friday, April 30, 2010

Re-install all your Debian/Ubuntu Linux apps after upgrade or machine move

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

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

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.
  1. Open Firefox
  2. Click Edit/Preferences
  3. Click Applications
  4. Find mailto: and change to "Use Gmail"
Now make Ubuntu Jaunty (Nautilus really) use Firefox to handle email.
  1. On your desktop toolbar, click System/Preferences/Preferred Applications
  2. On the "Internet" tab, Mail Reader, change to Custom
  3. In the "Command" box type: firefox %s
  4. Click close to save your new settings.
Test it by sending your self an attachment from nautilus.
  1. Right click on any file and click "Send to..."
  2. Change Send as: to "Email (Evolution)"
  3. Put email address in the Send to box.
  4. Click Send.

Friday, June 05, 2009

Ubuntu Jaunty: Getting WMV to Play

Add the medibuntu repo's and get them approved
  1. sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list
  2. sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

install smplayer and the supporting codecs and libraries
  1. 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
Source: https://help.ubuntu.com/community/RestrictedFormats/

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




Tuesday, October 21, 2008

VMWare opensource replacement: VirtualBox

VirtualBox

Looks good!

Get your color on

Calibrize

What is color management?
In short: Color management is the art of making colors look the same wherever, whenever.


After or before you get your color on, get this app to make your images pop! - Qtpfsgui

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."

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