Difference between revisions of "Useful programs"

 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is the list of programs I advised you to install on your server / workstation.
+
#REDIRECT [[Template:Menu content core features#Softwares and languages]]
 
 
=Core programs=
 
 
 
 
 
==Archive managers==
 
To handle compress files and folders
 
<syntaxhighlight lang="bash">
 
apt-get install flex libarchive-zip-perl libio-compress-perl m4 perl perl-modules unzip zip
 
apt-get install zoo bzip2 arj nomarch lzop cabextract
 
apt-get install lzip ncompress rzip sharutils unace unalz unrar p7zip-rar
 
</syntaxhighlight>
 
 
 
 
 
==Linux compilation tools==
 
<syntaxhighlight lang="bash">
 
apt-get install make autoconf automake cpp gcc
 
apt-get install subversion build-essential
 
</syntaxhighlight>
 
 
 
 
 
==Core libraries extensions==
 
<syntaxhighlight lang="bash">
 
apt-get install apt-listchanges libnet-ldap-perl libauthen-sasl-perl daemon libio-string-perl libio-socket-ssl-perl
 
apt-get install libnet-ident-perl libnet-dns-perl
 
</syntaxhighlight>
 
 
 
 
 
==Advanced APT manager==
 
<syntaxhighlight lang="bash">
 
apt-get install software-properties-common python-software-properties
 
</syntaxhighlight>
 
 
 
 
 
==Processes==
 
<syntaxhighlight lang="bash">
 
apt-get install htop
 
</syntaxhighlight>
 
 
 
 
 
==Python==
 
Python is a scripting language often used in open-source software’s.
 
<syntaxhighlight lang="bash">
 
apt-get install python3 python3-doc
 
</syntaxhighlight>
 
 
 
 
 
==Startup manager==
 
<syntaxhighlight lang="bash">
 
apt-get install sysv-rc-conf
 
</syntaxhighlight>
 
 
 
Then launch:
 
<syntaxhighlight lang="bash">
 
sysv-rc-conf
 
</syntaxhighlight>
 
 
 
 
 
==Java==
 
See [[JDK_setup]]
 
 
 
On Ubuntu:
 
<syntaxhighlight lang="bash">
 
add-apt-repository ppa:webupd8team/java
 
apt-get update && apt-get upgrade
 
apt-get install oracle-java7-installer oracle-jdk7-installer
 
</syntaxhighlight>
 
 
 
 
 
==Time syncronization==
 
<syntaxhighlight lang="bash">
 
apt-get install ntp ntpdate
 
</syntaxhighlight>
 
 
 
 
 
==Help pages==
 
<syntaxhighlight lang="bash">
 
apt-get install manpages
 
</syntaxhighlight>
 
 
 
 
 
==NFS client==
 
<syntaxhighlight lang="bash">
 
apt-get install nfs-common
 
</syntaxhighlight>
 
 
 
 
 
 
 
 
 
=Drivers=
 
see [[Drivers]]
 
 
 
 
 
 
 
 
 
=Utilities=
 
 
 
 
 
==Guake==
 
Installation
 
<syntaxhighlight lang="bash">
 
apt-get install guake
 
</syntaxhighlight>
 
 
 
Add Guake to boot sequence:
 
 
 
System settings > Startup application > add "Guake" | path: /usr/bin/guake
 
 
 
 
 
==Dos2unix converter and vice-versa==
 
By default Linux cannot run script that are encoded in windows format. Those tools allow you to switch formats.
 
<syntaxhighlight lang="bash">
 
apt-get install dos2unix tofrodos
 
</syntaxhighlight>
 
 
 
To use it just:
 
<syntaxhighlight lang="bash">
 
dos2unix myFile
 
tofrodos myFileOptional features
 
</syntaxhighlight>
 
 
 
 
 
==File manager “midnight commander”==
 
<syntaxhighlight lang="bash">
 
apt-get install mc
 
</syntaxhighlight>
 
 
 
 
 
==Text internet browser==
 
<syntaxhighlight lang="bash">
 
apt-get install lynx
 
</syntaxhighlight>
 
 
 
 
 
==USB startup disk (unetbootin)==
 
<syntaxhighlight lang="bash">
 
apt-get install unetbootin
 
</syntaxhighlight>
 
 
 
 
 
==Windows emulator==
 
<syntaxhighlight lang="bash">
 
apt-get install wine
 
</syntaxhighlight>
 
 
 
Required libs, to be install in a 2nd time
 
<syntaxhighlight lang="bash">
 
apt-get install q4wine
 
</syntaxhighlight>
 
 
 
 
 
 
 
=Internet=
 
 
 
 
 
==Google Chrome==
 
Download the latest version of Chrome: https://www.google.com/intl/en/chrome/browser/
 
 
Install the package using:
 
