New Mint Install - My tips 'n tricks!! [updated]

Write tutorials here
There are more tutorials here
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
Level 4
Level 4
Posts: 284
Joined: Sat Jun 09, 2007 9:18 pm

New Mint Install - My tips 'n tricks!! [updated]

Post by twodogs » Fri Sep 07, 2012 12:13 pm

These are some of the things that I do after I install. I have installed Linux Mint on a lot of peoples computers and they seem to help out.

1) I remove the 'Computer' icon from desktop (it's in 'Cinnamon Settings' under the Desktop icon). Then I 'create a laucher' by right-clicking the desktop. I call it 'Computer' and give it the same icon that was being used by the original 'Computer.' For 'command' I use:

Code: Select all

gksu nautilus /
What it does... When I need root browser, say to add a theme to /usr/share/themes, I just click the icon, enter password and go!

2) I change to 'single click to open items.' Open Nautilus and go to Edit>Preferences and choose the 'Behavior' tab. Select the 'single click to open items' radio button. I just like the one click! While I'm at it, I open the root browser (see item 1) and go to Edit>Preferences and choose the 'Behavior' tab again. I leave 'double click to open items' the way it is but instead un-check the 'include a Delete command that bypasses trash' option under 'Trash.' This makes it harder to do damage and delete something important I'm more conscious about what I'm doing with the double click enabled.

3) After I've done my initial update with 'Mint Update' in the icon tray, I change it's icons. Go to this page to get 'em!

4) I change the clock settings. Click the clock and select 'date and time settings.' I replace the date format for the panel with

Code: Select all

%a %b %e, %_I:%M %p
5) Open a terminal on desktop I add software! I add a few special things first that come from a PPA, and then I add the stuff from the Mint/Ubuntu repositories.

#Faenza icon theme

Code: Select all

sudo add-apt-repository ppa:tiheum/equinox && sudo apt-get update && sudo apt-get install faenza-icon-theme

Code: Select all

sudo add-apt-repository ppa:danielrichter2007/grub-customizer && sudo apt-get update && sudo apt-get install grub-customizer
#Ubuntu Tweak

Code: Select all

sudo add-apt-repository ppa:tualatrix/ppa && sudo apt-get update && sudo apt-get install ubuntu-tweak
#Gimp 2.8

Code: Select all

sudo add-apt-repository ppa:otto-kesselgulasch/gimp && sudo apt-get update && sudo apt-get install gimp gimp-plugin-registry
#Google Earth

Code: Select all

wget && sudo dpkg -i ~/google-earth-stable_current_amd64.deb

Code: Select all

sudo add-apt-repository ppa:docky-core/ppa && sudo apt-get update && sudo apt-get install docky

Code: Select all

sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install wine1.5 winetricks
#Google Chrome
download from here.
enter these commands in terminal to install...
32 bit

Code: Select all

sudo apt-get install libcurl3 libnspr4-0d libxss1
         cd Downloads
        sudo dpkg -i google-chrome-stable_current_i386.deb
64 bit

Code: Select all

sudo apt-get install libcurl3 libnspr4-0d libxss1
        cd Downloads
        sudo dpkg -i google-chrome-stable_current_amd64.deb
#everything else!

Code: Select all

sudo apt-get update && sudo apt-get install stellarium gimp-help-en gimp-data-extras inkscape cheese filezilla moc ubuntu-restricted-extras synapse elinks conky build-essential checkinstall alarm-clock gedit-plugins htop sysinfo ttf-droid gprename gelemental virtualbox-ose librsvg2-bin mplayer fswebcam scrot agave ttf-mscorefonts-installer unrar p7zip-full audacious dconf-tools soundconverter easytag radiotray contacts overlay-scrollbar liferea emerillon preload bleachbit comix playonlinux
After all that, I download Skype and Dropbox.

If any problems with dependencies, I run do this in terminal...

Code: Select all

sudo apt-get install -f
6) I install Mint-X-F icons and Silver XCursors.

7) I create a file in /home called '.conkyrc' and put this in it...

Code: Select all

