How do you setup Mint?

Chat about anything related to Linux Mint
JasonLG
Level 7
Level 7
Posts: 1602
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

How do you setup Mint?

Post by JasonLG »

I was one of the luck ones that got a free Cr-48 from Google a couple of months ago and after almost a month testing ChromeOS I decided to ditch it and use the Cr-48 as a test machine. So far I've tried a lot of different distros, almost too many to count but I keep coming back to the 64 bit version of Mint 10, GNOME edition. To me it's about as close to perfect as I've found but every time I reinstall it it take me about 20 min to get it exactly how I like it so as a time saver this time when I was installing and removing programs I made a note of them and wrote a script of sorts so the next time all I'd have to do is copy and paste it into a terminal and hit y and enter a few times.

Anyhow here's the script I made.

Code: Select all

sudo apt-get update && sudo apt-get install chromium-browser && sudo apt-get install chromium-codecs-ffmpeg-extra && sudo apt-get install shotwell bum bleachbit totem-mozilla inkscape gparted unetbootin decibel-audio-player && sudo apt-get purge mintwelcome mintnanny grub2-theme-mint mintbackup mintwifi mint-search-addon mint-stylish-addon mplayer rhythmbox thunderbird aptoncd gwibber-service baobab language-selector pidgin vino hardinfo mintupload ndiswrapper-common mono-runtime && sudo apt-get purge firefox-gnome-support && sudo apt-get purge firefox && sudo apt-get upgrade
Basically what it does is install Chromium, Shotwell, Bum, Bleachbit, Inkscape, Gparted, the Totem browser plugin, Unetbootin and Decibel. It then gets rid of a bunch of programs I don't use and then it updates my system. After that it's just a matter of using Bum and the startup applications tool to trim unneeded startup and background apps, use Bleachbit to do a little house keeping and sync my bookmarks in Chromium and it's like a reinstall never happened.

What do you do to set up Mint to your liking? And how do you go about doing it?
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

User avatar
tdockery97
Level 14
Level 14
Posts: 5062
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: How do you setup Mint?

Post by tdockery97 »

Almost the same as you do, but I never thought to make up a handy "script" to do it all in one stroke. It usually takes me about an hour. Thanks for the great idea. I can just modify that to add/remove additional things that apply to my tastes.
Mint Cinnamon 19.3

Habitual
Level 13
Level 13
Posts: 4864
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: How do you setup Mint?

Post by Habitual »

you could lessen the interactive prompts with

Code: Select all

install -y
for every occasion of install.
But you know this, right?

Less typing? :)

JasonLG
Level 7
Level 7
Posts: 1602
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

Re: How do you setup Mint?

Post by JasonLG »

Habitual wrote:you could lessen the interactive prompts with

Code: Select all

install -y
for every occasion of install.
But you know this, right?

Less typing? :)
Good to know, thanks.
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

User avatar
Dr.m0x
Level 3
Level 3
Posts: 115
Joined: Thu Nov 25, 2010 4:12 am

Re: How do you setup Mint?

Post by Dr.m0x »

This is how I set up mint.

1. Install it.
2. Replace network manager with wicd.
3. Reboot
4. Install nvidia drivers.
5. Reboot
6. Update system.
7. Reboot

That's about all really. I only need my computer for internet/email and android hacking so stock mint is 90% ready for what I want.

Sent from my Desire HD pocket rocket.
Image

sgosnell
Level 5
Level 5
Posts: 684
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: How do you setup Mint?

Post by sgosnell »

I use the Mint Backup tool. I have it back up my software selection, and if I need to reinstall, I just type

Code: Select all

sudo dpkg --set-selections < my-packages && sudo apt-get dselect-upgrade
replacing my-packages with the name of the file the backup tool wrote. I don't actually use Mint, but it works the same in LMDE. I don't try to automate other tweaks, because I'm always tweaking, and I change things so often automation would be a waste of time.
Asus eee-pc 900 w/ 32GB SSD.

JasonLG
Level 7
Level 7
Posts: 1602
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

Re: How do you setup Mint?

Post by JasonLG »

tdockery97 wrote:Almost the same as you do, but I never thought to make up a handy "script" to do it all in one stroke. It usually takes me about an hour. Thanks for the great idea. I can just modify that to add/remove additional things that apply to my tastes.
I just got tired of doing all that by hand and plus it'll come in hand when I install Mint on other's computers.(like I'm going to do in the morning) I could very well leave the default application set but it's a lot easier to offer help for programs I actually use. I tried to use simple and/or light alternatives to the default set. Most of the people I have installed Mint for I have done so because the person is generally computer illiterate and have failed to maintain Windows. A system that doesn't require an antivirus or defraging is very appealing. Generally all I have to do is show them how to use MintUpdate and tell them they'll need to upgrade the OS in about 2 years and that's about it. It's great considering I'm tech support for all my friends and family(and some times my friends' family too) Mint makes my job a lot easier. Which is great considering I generally get paid in a meal or beer. :lol:
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

User avatar
900i
Level 6
Level 6
Posts: 1093
Joined: Sat Nov 18, 2006 9:30 am
Location: Wakefield, UK

