Ubuntu untuk laptopku

September 22nd, 2011 | Posted by cahpct in Linux | Ubuntu - (0 Comments)

Walaupunn sehari – hari menggunakan linux , tetapi keputusan untuk menggunakan linux os pada laptop baru sekarang saya lakukan inipun masih dual OS dikarenakan kompatibilitas dalam mendukung pekerjaan sehari -hari.

Pertama saya mencoba install Ubuntu 11.10 setelah saya pergunakan ternyata masih banyak bug akhirnya saya turunkan ke versi 11.04 natty. Dan saya pasangkan modem smart huawei yang ternyata juga plug and play sebelumnya merasa rada pesimis.

Berikut penampakan my new OS.

Untuk membakar file dalam bentuk .nrg tidak bisa di lakukan langsung pada os Ubuntu Maverick. Solusinya kita bisa menggunakan program yang namanya nrg2iso :

Perintah install

sudo apt-get install nrg2iso

Untuk menggunakanya :

nrg2iso [nrg-file] [iso-file]

Contoh

nrg2iso sp3+kido.nrg isp3+kido.iso

Versi terkini dari Ubuntu Linux Desktop terbaru sudah release pada 10 Oktober 2010. Versi terbaru ini beri panggilan Maverick Meerkat. Bagi yang mau donwload bisa mengunduhnya  repository lokal sebagi berikut:

http://kambing.ui.ac.id/iso/ubuntu/cdimage/releases/10.10/release/ atau langsung ke server  ubuntu di :

http://ftp.ticklers.org/releases.ubuntu.org/releases//maverick/ubuntu-10.10-desktop-i386.iso

 

Malam 3 mei 2010, saya mencoba menggunakan program free rapid di ubuntu lucid lynx tetapi teryata tidak langsung jalan,  memerlukan sun java adapun untuk instalasinya sebagai berikut:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

Pada saat instalasi akan ada license yang diminta tekan Tab dan pilih ok
selanjutnya tekan enter pada keyboard.

Configuring AWStats on Ubuntu Server

December 14th, 2009 | Posted by cahpct in Ubuntu - (0 Comments)

Last nite I sat down and configured AWStats on my Ubuntu 7.10 server. I had previously been using statcounter, a free stat service, but I had noticed that it was one of the causes of slowdown on my page loads. Having to access an external site and javascript wasn’t helping. I also run the server so I have full access to the server logs, why not just use those directly.

So far I am really happy with AWStats. It appears to be running properly and pulling in a lot more data than statcounter ever did. It actually is showing me that I had much more traffic than I thought. I had mentioned 5,000 the other day, which I have long since surpassed based on AWStats output.

I’d like to share the steps I took for installing and configuring AWStats on my Ubuntu Server.

Installation

Ubuntu has the AWStats package available in the repositories, which we can install with:

sudo aptitude install awstats

This will install the basic files, but there is still a bit of configuring to do, so we’ll dive into that next.

Auto Configuration

From the tutorials that I found elsewhere in my searching there is a awstats_configure.pl file that will try to configure it for you. I did not use this personally, but if you’d like to try it you can run:

sudo perl /usr/share/doc/awstats/examples/awstats_configure.pl

The rest of this tutorial will discuss manual configuration, but if anyone can offer feedback concerning the configure script I’m sure many would be interested.

Manual Configuration

I configured my system manually, which I will outline below. The only requirements here are that you have access to the apache2 logs, or that you have custom log locations for each of your virtual domains (if used). For more information on custom log locations for virtual domains see my previous post, Configuring Virtual Hosting on Ubuntu with Apache2.

The first step is creating an awstats.conf file for your domain. This can be done by moving or copying the /etc/awstats.conf, and giving it a more unique name:

sudo cp /etc/awstats/awstats.conf /etc/awstats/awstats.domain.tld.conf

I created a unique file, using the syntax awstats + domain.tld + conf for each of the domains hosted on my server. Each of these also has their own unique log file as well.

We’ll then edit our new /etc/awstats with custom values for that domain. The main points you’ll want to look for within this file:

  • LogFile=”/path/to/your/domain/access.log”
  • LogFormat=1 (this will give you more detailed stats)
  • SiteDomain=”domain.tld”
  • HostAliases=”www.domain.tld localhost 127.0.0.1″

Once you’ve made these changes you’ll want to build your initial statistics, which will be generated from the current logs on your machine. We can do this using:

sudo /usr/lib/cgi-bin/awstats.pl -config=domain.tld -update

What this will do is scan the /etc/awstats folder for anything of the pattern awstats + domain.tld + conf, reading that config to generate its output. You should see some output here, and depending on the size of your logs it’ll take anywhere from a few seconds to a few minutes or hours. Each time it is run after that will be minimal, as it only updates the information, but the initial generation can take some time.

Configure Apache to Display AWStats

At this point our statistics should be generated (if not, go back and double check you haven’t missed anything!), but we need a way to see them. We’ll need to configure Apache2 to show us these stats. The way I did this was by using an Include in my apache2.conf, instead of cluttering up the default config file. This is generally my preferred method.

Apache2.conf already has a line near the botton Include /etc/apache2/conf.d/, which will read anything in there as additional data. What I did was create a new file in the /etc/apache2/conf.d/ directory called awstats, and filled it with the following content:

Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch

This is basically creating some access aliases, and defining the cgi-bin paths, etc. Once this is saved you should be able to restart Apache2 and we’ll should be able to access our stats. Restart Apache2 using:

sudo /etc/init.d/apache2 restart

You should now be able to access your statistics using:

http://domain.tld/awstats/awstats.pl

Assuming you didn’t get any errors during your stats generation, and Apache2 didn’t complain when you restarted the service, you should see statistics at this point.

Continually Updating Your Stats

The last thing you’ll probably want to do is update your statistics via cron. This will allow you to have your site statistics updated on a regular basis, not requiring intervention on your part. What I have done is added a line to my /etc/crontab file telling AWStats to update every ten minutes. I have seen minimal system load even when updating a dozen sites on that interval. To update every ten minutes we’ll add the following line:

*/10 * * * * root /usr/lib/cgi-bin/awstats.pl -config=domain.tld -update >/dev/null

Repeat this line, updating the domain.tld value for any site you want continually updated.

Source

Set up VNC server with resumable sessions

November 6th, 2009 | Posted by cahpct in Linux | Ubuntu - (2 Comments)

So here’s the complete list of steps that are required to set the VNC server that any user can login into and start a session. It is also persistent, meanning that even if you disconnect the VNC client your X session will not end (unless you explicitly log out) and you can reconnect to the same session again. The VNC server uses a separate display (:1) than your regular X server, which works with your physical display (:0). So two sessions can be active at the same time (one person sitting at the physical display and another remotely connecting using VNC).

1. Enable XDMCP
System->Administration->Login Screen Setup
Tab Security->Enable XDMCP
Tab XDMCP–> You can disable “Honor Indirect Requests”

ubuntu-sys-admin-login-window-07021

Note: Before doing the next step, you need to make sure the extra repositories (e.g. universe) are enabled:
http://easylinux.info/wiki/Ubuntu#Ho…a_repositories

2. Install required packages (vncserver and xinetd)

Code:
sudo apt-get install vnc4server xinetd

Note to AMD64 users: The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below:

Code:
wget http://qt1.iq.usp.br/download/vnc4server_4.0-7.3_amd64.deb
wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb
sudo dpkg -i vnc4server_4.0-7.3_amd64.deb
sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb

3. Set the VNC passwd

Code:
sudo vncpasswd /root/.vncpasswd

4. Add vnc service to xinetd:

Code:
sudo gedit /etc/xinetd.d/Xvnc

Enter this into the new file:

Code:
service Xvnc
{
        type = UNLISTED
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = root
        server = /usr/bin/Xvnc
        server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd
        port = 5901
}

5. Restart xinetd (usually there is no need to reboot, but occasionally it might be required)

Code:
sudo /etc/init.d/xinetd stop
sudo killall Xvnc
sudo /etc/init.d/xinetd start

6. That’s it! To test that this is working first try to connect from the same machine (the machine we just set up the VNC server on):

Code:
vncviewer localhost:1

You should be prompted for the VNC password, and then see the GDM login screen where you can login and start a new X session. If that works, you can now go ahead and try to connect from remote machine using your favorite VNC client (remember to first close the local vncviewer we started above). Remember to use the VNC server machine’s domain name or IP address, followed by :1 (e.g. 192.168.0.100:1). If connecting locally as shown above works, but connecting remotely fails, then this means you have a problem with a firewall which is blocking some ports. See the notes below about how to deal with that.

Note about ports: The VNC server set up as shown uses TCP port 5901. If you are using firewall software (e.g. firestarter) on that machine, you need to allow incoming connections on this port. If you are using a router which assigns your machine a private address (e.g. 192.168.0.100) which is not accessible from the internet, then you need to forward TCP port 5901 from the router to this machine.

Note about security: This setup allows any user to start an X-session remotely by logging in using his regular password (after starting the VNC connection using the VNC password), so if the user disconnects without logging out, any other user which knows the VNC password can connect afterwards and resume the same session that the first user started. So if you do not want to log out before disconnecting, it’s advisable to at least lock your VNC X-session screen. Also note that while a remote user is connected thru VNC, no other connection will be accepted. An idle VNC client will be disconnected after one hour, but this can be changed by using the “-IdleTimeout” option in the server_args line in /etc/xinetd.d/Xvnc. For example, you can add “-IdleTimeout 300″ to change it to 5 minutes.

I’m  force user to change password for first time login to webmail zimbra, this error appeared ” Your password in no longer valid. Please choose a new password” this have bad spell and it should “Your password is no longer valid. Please choose a new password”. Is hard to find and change it. After search for several hour I am find the place :

Your password in no longer1.  Login as  #root

2. Change to zimbra user#su zimbra

3. Copy this code $ vi /opt/zimbra/jetty-6.1.5/webapps/zimbra/WEB-INF/classes/messages/ZMsg.properties

4. Find this account.CHANGE_PASSWORD = Your password in no longer valid. Please choose a new password.

5. And change from in to is

Your password in no longers

Amarok is (in my opinion) the best music player for Unix systems (eg. Linux). This brief tutorial will guide you through installing it in Ubuntu. It will also explain how to get Amarok to play MP3 files.

1.Start by selecting Applications and then Add/Remove.

am01

2. Click the Sound & Video column in the left navigation, and then place a check next to Amarok. Click Apply.

am02a

3. You’ll be asked if you wish to apply the changes. Click Apply.

am03a

4. If prompted, enter your password to continue.

am04

5. At this point all of the required packages will be downloaded and installed.

am05

6. Once everything has installed, close any windows that are still open. Use the Synaptic Package Manager to install libxine-extracodecs. This will allow Amarok to play MP3 files.

libxine