Saturday, October 25, 2014

Helping Windows users make the Linux switch

Are you tired of Micro$haft spying on you and shoving up your throat Metro interfaces ? Worry no more ! I will give you a list of essential Linux apps that you probably love using them on Windows (well, most of them), so you can say goodbye to Windows for good.

If you have zero knowledge about Linux, please search the net about how to install your favourite Linux distribution and how to work with the Terminal.

The list of packages will be mostly for Xubuntu 14.04 LTS x64 but it should work on any other Debian based distro.



################################################################

This is a compilation of the most essential apps for a new Linux user who just moved from Windows and not limited to only new users but also professionals.
These commands are to be executed *one by one* in a terminal by starting with the first and most important:

sudo -i
================================================
IN CASE YOU CAN'T ADD REPOS INSTALL THESE:
apt-get install python-software-properties software-properties-common
================================================
UPDATE NEWLY INSTALLED XUBUNTU INSTALLATION (WITH AUTOREBOOT):
apt-get update && apt-get dist-upgrade -y && reboot
================================================

#################################
#   REPOSITORIES TO BE ADDED:   #
#################################

*Note* After adding your preferred repositories don't forget to execute apt-get update

=====================
=   Generic Repos   =
=====================
#Wine
add-apt-repository -y ppa:ubuntu-wine/ppa

#KeePass
add-apt-repository -y ppa:jtaylor/keepass

#Transmission
add-apt-repository -y ppa:transmissionbt/ppa

#Grub Customiser
add-apt-repository -y ppa:danielrichter2007/grub-customizer

#Skype (You can also enable "Canonical Partners")
add-apt-repository -y "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

#WebUpd8
add-apt-repository -y ppa:nilarimogard/webupd8

#FileZilla + BleachBit
add-apt-repository -y ppa:n-muench/programs-ppa

#TOR Browser
add-apt-repository -y ppa:webupd8team/tor-browser

#Java 8 JRE + Java 8 JDK
add-apt-repository -y ppa:webupd8team/java

#JDownloader
add-apt-repository -y ppa:jd-team/jdownloader

#SMPlayer
add-apt-repository -y ppa:rvm/smplayer

#Popcorn Time
add-apt-repository -y ppa:webupd8team/popcorntime

#RetroShare
add-apt-repository -y ppa:csoler-users/retroshare

#GiMP
add-apt-repository -y ppa:otto-kesselgulasch/gimp

#Pipelight (Silverlight)
add-apt-repository -y ppa:pipelight/stable

#Google
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
add-apt-repository -y "deb http://dl.google.com/linux/chrome/deb/ stable main"
add-apt-repository -y "deb http://dl.google.com/linux/earth/deb/ stable main"

=======================================
=      Audio/Video Editing Repos      =
=======================================
#Cinelerra (Video Editing)
add-apt-repository -y ppa:cinelerra-ppa/ppa

#Kdenlive (Video Editing)
add-apt-repository -y ppa:sunab/kdenlive-release

#LiVES (Video Editing)
add-apt-repository -y ppa:ubuntuhandbook1/lives

#FFmpeg
add-apt-repository -y ppa:jon-severinsson/ffmpeg

#Format Junkie
add-apt-repository -y ppa:noobslab/apps

======================
=    Special Repos   =
======================
#Conky Manager/Selene
add-apt-repository -y ppa:teejee2008/ppa

#Ubuntu Tweak
add-apt-repository -y ppa:tualatrix/ppa

#LMMS - Linux Multimedia Studio
add-apt-repository -y ppa:irie/lmms

#Nautilus Extensions
add-apt-repository -y ppa:atareao/nautilus-extensions

#Unetbootin
add-apt-repository -y ppa:gezakovacs/ppa

======================
=    Gaming Repos    =
======================
#Games (xonotic torcs stuntrally speed-dreams)
wget -q -O - http://archive.getdeb.net/getdeb-archive.key | apt-key add -
add-apt-repository -y "deb http://archive.getdeb.net/ubuntu $(lsb_release -sc)-getdeb games"
apt-get update