Re: How do you setup Mint?

Post by 900i »

I just use Remastersys. I have a live DVD with all the apps and settings on and just do a clean install.

Sent from my ZTE Blade using Tapatalk
Core i7 2 x GTX 960 1 x GTX 950 Linux Mint 19.3 F@H Team Linux Mint 76140

STAY SAFE

JasonLG
Level 7
Level 7
Posts: 1602
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

Re: How do you setup Mint?

Post by JasonLG »

900i wrote:I just use Remastersys. I have a live DVD with all the apps and settings on and just do a clean install.

Sent from my ZTE Blade using Tapatalk
The few times I tried Remastersys I could never get it to work right.
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

User avatar
900i
Level 6
Level 6
Posts: 1093
Joined: Sat Nov 18, 2006 9:30 am
Location: Wakefield, UK

Re: How do you setup Mint?

Post by 900i »

Keep the ISO under 4gb, and don't include loads of data files like music or photos. Yuo can put all that stuff back afterwards .
Core i7 2 x GTX 960 1 x GTX 950 Linux Mint 19.3 F@H Team Linux Mint 76140

STAY SAFE

vincent
Level 8
Level 8
Posts: 2217
Joined: Tue Feb 09, 2010 4:10 am

Re: How do you setup Mint?

Post by vincent »

How do I install Mint? Well...this is my "install script" I use after installing Debian.

It's not really a proper script, rather, it's more of a series of interactive commands (and I got even sloppier nearer the end). I hacked it together after my previous hard drive died a few weeks ago, and I had to re-install...

Code: Select all

#!/bin/bash

# Vincent's installer script
# Run this if you want Vincent's exact configuration post-install (Debian GNU/Linux 6.0 Squeeze)

echo "Root password required."
echo "After logging in as root, run 'visudo' to give yourself sudo privileges. Run 'visudo -c' afterwards to check."
echo "vincent ALL=(ALL:ALL) ALL"
su -

echo "Sudo privileges should now be granted."

# Install necessary non-free firmware files, from USB device
# see /firmware-ralink_0.28_all.deb
sudo dpkg -i firmware-ralink_0.28_all.deb
sudo modprobe rt2860sta
sudo service network-manager restart

# If the above commands do not work, build ralink driver manually. See ralink/

echo "Press enter to continue after WiFi connection is established."

read

# Restore all data.
echo "Move all data back to /home."
echo "When you are finished, press enter."

read

# Edit sources.list
echo "Configuring software sources..."
# see /sources.list
gksudo gedit /etc/apt/sources.list
echo "NOTE! Comment out Mint Debian sources first!!!"
echo "Now updating software..."
sudo apt-get update
sudo apt-get install debian-multimedia-keyring '^liquorix-([^-]+-)?keyring.?' jens-lody-debian-keyring linuxmint-keyring
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E5E17B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE49EC21
wget -q -O- http://archive.removed/removed-archive.key | sudo apt-key add -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5CB95493
sudo apt-get update
sudo apt-get dist-upgrade
echo "Enable Mint Debian sources. Uncomment it in sources.list."
gksudo gedit /etc/apt/sources.list
echo "Change APT pinning settings for certain packages in Mint Debian repo."
# See /etc-apt-preferences
gksudo gedit /etc/apt/preferences

echo "Press enter to continue."
read

# Install gcc and other firmware
sudo apt-get install build-essential firmware-linux-free firmware-realtek

# Development Tools
sudo apt-get install file patch autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils-dev lintian pbuilder patchutils quilt git mercurial subversion cmake scons dupload cdbs dpatch kernel-package vim debian-reference-en debian-policy
sudo chown -R vincent: /var/cache/pbuilder

# Install Privoxy
sudo apt-get install privoxy
echo "Configure Privoxy."
# See /etc-privoxy
sudo mv /etc/privoxy/user.action /etc/privoxy/user.action.original
gksudo gedit /etc/privoxy/user.action # see user.action
echo "Change localhost -> 127.0.0.1 in /etc/privoxy/config, section 4.2"
gksudo gedit /etc/privoxy/config
sudo service privoxy restart

# Install Chromium
sudo apt-get install chromium-browser chromium-browser-inspector chromium-codecs-ffmpeg-extra
# Edit /etc/chromium-browser/default
gksudo gedit /etc/chromium-browser/default
echo 'CHROMIUM_FLAGS="--enable-seccomp-sandbox --enable-xss-auditor --proxy-server=127.0.0.1:8118"'

# Select Chromium as default browser
sudo update-alternatives --config gnome-www-browser
sudo update-alternatives --config x-www-browser
# choose option #2

echo "Press enter to continue."
read

# Install Firefox and Thunderbird (from LMDE repos)
sudo apt-get install firefox firefox-l10n-en-us thunderbird thunderbird-l10n-en-us
# Install Lightning extension for thunderbird - see /
# Install Pardus Image Pack - Standard HQ
wget http://static.pardus.at/downloads/images_standardhq.zip
echo "Extract and move to ~/.pardusimages, and delete the original zip."

