Monday, September 30, 2013

Recover a file with LSOF....

Just a quick and dirty of how to recover a file in LSOF.



lsof (List Open Files) is a *nix tool that will show open files and network connections. Of course, it's also available for OS X.
You can recover deleted files with it.
If you have ever deleted a file by mistake you can recover the deleted file. 
For example, to recover a missing messages log used by Syslog you can search for it via this command:
bash:~  lsof | grep messages
You should see something similar to:
syslogd   15328      root    2w      REG              253,2   1419873               983175 /var/log/messages.5 (deleted)
You want to find what is marked as deleted in parenthesis.  The process (15328) still has the file open. Without this process keeping the file open we would have lost the file permanently. This is important. Once the process stops, you won't be able to trace the file this way, so avoid rebooting or stopping the process entirely, until after you've recovered the lost file.

We can view the missing info by looking inside the proc filesystem, the process id (15328), and in the file descriptor (fd). The fd is found in the 4th entry, above (2w in this example):
bash:~  cat /proc/15328/fd/2
This outputs the contents the deleted messages.5 file. As you can see, the data is still there. Now, just redirect the contents back to /var/log/messages.5:
bash:~  cat /proc/15328/fd/2 > /var/log/messages.5
That's all there is to it. You have recovered the file with all the data back to its original location. You should also restart the process, writing to the file(s) recovered.
This is just one of many examples of how lsof can be very useful. Be sure to check out the Man pages and other docs.

Thursday, January 17, 2013

Ah, the good ole days....

I happened across a site today, featuring my old Aliens desktop theme that I created for the Enlightenment Window Manager, back in DR 13 days:

http://www.securitronlinux.com/bejiitaswrath/enlightenment-e17-has-now-been-released-officially-the-e-desktop-is-now-live/

Ah, the memories. lol.




Thursday, July 19, 2012

Virtualbox r18 blah...

I've been running Oracle's VirtualBox, instead of VMware, for some time now. I liked the "free" aspect of it, along with it's availability to almost everything I run as a host OS (Solaris, Linux and yes, even Windows, on occasion).


The latest upgrade (on the windows side) is a piece of work (POS, in other words) as upgrading, was a bear.


If it fails to upgrade and you get the odd (MSI not found error) when upgrading from r16 to r18, here's a fix that may work for you (did for me):