###########################
#  SOFTWARE INSTALLATION  #
###########################

GENERIC APPS FOR INSTALLATION:
apt-get install synaptic anacron xsel mono-dmcs xdotool keepass2 kate filezilla gtk-recordmydesktop gparted furiusisomount ntp grub-customizer lm-sensors gedit gedit-plugins vlc browser-plugin-vlc wine1.6 winetricks xubuntu-restricted-extras libreoffice geany unrar xchat nfoview calibre galculator lame units gufw krusader krename md5deep cfv arj unace rar rpm nautilus smplayer thunderbird guvcview xpad skype scribus p7zip-full google-chrome-stable google-earth-stable:i386 tor-browser clonezilla tuxpaint pidgin jdownloader jdownloader-installer libdvdread4 libdvdcss2 libdvdnav4 popcorn-time nautilus-scripts nautilus-image-tools nautilus-columns pipelight-multi libavcodec-extra retroshare inkscape vorbis-tools flac wavpack asunder libavcodec-extra ffmpeg gimp gimp-plugin-registry ppa-purge qjoypad httrack webhttrack httraqt cpufrequtils oracle-java8-installer gsmartcontrol linux-firmware-nonfree libjpeg62 libjpeg62:i386 mono-complete gksu pinta

SPECIAL APPS (OPTIONAL):
apt-get install gnucash bleachbit wireshark conky conky-manager openvpn ubuntu-tweak unetbootin ubuntu-wallpapers-* edgy-wallpapers feisty-wallpapers gutsy-wallpapers ubuntu-wallpapers squashfs-tools genisoimage virtualbox virtualbox-guest-additions-iso

DEVELOPMENT APPS (DEVELOPERS/OPTIONAL):
apt-get install android-tools-fastboot android-tools-adb vim eclipse build-essential intltool debian-keyring

AUDIO/VIDEO EDITING (OPTIONAL):
apt-get install cinelerra-cv handbrake blender audacity lmms lives formatjunkie kdenlive selene

GAMES (OPTIONAL):
apt-get install alien-arena extremetuxracer xmoto trigger-rally minetest scorched3d freedink gnujump gl-117 snake4 doomsday nexuiz openarena supertux supertuxkart xonotic torcs stuntrally speed-dreams enemy-territory bloodfrontier assaultcube freedoom urbanterror gzdoom forsaken legends tileracer

==============================================================================================================================================================
==============================================================================================================================================================
==============================================================================================================================================================

=============================
=  IMPORTANT SYSTEM TWEAKS  =
=============================

REMOVE FOLLOWING APPS (RECOMMENDED)
apt-get remove nepomuk-core-data xul-ext-ubufox sylpheed gnome-mplayer leafpad
================================================
INSTALL ia32-libs on x64 UBUNTU (IMPORTANT):

apt-get install libc6:i386
cd /etc/apt/sources.list.d
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm /etc/apt/sources.list.d/ia32-libs-raring.list
apt-get update
apt-get install gcc-multilib
================================================
DISABLE IPV6 (OPTIONAL):
gedit /etc/default/grub
Where it says "quiet splash" add ipv6.disable=1
Uncomment GRUB_DISABLE_RECOVERY="true"
Execute update-grub and reboot.
================================================
REMOVE OLD KERNEL IMAGE ON XUBUNTU (OPTIONAL):
current=`uname -r` && uninstall="" && for version in `dpkg -l linux-image* | grep ii | awk '{ print $2}'`; do if [[ "$version" < "linux-image-$current" ]]; then uninstall=$uninstall" $version"; fi; done && sudo apt-get purge $uninstall -y && sudo update-grub2
================================================
FASTBOOT DRIVERS FOR ANDROID PHONES (OPTIONAL, for firmware flashing via fastboot):
gedit /etc/udev/rules.d/51-android.rules