# Cnetworkmanager; command-line Network Manager which interfaces with gnome-network-manager
sudo apt-get install cnetworkmanager

# Sound
sudo apt-get install pulseaudio libsdl1.2debian-all libsdl-sound1.2 libcanberra-pulse paprefs pavucontrol pavumeter
gconftool -t string --set /system/gstreamer/0.10/default/audiosink pulsesink
gconftool -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc
echo "Edit /etc/asound.conf".
gksudo gedit /etc/asound.conf
#pcm.pulse {
#    type pulse
#}
#ctl.pulse {
#    type pulse
#}
#pcm.!default {
#    type pulse
#}
#ctl.!default {
#    type pulse
#}
#uncomment the above, and remove this line
# Test sound; play with Gnome sound settings first, restart Pulseaudio
speaker-test

# Numlock
sudo apt-get install numlockx

# Purge Gnash and Iceweasel; we want Flash and Firefox instead
sudo apt-get purge gnash gnash-common iceweasel

# Install mint-meta-debian dependencies to "mintify" Debian, excluding Mint tools; i.e. just the multimedia stuff
sudo apt-get install linuxmint-keyring p7zip-full p7zip-rar cups-pdf command-not-found nautilus-actions nautilus-gksu nautilus-open-terminal nautilus-sendto nautilus-share gstreamer0.10-esd gstreamer0.10-ffmpeg gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-really-bad gstreamer0.10-plugins-really-bad gstreamer0.10-plugins-ugly libdvdcss2 libdvdnav4 libdvdread4 cabextract gecko-mediaplayer unrar unshield w64codecs flashplugin-nonfree sun-java6-jre sun-java6-jdk sun-java6-fonts sun-java6-bin sun-java6-plugin ttf-mscorefonts-installer libmp4v2-1

# Java
sudo update-alternatives --config java
echo "Change eclipse preferences to use Java."

# Update Apt-file cache and command-not-found cache
sudo apt-file update
sudo update-command-not-found

# Update Flash
sudo update-flashplugin-nonfree --install

# Purge OpenJDK and GCJ (we want Sun Java)
sudo apt-get purge default-jdk* default-jre* default-jre-headless* icedtea-6-jre-cacao* openjdk-6-jdk* openjdk-6-jre* openjdk-6-jre-headless* openjdk-6-jre-lib* gcj-4.4-jre gcj-4.4-base gcj-4.4-jre-lib libgcj-common

sudo ln -s /usr/lib/jvm/java-6-sun /usr/lib/jvm/default-java

# MathML Fonts
sudo apt-get install xfonts-mathml otf-stix
sudo fc-cache -fv

# Sensors
sudo apt-get install lm-sensors sensors-applet
sudo sensors-detect

# Firewall
sudo apt-get install ufw gufw
sudo ufw enable
sudo ufw status verbose
# see below for Samba instructions

# Enable experimental drivers for next few steps
echo "deb http://ftp.ca.debian.org/debian/ experimental main contrib non-free"
gksudo gedit /etc/apt/sources.list

# Non-free nvidia drivers
# Currently, Nvidia 260 is in experimental.
sudo apt-get install -t experimental nvidia-glx nvidia-settings nvidia-vdpau-driver nvidia-xconfig module-assistant nvidia-kernel-source
sudo apt-get install -t experimental nvidia-glx-ia32 #32-bit driver compatibility
# Backup existing xorg.conf, if applicable
# sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.original
sudo nvidia-xconfig --no-logo
# Install kernel driver
sudo m-a auto-install nvidia-kernel-source
# Mactel PPA nvidia_bl: see /nvidia_bl.deb package
sudo dpkg -i nvidia-bl-dkms_0.17.3~lucid_all.deb
echo "Add module nvidia_bl to /etc/modules"
gksudo gedit /etc/modules
echo "Change timeout, add 'nomodeset' to list"
gksudo gedit /etc/default/grub
sudo update-grub

# Supertux 0.3 is also in experimental.
sudo apt-get install -t experimental supertux
# ...And so is LibreOffice (actually no, it's now in Sid.)
# Change sources.list first
sudo apt-get purge gnome-office
sudo apt-get install libreoffice libreoffice-help-en-us libreoffice-gnome libreoffice-gcj
echo "Change sources.list back to default."
gksudo gedit /etc/apt/sources.list

# Disable experimental repositories (before any accidents happen :P )
echo "Delete/comment out experimental repository line."
gksudo gedit /etc/apt/sources.list

# Install Liquorix kernel
sudo apt-get install linux-headers-2.6-liquorix-amd64 linux-image-2.6-liquorix-amd64

# Virtualbox
sudo apt-get install virtualbox-4.0
echo "Install VirtualBox 4.0 Extension Pack"
# see /vbox-extension pack

# Before rebooting into Liquorix, disable interefering rt2x00 wlan0 modules
echo "Editing /etc/modprobe.d/blacklist.conf"
echo "# Added by Vincent"
echo "# These drivers interfere with the rt2860sta module"
echo "blacklist rt2800lib"
echo "blacklist rt2800pci"
echo "blacklist rt2x00lib"
echo "blacklist rt2x00pci"
echo "blacklist rt2x00usb"
gksudo gedit /etc/modprobe.d/blacklist.conf

