!-- Begin: http://adsensecamp.com/ -->

For those of you that run blogs, are you ever surprised at the content that ends up being the most popular? I get surprised all the time, particularly that my previous post regarding installation of adobe reader on Ubuntu 8.04 is near the top of the list.

Well, now that 8.10 has been released and Adobe has updated the reader to 8.1.3, it seemed like a good time to update the post.

Install Adobe Reader 8.1.3

If you want the latest version of Adobe Reader you’ll need to download it from the Adobe website directly. They are nice enough to provide us with a package, so the installation is pretty quick and painless. You can head directly to the download page at the link below:

Adobe Reader - All Versions

You’ll want to select “Linux” as the operating system, “Linux - x86 (.deb)” for the installer and your language. This will then provide you with a download link, which you can go ahead and “Open With..” the “GDebi Package Installer (default)”, or save to disk and double-click for auto-installation.

note: for those looking for the English version, I have a direct download link here.

You should now be able to find Adobe Reader 8 listed under Applications > Office. Enjoy.

Just the other day we were having a discussion on using the root shell in Ubuntu. Now, remember, the root user account is disabled with no assigned password on a default Ubuntu system so administrative tasks need to be done using the sudo command. For nearly all of the administration you would need sudo will be adequate. There are occasionally those fringe cases where you might require a root shell. Below I have a few alternatives and then, if you must, the correct way of opening a root shell.

For more information please see the RootSudo page on the Ubuntu Community Wiki.

Alternatives To A Root Shell

One of the most common reasons that a user might need a root shell is due to output redirection not working as expecting while using sudo. This can be bypassed fairly easily. Let me outline an example:

sudo echo “foo” > /root/somefile

The above example will not work because the normal user does not have access to write to the root user home directory, and combining the redirection in the command we’ve lost sudo access.

An alternative that will work would look something like this:

echo "foo" | sudo tee /root/somefile

