Ads 468x60px

Showing posts with label Test Ubuntu. Show all posts
Showing posts with label Test Ubuntu. Show all posts

Wednesday, 18 November 2015

Ubuntu 15.10 Review - Linux Distro Reviews

It's time to review the late 2015 release from Canonical.==
Here's my full video review of Ubuntu 15.10 the Wiley Werewolf.



Sunday, 18 August 2013

New Unity Tweak Tool Unleashed for Power Users.

New Unity Tweak Tool Unleashed for Power Users.

Tweaking tools are often very popular software. Since Unity became the desktop on Ubuntu, a few different tweaking tools have surfaced. While some have faded, a new contender has emerged "to expose all the most needed Unity, Compiz, Appearance and Desktop settings in one interface.


Saturday, 17 August 2013

Post Install script example

Scripts add versatility and power to an already strong program. Downloading and installing them is an easy process. This process can also be applied to brushes, plugins, and gradients with some minor variations.
The easiest way is to gather all the commands you need and put them in a text file and make the text file executable.
Start out with implementing the  command line and do this:
touch post_install_script
sudo 775 post_install_script
gedit post_install_script
And you start putting in commands you want to be executed.
Installing packages that are in Ubuntu Software Center.
Start with enabling all repositories and refreshing the software list because the LiveCD is outdated:
sudo sed 's/# deb/deb/' -i /etc/apt/sources.list
sudo apt-get update
Look up inside USC what already is there and check the package name. Examples with VLC and smplayer:
sudo apt-get install vlc
sudo apt-get install smplayer
In the same way of adding software like this you can also remove packages with:
sudo apt-get remove {package_name}
(just be careful to check dependencies first)
PPA for installing nautilus elementary:
sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa sudo apt-get update && sudo apt-get upgrade
Themes
Those are either in USC or have a PPA so you can add these with either one of the 2. For instance I like theequinox themes and I can add them like this:
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install gtk2-engines-equinox
or the Faenza icon sets:
sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install faenza-icon-theme
So you gather all the installation instructions that you want to add and put them in your script each on a new line. You can speed things up by removing duplicate entries: sudo apt-get upgrade does not need to be done with every PPA: you can do that after adding all the PPAs but(!) before you install the software from the PPA.
Theoretically you can have 1 of these script files for all Ubuntu installations but you might need to tweak them for every system.
This is my newest attempt to creating a post install script:
enter image description here
What does this do?
  1. update sources list
  2. remove all directories in my home and create them again in /discworld2/ After that I recreate my home directory directories using symlinks. This way I am able to format my home and keep my files (they are not only on another partition but even on another disc);
  3. install software I want;
  4. set power management the way I want it.
  5. add ppa's I want
After installing I just execute my post_install file and it will run for a long time but it will take care of everything I want (well I will be adding more and more things over time so it will get longer).

Ubuntu install script

Simple Ubuntu install script

To customise and set Ubuntu's clean installation, add some programs You can create simple script which can do for example:
  • add favorite repositories and PPA
  • uninstall unnecessary software
  • install new programs
  • add network drives in fstab
  • run the VPN client
  • attach drives from fstab
  • do a few fix (umountcifs problem, turn off pc speaker and welcome sound)

Edit this script

Download and extract umountcifs script to your home directory. Then create a blank file and name it eg. ubuntu-install and edit it in your favorite editor.
touch ubuntu-install && gedit ubuntu-install
Or simply download ubuntu-install, extract it and open in editor.
Paste this code into it and edit it.
01#!/bin/sh
02# update & upgrade #
03sudo apt-get update
04sudo apt-get upgrade
05# add custom sources and PPA's #
06sudo sh -c "echo '## PPA ###' >> /etc/apt/sources.list"
07# ubuntuzilla
08sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
09sudo sh -c "echo 'debhttp://downloads.sourceforge.net/project/ubuntuzilla/mozilla/aptall main #Ubuntuzilla' >>/etc/apt/sources.list"
10# vlc
11sudo add-apt-repository ppa:c-korn/vlc
12# getdeb
13wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
14sudo sh -c "echo 'debhttp://archive.getdeb.net/ubuntu karmic-getdeb apps #getdeb' >> /etc/apt/sources.list"
15# medibuntu
16echo deb http://packages.medibuntu.org/ karmic freenon-free sudo tee -a /etc/apt/sources.list
17wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
18# update & upgrade #
19sudo apt-get update
20sudo apt-get upgrade
21# REMOVE some unneeded apps #
22sudo apt-get remove gnome-games gnome-games-common empathy
23# INSTALL new apps #
24sudo apt-get install smbfs nautilus-open-terminal vim mc openvpn geany smplayer minitube firefox-mozilla-build thunderbird-mozilla-build ubuntu-restricted-extras
25# INSTALL deb files from directory #
26sudo dpkg -i /home/yourname/directory/with/deb/files/*.deb
27# make some directories needed by fstab #
28sudo mkdir /media/remotemachine
29sudo mkdir /media/ntfs
30# create samba credential files #
31sudo touch /etc/samba/cred
32sudo sh -c "echo 'username=yourusername' >> /etc/samba/cred"
33sudo sh -c "echo 'password=yourpassword' >> /etc/samba/cred"
34sudo chmod 0600 /etc/samba/cred
35# add new hosts #
36sudo sh -c "echo '192.168.0.105 remotemachinename' >> /etc/hosts"
37# add drives to fstab #
38sudo sh -c "echo 'UUID=791957C576AE1E67 /media/ntfs ntfs umask=000,utf8 0 0' >> /etc/fstab"
39sudo sh -c "echo '//remoteIP/remote-dir /media/remotemachine cifs credentials=/etc/samba/cred,noperm,uid=1000,gid=1000 0 0' >> /etc/fstab"
40# fixing umountcifs problem in Ubuntu on restart and shutdown #
41sudo cp/home/yourusername/path/to/the/script/umountcifs /etc/init.d/
42sudo update-rc.d umountcifs stop 02 0 6
43sudo ln -s /etc/init.d/umountcifs /etc/rc0.d/K01umountcifs
44sudo ln -s /etc/init.d/umountcifs /etc/rc6.d/K01umountcifs
45# copy OpenVPN certificates to /etc/openvpn #
46sudo cp /home/yourusername/.install/vpn/* /etc/openvpn
47sudo /etc/init.d/openvpn restart
48# time needed to connect to the VPN server (30s with reserve) and mounting drives #
49sleep 30 && sudo mount -a
50# turn off pc speaker beeping #
51echo "blacklist pcspkr" sudo tee -a /etc/modprobe.d/blacklist
52# turn off welcome sound #
53sudo -u gdm gconftool-2 --set/desktop/gnome/sound/event_sounds --type bool false
54# enabling cpufreq-applet CPU frequency scaling #
55sudo chmod u+s /usr/bin/cpufreq-selector
Save the script and give it execute permission
chmod +x ubuntu-install

How to run this script?

Do not run it as sudo, because not every command in the script requires root privileges. Just type in terminal
./ubuntu-install
As you can see, it's not complicated. This method is not perfect, but enough to start. Sometime in the future, we will show even more sophisticated ways.

Download files

Recent Posts

 
Blogger Templates