Wednesday, 16 May 2012

Ready to migrate to LMDE? What about my apps? Scenario 1: New HD, same OS, same version.

Here is a few pointers to make your life simpler.

Scenario 1: - New hard drive, same OS, same version 

Make a backup of your home directory. 

There are files in use so you need to logout and login with a different user or kill the GUI.

1. Press Ctrl+Alt+F1 to start a console session.

Don't panic, Ctrl+Alt+F7 or 8 or 9 should take you back to a GUI.

2. Now "kill" the GUI session using the console session to ensure all locked files are released.
/etc/init.d/gdm3 stop
3. Now copy your home directory to a backup in this example a USB3 device mounted as usb3disk1. Type in "df" to quickly see the disks.
sudo chown -R user:user /home/user/.
sudo chown -R user:user /home/user/*
cp -a /home/user## /media/usb3disk1/backups/home/user##.bckp
or use Rsync:
rsync -rptDuv -e /home/user##/* /media/usb3disk1/backups/home/user##.bckp 

Get a list of all your applications. 

4. Dump a list of all the installed programs on your old system while still active.
dpkg -l | awk '{print $2}' >
/media/usb3disk1/backups/home/user##/installed_packages.txt 

Install a new bigger hard drive.

5. Shutdown and remove the old hard drive.
sudo shutdown -h now
 Keep the old drive safe as experience has taught me.


6. Install the new hard drive.

7. Use gparted to create the partitions as required.
sudo gparted
Can you add a directory? of course not, this is linux, nothing is easy. :-)

8. You need to give yourself access to the drive first. Start a terminal session and type this:
sudo -i
chown -R username:username /media/mynewdisk/.
chown -R username:username /media/mynewdisk/*

Restore your home directory. 

9. Move (or copy) the backup home directory to the new disk.
mv /media/usb3disk1/backups/home/user##.bckp /home/user##
or use Rsync

rsync -rptDuv -e /media/usb3disk1/backups/home/user##.bckp/* /home/user##

Re-install your applications.

10. re-install all packages. This is the magic!

sudo apt-get install `cat /media/usb3disk1/backups/home/user##/installed_packages.txt`

Did that work? No? Enclose the command in " ` " and not in " ' " :-)

New bigger hard drive? DONE!

Next in this series: New hard drive, new OS, new version. 

Wednesday, 9 May 2012

Backup Domino using rsync but exclude directories

The magic of Rsync.

Upgrading Domino is easy but sometimes the process goes wrong.

When it does how do you recover?

The best method on any platform is to make a copy of the program directories and exclude the user directories such as mail. In Linux you can use the following:



rsync -avz --exclude-from 'exclude-list.txt' source/ destination/

create a file called exclude-list.txt in the working directory.
gedit exclude-list.txt &
mail
DBJRN12
*.nsfbig
*.suspect
IBM_TECHNICAL_SUPPORT

then issue the command:


rsync -avz --exclude-from 'exclude-list.txt' /notesrv/notes1/ /notesrv/notes1bck/

This will now copy the contents to a backup directory.

Do not forget the /opt directories.

rsync -avz  /opt/ibm/lotus/ /opt/ibm/lotusbckp/

The upgrade never fails so no need to tell you how to restore :-)

Monday, 7 May 2012

Booting linux into text mode and using startx to start the gui.


$ sudo gedit /etc/default/grub

Add the word "text" to GRUB_CMDLINE_LINUX_DEFAULT.

GRUB_CMDLINE_LINUX_DEFAULT="quiet text"


GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""


$ sudo update-grub

To start the gui type in startx.

My list of software used in LMDE

My favorite software

Capture software, graphics and sound

Packages used for documenting the install:

sudo apt-get install shutter

Recommended extra packages for shutter: 

sudo apt-get install imagemagick-doc gallery-uploader nautilus-sendto libnet-dropbox-api-perl libimage-exiftool-perl libimage-info-perl libnet-dbus-glib-perl
Nautilus sendto adds the missing compress item.

Sound packages

sudo apt-get install audacity

Recommended extra packages for audacity:

sudo apt-get install libasound2-plugin-equal libgnomeprintui2.2-0

Video editing software

sudo apt-get install kdenlive

Recommended packages for kdenlive: 

sudo apt-get install  libsaxon-java libxslthl-java docbook-xsl-saxon fop xalan  dbtoepub libvdpau1 djvulibre-bin icoutils finger hspell libqca2-plugin-cyrus-sasl libqca2-plugin-gnupg libqca2-plugin-ossl libqt4-declarative-folderlistmodel libqt4-declarative-gestures libqt4-declarative-particles libqt4-declarative-shaders qt4-qmlviewer libqt4-dev libsox-fmt-all phonon-backend-gstreamer djvulibre-desktop fop-doc libterm-readline-gnu-perl libterm-readline-perl-perl libavalon-framework-java-doc libbackport-util-concurrent-java-doc bsh libcommons-io-java-doc libcommons-logging-java-doc libexcalibur-logkit-java libdom4j-java-doc graphicsmagick-dbg libjaxme-java-doc java-virtual-machine libjdom1-java-doc docbook-xsl-doc-html 

Capturing the desktop

Quick and dirty

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq out.mpg
ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0 -sameq out.mpg

Internet browsers and tools

Additional browsers

Opera  -- ! Be careful. it removes  mint-flashplugin, mint-meta-codecs.

Managing the system

Webmin

Webmin for Debian - webmin_1.580_all.deb

Dependencies:

sudo apt-get install apt-show-versions libauthen-pam-perl libio-pty-perl

Virtual Software

Virtual Box

https://www.virtualbox.org/wiki/Downloads - virtualbox-4.1_4.1.14-77440~Debian~wheezy_amd64.deb

Chat and Video conferencing  Software

Skype

sudo apt-get install skype

New packages needed for Skype:

sudo apt-get install ia32-libs ia32-libs-gtk lib32asound2 lib32bz2-1.0 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32tinfo5 lib32v4l-0 lib32z1 libc6-i386

Video:

Skype Video @#$%%$^^^}}}} arghhhh.

LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype

locate v4l1compat.so    =     /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so WRONG, you need the soft link.

Make it permanent

sudo apt-get install gedit  (All my docs say gedit but Mint use pluma.)
sudo gedit /usr/share/applications/skype.desktop
Comment=Skype Internet Telephony
Exec=bash -c "LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype"
Icon=skype.png

http://www.ubunturoot.com/2010/05/how-to-fix-webcam-problem-in-skype.html

Utilities

Drop box

sudo apt-get install dropbox

Managing groups

sudo apt-get install gnome-system-tools 

More to follow:

Thursday, 3 May 2012

Linux Mint Debian 201204 released!

 A milestone has been reached. LMDE 1 is out. So far everything just works. Superb.

Even avid Ubuntu fanboys will be very impressed with this release. If you are a "power user" of Linux you have no choice. This is the distro for you.

All the goodness of the new kernel and Gnome plus a familiar environment to work in.

LMDE is based on Debian and use the Debian (Ian and Debbie) repositories and Mint repositories directly and not the Ubuntu repositories. That does not mean that you can not use some of the "Ubuntu" based software as Ubuntu is also based on Debian and you will find the original source in Debian. Of course loading Unity ( :0 ) is not straight forward but then you are looking at alternatives for that very reason!

Unity has it's place and Mark's team has done amazing work but it's not for me.

Try LMDE, you may just like it!

The team is proud to announce the release of LMDE 201204.
This release features three of the best Linux desktops available at the moment: The traditional and functional MATE 1.2 desktop, the innovative and beautiful Cinnamon 1.4 and the lightweight and rock-solid Xfce 4.8.
Both the MATE/Cinnamon and Xfce editions use the MDM display manager. MDM will look familiar to many people, as it brings back GDM 2.20 and all its features: Remote login, configuration tools, fast-user switching, theme-ability, language selection…etc.
I decided to do a clean install as my previous LMDE install was ok but not perfect due to some mistakes I made.

Installing it is simple. Download the 64 bit LMDE ISO torrent file from here

Install UNetbootin from here and create a bootable USB. Initially I did not use a persistence file and the install failed as it ran out of disk space on the tmp file system. Weird but I simply redid the USB drive with a persistence file and all was OK. I have not investigated so it may not really be an issue.

Here is the install:

















5 minutes later.



If this was Ubuntu I will still be reading adverts about stuff I am not really interested in. If you install LMDE on a blank drive the install takes 10 minutes or less. No extra file are downloaded but both MATE and Cinnamon is available. Ubuntu could do this but people insist on 650MB CD's even though a 4GB USB drive costs nothing these days. Go figure.  

Oh yes, When last did you see this on a fresh install?








Tuesday, 17 April 2012

Linux Mint Debian Edition (LMDE) User Guide

Linux Mint Debian Edition (LMDE) User Guide:

'via Blog this'

Frikkin awesome guide. Unbelievably good.

This Guide is a Giorgio Beltrammi (aka borgio3) project with a strict Linux Mint Italy Forum collaboration and support.This Guide is released for free use, and without any kind of license. 

Monday, 16 April 2012

Getting started with LMDE "4" post 3 Virtualbox - Skype - Dropbox - Picasa

Install the good stuff!

Virtualbox

Is it possible to live without Virtualbox? No.

LMDE has a recent version in the repository to make things really easy.
libvncserver0 (version 0.9.8.2-2) will be installed
virtualbox (version 4.1.8-dfsg-2) will be installed
virtualbox-dkms (version 4.1.8-dfsg-2) will be installed
virtualbox-guest-additions (version 4.1.8-1) will be installed
virtualbox-guest-additions-iso (version 4.1.8-1) will be installed
virtualbox-qt (version 4.1.8-dfsg-2) will be installed
I will update to 4.1.12 after a restart.

Uhmmm... Can not. Remove the version installed, download the correct versions and re-install.
https://www.virtualbox.org/wiki/Downloads

Skype

Skype 2.2.0.35-1 is in the repo's.

Getting Video to work is another story.

I have no idea why Skype still use pre libv4
http://linuxtv.org/downloads/v4l-dvb-apis/libv4l.html
http://linuxtv.org/downloads/v4l-dvb-apis/compat.html
http://www.ubunturoot.com/2010/05/how-to-fix-webcam-problem-in-skype.html
http://community.linuxmint.com/tutorial/view/219
http://community.skype.com/t5/Linux/Skype-Freeze-in-LMDE-64/td-p/462391

Find the libv4 file
locate v4l1compat.so
Run Skype from a terminal
LD_PRELOAD=//usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so skype
Check if video is working
sudo apt-get install cheese
cheese
Make Skype changes permanant
sudo apt-get install gedit
sudo gedit /usr/share/applications/skype.desktop
Install or check the 32bit libs
sudo apt-get install v4l2ctrl
sudo apt-get install ia32-libs
My Video does not work in Skype. It is annoying me.

Added the ~.Skype/Logs and no joy yet.

Dropbox
dropbox (version 1.0.1) will be installed
nautilus-dropbox (version 0.7.1-2) will be installed
python-gpgme (version 0.2-2) will be installed
Picasa from Google
picasa (version 3.0.5744-02) will be installed

Some more Snotkop for you to enjoy!




For all of us who has lost a dad.







Headlines that interest me

Loading...