četvrtak, 30. rujna 2010.

Speeding Up Boot Time in Ubuntu

Speeding Up Boot Time in Ubuntu

The default init scripts found in /etc/init.d/ and the /etc/rc*.d/ directories are good for most systems, but they may not be needed on your specific system. If you do not need a service then you can disable it.
This can reduce the boot time for your system. In some cases, it can also speed up the overall running speed by freeing resources.
Use sysv-rc-conf (sudo apt-get install sysv-rc-conf) to change the enable/disable settings.
Some of the services to consider disabling include:

anacron : As mentioned earlier, this subsystem periodically runs processes. You may want to disable it and move any critical services to cron.

atd and cron : By default, there are not at or cron jobs scheduled. If you do not need these services, then they can be disabled. Personally, I would always leave them enabled since they take relatively few resources.

apmd : This service handles power management and is intended for older systems that do not support the ACPI interface. It only monitors the battery. If you have a newer laptop (or are not using a laptop), then you probably do not need this service enabled.

acpid : The acpid service monitors battery levels and special laptop buttons such as screen brightness, volume control, and wireless on/off. Although intended for laptops, it can also support some desktop computers that use special keys on the keyboard (for example, a www button to start the browser). If you are not using a laptop and do not have special buttons on your keyboard, then you probably do not need this service.

bluez-utiles : This provides support for BlueTooth devices. If you don't have any, then this can be disabled.

dns-clean, ppp, and pppd-dns : These services are used for dynamic, dial-up connections. If you do not use dialup, then these can be disabled.

hdparm : This system is used to tune disk drive performance. It is not essential and, unless configured, does not do anything. The configuration file is /etc/hdparm.conf and it is not enabled by default.

hplip : This provides Linux support for the HP Linux Image and Printing system. If you do not need it, then it can be disabled. Without this, you can still print using the lpr and CUPS systems.

mdadm, mdadm-raid, and lvm : These provide file system support for RAID (mdadm and mdadm-raid) and Logical Volume groups (lvm). If you do not use either, then these can be disabled.

nfs-common, nfs-kernel-server, and portmap : These are used by NFS-they are only present if you installed NFS support. If you do not need NFS all the time, then you can disable these and only start the services when you need them:
sudo /etc/init.d/portmap start
sudo /etc/init.d/nfs-common start
sudo /etc/init.d/nfs-kernel-server start

pcmcia and pcmciautils : These provide support for PCMCIA devices on laptops. If you do not have any PCMCIA slots on your computer, then you do not need these services.

powernowd and powernowd.early : These services are used to control variable-speed CPUs. Newer computers and laptops should have these enabled, but older systems (for example, my dual-processor 200 MHz PC) do not need it.

readahead and readahead-desktop : These services are used to preload libraries so some applications will initially start faster. In a tradeoff for speed, these services slow down the initial boot time of the system and consume virtual memory with preloaded libraries. If you have limited RAM, then you should consider disabling these services.

rsync : This is a replacement for the remote copy (rcp) command. Few people need this-it is used to synchronize files between computers.

vbesave : This services monitors the Video BIOS real-time configuration. This is an ACPI function and is usually used on laptops when switching between the laptop display and an external display. If your computer does not support APCI or does not switch between displays, then you do not need this service.
Tip
There is a System Admin Services applet for enabling and disabling some services. However, this applet only knows of a few services; it does not list every available service. The sysv-rc-conf command recognizes far more services and offers more management options.
The sysv-rc-conf command shows most of the system services. However, it does not show all of them. If the service's name ends with .sh, contains .dpkg-, or is named rc or rcS, then it is treated as a non-modifiable system service. To change these services, you will need to manually modify the /etc/init.d/ and /etc/rc*.d/ directory contents.

Leave It On!

Although there are many services that you probably do not need, there are a few that are essential. You should not turn off these essential services unless you really know what you are doing:

dbus : Provides messaging services.

gdm : This is the Gnome Desktop. Only disable this if you do not want a graphical desktop.

klogd : This is the kernel log daemon. Removing it disables system logging.

makedev and udev : These create all device nodes.

module-init-tools : Loads kernel modules specified in /etc/modules.

networking and loopback : These start and stop the network. Disabling removes the network configuration at boot.

procps.sh : Any kernel tuning parameters added to /etc/sysctl.conf are processed by this service.