This will echo the output on the console but the tee command ('man tee‘ for more information) will also take that output and write it to the file as expected. Also note that 'tee -a' will work in the same fashion as >>, appending the data to the current file vs overwriting.

The Proper Way To A Root Shell

If you still need a root shell (perhaps you’ve come across a different scenario? perhaps you’re just lazy? perhaps you’re coming from another distribution?) let me outline the proper way to gain a root shell.

DISCLAIMER: This should be avoided if at all possible. It is not suggested to run a root shell on an Ubuntu system. Use at your own risk. See examples above, etc.

sudo -i

The command sudo -i is the equivalent to the 'su -' command. This will properly change to the root user, switch to the root user’s home directory, use his (her?) environment values, etc.

sudo -s

The command sudo -s is the equivalent to the 'su' command. This will change to the root user but will not properly use his (her?) environment values, etc.

The WRONG Way To A Root Shell

Please DO NOT use the following methods to gain root access:

sudo bash, sudo sh, sudo su -, sudo su, sudo -i -u root

If you currently do use these methods this post was written for you!

UPDATE: Based on the feedback in the comments for this post I’ll try to expand the reasoning on *why* the right way is the preferred way.

First of all we need to understand some background information. When a user creates a session there are a number of environment values that are set. To have a look at some of these try this command:

env

This will output a number of details about the current working environment. These environment values may be different for different users. Some of the values are generated by way of the .bashrc file (assuming a bash shell, of course), the .bash_profile, etc. Take a look at the .bashrc in your users home directory and compare it with the .bashrc in root’s home directory.

diff -u ~/.bashrc /root/.bashrc

You should see some differences, and this is just from one of the multiple files that are read during a proper login.

When creating a root shell by using ‘sudo bash‘ you are not incorporating the root environment properly. You are creating a shell with root privileges but the env output is still that of your user. Each user, whether unprivileged or root, should have unique environment settings to truly be that user. This will be the case for ‘sudo bash‘, ‘sudo su‘ and ‘sudo sh‘.

Basically gconftool-2 is to be done is allow you to set the gnome environmet tweaks (font size, the sound mixer settings, taskbar size / location, etc.) from the shell vs. using graphical tools.

gconftool-2 example

Below is an example of using the gconftool-2 to set the default font size to 8, because I've done in the EeePC.

gconftool-2 - set/apps/nautilus/preferences/desktop_font - type string "Sans 8"
gconftool-2 - set/desktop/gnome/interface/document_font_name - type string "Sans 8"
gconftool-2 - set/desktop/gnome/interface/font_name - type string "Sans 8"
gconftool-2 - set /apps/Metacity/general/titlebar_font - type string "Sans Bold 8"
gconftool-2 - set /desktop/gnome/interface/monospace_font_name - type string "monospace 8"

The above command is the same with the launch gconf-editor (ALT-F2: gconf-editor), navigate to the path listed above and change the values listed. Although I very grateful that we have a graphical tool to edit these things, you tell me which is faster?

gconftool-2 basics

Basic structure using gconftool-2 is as follows:

gconftool-2 - set/path/to/settings - the type of "value"

In/path/to/settings can be found by using the graphical tool (unless someone can tell me an alternative method). This can also be found in the same place. For example, let's say I want to change the value to switch the screen when the screensaver is in use. I can open gconf-editor GUI tool, navigation through the menu tree "apps> gnome-screensaver" to search for "lock_enabled" value. Usually, by checking the box or not we will move this value.

Using gconftool-2, we can achieve the same thing with:

gconftool-2 - set/apps /gnome-screensaver/lock_enabled-type bool 1 "

Now I understand that at this time we do not technically any more quickly because we have to look up in the GUI, but it was found after the first time you must first game of the second time. This is good to install multiple machines, or if you reinstall your computer regularly and want to script your settings back into place.

Available on the basic structure of our value-set, providing a path to the value of what we want to change, and then determine the type. In this case he is dead or on the boolean value. In other cases, such as with the example above, is a string that must be defined. You can find out the type of value (integer, boolean, string, etc.) use your item by double-clicking in the graphics application.

I have been able to find values in the gconf-editor or gconftool-2. Start from the right mixer for toggling volume settings to determine the size of a particular taskbars.

I hope the basic example above can provide.

Happy Testing.

Installing Google Earth for Adding Repository necessary, follow the steps below:

Set up the Medibuntu Repository

As mentioned above, the first thing you need to configure is adding the Medibuntu repository. Setting up this third-party repository can be done with a few quick commands:

http://www.medibuntu.org/sources.list.d/intrepid.list sudo wget-O /etc/apt/sources.list.d/medibuntu.list

sudo aptitude update & & sudo aptitude install medibuntu-keyring & & sudo aptitude update

This will add the Medibuntu repository, import the Medibuntu GPG key and make new packages available.

Installing Google Earth

To install Google Earth, then simply use:

sudo aptitude install googleearth-4, 3

You should now have Google Earth added to the "Applications> Internet" menu and, assuming your video card supports the requirements, you are almost ready to travel the planet!

Depending on the video card you may want to disable the atmospheric rendering, which can greatly increase performance. This can not be done by setting the following:

View> Atmosphere

If, for some reason, Google Earth does not load properly or crashes on your computer may try to return to the old version that seemed to have a little problem. To do that and try to remove 4.3 version 4.2:

sudo aptitude googleearth-4, 3 & & sudo aptitude install googleearth-4, 2

Happy Testing.

Changing /tmp Cleanup Frequency

Posted by Rahadian Syarif | 05.29 | 0 comments »

/tmp folder is a temporary storage place, the Reboot After the data in the folder /tmp will be lost, but the folder /tmp can be changed mendelete time for your data. sperti way below

Changing the /tmp Cleanup Frequency

The default setting that tells your system to delete the /tmp at reboot be in /etc/default/RCS file. Akan value we see is TMPTIME.

At the time of this value TMPTIME = 0 to delete the file on reboot even though the age of the file. Changing this value to a different (positive) number will change the number of days can be spent on the file tmp.

TMPTIME = 7

This setting will allow to stay in the file /tmp them until a week old, and then delete them on reboot. Negative number (TMPTIME =- 1) tells the system to never delete anything in /tmp. This is probably not something you want, but available.

this way on Ubuntu, and finally found this day.

Happy Testing

To Install Adobe Acrobat Reader on Firefox Plugins need the Medibuntu repository, then follow steps below:

Set up the Medibuntu Repository

http://www.medibuntu.org/sources.list.d/hardy.list sudo wget-O /etc/pt/sources.list.d/medibuntu.list

sudo apt-get update & & sudo apt-get install medibuntu-keyring & & sudo apt-get update

Installation Mozilla Plugin Acroread

sudo apt-get install mozilla-acroread acroread-plugins

Acroread-plugin package that will provide support to complete the fillable forms and javascript. In the mozilla-acroread package will provide support for mozilla, firefox, galeon and konqueror.


Happy Testing

Change Bootsplash On Interpid Ibex

Posted by Rahadian Syarif | 05.11 | 0 comments »

Bootsplash interface is the image at the time we membooting ubuntu and when you shutdown process. Now the process will usually appear acpid: exiting. But not a problem.

To install Bootsplash we follow the steps below.

Go to the Terminal,

sudo su
apt-get remove usplash - purge

command over to me-Remove usplash default, after we download the packages stay libsplashy here and splashy from here

After the download is complete, go to the directory that we have been downloaded and type the command

dpkg-i libsplashy1_0.3.10-1_i386.deb
dpkg-i splashy_0.3.10-1_i386.deb

Completed in phases over the installation package we must membackup menu.lst with the command

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup

Done membackup, we edit the command

sudo gedit /boot/grub/menu.lst

Search the kernel boot option below:

kernel /boot/vmlinuz-2.6.27-7-generic root = UUID = 3dca6051-5877-438c-94c5-f5ff7803d851 ro quiet splash

Then add the vga = 791 in order to be as under:

kernel /boot/vmlinuz-2.6.27-7-generic root = UUID = 3dca6051-5877-438c-94c5-f5ff7803d851 ro quiet splash vga = 791

Done and you live with the command to update grub

update-grub

Restart your machine and see the changes.
Happy Testing.

Logical Volume Manager

Posted by Rahadian Syarif | 06.03 | 0 comments »

Logical Volume Manager what is often referred to facilities with LVM is Linux operating system to create a virtual partition, the virtual partition that we can combine multiple hard drives into 1 partition that sangaaaaat besaaar, what can change the partition size without deleting the file contents of the partition (I volume plus a size not less) when the system is still running.

Generally this is used for LVM memartisi hardisk for desktop server but also gpp: P. For example we have 2 hard drives which each 111GB hard drive volume so sizenya total 222GB .. we are a LVM partition biikn gini .. how:

# Create a LVM physical volume nggabungin hardisk first two ...
filserver @ user: ~ $ sudo pvcreate /dev/hdc1/dev/hdd1
Password:
Physical volume "/dev/hdc1" successfully created
Physical volume "/dev/hdd1" successfully created

# To see the results
filserver @ user: ~ $ sudo pvdisplay
- NEW Physical volume --
PV Name /dev/evms/hdc1
VG Name
PV Size 111.79 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 1jjY6f-addr-9zLO-ynrW-SLUO-csYc-wtGFGc

- NEW Physical volume --
PV Name /dev/evms/hdd1
VG Name
PV Size 111.79 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 0jGeBq-WHB0-OKuG-MXoJ-Obty-IkJd-p15fqV

# Create Volume Group from the combination of LVM drive with the name fileserver
filserver @ user: ~ $ sudo vgcreate fileserver /dev/evms/hdc1/dev/evms/hdd1
Volume group "fileserver" successfully created

# See VolumeGroup made earlier that
filserver @ user: ~ $ sudo vgdisplay
- Volume groups --
VG Name fileserver
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 223.57 GB
PE Size 4:00 MB
Total PE 57234
Alloc PE/Size 0/0
Free PE/Size 57234/223.57 GB
VG UUID 32MYKU-I1w2-nj9l-JPlB-jTWQ-d31q-GS2ADv

# Create Logical Volume
filserver @ user: ~ $ sudo lvcreate-name-size 10G Supervisor fileserver
Password:
Logical volume "Reference" created
filserver @ user: ~ $ sudo lvcreate-name IT-size 70G fileserver
Logical volume "IT" created
filserver @ user: ~ $ sudo lvcreate-name Financial-size 10G fileserver
Logical volume "Financial" created
filserver @ user: ~ $ sudo lvcreate-name-size 10G Manager fileserver
Logical volume "Teaching" created
filserver @ user: ~ $ sudo lvcreate-name staff-size 30G fileserver
Logical volume "Lecturer" created
filserver @ user: ~ $ sudo lvcreate-name-size 10G Public fileserver
Logical volume "Public" created
filserver @ user: ~ $ sudo lvcreate-name-size 50g Multimedia fileserver
Logical volume "Multimedia" created

# to see the results of the Logical volume
filserver @ user: ~ $ sudo lvdisplay
- Logical volume --
LV Name /dev/fileserver/Supervisor
VG Name fileserver
LV UUID eoiCQr-pjoJ-4tt0-J12I-fNv3-yDE1-gftJDQ
LV Write Access read/write
LV Status available
# Open 0
LV Size GB 10:00
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5

- Logical volume --
LV Name /dev/fileserver/IT
VG Name fileserver
LV UUID LqBSv2-PIFO-ASqr-EcuK-0km2-BgfS-4YSnAC
LV Write Access read/write
LV Status available
# Open 0
LV Size 70.00 GB
Current LE 17920
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:6

- Logical volume --
LV Name /dev/fileserver/Finance
VG Name fileserver
LV UUID zQSVhu-lfxV-iDiF-IA6n-dLTB-yLu4-gfqkGf
LV Write Access read/write
LV Status available
# Open 0
LV Size GB 10:00
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:7

- Logical volume --
LV Name /dev/fileserver/Manager
VG Name fileserver
LV UUID qkqrgk-xVsn-wijl-W6s9-8WSB-iZHn-T3MgCG
LV Write Access read/write
LV Status available
# Open 0
LV Size GB 10:00
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:8

- Logical volume --
LV Name /dev/fileserver/Employee
VG Name fileserver
LV UUID BSuQb8-bipx-5HaB-v73F-kNb1-e7HK-0q1Tr2
LV Write Access read/write
LV Status available
# Open 0
LV Size 30.00 GB
Current LE 7680
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:9

- Logical volume --
LV Name /dev/fileserver/Public
VG Name fileserver
LV UUID rvMWgd-W8CN-keuX-mDg2-pPda-jsjA-miKdgh
LV Write Access read/write
LV Status available
# Open 0
LV Size GB 10:00
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors 0
253:10 block device

- Logical volume --
LV Name /dev/fileserver/Multimedia
VG Name fileserver
LV UUID pUJ8UJ-S99V-gtvJ-fFyD-Felw-PrCc-fQ8VjA
LV Write Access read/write
LV Status available
# Open 0
LV Size 50.00 GB
Current LE 12800
Segments 2
Allocation inherit
Read ahead sectors 0
253:11 block device

# to delete logical volume that has been made
filserver @ user: ~ $ sudo lvremove "LV Name"

# To add a logical volume partition mjd 1.5GB
filserver @ user: ~ $ sudo lvextend-L 1.5GB "LV Name"

# To reduce the volume of logical partitions mjd 1.5GB
filserver @ user: ~ $ sudo lvreduce-L 1.5GB "LV Name"

# format the partition to LVM to ext3
filserver @ user: ~ $ sudo mkfs.ext3 "LV Name"

# mount create a partition that I made to the system after formatted to ext3
filserver @ user: ~ $ sudo mount "LV Name" /media/disk/

Change the Ubuntu Start Button

Posted by Rahadian Syarif | 05.56 | 0 comments »

To change the start button on ubuntu.

Possible for a master's in ubuntu, I thing that topical, but I try to write this i hop can help,

This step, we first find the image gnomemenu that size 31 pixels, though the fit genomepanel, then copy the image directory gnomemenu

/usr/share/gnomenu/Themes/Button

We often complain about the slow internet konseksi, alias lemot. Although we like in the browser settings more quickly, for example, for a firefox "about" config "but the connection still running slowly ....!!!

What are we do not get ubuntu slowly time browsing ..??? after I googling in the google search, I found article but I forgot that...!! to the point: to speed up web browsing connection on ubuntu, this time with menggunakn squid, squid is useful to store the cache on the website that the visit by us, now we take live update it from the server, ga usah load-script web script , template, n g in the image update/changed by admin.

Step installation and configuration squid.

1. Install Squid

Sources.list sure I have a ...??? just using Terminal
apt-get install squid.

2. Create log files and cache direcktory

mkdir/usr/local/squid
mkdir /usr/local/squid/cache
touch /usr/local/squid/cache.log
touch /usr/local/squid/access.log
sudo adduser squid
chown-squid.squid rf/usr/local/squid

3. Configuring Squid

sudo chown squid.squid/var/spool/squid-RF
sudo chown squid.squid-rf/etc/squid
sudo-u squid mv /etc/squid/squid.conf/etc/squid/squid.conf.original
sudo-u squid touch /etc/squid/squid.conf
sudo-u squid cat /etc/squid/ squid.conf.original | sed '/ * # / d; / ^ * $ / d'> /etc/squid/squid.conf

One of the items you need to customize the squid's config file is a variable that contains the log files and cache direktory refers to the so we have prepared previously.

UFS cache_dir /usr/local/squid/cache 1024 16 256
access_log /usr/local/squid/access.log
cache_log /usr/local/squid/cache.log
cache_store_log none


UFS cache_dir /usr/local/squid/cache 1024 16 256
access_log /usr/local/squid/access.log
cache_log /usr/local/squid/cache.log
cache_store_log none

Then, create a squid as a cache server

http_port 3128 transparent
cache_mem 1024 MB
cache_swap_low 94
cache_swap_high 96
maximum_object_size 16384 KB
minimum_object_size 4 KB
maximum_object_size_in_memory 2048 KB
fqdncache_size 1024
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF

visible_hostname localhost
cache_mgr admin @ localhost
cache_effective_user squid
cache_effective_group squid

4. Create cache directory structure.

Run squid with the command below

sudo-u squid squid-z


5. Test squid

squid-d 1-D

What error, just running

squid-k reconfigure

To recovery I changed the squid.conf

6. Running Squid

squid-SYD

After finish, setting your browser to use proxy on localhost port 3128
Happy Testing.....!!!

Fix Shutdown "Network Error" on splahscreen

Posted by Rahadian Syarif | 05.47 | 0 comments »

Many of ubuntu to get the message that at the time of shutdown and the message contains

Network Error ......!!!

process that cause the shutdown 30%
longer.

To overcome this,

- Log In System / Administrator / Login Window

- Select the Local tab

- Select a theme, and select again the default theme "human"

- Close

- More Repeat the steps above, and Finish.


Reference.

www.ubuntu.com


Happy Testing

!-- Begin: http://adsensecamp.com/ --> !-- Begin: http://adsensecamp.com/ --> !-- Begin: http://adsensecamp.com/ -->