<syntaxhighlight lang="bash">
 
sudo dpkg -i google-chrome.deb
 
</syntaxhighlight>
 
 
 
If you encounter some errors during installation, just do:
 
<syntaxhighlight lang="bash">
 
sudo apt-get install -f && sudo dpkg -i google-chrome.deb
 
</syntaxhighlight>
 
 
 
 
 
==Filezilla (FTP client)==
 
<syntaxhighlight lang="bash">
 
apt-get install filezilla
 
</syntaxhighlight>
 
 
 
 
 
==Skype==
 
Download skype from the official website: http://www.skype.com/
 
<syntaxhighlight lang="bash">
 
sudo dpkg -i skype-ubuntu-XX.deb
 
</syntaxhighlight>
 
 
 
If you encounter some errors during installation, just do:
 
<syntaxhighlight lang="bash">
 
sudo apt-get install -f && sudo dpkg -i skype-ubuntu-XX.deb
 
</syntaxhighlight>
 
 
 
 
 
 
 
=Office tools=
 
 
 
 
 
==Libre office==
 
 
 
===Core features===
 
<syntaxhighlight lang="bash">
 
apt-get install libreoffice libreoffice-calc libreoffice-draw  libreoffice-impress libreoffice-writer libreoffice-templates libreoffice-pdfimport
 
</syntaxhighlight>
 
 
 
 
 
===Proficient tools===
 
 
 
====ENGLISH====
 
<syntaxhighlight lang="bash">
 
apt-get install hunspell-en-us hyphen-en-us mythes-en-us
 
</syntaxhighlight>
 
 
 
If you don't like the "hunspell" dictionnary you can install "myspell" instead:
 
<syntaxhighlight lang="bash">
 
apt-get install myspell-en-us
 
</syntaxhighlight>
 
 
 
====Francais====
 
<syntaxhighlight lang="bash">
 
apt-get install hunspell-fr hyphen-fr mythes-fr
 
</syntaxhighlight>
 
 
 
====Svenska====
 
<syntaxhighlight lang="bash">
 
apt-get install hunspell-sv-se
 
</syntaxhighlight>
 
 
 
 
 
===UI (menu) languages===
 
 
 
====Francais====
 
<syntaxhighlight lang="bash">
 
apt-get install libreoffice-l10n-fr libreoffice-help-fr
 
</syntaxhighlight>
 
 
 
====Svenska====
 
<syntaxhighlight lang="bash">
 
apt-get install libreoffice-l10n-sv libreoffice-help-sv
 
</syntaxhighlight>
 
 
 
 
 
==Cliparts==
 
Nowdays you don't need to install it. Just use Google images instead!
 
 
 
<syntaxhighlight lang="bash">
 
apt-get install openclipart-libreoffice openclipart2-libreoffice
 
</syntaxhighlight>
 
 
 
!! Careful !! Total is about 760 Mb ! Just install the first package = 160Mb to get some cliparts.
 
 
 
 
 
 
 
 
 
=Multimedia=
 
 
 
 
 
==Restricted extras==
 
Each Ubuntu flavor has a specific set of restricted libraries to play music, videos and so on...
 
If you plan to do anything else than working you should definitively install that package! ;)
 
 
 
Get the package for your distro
 
<syntaxhighlight lang="bash">
 
apt-cache search restricted | grep extra
 
</syntaxhighlight>
 
 
 
Install, example for xUbuntu:
 
<syntaxhighlight lang="bash">
 
apt-get install xubuntu-restricted-extras
 
</syntaxhighlight>
 
 
 
 
 
==VLC==
 
<syntaxhighlight lang="bash">
 
apt-get install vlc
 
</syntaxhighlight>
 
 
 
 
 
==Rhythmbox==
 
This is an excellent audio player!
 
 
 
<syntaxhighlight lang="bash">
 
apt-get install rhythmbox rhythmbox-mozilla rhythmbox-doc rhythmbox-plugin-visualizer rhythmbox-radio-browser
 
</syntaxhighlight>
 
 
 
 
 
==Quicktime==
 
<syntaxhighlight lang="bash">
 
apt-get install libquicktime2
 
</syntaxhighlight>
 
 
 
 
 
==Cairo-dock==
 
Nice and usefull dock to access your applications.
 
<syntaxhighlight lang="bash">
 
apt-get install cairo-dock cairo-dock-plug-ins cairo-dock-plug-ins-integration
 
</syntaxhighlight>
 
 
 
Then, add it to startup:
 
* Launch cairo-dock, right click on it ;
 
* in the "cairo-dock" menu click 'add it to startup'
 
 
 
Alternative way of adding it to startup:
 