urandom : This seeds the real random number generator that is used by most cryptographic system. You should leave it enabled.
As a rule of thumb, if you do not know what it is, then leave it on. Also, if the service only runs in single-user mode (rcS) that it is usually smart to not change it. Single user mode is where you should go when everything fails in order to repair the system.

srijeda, 29. rujna 2010.

How to recover the missing Network Manager icon on Gnome panel after configuring sudo pppoeconf

How to recover the missing Network Manager icon on Gnome panel after configuring sudo pppoeconf

While adjusting preferences and settings in Terminal using $ sudo pppoeconf through eth0 and after restarting, it is possible that you lose the Network Manager icon on Gnome panel. It is also possible that Auto eth0 is deleted in System > Preferences > Network Connection.

To recover the icon I did the following.

In Terminal I started the file:
$ sudo gedit /etc/network/interfaces

In the opened text document I saved only the following and deleted everything else:

auto lo
iface lo inet loopback


Then I shut down the computer, unplugged the eth0 cable then plugged it back in and turned the computer on.
The icon was back in the Notification Area, and the Network Connection itself made eth0, that is Auto eth0

Ubuntu Lucid 10.04 - kernel 2.6.32-23.

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

Povratak nestale ikone Network Manager na Gnome Panel nakon sudo pppoeconf.

Prilikom postavljanja postavki i podesavanja naredbom u Terminalu: $ sudo pppoeconf ,preko eth0 desilo se da nakon restartanja nestane ikona Network Managera na Gnome Panelu, a u System > Preferences > Network Connection izbrisan Auto eth0.

Za povratak ikone napravio sam sljedece.
U Terminalu sam pokrenuo file:
$ sudo gedit /etc/network/interfaces

U otvorenom text dokumentu ostavio sam samo sljedece redove, ostalo pobrisao i spremio:

auto lo
iface lo inet loopback



Hladno restartao komp tj. Shut Down.
Iskopcao eth0 kabel, ukopcao kabel i upalio komp.
Nakon toga u Notification Area ikona je ponovo tu, a Network Connection je sam napravio eth0 tj. Auto eth0

Ubuntu Lucid 10.04 - kernel 2.6.32-23.

subota, 25. rujna 2010.

petak, 24. rujna 2010.

Restart GNOME without rebooting the computer

Restart GNOME without rebooting the computer

Use the Ctrl-Alt-Backspace shortcut keys to restart GNOME.

Or type this in Termnal;

$ sudo /etc/init.d/gdm restart

utorak, 21. rujna 2010.

Google Docs in Ubuntu desktop via Nautilus File browser for Ubuntu 10.04 lucid

Google Docs in Ubuntu desktop via Nautilus File browser

1. $ sudo add-apt-repository ppa:doctormo/ppa
2. $ sudo apt-get update
3. $ sudo apt-get install gdocs-mount-gtk

or

1. $ sudo gedit /etc/apt/sources.list

# Google Doc by Martin Owens PPA
deb http://ppa.launchpad.net/doctormo/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/doctormo/ppa/ubuntu lucid main


2. $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 113659DF

3. $ sudo apt-get install gdocs-mount-gtk


http://ubuntuguide.net/access-google-docs-in-ubuntu-desktop-via-nautilus-file-browser

https://launchpad.net/~doctormo/+archive/ppa

ponedjeljak, 20. rujna 2010.

Radio browser plugin for Rhythmbox for Ubuntu 10.04

Radio browser plugin for Rhythmbox for Ubuntu 10.04

1. Applications > Accessories > Terminal:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 299F9883

2. $ sudo apt-get install rhythmbox-radio-browser

nedjelja, 19. rujna 2010.

Minitube 1.2

Minitube 1.2 Beta

Application > Accessories > Terminal

1. sudo add-apt-repository ppa:nilarimogard/webupd8
2. sudo apt-get update
3. sudo apt-get install minitube

Ubuntu 9.10, 10.04, 10.10

Unofficial Ubuntu Wallpaper Archive

Unofficial Ubuntu Wallpaper Archive

http://ubuntu.ecchi.ca/wallpapers/

petak, 17. rujna 2010.

Slide wallpapers with Crebs in Ubuntu 10.04

Slide wallpapers with Crebs in Ubuntu 10.04;

1. press Alt-F2 on your keyboard:
gksu software-properties-gtk