Add:
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", SYMLINK+="android_adb", GROUP="plugdev" #Google
SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" #HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev" #Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666", GROUP="plugdev" #K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666", GROUP="plugdev" #KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666", GROUP="plugdev" #Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev" #Lenovo
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" #LG
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev" #Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="0e8d", MODE="0666", GROUP="plugdev" #MTK
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666", GROUP="plugdev" #NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666", GROUP="plugdev" #Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666", GROUP="plugdev" #Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666", GROUP="plugdev" #OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0666", GROUP="plugdev" #Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="1d4d", MODE="0666", GROUP="plugdev" #Pegatron
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666", GROUP="plugdev" #Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666", GROUP="plugdev" #PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666", GROUP="plugdev" #Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666", GROUP="plugdev" #SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev" #Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666", GROUP="plugdev" #Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="054c", MODE="0666", GROUP="plugdev" #Sony
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666", GROUP="plugdev" #Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="2340", MODE="0666", GROUP="plugdev" #Teleepoch
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666", GROUP="plugdev" #Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev" #ZTE

Execute:
chmod a+r /etc/udev/rules.d/51-android.rules
================================================
USB RULES FOR FLASHTOOL (OPTIONAL):
cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/80-persistent-usb.rules
gedit /etc/udev/rules.d/80-persistent-usb.rules

Delete everything and add:
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="054c", SYSFS{idProduct}=="*", MODE="0777" #Sony
SUBSYSTEM=="usb", ACTION=="add", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="*", MODE="0777" #Sony Ericsson
================================================
ALWAYS RUN KEEPASS 2 WITH ROOT (OPTIONAL, keeps saved settings):

visudo

username ALL = NOPASSWD: /usr/lib/keepass2/
================================================
PREVENT KERNEL UPDATES (OPTIONAL):
Open Synaptic and search for "linux-".
Then hit the column header above the checkboxes to put the currently installed packages at the top and then highlight the kernel, headers, modules, image, and the metapackages.
Then go to Package -> Lock Version. That way they won't get upgraded at all until you unlock them.
================================================
INSTALLING LATEST LINUX KERNEL IN UBUNTU (RECOMMENDED):
If you want to completely remove the stock kernel then type in a terminal:
apt-get remove --purge linux-image-*
apt-get remove --purge linux-headers-*

***After purging the stock kernel you must absolutely install the latest kernel; Read below:***

Navigate to:
http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D
And open the web folder to the latest kernel version.

You may first check out your OS type, 32-bit (i386) or 64-bit (amd64), then download and install the packages below in turn:
    1. linux-headers-*VERSION*_xxx_all.deb
    2. linux-headers-*VERSION*-generic_*VERSION*.xxx_i386/amd64.deb
    3. linux-image-*VERSION*0-generic_*VERSION*.xxx_i386/amd64.deb

Rename them like that:
linux-headers-*VERSION*_xxx_all.deb => 1.deb
linux-headers-*VERSION*-generic_*VERSION*.xxx_i386/amd64.deb => 2.deb
linux-image-*VERSION*0-generic_*VERSION*.xxx_i386/amd64.deb => 3.deb

Right click on your folder where the deb files are located and click "Open Terminal".
Then simply type:

sudo dpkg -i ./1.deb

and so on with the rest of the files.

After installing the latestr kernel reboot and in a terminal type: uname -r
If it displays your latest version then it is recommended to completely remove the stock kernel.
Open Synaptic and search for your stock kernel version, select all previous version kernel packages and right click on "Mark for Complete Removal". Then Apply and execute update-grub in a terminal and reboot.

You can also install them by clicking on the .deb files but make sure you install them by their order.
If you're using a proprietary video driver, you may need to re-build (or re-install) the driver to get it to work with new kernel.
================================================
DISABLE APPORT ERROR REPORTING (OPTIONAL):
gedit /etc/default/apport

enabled=0
================================================
ENABLE SILVERLIGHT AND WIDEVINE (IMPORTANT):
First pipelight-multi must be installed.
To enable Silverlight and Widevine, type in terminal:
pipelight-plugin --enable silverlight
pipelight-plugin --enable widevine
================================================
ENABLE ENCRYPTED DVD PLAYBACK (OPTIONAL):
apt-get install libdvdread4

In terminal:
/usr/share/doc/libdvdread4/install-css.sh
================================================
AUTOMATICALLY UPDATE SYSTEM DAILY BY USING ANACRONTAB (RECOMMENDED):