* Xubuntu > start menu > all settings > Session and startup > "application autostart" > Add
 
 
 
 
 
 
 
 
 
=Graphical=
 
 
 
 
 
==Gimp==
 
Gimp is an excellent tool:
 
<syntaxhighlight lang="bash">
 
apt-get install gimp gimp-help-common
 
</syntaxhighlight>
 
 
 
Some extra features:
 
<syntaxhighlight lang="bash">
 
apt-get install gimp-data-extras gimp-gmic gimp-ufraw gnome-xcf-thumbnailer
 
</syntaxhighlight>
 
 
 
Help
 
<syntaxhighlight lang="bash">
 
apt-get install gimp-help-fr
 
</syntaxhighlight>
 
 
 
 
 
 
 
=Network tools=
 
 
 
 
 
==Curl==
 
Use ''curl'' to check some URLs
 
<syntaxhighlight lang="bash">
 
apt-get install curl
 
</syntaxhighlight>
 
 
 
 
 
==SSH manager==
 
To manage SSH connections, PAC manager is an excellent tool. see http://sourceforge.net/projects/pacmanager/
 
 
 
* Install the required package
 
<syntaxhighlight lang="bash">
 
apt-get install libgtk2-appindicator-perl
 
</syntaxhighlight>
 
 
 
* Download the latest version
 
 
 
* install the package:
 
<syntaxhighlight lang="bash">
 
sudo dpkg -i pac.deb
 
</syntaxhighlight>
 
 
 
In case of error:
 
<syntaxhighlight lang="bash">
 
Errors were encountered while processing: pac
 
</syntaxhighlight>
 
 
 
Just do:
 
<syntaxhighlight lang="bash">
 
sudo apt-get install -f && sudo dpkg -i pac.deb
 
</syntaxhighlight>
 
 
 
 
 
==Remmina==
 
Remmina is an excellent tool to manage Windows Remote Desktop Connections. see http://remmina.sourceforge.net/
 
<syntaxhighlight lang="bash">
 
apt-get install rdesktop
 
apt-get install remmina remmina-plugin-vnc remmina-plugin-gnome remmina-plugin-rdp
 
</syntaxhighlight>
 
 
 
 
 
 
 
=Security=
 
 
 
 
 
==Security audit==
 
Port scanner:
 
<syntaxhighlight lang="bash">
 
apt-get install nmap
 
</syntaxhighlight>
 
 
 
Interface listeners:
 
<syntaxhighlight lang="bash">
 
apt-get install tshark wireshark wireshark-doc
 
</syntaxhighlight>
 
 
 
 
 
==OpenVPN==
 
That will install openvpn client + server + UI client to manage ovpn files.
 
 
 
<syntaxhighlight lang="bash">
 
apt-get install openvpn
 
apt-get install network-manager-openvpn
 
</syntaxhighlight>
 
 
 
 
 
 
 
=Development=
 
 
 
 
 
==Sublime text==
 
''Sublime text'' is a nice alternative to default editors such as ''Vim'', ''Gedit'', '''MousePad''', ...
 
 
 
* Just download it from the official website: http://www.sublimetext.com/
 
 
 
* Then, extract it in ''/opt/sublime_text/'' and run it! ;)
 
 
 
 
 
==Bess hexadecimal editor==
 
<syntaxhighlight lang="bash">
 
apt-get install bless
 
</syntaxhighlight>
 
 
 
 
 
==MySQL workbench==
 
apt-get install mysql-workbench
 
 
 
 
 
==Squirrel SQL==
 
http://squirrel-sql.sourceforge.net/
 
 
 
===Installation===
 
Download the latest version of Squirrel SQL from the official website.
 
 
 
Then, launch the installation:
 
<syntaxhighlight lang="bash">
 
java -jar squirrel-sql-3.5.2-standard.jar
 
</syntaxhighlight>
 
 
 
Install the following plugins:
 
* Microsoft SQL server
 
* MySQL
 
* SQL param
 
* SQL replace
 
* SQL validator
 
 
 
===Drivers installation===
 
Download the required drivers:
 
* MySQL JDBC: http://dev.mysql.com/downloads/connector/j/
 
* Microsoft JTDS driver: http://sourceforge.net/projects/jtds/
 
 
 
Copy the .jar files into ''squirrelSql/lib'':
 
* mysql-connector-java-5.1.0-bin.jar
 
* jtds-1.3.1.jar
 
 
 
===Run the application===
 
Then you can run the application:
 
<syntaxhighlight lang="bash">
 
./squirrel-sql.sh
 
</syntaxhighlight>
 
 
 
You should see in "drivers" that both ''Microsoft SQL'' + ''MySQL'' are available.
 
 
 
===Create advanced symlinks===
 
Create new symlinks
 
<syntaxhighlight lang="bash">
 