# Reboot into Liquorix
echo "Reboot? Press enter to continue."
sudo reboot

# Install Wesnoth-1.8
sudo apt-get install wesnoth wesnoth-1.8-server wesnoth-1.8-tools

# My own packages
cd /path/to/packages
sudo dpkg -i *.deb
# Aquaria, Ardentryst, Mangler, libcairo, naev, eschalon2, privoxy, nevernote, Eclipse...
# Careful with dependency issues. APT pinning might be required.

#The following NEW packages will be installed:
#  libexpat1-dev libfontconfig1-dev libfreetype6-dev libglib2.0-dev libice-dev
#  libpng12-dev libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev
#  libxau-dev libxcb-render0-dev libxcb-shm0 libxcb-shm0-dev libxcb1-dev
#  libxdmcp-dev libxrender-dev x11proto-core-dev x11proto-input-dev
#  x11proto-kb-dev x11proto-render-dev xtrans-dev zlib1g-dev

# see /etc-apt-preferences-modifed for details

# Fix fonts; conf.avail
echo "Move Ubuntu's conf.avail to /etc/fonts/conf.avail"
# e.g. sudo cp *.conf /etc/fonts/conf.avail
# next commands with root privileges:
ln -s /etc/fonts/conf.avail/10-antialias.conf /etc/fonts/conf.d/10-antialias.conf
ln -s /etc/fonts/conf.avail/10-hinting.conf /etc/fonts/conf.d/10-hinting.conf
ln -s /etc/fonts/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/10-hinting-slight.conf
ln -s /etc/fonts/conf.avail/11-lcd-filter-lcddefault.conf /etc/fonts/conf.d/11-lcd-filter-lcddefault.conf
ln -s /etc/fonts/conf.avail/53-monospace-lcd-filter.conf /etc/fonts/conf.d/53-monospace-lcd-filter.conf
# Run Ikey's fixfonts.sh script
sh /path/to/fixfonts.sh

# Gnote
sudo apt-get install gnote
sudo apt-get purge tomboy
sudo apt-get autoremove #remove all Mono libraries
# see /debs/gnote
sudo dpkg -i gnote*.deb

# Create pbuilder build, testing:
sudo pbuilder --create --distribution testing
sudo chown -R vincent: /var/cache/pbuilder

# Conky
sudo apt-get install conky
# See /conky
echo "Copy old Conky config files to /etc/conky"
sudo chown -R root: /etc/conky
sudo chmod -R 755 /etc/conky

# Mint repos - more stuff
sudo touch /etc/default/dropbox-repo
sudo apt-get install inxi nautilus-dropbox mintmenu
sudo inxi -U 
dropbox start -i
echo "Edit mintMenu preferences."

# XChat
sudo apt-get install xchat

# Codeblocks
sudo apt-get install codeblocks codeblocks-doc-en

# Font Refining
gnome-appearance-properties
gconftool-2 --set /desktop/gnome/font_rendering/dpi --type int 96
gconftool-2 --set /desktop/gnome/font_rendering/hinting --type string "slight"
gconftool-2 --set /desktop/gnome/font_rendering/antialiasing --type string "rgba"
gconftool-2 --set /desktop/gnome/font_rendering/rgba_order --type string "rgba"
gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "DejaVu Sans 10"
gconftool-2 --set /desktop/gnome/interface/font_name --type string "DejaVu Sans 10"
gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "DejaVu Sans Mono 10"
gconftool-2 --set /apps/metacity/general/titlebar_font --type string "DejaVu Sans Bold 10"

# Shiki Wise Theme
sudo apt-get install shiki-wise-theme
echo "line 126 - comment out property 'gradients'"
gksudo gedit /usr/share/themes/Shiki-Wise/gtk-2.0/gtkrc
gnome-appearance-properties # choose Shiki Wise theme
echo "Configure gnome-panels"
echo "Change background"

# Compiz
sudo apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main compiz-fusion-plugins-extra
ccsm
echo "export WINDOW_MANAGER=/usr/bin/compiz"
gedit ~/.gnomerc
gconftool-2 --set /desktop/gnome/session/required_components/windowmanager --type string "compiz"
# Logout, and then log back in.

# Pidgin
sudo apt-get install pidgin pidgin-plugin-pack

# Osmo
sudo apt-get install osmo

# Mail-notification (configure for shaw email account)
sudo apt-get install mail-notification
# configure mail-notification
mail-notification &

# Wine
sudo apt-get install wine1.3
winecfg

# Ntpdate
sudo apt-get install ntpdate
sudo ntpdate time.nist.gov

# /etc/bash.bashrc tweaks
sudo apt-get install fortunes cowsay fortunes-debian-hints 
gksudo gedit /etc/bash.bashrc
# Enable all fortunes
if [ -x /usr/games/fortune ]; then
	/usr/games/fortune | /usr/games/cowsay -n; echo