First of all we need to set up some settings and permissions so that anacron can be run one a regular user.

Add group "anacron":
addgroup anacron

Add "root" user (WHILE RUNNING TERMINAL UNDER sudo -i):
adduser $USER anacron

Add your current user (WHILE RUNNING TERMINAL WITHOUT sudo -i):
sudo adduser $USER anacron

Change the permissions so that anacron can store timestamps:
chown root.anacron /var/spool/anacron
chmod g+w /var/spool/anacron

Now let's add our daily job:
gedit /etc/anacrontab

Append the following:
START_HOURS_RANGE=0-23
1       5      sys.upgrade      apt-get update && apt-get dist-upgrade -y

================================================
SETTING UP PPA PACKAGES PRIORITY  ***EXAMPLE***:
Let's say that you have two different PPAs added and those two PPAs contain the same package and you want to install your package from the repository that has the latest version.
You need to set repository priorities first!

First we need to know how to identify our PPA. The apt-cache policy command on its own dispays information about all sources. I know my PPA has "nathan" in the name so I do:

$ apt-cache policy | grep nathan
400 http://ppa.launchpad.net/nathan-renniewaldock/ppa/ubuntu/ precise/main i386 Packages
     release v=12.04,o=LP-PPA-nathan-renniewaldock,a=precise,n=precise,l=PPA,c=main

The interesting part is "o=LP-PPA-nathan-renniewaldock", which we use in the /etc/apt/preferences.d/nathan-prefs file like this:

Package: *
Pin: release o=LP-PPA-nathan-renniewaldock
Pin-Priority: 400

Package: ddclient
Pin: release o=LP-PPA-nathan-renniewaldock
Pin-Priority: 500

This makes all package versions from the above PPA to be ignored except ddclient which has 500 priority.
================================================
INSTALL PEPPER FLASH PLUGIN FOR GOOGLE CHROME (IMPORTANT):

As many of you already know, the latest Adobe Flash Player is available for Linux only through Google Chrome while other browsers are stuck with version 11.2. Further more, Flash 11.2 will stop working in Chromium because it uses the Netscape Plugin API (NPAPI), which Chromium will stop supporting this year.

For these reasons, an Adobe Flash Player Pepper installer has been added to the official Ubuntu 14.04 repositories, imported from Debian.

This installer downloads Google Chrome, unpacks it, extracts Pepper Flash and sets it up so it can be used in Chromium browser.

apt-get install pepperflashplugin-nonfree
update-pepperflashplugin-nonfree --install
================================================
INSTALL THE DEFAULT FLASH PLAYER PLUGIN (IMPORTANT):
For x86 systems:
apt-get install flashplugin-installer

For x64 systems:
First the "Canonical Partners" repository must be enabled, which
will be enabled if you already added the "#Skype" repository from the top of this list.

apt-get install adobe-flashplugin
================================================
ALWAYS RUNNING APPS WITH ROOT WITHOUT PASSWORD (HOW-TO):

You need to edit the sudoers file. Be advised that success gives you a less secure system and failure can break sudo. ALWAYS edit the sudoers file with sudo visudo , as visudo checks for errors and will not save the file if any are found.

It's a bad idea to give everything permission to run as root without a password, so to just let through the one executable you need(apache2ctl); append the following to the very bottom of the file:

YOURNAME ALL = NOPASSWD: /usr/bin/apache2ctl

You can replace the path to an executable with "ALL" if you choose, giving you complete passwordless sudo.

Replace YOURNAME with your username and press Ctrl + X to save and exit. If an error occurred, it will offer to revert, edit, or save anyway.
================================================================================================================================================################################################################

Other interesting apps that you might consider installing that are not on the repositories:
VMware Workstation 11, Nero for Linux, Viber,  Maple 17, Matlab, VeraCrypt, VueScan. (Some of them are not free and require you to input serial number, so you better search these on TPB)

BTW if you are not satisfied with the display of the list on this blog, you can view it on pastebin:
http://pastebin.com/FFJYPykX

No comments:

Post a Comment