background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
on_bottom yes
update_interval 3

own_window_class Conky
own_window yes
own_window_type conky
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 4
border_width 1

default_color 3C3B37
default_shade_color white
default_outline_color white

gap_x 30
gap_y 20
alignment top_right
minimum_size 200 5
maximum_width 900

use_spacer no
no_buffers yes
uppercase no
text_buffer_size 2048
temperature_unit fahrenheit

color0 D3D7CF #clock
color1 D3D7CF #small text
color2 D3D7CF #menu item
color3 D3D7CF #processor 1 
color4 D3D7CF #processor 2 
color5 D3D7CF #ram 
color6 D3D7CF #battery 
color7 D3D7CF #hard drive 
color8 D3D7CF #up 
color9 D3D7CF #down
#${alignr}${color1}${battery_percent BAT0}%${color}

${color0}${font Computerfont:size=50}${alignr}${time %H%M}${font}${color}
${voffset 10}${font Ubuntu:size=9}
${alignr}${color1}Linux Mint 13 Maya${color}
${alignr}${color1}${cpu cpu1}%${color} ${color3}${cpubar cpu1 8,60}${color}
${alignr}${color1}$memperc%${color} ${color5}${membar 8,60}${color}
8 ) Get all programs and services back in 'Startup Applications'
enter this in terminal...

Code: Select all

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
I uncheck the things I don't need to run at startup and I add 'Conky' with command: ~/bin/ is just a shell script with this inside it...

Code: Select all

sleep 20 && conky ;
make sure it's marked as executable.

9) I like my computer to chime on the hour, automatically. I found a nice wav file of a grandfather clock sound and saved it in ~/.sounds folder I created. Next, I open a terminal and enter

Code: Select all

crontab -e
, choose item 2 (nano) and then enter...

Code: Select all

0 * * * * mplayer /home/dave/.sounds/chime.wav >/dev/null 2>&1
hit cntrl+o to save and cntrl+x to exit. done. On the hour, every hour, I have a nice chime.

10) I use alot of keyboard shortcuts and alias' to make life easier!
shortcuts under 'Launchers'...
terminal alt+t
calculator alt+c
web browser (firefox) alt+w
home folder alt+f

shortcuts under 'Sound and Media'...
mute alt+m
volume down alt+j
volume up alt+k