fi

# /etc/rc.local tweaks
gksudo gedit /etc/rc.local
echo "service bluetooth stop"

# Miscellaneous programs
sudo apt-get install apturl apt-listbugs apt-listchanges bleachbit blender bzr checkinstall chm2pdf clamav clamav-docs clamtk libclamunrar6 deborphan devede filezilla finger freemind ffmpeg gparted gespeaker goplay gstreamer-tools hardinfo handbrake-gtk htop imagemagick imagination lshw mypaint nmap openshot pdfshuffler playonlinux poppler-data powertop unetbootin vlc xmacro xournal
echo "Install up-to-date clamtk from SourceForge website."

# Python 3 (+ IDLE)
sudo apt-get install python3 idle3

# Games (wesnoth is already mentionned earlier)
sudo apt-get install astromenace bsdgames bsdgames-nonfree chromium-bsu crawl-tiles frozen-bubble hedgewars lbreakout2 mineescape nexuiz sauerbraten supertuxkart tumiki-fighters warzone2100
echo "Download and install Warzone2100 video.deb file at website."

# User settings (gconf)
gconftool-2 --set /apps/nautilus/preferences/enable_delete --type boolean true
gconftool-2 --set /desktop/gnome/applications/calendar/exec --type string "thunderbird"
gconftool-2 --set /desktop/gnome/applications/tasks/exec --type string "thunderbird"
gconftool-2 --set /apps/gnome-screensaver/lock_enabled --type boolean false
gconftool-2 --set /apps/nautilus/preferences/always_use_location_entry --type boolean true
gconftool-2 --set /apps/nautilus/desktop/trash_icon_visible --type boolean false

gnome-keybinding-properties
gnome-session-properties
gnome-screensaver-preferences
gnome-keyboard-properties # compose key, CTRL+ALT+BACKSPACE
gnome-mouse-properties # touchpad settings
gnome-power-preferences
# gnome-preferred-applications
# windows list preferences - group windows when space is limited

# Skype
sudo apt-get install skype

# Disable annoying gnome-user-share messages
sudo mv /usr/lib/nautilus/extensions-2.0/libnautilus-share-extension.so /usr/lib/nautilus/extensions-2.0/libnautilus-share-extension.so.disabled

# /etc/sysctl.conf tweaks
# Added by Vincent manually
vm.swappiness=0
vm.vfs_cache_pressure=50
gksudo gedit /etc/sysctl.conf

# /etc/pbuilderrc
# Added by Vincent
AUTO_DEBSIGN=yes
HOOKDIR="/var/cache/pbuilder/hooks"
gksudo gedit /etc/pbuilderrc

# Samba
Port 135/TCP - used by smbd
Port 137/UDP - used by nmbd
Port 138/UDP - used by nmbd
Port 139/TCP - used by smbd
Port 445/TCP - used by smbd

sudo ufw enable
sudo ufw allow proto tcp from 192.168.0.1/24 to any port 135
sudo ufw allow proto udp from 192.168.0.1/24 to any port 137
sudo ufw allow proto udp from 192.168.0.1/24 to any port 138
sudo ufw allow proto tcp from 192.168.0.1/24 to any port 139
sudo ufw allow proto tcp from 192.168.0.1/24 to any port 445

# see /samba

# Correct permissions on all startup scripts (e.g. dropbox, mail-notification, etc.)
chmod +x ~/.start*