(Stolen from https://forums.virtualbox.org/viewtopic.php?f=6&t=45536&sid=a10eb1d37e85adc7b814470463b4b314&start=15)


After trying everything and having made sure that all certificates were in order and that all drivers could be installed perfectly fine, I finally found a solution for this problem that worked for me. It had nothing to do with the driver certificates, and all to do with the driver verification done by the installer.


To install VirtualBox with that error, do the following:


  1. Download the Orca MSI editor. http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CFUQFjAA&url=http%3A%2F%2Fwww.technipages.com%2Fdownload-orca-msi-editor.html&ei=zxcIUIuiFePs2QWWm5DeBA&usg=AFQjCNGXxLvTAxxEIQiKhNrV3gWCn_paVg
  2. Start "cmd.exe" via the Start->Run and navigate to the directory you put your setup.exe.
  3. Execute "VirtualBox-4.1.16-78094-Win.exe -x"; adjust this to whatever version of Virtualbox you wish to install.
  4. The installer will tell you where it has extracted the files to. Go there and move them somewhere more accessible.
  5. Start Orca
  6. Open the MSI file for your platform that you've just extracted & copied. In my case this is "VirtualBox-4.1.16-r78094-MultiArch_amd64.msi"
  7. Enter the table "InstallExecuteSequence"
  8. Drop the row "MsiProcessDrivers"
  9. Save the MSI file.
  10. Verify that the MSI file's modified-date has changed (for some reason Orca sometimes does not save the file)
  11. Run the changed MSI.


After that, the install should work perfectly fine and ask you whether you really do want to install the drivers, even though they're not WHQL certified. Say yes to them all and enjoy using VirtualBox.


Orca MSI Editor: 
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CFUQFjAA&url=http%3A%2F%2Fwww.technipages.com%2Fdownload-orca-msi-editor.html&ei=zxcIUIuiFePs2QWWm5DeBA&usg=AFQjCNGXxLvTAxxEIQiKhNrV3gWCn_paVg



Oracle VirtualBox:
http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

Sunday, June 10, 2012

Disable SeLinux

This always seems to bit me in the ass, so here's some simple instructions on disabling SeLinux.

(ganked from:
http://www.thegeekstuff.com/2009/06/how-to-disable-selinux-redhat-fedora-debian-unix/#more-518 )


Method 1: Disable SELinux Temporarily

To disable SELinux temporarily you have to modify the /selinux/enforce file as shown below. Please note that this setting will be gone after the reboot of the system.
# cat /selinux/enforce
1

# echo 0 > /selinux/enforce

# cat /selinux/enforce
0
 
You can also use setenforce command as shown below to disable SELinux. Possible parameters to setenforce commands are: Enforcing , Permissive, 1 (enable) or 0 (disable).
# setenforce 0

Method 2: Disable SELinux Permanently

To disable the SELinux permanently, modify the /etc/selinux/config and set the SELINUX=disabled as shown below. One you make any changes to the /etc/selinux/config, reboot the server for the changes to be considered.
# cat /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
SETLOCALDEFS=0
 
Following are the possible values for the SELINUX variable in the /etc/selinux/config file
  • enforcing – The Security Policy is always Encoforced
  • permissive - This just simulates the enforcing policy by only printing warning messages and not really enforcing the SELinux. This is good to first see how SELinux works and later figure out what policies should be enforced.
  • disabled - Completely disable SELinux
 
Following are the possible values for SELINUXTYPE variable in the /etc/selinux/config file. This indicates the type of policies that can be used for the SELinux.
  • targeted - This policy will protected only specific targeted network daemons.
  • strict - This is for maximum SELinux protection.

Method 3: Disable SELinux from the Grub Boot Loader

If you can’t locate /etc/selinux/config file on your system, you can pass disable SELinux by passing it as parameter to the Grub Boot Loader as shown below.


# cat /boot/grub/grub.conf
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Enterprise Linux Enterprise Linux Server (2.6.18-92.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-92.el5PAE ro root=LABEL=/ rhgb quiet selinux=0
initrd /boot/initrd-2.6.18-92.el5PAE.img
title Enterprise Linux Enterprise Linux Server (2.6.18-92.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet selinux=0
initrd /boot/initrd-2.6.18-92.el5.img

Method 4: Disable Only a Specific Service in SELinux – HTTP/Apache

If you are not interested in disability the whole SELinux, you can also disable SELinux only for a specific service. For example, do disable SELinux for HTTP/Apache service, modify thehttpd_disable_trans variable in the /etc/selinux/targeted/booleans file.
 
Set the httpd_disable_trans variable to 1 as shown below.
# grep httpd /etc/selinux/targeted/booleans
httpd_builtin_scripting=1
httpd_disable_trans=1
httpd_enable_cgi=1
httpd_enable_homedirs=1
httpd_ssi_exec=1
httpd_tty_comm=0
httpd_unified=1
 
Set SELinux boolean value using setsebool command as shown below. Make sure to restart the HTTP service after this change.
# setsebool httpd_disable_trans 1
# service httpd restart

So you want a fresh Ubu install and don't want to hunt-down all you currently packages....

..and reinstall them all one-by-one or write a silly script to handle them all. Well, here's a simple solution: 

Save currently installed packages:
 # dpkg --get-selections > packages.installed 

Save this off and then copy to new machine or back to re-installed, then do:

 # dpkg --set-selections < packages.installed
(* Note: You may want to prune the list of software that you don't want to install or is incompatible if newer version of OS, before doing import above.)

 Then do: # dselect

Also, don't forget to save and copy over your /etc/apt/sources.list of course.

 That's it! Simple, eh?

Tuesday, April 24, 2012

Reverting to a simpler look...

The new "Dynamic" Theme junk was getting on my nerves. Back to static.

Friday, January 13, 2012

My latest ubuntu 11.x "new build" apt-install-list

Just so I don't forget. Latest list of apps I install after a fresh install of Ubuntu 11.x (currently on 11.10):

## Source list
## --------------------
vi /etc/apt/sources.list

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/

# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main

#Third Parties Latest Software
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

#medibuntu
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2EBC26B60C5A2783
deb http://packages.medibuntu.org/ natty free non-free
deb-src http://packages.medibuntu.org/ natty free non-free

#google
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A040830F7FAC5991
deb http://dl.google.com/linux/deb/ stable non-free main

#Canonical 'partner' Repository
deb http://archive.canonical.com/ubuntu natty partner
deb http://archive.canonical.com/ubuntu natty-backports partner
deb http://archive.canonical.com/ubuntu natty-updates partner
deb http://archive.canonical.com/ubuntu natty-security partner
deb http://archive.canonical.com/ubuntu natty-proposed partner
deb-src http://archive.canonical.com/ubuntu natty partner
deb-src http://archive.canonical.com/ubuntu natty-backports partner
deb-src http://archive.canonical.com/ubuntu natty-updates partner
deb-src http://archive.canonical.com/ubuntu natty-security partner
deb-src http://archive.canonical.com/ubuntu natty-proposed partner

# Ubuntu supported packages
deb http://archive.ubuntu.com/ubuntu/ natty main restricted multiverse universe
deb http://archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted multiverse universe
deb http://security.ubuntu.com/ubuntu natty-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu natty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ natty main restricted multiverse universe
deb-src http://archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ natty-updates main restricted multiverse universe
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu natty-proposed main restricted universe multiverse



## APT installs, etc:
## --------------------
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com DCF9F87B6DFBCBAE F9A2F76A9D1A0061 A040830F7FAC5991 2EBC26B60C5A2783

apt-get update && sudo apt-get dist-upgrade
apt-get install build-essential checkinstall cdbs devscripts dh-make fakeroot libxml-parser-perl check avahi-daemon

add-apt-repository ppa:ferramroberto/java && apt-get update
apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
apt-get install vlc mplayer
apt-get install -Y vlc mplayer
apt-get -Y install vlc mplayer
apt-get install vlc mplayer -Y
apt-get install vlc mplayer -y
apt-get --fix-missing
apt-get install vlc mplayer --fix-missing -y

apt-get install libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg libmp4v2-0 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs libquicktime1 flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev -y

apt-get install libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg libmp4v2-0 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs libquicktime1 flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev fix-missing -y

apt-get install libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg libmp4v2-0 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs libquicktime1 flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev --fix-missing -y

apt-get install gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-schroedinger gstreamer0.10-plugins-ugly-multiverse totem-gstreamer -y

apt-get install gstreamer-dbus-media-service gstreamer-tools ubuntu-restricted-extras -y
apt-get install libdvdread4 && sudo /usr/share/doc/libdvdread4/./install-css.sh
apt-get install gsfonts gsfonts-x11 flashplugin-nonfree -y
apt-get install flashplugin-installer -y
apt-get install flashplugin-nonfree -y
apt-get install flashplugin-nonfree --fix-missing -y

add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update
apt-get install wine playonlinux
apt-get install wine playonlinux --fix-missing

add-apt-repository ppa:chromium-daily/stable && apt-get update
apt-get install chromium-browser chromium-browser-l10n -y
apt-get install multiget -y
apt-get install evolution evolution-mapi -y
apt-get install thunderbird -y

add-apt-repository ppa:telepathy/ppa && sudo apt-get update
apt-get install empathy telepathy-mission-control-5 telepathy-gabble telepathy-butterfly telepathy-haze telepathy-idle telepathy-salut telepathy-sofiasip libtelepathy-farsight0 python-tpfarsight galago-eds-feed python-galago python-galago-gtk msn-pecan -y

add-apt-repository ppa:pidgin-developers/ppa && sudo apt-get update -y
apt-get install pidgin pidgin-data pidgin-lastfm pidgin-guifications msn-pecan pidgin-musictracker pidgin-plugin-pack pidgin-themes -y

add-apt-repository ppa:bjfs/ppa && sudo apt-get update
apt-get install emesene -y
apt-get install skype -y
apt-get install acroread -y

wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin

chmod +x ./AdobeAIRInstaller.bin

./AdobeAIRInstaller.bin

apt-get install rhythmbox -y
apt-get install banshee banshee-extension-ubuntuonemusicstore banshee-extension-appindicator banshee-extension-lyrics banshee-extension-mirage -y
apt-get install amarok amarok-common -y
apt-get install gparted ntfsprogs menu ntfs-config -y
apt-get install apt-get install ntfs-3g -y
apt-get install ntfs-3g -y
apt-get install gparted ntfsprogs menu -y
apt-get install ntfs-config -y
apt-get install inkscape -y
add-apt-repository ppa:matthaeus123/mrw-gimp-svn && sudo apt-get update
apt-get install gimp gimp-data gimp-plugin-registry gimp-data-extras -y
apt-get install pinta -y
apt-get install blender -y
apt-get install gedit gedit-plugins gedit-developer-plugins -y
add-apt-repository ppa:libreoffice/ppa && sudo apt-get update
apt-get install libreoffice libreoffice-pdfimport libreoffice-math libreoffice-wiki-publisher libreoffice-report-builder libreoffice-gnome -y
apt-get install dia -y

wget http://nchc.dl.sourceforge.net/sourceforge/openproj/openproj_1.4-2.deb && sudo dpkg -i
dpkg -i openproj_1.4-2.deb

apt-get install quanta kompozer netbeans rabbitvcs-cli rabbitvcs-gedit rabbitvcs-nautilus
killall nautilus
apt-get install filezilla filezilla-common -y
apt-get install deluge-torrent
apt-get install deluge-torrent --fix-missing -y
apt-get install azureus -y
apt-get install amule -y
apt-get install k3b k3b-data libk3b6 -y
apt-get install brasero -y

wget http://dl.google.com/linux/deb/pool/non-free/g/google-desktop-linux/google-desktop-linux_current_amd64.deb && sudo dpkg -i google-desktop-linux_current_amd64.deb

wget http://dl.google.com/linux/deb/pool/non-free/p/picasa/picasa_3.0-current_amd64.deb && sudo dpkg -i picasa_3.0-current_amd64.deb

apt-get install googleearth-package -y
apt-get install checkgmail -y
apt-get install checkgmail --fix-missing
apt-get install gufw -y
apt-get install gnome-do -y
add-apt-repository ppa:ubuntu-tweak-testing/ppa && sudo apt-get update
apt-get install ubuntu-tweak -y
wget http://hacktolive.org/files/app_runner/App_Runner_0.4.9.deb && dpkg -i App_Runner_0.4.9.deb

##### The following is in addition (currently added onLinux MINT KDE 12):
apt-get install clusterssh
apt-get install konversation
apt-get install aircrack-ng -y
apt-get install irssi -y
apt-get install kvirc -y
apt-get install seamonkey-chatzilla -y
apt-get install bitlbee -y
apt-get install smuxi -y
apt-get install smuxi-engine-irc -y
apt-get install smuxi-frontend-gnome-irc -y
apt-get install smuxi-frontend-kde-irc -y
apt-get install alice -y
apt-get install lirc -y
apt-get install banshee-extension-lirc -y
apt-get install bip -y
apt-get install blootbot -y
apt-get install bobot++ -y
apt-get install cgiirc -y
apt-get install cwirc -y
apt-get install dircproxy -y
apt-get install eggdrop -y
apt-get install ekg2 -y
apt-get install ekg2-gnupg -y
apt-get install ekg2-jabber -y
apt-get install ekg2-remote -y
apt-get install ekg2-scripting-perl -y
apt-get install ekg2-scripting-python -y
apt-get install ekg2-scripting-gtk -y
apt-get install ekg2-ui-gtk -y
apt-get install ekg2-ui-ncurses -y
apt-get install ekg2-xosd -y
apt-get autoremove
apt-get install epic5 -y
apt-get install fgfs-aircraft-base -y
apt-get install gozerbot -y
apt-get install gozerbot-plugins -y
apt-get install ibid -y
apt-get install ii -y
apt-get install ircii -y
apt-get install ircmarkers -y
apt-get install iroffer -y
apt-get install jabber-irc -y
apt-get install jirc -y
apt-get install jsonbot -y
apt-get install kgb-bot -y
apt-get install kgb-client -y
apt-get install kgb-client-git -y
apt-get install openssh-server -y
apt-get install kvirc-data -y
apt-get install libanyevent-irc-perl -y
apt-get install libbot-basicbot-perl -y
apt-get install libfile-dircompare-perl -y
apt-get install libirc-formatting-html-perl -y
apt-get install libirc-utils-perl -y
apt-get install libircclient1 -y
apt-get install libirclib-java -y
apt-get install libirclib-java-doc -y
apt-get install libnet-irc-perl -y
apt-get install libnet-irc-ruby -y
apt-get install loqui -y
apt-get install manderlbot -y
apt-get install minbif -y
apt-get install minbif-webcam -y
apt-get install nadoka -y
apt-get install nagircbot -y
apt-get install phenny -y
apt-get install php-net-smartirc -y
apt-get install piespy -y
apt-get install pisg -y
apt-get install plum -y
apt-get install pork -y
apt-get install python-irclib -y
apt-get install quassel-client -y
apt-get install quassel-client-qt4 -y
apt-get install rbot -y
apt-get install rbot-doc -y
apt-get install sbnc -y
apt-get install sbnc-mysql -y
apt-get install sbnc-php -y
apt-get install sbnc-php-dev -y
apt-get install sbnc-tcl -y
apt-get install scrollz -y
apt-get install searchandrescue -y
apt-get install sic -y
apt-get install sirc -y
apt-get install sugar-irc-activity -y
apt-get install supybot -y
apt-get install sushi-plugins -y
apt-get install talksoup.app -y
apt-get install tekka -y

apt-get install tinyirc -y
apt-get install tircd -y
apt-get install weechat -y
apt-get install weechat-scriptd -y
apt-get install weechat-scripts -y
apt-get install xchat-kde -y
apt-get install xchat -y
apt-get install znc -y
apt-get install znc-perl -y
apt-get install znc-python -y
apt-get install znc-tcl -y
apt-get install znc-ruby -y
apt-get install minbif-webcam -y
apt-get install lostirc -y
apt-get install xchat-gnome -y
apt-get install p0f -y
apt-get install thinkfinger-tools -y
apt-get install keepassx -y
apt-get install p7zip -y
apt-get install htop -y
apt-get install devede -y
apt-get install conky-all -y
apt-get install furiusisomount -y
apt-get install artha -y
apt-get install deja-dup -y
apt-get install luckybackup -y
apt-get install powertop -y
apt-get install ntop -y
apt-get install gtkhash -y
apt-get install lsof -y
apt-get install tcpdump -y
apt-get install blueproximity -y
apt-get install gnome-rdp -y
apt-get install kde-rdp -y
apt-get install krename -y
apt-get install sysinfo -y
apt-get install lshw-gtk -y
apt-get install gprename -y
apt-get install dvdbackup -y
apt-get install sshfs -y
apt-get install hddtemp -y
apt-get install hplip-gui -y
apt-get install hplip -y
apt-get install hot-babe -y
apt-get install encfs -y
apt-get install screenie-qt -y
apt-get install urar-free -y
apt-get install unrar-free -y
apt-get install fdupes -y
apt-get install aptlinex -y
apt-get install rdiff-backup -y
apt-get install xsysinfo -y
apt-get install quicktime-utils -y
apt-get install quicktime-x11utils -y
apt-get install tleds -y
apt-get install warzone2100 -y
apt-get install widelands -y
apt-get install glest -y
apt-get install glob2 -y
apt-get install lightyears -y
apt-get install boswars -y
apt-get install nexuiz -y
apt-get install sauerbraten -y
apt-get install alien-arrena -y
apt-get install alien-arena -y

apt-get install assaultcube -y
apt-get install warsow -y
apt-get install rott -y
apt-get install wesnoth -y
apt-get install freeciv -y
apt-get install freeciv-client -y
apt-get install freeciv-client-gtk -y
apt-get install freecol -y
apt-get install konquest -y
apt-get install lordsawar -y
apt-get install flightgear -y
apt-get install antigravitaattori -y
apt-get install lincity -y
apt-get install dreamchess -y
apt-get install k3d -y
apt-get install sunflow -y
apt-get install structure-synth -y
apt-get install gthumb -y

apt-get install shotwell phatch gpicview qtpfsgui eog postr gpixpod photoprint gqview gtkam kflickr luciole qiv gliv kphotoalbum -y
apt-get install fotowall gnome-specimen -y
apt-get install xsane gscan2pdf scantailor flegita skanlite -y
apt-get install calibre gthumb evince geeqie comix mirage fbreader kchmviewer gpicview xchm gtpfsgui feh flpsed cbrpager qcomicbook aqsis epdfview gtkam nfoview xpdf-reader aeskulap apvlv buxon camorama djview4 fslview gvomaque yorick-cubeview pdfedit txtreader -y

### Here you see that I start getting really lazy, rofl. I put in a loop, to catch errors with installs.

apt-get install calibre gthumb evince geeqie comix mirage fbreader kchmviewer gpicview xchm qtpfsgui feh flpsed cbrpager qcomicbook aqsis epdfview gtkam nfoview xpdf-reader aeskulap apvlv buxon camorama djview4 fslview gv
omaque yorick-cubeview pdfedit txtreader

for i in calibre gthumb evince geeqie comix mirage fbreader kchmviewer gpicview xchm qtpfsgui feh flpsed cbrpag
er qcomicbook aqsis epdfview gtkam nfoview xpdf-reader aeskulap apvlv buxon camorama djview4 fslview gv omaque
yorick-cubeview pdfedit txtreader; do apt-get install $i -y; done

for i in openoffice.org lyx leafpad scite diffuse kwrite bless cssed hexedit bvi dhex entagged lfhex ncurses-he
xedit vim-athena vim-dc vim-gtk vim-rals vim-scripts vim-syntax-gtk ; do apt-get install $i -y; done

for i in mintmenu docky wine1.2 terminator alien system-config-samba pysdm cryptkeeper openbox compizconfig-set
tings-manager firestarter nvidia-settings mintdesktop screen boochart bum sbackup apturl nautilus-gksu fslint m
int-artwork-gnome virt-manager lvm2 prelink grub2-splashimages pybootchartgui crack-md5 dmraid foremost mdadm m
emlockd puppet safecopy sysv-rc-conf add-apt-key atop bluewho chkconfig crack dselect ipstate pwgen recover zer
ofree seroinstall-injector aide aide-dynamic aide-xen apachetop apg apt-btrfs-snapshot apt-file apt-dater apt-d
ater-host apt-forktracer apt-move apt-offline apt-offline-gui apt-show-source apt-show-versions apt-src apt-tra
nsport-debtorrent apt-watch-backend apt-zip apticron aptitude-doc-en aptitude-gtk aptsh arp-scan arpwatch array
-info arrayprobe asql auto-apt automysqlbackup autospy backup-manager backup-manager-doc backup2l backupninja b
acula bacula-client bacula-common-mysql bacula-console bacula-director-common bacula-sd bacula-sd-mysql bacula-
server bacula-traymonitor balance battery-stats bindgraph bld blktool bootmail btrfs-tools bup cdbackup cedar-b
ackup ceph ceph-client-tools ceph-fuse cfengine3 cfget cfgstoragemaker check-mk-agent check-mk-agent-logwatch c
heck-mk-agent-icinga check-mk-agent-nagios3 check-mk-livestatus check-mk-multisite check-mk-server checksecurit
y checkservice chntpw chrony chrootid cloud-init cloud-initramfs-growroot cloud-initramfs-rescuevol cloud-utils
cman console-log conspy convirt cpureqd cpuid cpulimit crack-common cracklib-runtime createrepo cron-apt cronu
tils cruft cryptmount daemontools daptup dchroot dchroot-dsa dconf ddpt desktop-profiles detachtty ; do apt-get
install $i -y; done

Thursday, October 13, 2011

R.I.P. Dennis Ritchie

Dennis Ritchie has passed :-(

It's no secret that I am (was, before Oracle, anyway) a huge Sun fan. Dennis was an integral part of Sun Microsystems, a leader in the Unix industry, creator of the C language and a plethora of other technologies. He will be sorely missed, in this industry.

I know the 'net is still a buzz about Steve Jobs passing, and I don't intend to take anything away from that loss, either, but without Dennis, it's very unlikely that Apple would be successful, today and more unlikely that you would even have an internet.

More at BoingBoing, here:
http://boingboing.net/2011/10/12/dennis-ritchie-1941-2011-computer-scientist-unix-co-creator-c-co-inventor.html

Saturday, February 12, 2011

Easy way I sped up Chromium browser

I love Google's Chromium browser, but it's slooow.

I sped it up significantly by creating a RAM disk and using that for caching (FYI: This applies to a Linux Desktop. Windows users, you'll have to look elsewhere):

- Create the mount point:
wrexallen@wrex-Qosmio-X505:$ sudo mkdir /var/ramdisk

- Add mountpoint to /etc/fstab:
none /var/ramdisk tmpfs mode=1777,size=512M 0 0

This mounts a memory filesystem in /var/ramdisk on boot. I use the size=512M parameter to limit how much it can grow.

- Mount the new RAM disk:
wrexallen@wrex-Qosmio-X505:$ sudo mount /var/ramdisk

Edit chromium application link by changing:

/opt/google/chrome/google-chrome %U

to:

/opt/google/chrome/google-chrome %U --disk-cache-dir="/var/ramdisk"

Stop/restart chromium.

Wednesday, February 02, 2011

Does your office use Cisco VPN and you want to connect with Linux?

Here's how I do it with Ubuntu:

VPN from ubuntu linux:

Download vpnc and kvpnc
- vpnc is a Cisco compatible VPN client
- kvpnc is a vpn clients frontend for KDE

- Install them as follows:
sudo apt-get install vpnc
sudo apt-get install kvpnc

For Gnome integration, grab the following (Thanks Jason C.!):
sudo apt-get install network-manager-vpnc-gnome

-After the install go to Applications->Internet and click on the KVpnc shortcut
KVpnc vpn application will be launched (or in a term window as root, type in kvnc &) .
-Click on the Profile menu and choose Import Cisco pcf file and choose the pcf file
-Now click on the Connect button in the right. You can also change your profile settings, should you need to, here.
-Use Terminal Server Client to remote or rdp to a windows box, if so desired.

My current Ubuntu 10.10 Desktop



Been playing with Compiz Fusion. Like!

Sunday, January 30, 2011

KVM Virtualization in Ubuntu 10.10

I was going to write a quick howto on Virtualization within Ubuntu 10.10 and KVM, then ran across this:
http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-10.10

No point in replicating effort, so have a gander. It's pretty concise.

Saturday, January 22, 2011

Ubuntu 10.10 Nvidia driver update to fix "NVRM: os_raise_smp_barrier(), invalid context!" message

Ok, so after addressing the previous ips spamming woes to my syslog, I have now a fix for the Nvidia "NVRM: os_raise_smp_barrier(), invalid context!" errors, should you be so unlucky to have this gawd-aweful chipset.

Get the driver here:
http://www.nvidia.com/object/unix.html

And do the following (from Nvidia's site: http://www.nvidia.com/object/linux-display-amd64-260.19.36-driver.html)
"Once you have downloaded the driver, change to the directory containing the driver package and install the driver by running, as root, sh ./NVIDIA-Linux-x86_64-260.19.36.run

One of the last installation steps will offer to update your X configuration file. Either accept that offer, edit your X configuration file manually so that the NVIDIA X driver will be used, or run nvidia-xconfig.
"

Note that you want to do this from a console and not X (KDE, Gnome, whatever).

Ubuntu 10.10 kernel update (fix ips power exceeded issue)

So, after new install and updates of the Qosmio, I noticed my sysmessage log being spammed with the following message about every 5 seconds:

Jan 22 06:17:59 wrex-Qosmio-X505 kernel: [ 1198.323814] intel ips 0000:00:1f.6: MCP power or thermal limit exceeded

Annoying. No relevant fix as after a quick Google search, it appears to be a bug and quite common amongst several Laptop vendors (Again, annoying. Ubuntu devs needs to fix that sh*t).

So, updating my current kernel (2.6.35-24-generic) should fix, according to some.

Here's the process (files found at: http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.37-natty/):

1. Download Generic kernel headers package:
linux-headers-2.6.37-020637_2.6.37-020637.201101050908_all.deb
2. Download Arch Headers:
- I386: linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb
- AMD64: linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb
3. Download compiled kernel:
- I386: linux-image-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb
- AMD64: linux-image-2.6.37-020637-generic_2.6.37-020637.201101050908_amd64.deb
4. Install the files in the same order (If you do them out of order, you will be sad).
5. Open a terminal window and run:
sudo update-grub
6. Reboot and select the kernel from the bootloader menu
If it`s not there check your steps.
7. Check to ensure new kernel has been applied:
root@wrex-Qosmio-X505:~# uname -r
2.6.37-020637-generic


That seems to have fixed the issue as I am not getting the message, any more, but now...

I'm getting this:

Jan 22 06:44:23 wrex-Qosmio-X505 kernel: [ 585.007396] NVRM: os_raise_smp_barrier(), invalid context!

Lol!!!!

I'm sure it's my (OMG_I_HATE_THIS_POS_VIDEO_CHIPSET_FRAK_NVIDIA!!!!) Nvidia. I'll post the fix after this, once I hammer it out. Ugh.

Thursday, January 20, 2011

Stoopid Nvidia (Toshiba Qosmio 505 Linux Install)

Everyone always hails Nvidia as being so great. I've always had issue with their chipsets and it seems today is no different.

Went to install Ubuntu (Yeah, I know) on my Qosmio 505 and I get scrambled video on the Live CD of 10.10.

nomodeset did the trick.

This also happened with the OpenSuSE 11.3 live CD and CentOS 5.5 Live CD. Meh. Fedora was no issue. Go figure that.

In case you need it, here's what you should do:

1. boot computer with livecd
2. when you see it get to the actual booting hit f6
3. select language
4. hit f6 again
5. select nomodeset
6. hit esc
7. install Ubuntu as usual and reboot
8. when you get to the grub boot menu make sure to hit e so you can edit the kernel commands
9. add nomodeset to the kernel args again
10. cntrl X to boot
11. sudo apt-get update && sudo apt-get upgrade
12. reboot
13. Repeat 8-10 again
14. start the restricted drivers program
15. install the restricted driver for the 360m
16. reboot

Tuesday, January 18, 2011

You can use a remote drive in Windows 7 Home Premium

MS and their wisdom of removing features from past releases of their OS, never ceases to amaze me and file them under the WTF where they thinking files. Well, I guess I do know: They're greedy bastards.

Anyway, if you want to ba able to backup your Win 7 system remotely, I found a nice howto, here:
http://www.roflxd.com/index.php?q=node/3

I'm copying it from there and posting here, in case the directions should ever go away:

Backing Up Windows 7 Home Premium to a Network Share

Well many people are complaining that Microsoft decided that allowing people to perform backups on their Windows 7 Home Premium to a Network share should be a paid Feature.

Well Uncle Bill was unaware that his little elves gave us something called Virtual Hard Drives on Windows 7 Home Premium.

To perform a system backup to a network drive you simply do the following.

First Asses the location of your Network Backup.

Second Make sure you can map the Drive using an UNC name Share, I/E \\ComputerName\Folder.

Third Create a Local Drive by Mapping the Network Location using the UNC to said drive so that the machine can remember the login information to the network share thus aiding in authenticating you whenever the machine is connected to the network share.

Fourth Open your Computer Management Panel and Select Actions>>Create VHD.
Here you have two options to map the new VHD.
A)Enter the UNC Path in the Location Box as \\ComputerName\Folder or B)Use the Drive letter to the newly mapped network share drive you just created.

Next Select the Virtual Hard Drive Size and the designated allocation information MB - Mega Bytes, GB - Giga Bytes or TB - Terabytes.

The window suggests to use a Fixed size drive but Since I know how these drives work in the Hyper-V server (and yes it’s the same type of drive) setting it to dynamically expanding will allow you to make the drive Up to the size requested but if you backup only takes half the space, your virtual drive will not exceed the amount allotted. All in all this is your choice and I recommend familiarizing yourself with the technicalities if you wish to make a different decision.

Once the options are entered click ok on Create and Attach Virtual Hard Disk
Window.

The new drive is created.

Now right click on the drive on the left side of the pane where the Disk Designation is on the window. Since I only had one physical drive my new VHD was called DISK 1.
Select Initialize Volume from the menu options.
Once the init is complete, right click on the drive and select to create a simple volume. Some options will come up, you can choose the defaults all the way, or choose whatever settings make you happy, including a label for the volume and the drive letter.

Once the configuration is complete the drive will be automatically formatted and mounted. A message stating that the drive has now been successfully mounted will come up.

After this you will be prompted with a menu that will contain an option to use this newly created VHD as a backup disk. This will in turn open the backup wizard and allow you to perform your backup of your user files, settings and more importantly a recovery image.

Once your backup is completed, make sure to create a recovery disk form the menu option on the left side of the backup page. This disk will allow you to boot to it since it is created as a CD that is bootable. It will also allow you to restore the system and or any missing files that you may want to recover.

And Viola! You now have Network Backup once more in Windows 7 Home Premium.

And this my friends is the ROFL of the day Courtesy of ROFLXD!

Making fun of technology foibles!
Aren’t I a Stoinker?

PlasmaFlow

Tuesday, October 05, 2010

Simple HA for Oracle OpsCenter Using ZFS

So we're testing out Oracle's OpsCenter (Enterprise Manager...whatever) to see how useful it will be in our environment. Anything to help maintain the numerous zones, is welcome, right?

We downloaded the trial software (Finally, you can see before you buy!) and began installing and configuring. First thing I was curious about: How easily can we move this to another server, should the primary fail?

As they would have it, it's a fairly simple task, if you do some work, early on to prepare for it.

Visit http://wikis.sun.com/display/OC2dot5/About+High+Availability for a heads-up, though I have some caveats to ad to their doc.

When you unmount and export your dataset and zfs pool from node a to install packages to node b, be sure that once it's on node b, to run the uninstall script (http://wikis.sun.com/display/OC2dot5/Uninstalling+Ops+Center+Software). If you don't, the install will fail on node b, at where it tries to install/configure postgress. Do not do this, until after you've mount your xvm directory onto node b. Then run through the install as you did on node a, patch, etc. and it should be easily moveable between both nodes.

Also, note that the install makes several entries in your /etc/vfstab:
/var/opt/sun/xvm/uce/etc.opt - /etc/opt/SUNWuce lofs - yes -
/var/opt/sun/xvm/uce/var.opt - /var/opt/SUNWuce lofs - yes -
/var/opt/sun/xvm/uce/opt - /opt/SUNWuce lofs - yes -

Be sure to comment those out, when you move the services off of the node and onto the other, and remount them on the other server, before attempting to start OpsCenter on the other node. Directions for shutting down OpsCenter, are here:




Saturday, September 18, 2010

Surfing at noon-thirty PST. Oh yeah.

Here's hoping a shark doesn't eat me, lol.

I'll be surfing a few blocks from my new home, in Pacifica CA. The beach is Linda Mar beach, otherwise known as Pacifica State Beach. From my abbreviated research, I've discovered that it's supposed to be one of the better areas to surf, in the region. Multiple breaks that cater to all classes of surfers, a "friendly" surfing beach, etc.

Some nice pics and vids of the area:

http://maps.google.com/maps/place?cid=2945361755479732446&q=linda+mar+beach,+pacifica+ca&hl=en&cd=1&cad=src:pplink&ei=pumUTOjvFITmiAPe8unMAQ