or

System > Administration > Software sources
>Other Software>Add..:

3. ppa:crebs/ppa

4. sudo apt-get update;sudo apt-get upgrade;sudo apt-get install crebs

After installing,

5. press Alt-F2 on your keyboard, then type the command below: creb

srijeda, 15. rujna 2010.

Seahorse is a Gnome front end for GnuPG

Seahorse is a Gnome front end for GnuPG - the Gnu Privacy Guard program. It is a tool for secure communications and data storage. Data encryption and digital signature creation can easily be performed through a GUI and Key Management operations can easily be carried out through an intuitive interface.

1. ALT-F2
seahorse
3. File > New > pgp

With seahorse you can...

- Create and manage PGP keys
- Create and manage SSH keys
- Publish and retrive keys from key servers
- Cache your passphrase so you don't have to keep typing it
- Backup your keys and keyring

http://projects.gnome.org/seahorse/index.html

utorak, 14. rujna 2010.

Configurating internet network conection with pppoeconf

Configurating internet network conection with pppoeconf

1. ALT+f2
sudo pppoeconf
mark "run in terminal" and click on Run
or
Applications>Accessories>Terminal
$ sudo pppoeconf

click on "yes"
write username and password and press enter.

when you want to turn off dsl conection enter the following in Terminal
$ poff dsl-provider
or
ALT+F2
poff dsl-provider

when you want to turn on dsl conection enter the following in Terminal
$ pon dsl-provider
or
ALT+F2
pon dsl-provider

ponedjeljak, 13. rujna 2010.

Open file in Terminal from Nautilus

Open file in Terminal from Nautilus

1. Applications->Accessories->Terminal
$ sudo apt-get install nautilus-open-terminal

2. Reboot system
$ sudo reboot

Restore this default panels

How to restore this default panels.

1. Applications->Accessories->Terminal
Type this command and all panels will disappear.
$ sudo gconftool --recursive-unset /apps/panel

2. Then,type this to delete current one:
$ sudo rm -rf ~/.gconf/apps/panel

3. Finally,reload panel:
$ sudo pkill gnome-panel

4. Reboot system:
$ sudo reboot

nedjelja, 12. rujna 2010.

Downloading Files with wget

Downloading Files with wget

The wget command can download files from web servers (HTTP and HTTPS) and FTP servers. With a server that doesn’t require authentication, a wget command can be as simple as the wget command and the location of the download file:

$ wget http://releases.ubuntu.mirror.dkm.cz/releases/10.04.1/ubuntu-10.04.1-desktop-i386.iso
--------------------------------------------------------------------------------------------------
If you have ever had a large file download (DVD image file) disconnect before it completed, you may find the -c option to wget to be a lifesaver. Using
-c, wget resumes where it left off, continuing an interrupted file download. For example:

$ wget http://releases.ubuntu.mirror.dkm.cz/releases/10.04.1/ubuntu-10.04.1-desktop-i386.iso

Begin downloading large file
...
21% [=======> ] 155,208,064 292K/s eta 25m 27s
Download killed before completion
--------------------------------------------------------------------------------------------------
Resume download where stopped

$ wget -c http://releases.ubuntu.mirror.dkm.cz/releases/10.04.1/ubuntu-10.04.1-desktop-i386.iso
--------------------------------------------------------------------------------------------------
If, for example, an FTP server requires a login and password, you can enter that information on the wget command line in the following forms:

$ wget ftp://user:password@ftp.ubuntu.com/path/to/file
$ wget --user=user --password=password ftp://ftp.ubuntu.com/path/to/file

--------------------------------------------------------------------------------------------------
You can use wget to download a single web page as follows:

$ wget http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Download only the Web page
If you open the resulting index.html, you’ll have all sorts of broken links. To download all the images and other elements required to render the page properly, use the
-p option:

$ wget -p http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Download Web page and other elements
But if you open the resulting index.html in your browser, chances are you will still
have all the broken links even though all the images were downloaded. That’s because
the links need to be translated to point to your local files. So instead, do this:

$ wget -pk http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Download pages and use local file names
And if you’d like wget to keep the original file and also do the translation, type this:

$ wget -pkK http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Rename to local names, keep original
Sometimes an HTML file you download does not have an.html extension, but ends
in .asp or .cgi instead. That may result in your browser not knowing how to open
your local copy of the file. You can have wget append .html to those files using the
-E option:

$ wget -E http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Append .html to downloaded files
With the wget command, you can recursively mirror an entire web site. While copying
files and directories for the entire depth of the server’s file structure, the -m option adds
timestamping and keeps FTP directory listings. (Use this with caution, because it can
take a lot of time and space.)

$ wget -m http://www.ubuntu.com
--------------------------------------------------------------------------------------------------
Using some of the options just described, the following command line results in the
most usable local copy of a web site:

$ wget -mEkK http://www.ubuntu.com
--------------------------------------------------------------------------------------------------

subota, 11. rujna 2010.

Icon position can be changed to left or right

Icon position can be changed to left or right

1. ALT+F2
gconf-editor

2. apps->metacity->general

in button_layout Click, change for:
right-> :minimize,maximize,close
left:-> close,maximize,minimize:

Clementine

Very simple and sweet music player. My favorite one...

Clementine is a modern music player and library organizer. Clementine is a port of Amarok 1.4, with some features rewritten to take advantage of Qt4.

install Clementine on Ubuntu repository:

1. open Terminal
2. $ sudo gedit /etc/apt/sources.list
3. put this lines bellow in sources.list, save and close;
# Clementine PPA
deb http://ppa.launchpad.net/riccetn/clementine/ubuntu lucid main
deb-src http://ppa.launchpad.net/riccetn/clementine/ubuntu lucid main

4. put this line in Terminal;
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D7BFC706

5. sudo apt-get install clementine

6. go to Applications > Sound and Video > Clementine

petak, 10. rujna 2010.

Access Google Docs in Ubuntu desktop via Nautilus File browser

Access Google Docs in Ubuntu desktop via Nautilus File browser

Ubuntu Lucid:

Applications->Accessories->Terminal:

$ sudo add-apt-repository ppa:doctormo/ppa
$ sudo apt-get update
$ sudo apt-get install gdocs-mount-gtk

or

page:https://launchpad.net/~doctormo/+archive/ppa

Applications->Accessories->Terminal:
$ sudo gedit /etc/apt/sources.list

# Google Docs to Nautilus
deb http://ppa.launchpad.net/doctormo/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/doctormo/ppa/ubuntu lucid main

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 113659DF

četvrtak, 9. rujna 2010.

Chrome and Chromium daily upgrade

Chromium with daily upgrade

Chromium is unreleased version on Google Chrome

install on Ubuntu:

1. open Terminal and put this line in:
$ sudo gedit /etc/apt/sources.list

2. put these lines below in sources.list, save and close;
# Chromium daily
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu lucid main

3. put this line in Terminal;
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E5E17B5

4.put this line in Terminal;
sudo apt-get update;sudo apt-get install chromium-browser

Interval running / Trčanje Intervali

According to the latest researches the best way to make your heart stronger and bigger is short interval running. That is, a short training of five higher intensity, two-minute (or 400m) running intervals with a cooling-off period between them where you can walk for one minute.

The training looks like this:
five-minute warm-up up to 71%HRMax (Zone 1)
two-minute warm-up 72-81%HRMax (Zone 2)
two-minute interval 82-91% HRMax
then one minute of rest period and repeat the whole procedure five times. After the five intervals you should run for three minutes in Zone 2 (72-81%HR), and then the cooling-off period should be easy jogging or walking for the next five minutes. And that's it.

1x5min-55-71%HR
1x2min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x3min-72-81%HR
1x5min-55-71%HR



Najnovija istraživanja su pokazala da je najbolji način jačanja i povečanja obujma srca, kratki trening trčanja s pet intervala jakog intenziteta u trajanju od dvije minute ili 400m, s minutom odmora tj. hodanja između intervala...

Trening izgleda ovako;
Pet minuta zagrijavanje do 71% HRMax tj. 1.zona,
dvije minute 72-81% HRMax tj. 2.zona,
interval od dvije minute, 1x2min 82-91% HRMax
minuta odmora, i tako pet puta, nakon pet intervala, tri minute trčanje u drugoj zoni tj. 72-81%HR, i hlađenje od pet minuta lagano trčanje ili hodanje. I to je to.

1x5min-55-71%HR
1x2min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x1min-72-81%HR
1x2min-82-91%HR
1x3min-72-81%HR
1x5min-55-71%HR