custom shortcuts...
google chrome command: /usr/bin/google-chrome --enable-webgl --ignore-gpu-blacklist %U alt+x
force quit command: xkill shift+cntrl+alt+x
main menu command: /usr/bin/cinnamon-menu-editor alt+backslash
startup aplications command: gnome-session-properties alt+]
keyboard shortcuts command: gnome-control-center keyboard alt+[
update manager command: mintupdate alt+u
synaptic command: gksu synaptic alt+i
reload conky command: killall -SIGUSR1 conky alt+0 (zero)
applications command: xdg-open /usr/share/applications alt+a
open root browser command: gksu nautilus / shift+alt+r
conky off command: killall conky alt+9
conky on command: conky alt+8
open Documents folder xdg-open ~/Documents alt+cntrl+e
open Downloads folder xdg-open ~/Downloads alt+cntrl+d
open Music folder xdg-open ~/Music alt+cntrl+m
open PDF folder xdg-open ~/PDF alt+cntrl+b
open Pictures folder xdg-open ~/Pictures alt+cntrl+p
open Torrents folder xdg-open ~/Torrents alt+cntrl+t
open Videos folder xdg-open ~/Videos alt+cntrl+v
open TOP_SECRET folder xdg-open ~/Desktop/.TOP_SECRET shift+cntrl+alt+t

my alias (yeah, I know there are alot but I remember them all!)...
first, put this code at the beginning of your .bashrc file in /home/username

Code: Select all

#insert the following at the end of $HOME/.bashrc
# Source the aliases, if a separate file exists
if [ -e $HOME/.alias ]; then
  [ -n "$PS1" ] && . $HOME/.alias
then create a file in /home/username called .alias and put this code in it...

Code: Select all

#Aliases for improved directory listings
#The --color=tty option shows items in different colors according to their type.
#For example, directories are blue, executable files are green, symlinks are cyan, etc.
#The -F option appends a symbol after entries to indicate their types.
#You might not like both options at the same time.
alias ls='ls -F --color=tty' #regular ls
alias l.='ls -dF .[a-zA-Z0-9]* --color=tty' #only show dotfiles
alias ll='ls -lhF --color=tty' #long listing
alias dir='ls -ba'

#Make these commands ask before clobbering a file. Use -f to override.
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"

#Use human-readable filesizes
alias du="du -h"
alias df="df -h"

#Automatically do an ls after each cd
cd() {
  if [ -n "$1" ]; then
    builtin cd "$@" && ls
    builtin cd ~ && ls

#Miscellaneous alias' I've gathered over time...
alias bzip2='bzip2 -v'
alias j=jobs
alias cd..="cd .." #work around a common typo
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias c='clear'
alias e='espeak'
alias kgp='killall gnome-panel'
alias k='kill'
alias kn='nautilus -q'
alias q='exit'
alias movielist1='ls /media/ONETOUCH/MOVIES > ~/Documents/Movie_List_1.txt'
alias movielist2='ls /media/GOFLEX/MOVIES > ~/Documents/Movie_List_2.txt'
alias movielist='sort ~/Documents/Movie_List_1.txt ~/Documents/Movie_List_2.txt > ~/Documents/Movie_List.txt'
alias series='ls /media/EXPANSION/Movie\ Series > ~/Documents/Movie_Series.txt'
alias synaptic='sudo synaptic'
alias yt='youtube-dl -t '
alias mc='metacafe-dl -t'
alias backup='sudo cp /etc/apt/sources.list ~/backup | cp ~/.alias ~/backup | cp ~/.bashrc ~/backup | cp -f ~/.conkyrc ~/backup'
alias reload="killall -SIGUSR1 conky"
alias updatefont="fc-cache -v -f"
alias trash="mv -t ~/.local/share/Trash/files --backup=t"
alias ss="gnome-screensaver-command -a"
alias home="cd ~/"
alias documents="cd ~/Documents/ | less"
alias downloads="cd ~/Downloads/ | less"
alias images="cd ~/Pictures/ | less"
alias pictures="cd ~/Pictures/ | less"
alias music="cd ~/Music/ | less"
alias videos="cd ~/Videos/ | less"
alias movies="cd ~/Videos/Movies | less"
alias projects="cd ~/Projects | less"
alias torrents="cd ~/Torrents | less"
alias allmymovies="clear && cat ~/Documents/Movie_List.txt | less"
alias galias='gedit ~/.alias'
alias gconky='gedit ~/.conkyrc'
alias'gedit ~/'
alias gconky.time='gedit ~/.conkyrc.time'
alias gbash='gedit ~/.bashrc'
alias moc='mocp -T ~/.moc/themes/transparent-background'
alias fb='frozen-bubble'
alias cpconky='cp ~/.conkyrc ~/backup'
alias'cp ~/ ~/backup'
alias cpconky.time='cp ~/.conkyrc.time ~/backup'
alias cpbash='cp ~/.bashrc ~/backup'
alias cpalias='cp ~/.alias ~/backup'
alias v='alsamixer'
alias grub='gksudo gedit /boot/grub/menu.lst'
alias sources='gksudo gedit /etc/apt/sources.list'
alias x='sudo xsplash'
alias key='sudo apt-key adv --keyserver --recv-keys '
alias getkey="sudo ./bin/"
alias installinxi='sudo apt-get install gawk | cd /usr/local/bin && wget -Nc && chmod +x inxi'
alias inxi='inxi -F'
alias installdeb='sudo dpkg -i *.deb'
alias root='gksu nautilus /'
alias maniadrive='cd ~/.ManiaDrive/ && ./'
alias vid='cd ~/bin/ && ./'
alias pic='cd ~/bin/ && ./'
alias trance='nohup vlc ~/Music/Armin\ van\ Buuren/tunein-station.pls > ~/.nohup.out'
alias resetgnomepanel='gconftool-2 --recursive-unset /apps/panel && pkill gnome-panel'
alias changeowner='sudo chown -R dave *'
alias addppa='sudo add-apt-repository '
alias starwars='telnet'
alias matrix='cmatrix'
alias buttonsleft='gconftool-2 --set /apps/metacity/general/button_layout --type string close,minimize,maximize'
alias reset='killall -9 gnome-settings-daemon && gnome-settings-daemon && nautilus -q'
alias photoshop='wine ~/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0/Photoshop.exe'
alias es='electricsheep'

alias today='date +"%A, %B %-d, %Y"'
alias agi='sudo apt-get install'
alias agr='sudo apt-get remove'
alias agu='sudo apt-get update'
alias aguu='sudo apt-get update && sudo apt-get upgrade'
alias agdu='sudo apt-get dist-upgrade'
alias acs='apt-cache search'
alias acsh='apt-cache show'
alias sdi='sudo dpkg -i'
alias agar='sudo apt-get autoremove'
alias agc='sudo apt-get clean'
alias av='apt version'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias fix='sudo dpkg --configure -a'
alias fix2='apt install -f'
alias wallpaper='/usr/local/bin/'
alias b='byobu'
alias storm='mplayer /home/dave/Music/Thunder_Storm.mp3'
alias colors="~/bin/colors"
alias screenshot="scrot -d 5 -c '%m-%d-%Y_%I:%M:%S.png' -e 'mv $f /home/dave/Pictures/Screenshots/'"
alias ggtkrc2='gedit ~/.gtkrc-2.0'
alias shutdown='sudo shutdown -h now'
alias reboot='sudo reboot'
alias loginbackground='gksu gedit /etc/lightdm/unity-greeter.conf'
alias screenfetch='/home/dave/bin/screenfetch-dev'
alias restartshell='killall gnome-shell'
alias background='nautilus ~/Pictures/Wallpapers | gksu nautilus /usr/share/backgrounds/'
alias resetwifi='sudo service network-manager restart'
alias cmi="./configure && make && sudo make install"
alias debclean="sudo apt-get clean && sudo apt-get autoremove"
alias createthumb='convert -sample 25%x25% '
alias createthumbs='/home/dave/bin/'
alias rotateimage='convert -rotate 90 '
alias wifi='sudo modprobe -r iwlagn && sudo modprobe iwlagn bt_coex_active=0'
alias screenshot='gnome-screenshot --interactive'
alias machinarium='~/.Machinarium/Machinarium'

PS1='[\w]$ ' #plain and simple

# Get weather (replace the 34769 in the url with your own zipcode, call it by typing weather)
weather ()
declare -a WEATHERARRAY 
WEATHERARRAY=( `elinks -dump "" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`) 
echo ${WEATHERARRAY[@]} 

# Get IP (call with myip)
function myip {
  myip=`elinks -dump`
  echo "${myip}"
11) Install my games (N, Machinarium, and Minecraft) here. Also, open PlayOnLinux under 'Games' and install Steam. Tip: In fullscreen mode while playing games you will see the bottom panel. To get rid of it, check 'auto-hide panel' in Cinnamon Settings under the 'Panel' tab.

12) Nautilus Scripts are put in /home/username/.gnome2/nautilus-scripts folder and templates are put in /home/username/Templates folder. My bin folder (goes in /home/username)

13) Get a really cool wallpaper. I like InterfaceLIFT, Wallbase and Pulsarmedia World Wallpapers

Have fun, and enjoy!
Last edited by twodogs on Thu Sep 13, 2012 2:02 pm, edited 2 times in total.

Level 4
Level 4
Posts: 284
Joined: Sat Jun 09, 2007 9:18 pm

Re: New Mint Install - My tips 'n tricks!! [updated]

Post by twodogs » Fri Sep 07, 2012 12:39 pm

I have updated this since I posted with a few things I forgot and I also added some files for you to download. ;)

Post Reply

Return to “Tutorials”