Ubuntu Installation
(New computer) Backup Default Windows installation
Download&Burn last GPARTED LIVE distribution to keep the original windows, remove the recovery partition and resize all the partitions to get the maximum space for Linux ext4 partition and swap (remember that max 4 primary partitions, linux and swap can be allocated in two extended partitions of the freed disk space).
Dowload&Burn last UBUNTU 64-bit vesrion (not 32-bit) and follow the easy instructions of the burend Ubuntu bootable CD. Use an Ext4 and a Swap partition. Better in english. Change brown style to any blue style (human). Change fonts (if not) to universe multiverse.
Set clock preferences to 24h format (no weather, no temperature). Switch off visual effects (System->preferences->apparence)
Make a symbolic link to HOME in Desktop: ln -s /home/hector/
Make a first UPDATE.
Imprecindible 4 everything:
sudo apt-get install vim ssh
sudo aptitude install build-essential g++ (gcc, make, …), [if needed: automake autoconf autotools-dev libtool]
ONLY FOR 64-bit: To be able to compile and run some 32-bit programs you need to install lib32, lib32std, etc.
And for both, if you want to use gcc-3.3 libstdc++:
cd ~/Desktop wget http://frozenfox.freehostia.com/cappy/getlibs-all.deb wget http://nl.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb sudo dpkg -i getlibs-all.debsudo dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb
You must also add this line to you .bashrc .bash_profile to link local libraries installed with sudo make install:
export LD_LIBRARY_PATH=/usr/local/lib/
TUNEUP GRUP BOOT: chmod a+rw /boot/grub/grub.cfg –> vim… timeout=2, remove memtest, etc.
http://ubuntulife.wordpress.com/2009/11/06/cosas-a-hacer-despues-de-instalar-ubuntu-9-10-kamic-koala/
Basic packets
First of all: Connect to Internet and install Updates. Change repositories from Spain to Main (even if others say the contrary) (System->Admin->Software Sources->Download from). Activate Universe, Multiverse and restricted and update again.
Install language support of your language (even if it is only english): (System->Admin->Language Support) [YOU DO NOT NEED TO INSTALL OTHER LANGUAGES FOR THE UBUNTU INTERFACE]
Also install aspell dictionaries of your languages using apt-get (aspell-en, aspell-es, aspell-ca,…)
IMPORTANT ALIASES in .bash_profile/.bashrc (/etc/profile don’t work):
alias cleartmp=’find . \( -name \*~ \) -exec rm -vf {} \;’
alias makeexec=’find . \( -name \*.sh -or -name \*.pl -or -name \*.py \) -exec chmod a+x {} \;’
alias alteassh=’ssh hllorens@altea.dlsi.ua.es’
alias hllorenstunelopen=’ssh -X -C -L 2222:hllorens:22 hllorens@altea.dlsi.ua.es’
alias hllorenstuneluse=’ssh -X -p 2222 hector@localhost’
Video and Audio: MP3, Flash, DVD, DIVX, Microsoft things…
Install MP3, Flash, basic DIVX support:
sudo aptitude install ubuntu-restricted-extras (source server Main, not Spain)
With this package set you get MP3 (test any mp3), Flash (test youtube), and some AVI files (some codecs).
For the rest you need to add Mediubuntu repository.
sudo wget http://www.medibuntu.org/sources.list.d/karmic.list --output-document=/etc/apt/sources.list.d/medibuntu.list
And the key GPG:
sudo aptitude update; sudo aptitude install medibuntu-keyring; sudo aptitude update
And now we can install DVD support:
sudo apt-get install libdvdcss2
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
Codecs de windows: w64codecs (and/or w32codecs if needed)
More non-free codecs (DON’T INSTALL IF NOT NEEDED): non-free-codecs ffmpeg lame faad
mplayer and smplayer
DVD (test), DIVX (test an avi), WMV (vest complex WMV, audio…), test MP4, test MPEG
Install Video Players/Editors
vlc (VideoLan movie player)
mplayer (for win videos)
Avidemux (for video edition: cut…)
Subtitles: subtitleeditor
MP3tags: easytag
Adobe Acrobat Reader: download from web not apt-get acroread or adobereader.
Microsoft Fonts: sudo apt-get install msttcorefonts (may be already in restricted-extras)
WINE
Execute Windows programs: sudo apt-get install wine; winecfg
Install Internet Explorer for #@XX!!FF?! webs (IE6,IE7,IE8):
http://www.ellibrogordodepetete.com/2009/11/instalar-internet-explorer-en-ubuntu.html
sudo apt-get install cabextract wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz tar zxvf ies4linux-latest.tar.gz cd ies4linux-* ./ies4linux IE7: Install playOnLinux and follow instructions !!! IE7 IE8: WINE?? YES (download from microsoft and run wine IE8installer)
Power saving
Check ACPI to be running
Use kernel >= 2.6.21
System->preferences->power management (blank screen, or backlight it)
Disable Bluettooth on Startup add “rfkill block bluetooth” to /etc/rc.local (or do it in BIOS)
Downloading/Direct Download/Rapidshare/Megaupload
JDownloader (download and install)
Web Server (apache2 – php – mysql)
apache2 mysql-server mysql-client mysql-common php5 php5-mysql php5-gd php5-curl php5-imagick php5-mcrypt phpmyadmin
phpmyadmin -> needs a symbolic link to work (sudo ln -s /usr/share/phpmyadmin/ /var/www/)
Remove services from startup/boot:
sudo update-rc.d -f apache2 remove sudo update-rc.d -f mysql remove
Java & Programming
sudo apt-get install openjdk-6-jdk openjdk-6-jre icedtea6-plugin
DEPRECATED PROPRIETARY: sun-java6-jdk sun-java6-fonts sun-java6-jre sun-java6-plugin sun-java6-doc (you should download manually the last documentation zip)
a2ps (tool for easily printing source code in any prog. lang.)
meld (diff visual) (molt bo)
Utils
GParted (partitions, rename volumes…
Graphical multi-file&folder find&replace: regexxer (sudo aptitude install regexxer)
Dropbox
Important if you get Case Conflicts you want to remove: find . \( -name \*Case\ Conflict\* \) -exec ls -l {} \;
(find . \( -name \*Case\ Conflict\* \) -exec rm -vf {} \;)
Important if dropbox gets stucked (dropbox stop, dropbox start)
IMPORTANT: Spamassassin (4 evolution 2 work properly)
NAUTILUS ENHACEMENS:
- nautilus-image-converter (best for image resize,rotate)
- python-nautilus (for install nautilus plugins): then place scripts in /home/usuario/.gnome2/nautilus-scripts and you have them at right click (remember to give permisions chmod 777 scriptname). Example:
#!/bin/bash
# Print for Nautilus
# Created by Hector Llorens
for arg;do
lp -o fitplot -o media=a4 -o sides=two-sided-long-edge -o cpi=20 -o lpi=12 $arg
done
- Nautilus Send To script: http://www.webmate.it/?scripts
InkScape (Vectorial Graphics Editor) (svg format)
Bless Hexadecimal Editor
unrar rar p7zip-full unace unzip
Chat / Instant messaging: use empathy and skype (not pidgin)
Latex
texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latex-beamer texlive-lang-spanish
Latex Editor: gedit-latex-plugin (view cognitionis profile in Latex installation page)
IMPORTANT: CHECK spelling hack (ENCHANT)
(DEPRECATED) Many locales installed (better to have only one):
sudo aptitude install phython-enchant aspell ispell myspell aspell-en dictionaries-common gnome-spell
After that create with rw permisions the following empty filles to keep your personal dicctionares ($HOME/.config/enchant/):
touch en.dic ca_ES.dic; chmod a+rw *.dic
Then when you ADD words they are copied there. And you can copy this files when formating your PC to recover them.
TIP: Put your dic files in a safe place (e.g., dropbox) and in .config/enchant/ put only symbolic links
One locale installed (English):
sudo aptitude install aspell-en aspell-es aspell-ca. After that create with rw permisions the following empty filles to keep your personal dicctionares $HOME/.config/enchant/lang.dic, If you do not create this files enchant creates –> ($HOME/.aspell.lang.pws (dic) and .aspell.lang.prepl (replacements)). But its better to have simple .dic files.
If you have the locale (lang_Coutry –> ca_ES.dic) if you don’t have it (ca.dic)
Hence for English you may need en_US.dic (symbolic link) in .config/enchant/
TIP: Put your dic files in a safe place (e.g., dropbox) and in .config/enchant/ put only symbolic links
Music
Use standard RithemBox. (Amarok (KDE… DEPRECATED not use keep GNOME software))
Spotfy (the best personal radio, you choose songs)(use with wine)
Vagalume (lastfm best player)(how-to)
Last-exit (vagalume alternative)
CD to MP3 rip -> sound-juicer (apt-get install)
SVN
subversion rapidsvn
IDE
NetBeans (Java, C++, PHP) download form web, easily install, update, upgrade, extend in $HOME.
Preferences are saved in .netbeans (You can remove the netbeans $HOME folder, install a new version, and mantain preferences) (SEE IDEs page CONSIDER MERGING…)
Installing/updating NETBEANS:
- If you want to update/upgrade de software do not uninstall your current version until you finish the new installation.
- Download and install NetBeans Java.
- If you want to update, once installed, impor your preferences (remember java location /usr/lib/jvm/java-6-openjdk/)
- Chechk if projects and plugins are installed.
- If not do it manually (PHP, etc.)
Lightweight: gedit (but somtimes insufficient).
PLN
sudo apt-get install gawk wordnet xmlstarlet lynx
freeling gate MINIPAR
FTP
gftp
Places–> Connect to server –> Then you have the ftp integrated in your filesystem (like dropbox)
Tip: use a bookmark for your ftp server and the you will have it avaliable on Places–>bookmarkname (just perfect)
Tip2 (IMPORTANT): to edit/remove bookmarks go to nautilus explorer (i.e., home folder) and click bookmarks->edit
Network Manager
Network manager is ok, but if you need new encryption protocols (like eduroam) try wicd network manager.
SINCRONIZE PDA-EVOLUTION-GOOGLE CALENDAR-CONTACTs
- Add entries in your repositories list:
- sudo gedit /etc/apt/sources.list
- deb http://ppa.launchpad.net/synce/ubuntu jaunty main
deb-src http://ppa.launchpad.net/synce/ubuntu jaunty main
- sudo apt-get update (if warning add keys: gpg –keyserver hkp://subkeys.pgp.net/ –recv-keys B152F042D246C25D; gpg –export B152F042D246C25D | sudo apt-key add -; sudo apt-get update)
- sudo aptitude install multisync-tools multisync0.90 opensync-module-python opensync-plugin-evolution opensync-plugin-google-calendar opensync-plugin-synce python-opensync synce-gnomevfs synce-gvfs synce-hal synce-sync-engine synce-trayicon librra-tools librapi2-tools
- reboot
- if you see synce-trayicon just connect your PDA to USB else run synce-trayicon in console first.
- Then you can explore folders and see properties of your PDA
- Go to service-status–> create a new partner (perfil) (you will need to create one for each PC you want to conect PDA to, so you can name them with the PC name) and delete any windows partner. (ex: contacts and events) (Never delete all partners because you will loose data).
- NOTE……………………………………………IT SEEMS THAT GOOGLE MAIL WORKS WITH THE PLUGGIN… TRY AGAIN TRY AGAIN… WITHOUT EVOLUTION. It works! (Set GMT+0 no change in google calendar before synchronize)
- Configure your email on Ubuntu Evolution
- (*NOT READY: DOES NOT SUPPORT SETS , RECURRENCE) Go to Calendars –> new –> type:google –> user: youremail@gmail.com –> use SSL (sync every 10min)
- So do not do nothing… keep evolution default “Personal” calendar
- Then go to applications–>accessories–>Mulisync-gui and create a profile (group)
- supersync (add first opensync-plugin and after opensync-evolution-plugin)(keep configuration defaults)
- Now if the pda is connected and you click on refresh you will synchronize it
- *To solve google calendar problem export/import ics to a server and show de calendar in google (read only)
- And that’s it. May be in 2010 we will have a good calendar sync in Ubuntu…
Games
UltraStar Deluxe (or UltraStarNG, lite version of Deluxe).
http://ultrastardeluxe.xtremeweb-hosting.net/wiki/doku.php?id=development:how_to_compile_usdx_using_the_makefile_quick
(deluxe version is nearly native on ubuntu).
Risk (Java Jar)
Printing/Impresora/Imprimir
USB printers are configured automatically
Network printers: System->Admin->Printing->New->LDP
Host: print.dsli.ua.es
Queue: HP4250i/HP4600/hp3505
And then search the correct driver (i.e., hp3505 –> HP Laserjet CP3505)
Then you can go to your http://localhost:631 and activate/configure the new printer (i.e., color, duplex)
Scan/Scanner/Scanning
Use GIMP -> scanner automatically detected
Other
Stellarium
Adobe pdf: adobereader (download deb)
pdf merge pdf: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf
Edit pdfs, comment pdfs, hightlight pdfs: http://www.pdfescape.com
A kind of workaholic (download .deb) (put on startup in System->preferences->session)
YouTube Download python script (youtube-dl) (xVideoServiceThief) (kissyoutube)
aMule
mp3splt (to split mp3 by cue)
Decent CD/DVD Burner: k3b arts libk3b2-extracodecs
MIDI magic utilities
sudo aptitude install alsa-base libasound2 libasound2-dev alsa-oss alsa-source
Applications->Add/Remove->All->MuseScore
Calendar sync PDA/GoogleCalendar/PC
OpenSync, SynCE… (review http://www.synce.org/moin/SynceInstallation/Ubuntu/ModernDevice)
REVIEW (http://www.softwarelibre.net/sincronizar_htc_diamond_con_evolution_ubuntu)
Save calendar in server via cron:
0 09 * * 0 wget http://www.google.com/calendar/ical/hectorlm1983%40gmail.com/private-37560c8e4e2ed23308ff28170eb0858d/basic.ics; mv basic.ics /home/hector/calendar.ics
Problems??? Synaptic
Is a GUI to manage/install/reinstall/uninstall packets. A good thing to do when something fails is to see the file->history to uninstall the last things you have installed and probably have broken your system.
UBUTNU MAINTANACE
Update the system regularly and delete old kernels regularly
- To see your current kernel type: “uname -r”
- (synaptic), search for: “linux-image”
Caution! Be careful of what you remove. Ensure that you don’t remove your current kernel, or anything that is not a linux-image. It is possible to break Ubuntu if you remove the wrong kernel.
———————————————-