sudo ln -s /home/guillaume/DEV/squirrelsql/squirrel-sql.sh /usr/bin/squirrel-sql
 
</syntaxhighlight>
 
 
 
===Create icon===
 
for Xubuntu only
 
 
 
* Go to start menu > Settings > Menu Editor
 
* Under development, add a new launcher
 
** Command: ''/home/guillaume/DEV/squirrelsql/squirrel-sql.sh''
 
 
 
 
 
==DbVisualizer==
 
DbVisualizer is a generic tool to access different types of databases.
 
http://www.dbvis.com/
 
 
 
===Installation===
 
* Go to DOWNLOAD
 
 
 
* Download the latest version for Linux: '''Linux x86 (setup installer)'''
 
 
 
* Mark the downloaded file as executable and run it
 
<syntaxhighlight lang="bash">
 
chmod 755 dbvis_linux_9_1_8.sh
 
./dbvis_linux_9_1_8.sh
 
</syntaxhighlight>
 
 
 
* Install the application
 
** I advised you to put it in ''/opt/DbVisualizer''
 
... First, you have to grant your user the right to use /opt : '''chown -R myUser:myUser /opt'''
 
 
 
** Create symlinks in ''/usr/local/bin''
 
... If you're not root then this step might not succeed!
 
 
 
* Installation is done! You can run the application
 
 
 
===Create advanced symlinks===
 
Create new symlinks
 
<syntaxhighlight lang="bash">
 
sudo ln -s /opt/DbVisualizer/dbvis /usr/local/bin/
 
</syntaxhighlight>
 
 
 
===Create icon===
 
for Xubuntu only
 
 
 
* Go to start menu > Settings > Menu Editor
 
 
 
* Under development, add a new launcher
 
** Command: ''/opt/DbVisualizer/dbvis''
 
 
 
 
 
==Subversion==
 
<syntaxhighlight lang="bash">
 
apt-get install subversion subversion-tools
 
</syntaxhighlight>
 
 
 
 
 
==GIT==
 
Help page: http://git-scm.com/book/en/
 
 
 
===Installation===
 
<syntaxhighlight lang="bash">
 
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
 
apt-get install git git-doc git-gui
 
</syntaxhighlight>
 
 
 
If you want to use GIT as your local SVN client:
 
<syntaxhighlight lang="bash">
 
apt-get install git-svn
 
</syntaxhighlight>
 
 
 
If you want to browse the GIT repository in a local browser:
 
<syntaxhighlight lang="bash">
 
apt-get install gitweb
 
</syntaxhighlight>
 
 
 
===Configuration===
 
Run the following commands a '''standard user''', not root!
 
 
 
<syntaxhighlight lang="bash">
 
git config --global user.name "guillaume.diaz"
 
git config --global user.email johndoe@example.com
 
git config --global core.editor vim
 
</syntaxhighlight>
 
 
 
===Get project files===
 
Run the following commands a '''standard user''', not root!
 
 
 
* Clone an existing project
 
<syntaxhighlight lang="bash">
 
git clone [url] [targetFolder]
 
</syntaxhighlight>
 
 
 
* Perform operation using Git GUI
 
<syntaxhighlight lang="bash">
 
cd [my GIT repo]
 
git gui
 
</syntaxhighlight>
 
 
 
 
 
* Check files status
 
<syntaxhighlight lang="bash">
 
git status
 
</syntaxhighlight>
 
 
 
* Add file
 
<syntaxhighlight lang="bash">
 
git add [file]
 
</syntaxhighlight>
 
 
 
* Commit
 
<syntaxhighlight lang="bash">
 
git commit -m "my comment"
 
</syntaxhighlight>
 
 
 
 
 
===Ignore files in GIT===
 
Create a file called .gitignore to the root of your GIT repo.
 
<syntaxhighlight lang="bash">
 
cd [my GIT repo]
 
vim .gitignore
 
</syntaxhighlight>
 
 
 
 
 
Insert the following code:
 
<syntaxhighlight lang="bash">
 
## generic files to ignore
 
*~
 
*.lock
 
*.DS_Store
 
*.swp
 
*.out
 
*.tmp
 
*.temp
 
build/
 
 
 
#java specific
 
*.class
 
target/
 
 
 
#maven
 
pom.xml.tag
 
pom.xml.releaseBackup
 
pom.xml.versionsBackup
 
pom.xml.next
 
release.properties
 
 
 
#netbeans ignore personal stuff
 
nbproject/private/
 
 
 
#eclipse specifics
 
settings/
 
.project
 
.classpath
 
.checkstyle
 
</syntaxhighlight>
 
 
 
You can find more example on https://github.com/github/gitignore
 

Latest revision as of 22:44, 17 December 2014