# Local admin scripts
# see /usr-local-bin.tar.gz
sudo chmod +x /usr/local/bin/*

# dput customization - enable sftp support
# wget http://mirrors.us.kernel.org/ubuntu//pool/main/d/dput/dput_0.9.6.1ubuntu1_all.deb
# or see /sftp.py
sudo mv sftp.py /usr/share/dput/sftp.py
sudo chown root: /usr/share/dput/sftp.py

# Import gpg key
echo "Just copy .gnupg from old /Home"
# same with .ssh

# For Revenge of the Titans, prior to installing the deb package:
mkdir -p /opt/revengeofthetitans/full_length_music

# Chinese typing support
# Zen-hei font should already be installed with Wesnoth (dunno why)
# Fonts
sudo apt-get install ttf-arphic-*
# Ibus
sudo apt-get install ibus ibus-pinyin
gedit ~/.bashrc

echo "Add the following lines in bashrc"

# Ibus support
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

gnome-session-properties
# Add "ibus-daemon -dx" to startup applications
Summary:
- Give myself sudo privileges.
- Install Ralink firmware, and load rt2860 kernel module. Wireless should work now.
- Copy ~/Documents, ~/Music, ~/Photos, and ~/Videos from external drive.
- Configure sources.list

Code: Select all

## Debian repos

# Official Debian repos
deb http://ftp.ca.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free

# Debian Multimedia
# sudo apt-get update && sudo apt-get install debian-multimedia-keyring
deb http://www.debian-multimedia.org/ testing main non-free

# Liquorix sources
# sudo apt-get update && sudo apt-get install '^liquorix-([^-]+-)?keyring.?'
deb http://liquorix.net/debian/ sid main

# Code::Blocks SVN repo
# sudo apt-get install jens-lody-debian-keyring
deb http://apt.jenslody.de/ any release

# VirtualBox PUEL repo
# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib

## LMDE repos

# Mint repos
# sudo apt-get update && sudo apt-get install linuxmint-keyring
deb http://packages.linuxmint.com/ debian main import romeo

## Ubuntu (PPA) repos

# Ubuntu Chromium Stable PPA
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E5E17B5
deb http://ppa.launchpad.net/chromium-daily/stable/ubuntu lucid main

# Ubuntu Wine PPA
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB0
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu lucid main

# Ubuntu Thunderbird (Stable) PPA
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE49EC21
deb http://ppa.launchpad.net/mozillateam/thunderbird-stable/ubuntu lucid main

# removed (Often down; use mirror instead)
# wget -q -O- http://archive.removed/removed-archive.key | sudo apt-key add - 
deb http://archive.removed/ubuntu lucid-removed games
# deb http://mirrors.dotsrc.org/removed/ubuntu/ lucid-removed games

# My own PPA! (~vincent-c)
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5CB95493
# deb http://ppa.launchpad.net/vincent-c/ppa/ubuntu lucid main
- Install the tools I need for Debian packaging (file patch autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils-dev lintian pbuilder patchutils quilt git mercurial subversion cmake scons dupload cdbs dpatch kernel-package vim debian-reference-en debian-policy)
- install and configure Privoxy; also configure Chromium to use it, and enable the flags I need
- system-wide default browser (should also change sensible-browser as well)
- Firefox
- cnetworkmanager (works nicely when I'm working from a tty and need an internet connection)
- Pulseaudio (yes, I'm one of those weirdos that actually want Pulseaudio installed, and Debian by default doesn't come with Pulse pre-installed)
- Flash instead of Gnash (installed by default on Debian)
- Various codecs, determined by:

Code: Select all

apt-cache depends mint-meta-codecs
plus a few other things
- update Flash to latest Square version, install Sun Java, give gcj and openjdk the boot, and reconfigure Sun Java as default JVM
- mathml (stix) fonts
- hardware sensors and sensors-applet; configuration
- firewall; enable it (I'll configure ufw for samba later on)
- Fetch a few packages from unstable/experimental, e.g. Nvidia 260, needed for latest Liquorix kernel (195 no longer works)
- nvidia_bl module for brightness controls
- Grub configuration
- Install Liquorix, Virtualbox (and the ext. pack; pick up latest version at VBox website)
- Before booting into 2.6.37 kernel (Liquorix), disable conflicting rt2x00pci drivers for my wifi card. I want rt2860sta, not rt2800pci. Maybe until it becomes more stable in future kernels...I dislike using staging drivers, after all.
- Reboot
- Install wesnoth, because later on I'll be installing another whole slew of packages and I want something to do while I wait
- Install my own self-built deb packages for various stuff
- my custom libcairo packages will cause APT to complain, so try to appease APT while I work around those stupid dependencies...
- fix some more font settings (something Ubuntu does right)
- install gnote, dump tomboy...no more Mono apps. Bye-bye libmono*!
- Set up pbuilder chroot environment, in case I have to rebuild any of my debs.
- Conky
- Install dropbox, mintmenu, inxi (update with inxi -U), xchat, codeblocks IDE
- fix some gconf settings
- fix shiki-wise theme gradients issue...deprecated and all that
- set up compiz
- test if compiz is working. Blame metacity if it isn't.
- install pidgin, osmo, mail-notification (+ configure it), wine (configure that too)
- good time to install ntpdate and set up a cron job to sync my time
- Install fortunes and make them appear in my terminals from now on.
- install some more random stuff ... sudo apt-get install apturl apt-listbugs apt-listchanges bleachbit blender bzr checkinstall chm2pdf clamav clamav-docs clamtk libclamunrar6 deborphan devede filezilla finger freemind ffmpeg gparted gespeaker goplay gstreamer-tools hardinfo handbrake-gtk htop imagemagick imagination lshw mypaint nmap openshot pdfshuffler playonlinux poppler-data powertop unetbootin vlc xmacro xournal
- Install Python3 + IDLE (Python is my preferred programming language)
sudo apt-get install astromenace bsdgames bsdgames-nonfree chromium-bsu crawl-tiles frozen-bubble hedgewars lbreakout2 mineescape nexuiz sauerbraten supertuxkart tumiki-fighters warzone2100 (nexuiz and sauerbraten will take forever to download...)
- some more gconf tweaks
- Skype
- make gnome-user-share shut up
- sysctl.conf tweaks
- pbuilder configuration...I should move this step up a bit. Makes no sense to configure pbuilder partly at the beginning, and then come back to it now
- make ufw and samba happy to co-exist together
- install this little random script I created to work around an issue due to wifi not resuming on suspend...added some extra functionality as well. This script is much more properly written...

Code: Select all

#!/bin/bash

# Multi-purpose bash script to run updates and other commands I often use.
# Put this in $PATH for easy access.

# This script assumes that you are running a Debian (or derivative) Linux
# distribution, that you have the nvidia_bl kernel module installed to 
# enable backlight controls with the proprietary Nvidia driver, and that you
# use a RT2860 802.11n device.

# Copyright (C) 2011 Vincent Cheng <Vincentc1208@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, # USA.

# A copy of the GNU General Public License is also available online here:
# http://www.gnu.org/licenses/gpl-2.0-standalone.html

# Edit path to uscan directory as needed
USCAN_PATH="$HOME/Documents/uscan"

echo "Starting script..."
echo "Root/sudo privileges are required to continue."
sudo echo "Root/sudo privileges granted."

# Available options
echo "1) Run system update."
echo "2) Run miscellaneous updates."
echo "3) Decrease LCD brightness."
echo "4) Increase LCD brightness."
echo "5) Unload rt2860 module and suspend."
echo "6) Load rt2860 module."
echo "7) Exit."

# Read user input; body of main script
while true
do
    echo ""
    read -p "Please choose an option (1/2/3/4/5/6/7): " INPUT

    # Option 1: Update APT repositories and install new packages
    if [ "$INPUT" = "1" ]; then
        sudo apt-get update
        sudo apt-get dist-upgrade
        sudo apt-get clean

	# Check updates for programs listed in uscan directory
	echo "Running uscan to check for updates for local packages..."
        cd $USCAN_PATH
        uscan --report-status

        echo "Update complete."

    # Option 2: pbuilder, freshclam, inxi updates
    elif [ "$INPUT" = "2" ]; then
        # Update pbuilder cache
        sudo pbuilder update

        # Update ClamAV definitions
        sudo freshclam

        # Update inxi
        sudo inxi -U

        echo "Miscellaneous updates complete."

    # Option 3: Decrease LCD brightness
    elif [ "$INPUT" = "3" ]; then
        echo 300 | sudo tee -a \
        /sys/class/backlight/nvidia_backlight/brightness
        echo "Backlight is now at minimal power. (300)"

    # Option 4: Increase LCD brightness
    elif [ "$INPUT" = "4" ]; then
        echo 2047 | sudo tee -a \
        /sys/class/backlight/nvidia_backlight/brightness
        echo "Backlight is now at max power. (2047)"

    # Option 5: Unload ralink kernel module, stop Network Manager, suspend
    elif [ "$INPUT" = "5" ]; then
        # This ensures that wireless works properly upon resume, for rt2860
        sudo service network-manager stop
        sudo modprobe -r rt2860sta
        # Now suspend...
        sudo pm-suspend
        # Break from loop
        break

    # Option 6: Reload ralink kernel module, restart Network Manager
    elif [ "$INPUT" = "6" ]; then
        sudo modprobe rt2860sta
        sudo service network-manager restart

    # Option 7: Break from loop
    elif [ "$INPUT" = "7" ]; then
        break

    # Anything besides 1-7
    else
        break
    fi

done
# End of loop

# Revoke sudo privileges
sudo -k

echo ""
echo "Script terminated."
exit
- tweak dput to allow sftp uploads
- import my old gpg and ssh keys
- set up some more fonts, and ibus.
Relax. :)
Debian Testing x64/LM9 Main x64/Windows 7 x64 - LG R580 laptop w/ Intel Core 2 Duo T6500 2.1 GHz, 4 GB DDR2 RAM, Nvidia Geforce G 105M, Ralink rt2860 802.11n, 300 GB WD HD 5400 rpm

User avatar
Dr.m0x
Level 3
Level 3
Posts: 115
Joined: Thu Nov 25, 2010 4:12 am

Re: How do you setup Mint?

Post by Dr.m0x »

That gets my vote for the longest post in history.

Sent from my Desire HD pocket rocket.
Image

sgosnell
Level 5
Level 5
Posts: 684
Joined: Fri Sep 10, 2010 9:32 pm
Location: Baja Oklahoma

Re: How do you setup Mint?

Post by sgosnell »

Vincent, if you put that stuff between code tags, it saves a lot of space.
Asus eee-pc 900 w/ 32GB SSD.

User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4578
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: How do you setup Mint?

Post by Aging Technogeek »

I guess my reactionary traditionalism is showing here. I install the DVD version, manually remove Thunderbird, Pidgin, Gwibber, Giver, and Open Office, install Ubuntu Tweak, Swiftfox, Conky, AWN dock, Notify OSD Config, Redshift, Burg (if I am multibooting, as I normally am), Touchpad Indicator (on my Laptop), VirtualBox and Multisystem, set up all my symlinks from my data partition, copy my saved .mozilla config folder so Swiftfox is fully configured on first call-up, then install all updates.

While the updates are installing, I configure my panel and set up my desktop background, window theme, and icons.

All this usually takes me about an hour to 90 minutes including the Mint install, so I have never felt the need to set up a script.
Registered Linux User 483387

User avatar
mads
Level 6
Level 6
Posts: 1296
Joined: Wed Nov 03, 2010 3:44 pm
Contact:

Re: How do you setup Mint?

Post by mads »

This must be one of the most interesting threads I've read on this forum.
Thanks to OP for the question and to others for contributing.

richnbernie
Level 2
Level 2
Posts: 64
Joined: Thu Oct 28, 2010 10:31 am

Re: How do you setup Mint?

Post by richnbernie »

Mint 7.
Single click, res, 1024 X 768.
FF, disable default add ons, add flash blocker, download helper for videos, Ad block plus.

I recently had to reinstall Mint 7 and on a hunch, no updates. Mint 7 runs just fine.
I found out Mint 10 is problematic and FF 3.5 very slow for some URLs.

I power up Vista PC only for converting You Tube flv's to mp3 for my player with free Real Player. It works out of the box.
I could not get Mint to do that.
Same reason I bought a car with everything that works. I do not have to do any configuring. I wish Linux could do something like that.
Imagine having to buy windshield wipers and maybe tires to use your new car?
I use what works to achieve my goals.

rich
FACEBOOK, the privacy thief.

User avatar
grey1960envoy
Level 4
Level 4
Posts: 476
Joined: Mon Aug 23, 2010 10:21 pm
Location: 3rd rock from the sun

Re: How do you setup Mint?

Post by grey1960envoy »

richnbernie wrote:Mint 7.
Single click, res, 1024 X 768.
FF, disable default add ons, add flash blocker, download helper for videos, Ad block plus.

I recently had to reinstall Mint 7 and on a hunch, no updates. Mint 7 runs just fine.
I found out Mint 10 is problematic and FF 3.5 very slow for some URLs.

I power up Vista PC only for converting You Tube flv's to mp3 for my player with free Real Player. It works out of the box.
I could not get Mint to do that.
Same reason I bought a car with everything that works. I do not have to do any configuring. I wish Linux could do something like that.
Imagine having to buy windshield wipers and maybe tires to use your new car?
I use what works to achieve my goals.

rich
Try a distro like Zorin if you want all the bells & whistles :lol: But I do thank everyone for giving some interesting thoughts on this subject :)
In a perfect world everything has it's place, Linux on my computer, windows on the wall, and M$ in the trash!
CrunchBang, LMDE, Mint 9 ,Peppermint Hackintosh and a few others :) Registered ...Machine; #432150 user ;#530829

JasonLG
Level 7
Level 7
Posts: 1602
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

Re: How do you setup Mint?

Post by JasonLG »

richnbernie wrote:Mint 7.
Single click, res, 1024 X 768.
FF, disable default add ons, add flash blocker, download helper for videos, Ad block plus.

I recently had to reinstall Mint 7 and on a hunch, no updates. Mint 7 runs just fine.
I found out Mint 10 is problematic and FF 3.5 very slow for some URLs.

I power up Vista PC only for converting You Tube flv's to mp3 for my player with free Real Player. It works out of the box.
I could not get Mint to do that.
Same reason I bought a car with everything that works. I do not have to do any configuring. I wish Linux could do something like that.
Imagine having to buy windshield wipers and maybe tires to use your new car?
I use what works to achieve my goals.

rich
Mint works fine out of the box, and I bet if you did a little more looking you could figure out how to make it do what you want. There are several media converter apps in the repos.
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

User avatar
tatsujin79
Level 2
Level 2
Posts: 76
Joined: Tue Sep 21, 2010 10:34 pm
Location: California
Contact:

Re: How do you setup Mint?

Post by tatsujin79 »

It all depends on my mood. Usually after install i just update, find a nice theme and wallpaper thats about it. All my tinkering comes way later. Sometimes i ditch vlc and keep gnome-mplayer, sometimes not, sometimes i go for smplayer. Sometimes i remove gimp sometimes not. Its all dependant on mood. I know there is an auto wallpaper changer but i need an automatic "desktop" changer that will change everything based on my mood.

Kendall
Level 6
Level 6
Posts: 1121
Joined: Mon Nov 16, 2009 12:20 pm
Location: Hendersonville, NC, USA

Re: How do you setup Mint?

Post by Kendall »

It kind of depends on what I'm using the install for and what exact edition I'm using. I rarely use the same install for multiple purposes. If I'm building .iso files, then I'll have a dedicated install specifically for building .iso files. If I'm doing web development work, I'll have a dedicated install specifically for doing web development work. I float back and forth between the Gnome, LXDE, and Fluxbox editions without any rhyme or reason and I'm not picky about which file manager and terminal emulator I'm using, but I do make it a point to have the following installed for each specified purpose:

Distro Building:
- gedit
- mintconstructor
- build-essential
- devscripts
- dh-make
- unetbootin
- chromium-browser

Web Development:
- gedit
- gimp
- chromium-browser
- opera
- midori
- firefox
* Drupal (NOT installed from the package manager)

When I finish a project with any particular install I usually wipe it and reinstall within a few days. All of my important stuff is backed up in one of several types of cloud storage (mostly Dropbox) so it's easy to throw away any install and start fresh.
Former Mint Fluxbox/LXDE and Peppermint OS guy.
Senior developer for Ringfree Communications Inc.
Avid trail and ultra runner.

Post Reply

Return to “Chat about Linux Mint”