Gu Gu's Daily BS

reorganizing my iPod. reorganizing my photos. reorganizing my life!
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, September 22, 2007

Fedora VPN Server Setup

က်ေနာ့္ဘေလာ့ဂ္ကို လာလည္တဲ့ ကိုငေတက ေတာင္းဆိုလို႔... ဟိုေလွ်ာက္႐ွာ၊ ဒီေလွ်ာက္႐ွာနဲ႔ ေကာင္းမယ္ထင္တဲ့ link ေတြကို အရင္ေရးတင္ေပးလိုက္ပါတယ္... က်ေနာ္ကိုယ္တိုင္က linux vpn server ကို ေသေသခ်ာခ်ာ မလုပ္ဖူးေသးတာမို႔ က်ေနာ္ေရးတာထက္စာရင္.. အခုလို စနစ္တက် ေရးထားတဲ့ မွတ္စုေလးေတြကို ၫႊန္းလိုက္တာကမွ ပိုအသံုးဝင္မယ္လို႔ ယူဆလို႔ပါ...

ေအာက္မွာေပးထားတဲ့ link ႏွစ္ခုလံုးက linux vpn server နဲ႔ ပတ္သက္ၿပီး ေသခ်ာ႐ွင္းလင္းေအာင္ တစ္ဆင့္ခ်င္းေရးထားတာမို႔ တစ္ကယ္ လက္ေတြ႕လုပ္ခ်ိန္မွာ ဘာအခက္အခဲမွ မ႐ွိေလာက္ဖူးလို႔ ယူဆပါတယ္... ပထမဦးဆံုးတစ္ခုကို ပိုၿပီး သေဘာက်တယ္လို႔ ေျပာခ်င္ပါတယ္... linux နဲ႔ ပတ္သက္လာရင္ က်ေနာ္ အဲဒီဆိုဒ္မွာပဲ အၿမဲ သြားဖတ္ေနက်မို႔ပါ... ေနာင္အခ်ိန္ေပးႏိုင္တဲ့ အခါက်မွ ကိုယ္တိုင္ ေသခ်ာလုပ္ၿပီး ထပ္ေရးပါဦးမယ္...

1. Configuring Linux VPNs
2. Linux VPN Guide

Read More...

Saturday, August 25, 2007

How to install ddclient on Ubuntu

OS: Ubuntu 6.06 LTS Server Ed.
Software: ddclient 3.7.3 (supports Ubuntu)

First, download ddclient from here and use tar command to extract the files. Since I saved the downloaded file in /home/user/ directory, I didn't have to change directory. Otherwise use cd command to change directory first. Note: You need to change file name and folder name as necessary.

user@localhost:~$ tar -xvvzf ddclient-3.7.3.tar.gz

After extracting the files, change to that directory.

user@localhost:~$ cd ddclient-3.7.3

Next, copy ddclient script, make directory for ddclient, and configuration file by

user@localhost:~/ddclient-3.7.3$ sudo cp ddclient /usr/sbin/
user@localhost:~/ddclient-3.7.3$ sudo mkdir /etc/ddclient
user@localhost:~/ddclient-3.7.3$ sudo cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf

Use vi to edit ddclient configuration file. I use DynDNS and their knowledge base has an article on how to configure ddclient.

user@localhost:~/ddclient-3.7.3$ sudo vi /etc/ddclient/ddclient.conf

After making necessary changes in ddclient.conf, copy the following file to /etc/init.d folder so that ddclient can run as a daemon.

user@localhost:~/ddclient-3.7.3$ sudo cp sample-etc_rc.d_init.d_ddclient.ubuntu /etc/init.d/ddclient

Next, add ddclient to all run levels by

user@localhost:~/ddclient-3.7.3$ sudo update-rc.d ddclient defaults

Start ddclient manually for the first time by

user@localhost:~/ddclient-3.7.3$ sudo /etc/init.d/ddclient start

That's all. Check to make sure ddclient is working.

Note: One can also use apt-get to install ddclient from Ubuntu's repository by using the following command. Make sure to check here first before using apt-get to install.

user@localhost:~$ sudo apt-get install ddclient

Read More...

Friday, March 09, 2007

Four nights with Fedora Core 6

All I want to do is to create a disk image of my new fresh installation of Fedora. Since Ghost 8 wouldn't boot and Acronis True Image seemed to take forever to acquire the disk image, I turned to other imaging software System Rescue CD (V 0.3.3) and g4l (Ghost for Linux). By the way, System Rescue CD is a pretty good boot CD loaded with disk and file system tools. Some of the tools in this CD can also be used for FAT and NTFS partitions.

System Rescue CD runs fine but Partimage, the disk image creation program, also takes a long time to create image of my drive. I tried g4l with no success at all. The main problem here is that I accepted the default partition configuration of Fedora which uses LVM for my entire / (root) and swap partitions, and most of these programs have trouble understanding my LVM volume group.

I found dd command or Mondo Rescue might work with my LVM configuration but I haven't tested any of them yet.

Read More...

Saturday, March 03, 2007

Ubuntu server version and root password

First time user of Ubuntu. I heard about this distro from my friends, so I said to myself why not give it a shot. So I downloaded the server version 6.06 LTS from Ubuntu. It's time for me to upgrade the hardware on my little linux server anyways. Only one CD for server version and the installation was not that hard.

Rebooted after the installation and I was in the linux console. Yep, that's all it is in the server version without Gnome or KDE. It's kind of nice to have a LAMP server (Linux, Apache, MySQL, and PHP) up and running with one CD though. Now here is the problem. I tried to log in as root but it did not ask me for root password during installation so there's no way of me knowing the password. ??? Confused ??? (My first time using Debian based linux.)

After a few web searches, I found this wiki. What I had to do is log in using the regular user account created during installation. Then use the follwing command to set root's password.

[user@host~]#sudo passwd root

Now I can log in as root and I can use any passwords I want for root.

Important: This is not recommended by Ubuntu for security reasons. The recommended way to do administrative tasks is to use sudo command as non-root user account.

Reference: http://ubuntuguide.org/wiki/Ubuntu_dapper

Read More...