Restarting the computer
Tuesday, November 4, 2008
Restart the computer
Run in console:
/sbin/shutdown -r now
Posted byWill Tang at 2:03 PM 0 comments
Installing SSH server in Kubuntu
Install
Run in console:
sudo apt-get install openssh-server openssh-client
Configure SSH server
Run in console:
sudo kate /etc/ssh/sshd_config
Change the following line
PasswordAuthentication yes
to
PasswordAuthentication no
in order to disable clear text password authentication.
Run in console:
/etc/init.d/ssh reload
Now the configuration is reloaded.
Setup keys
Run in console:
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter a passphrase for that. You have to use it when connecting from a client.
Now the public key is placed in ~/.ssh/id_rsa.pub, while the private key in ~/.ssh/id_rsa.
Run in console:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
rm ~/.ssh/id_rsa.pub
chmod go-rwx ~/.ssh/*
Now the public key is appended to the ~/.ssh/authorized_keys file.
Setup client
Copy the ~/.ssh/id_rsa file to the client and use it as the private key.
Done!
Posted byWill Tang at 9:28 AM 0 comments
Installing Gcin in Kubuntu
Install Gcin
Run in console:
sudo apt-get install gcin gcin-qt3-immodule
Setup Gcin as the default input method
Run in console:
im-switch –c
Choose the number of gcin.
Logout and login again.
Done!
Posted byWill Tang at 3:34 AM 0 comments
Installing Java in Kubuntu
Install Java
Run in console:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
Hit <Tab> and <Enter> to accept the Sun Operating System Distributor License for Java, then accept again with the DLJ license terms.
Done!
Posted byWill Tang at 3:27 AM 0 comments
Setting up VNC server with resumable sessions in Kubuntu
Monday, November 3, 2008
This article is intended to help others to setup VNC server in Kubuntu 8.04, and is totally based on this discussion in ubuntuforums.org, please read it if you run into troubles or would like to learn more advanced configurations.
Using the VNC service provided in Kubuntu is easy. But the drawback is that you have to login first, and share the desktop with the one sitting in front of the computer too. To get a better experience in using VNC, such as background user login and resumable sessions, vnc4server should be used instead of Krfb desktop sharing.
Install the server package
Run in console:
sudo apt-get install vnc4server xinetd xvnc4viewer
Enable XDMCP in KDE
Run in console:
sudo kate /etc/kde3/kdm/kdmrc
Then find and edit the section [Xdmcp] as the following:
[Xdmcp]
Enable=true
Port=177
Xaccess=/etc/kde3/kdm/Xaccess
Willing=/etc/kde3/kdm/Xwilling
Run in console:
sudo kate /etc/kde3/kdm/Xaccess
Then find and remove the comments as seen in the following lines:
* #any host can get a login window
* CHOOSER BROADCAST #any indirect host can get a chooser
Reboot the computer when finished.
Set the VNC password
Run in console:
sudo vncpasswd /root/.vncpasswd
Then enter the password for connecting to this server.
Add the server to XINETD
Run in console:
sudo kate /etc/xinetd.d/Xvnc
Then enter the content as below:
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/vnc4server
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5901
}
Create a link for the font
Run in console:
sudo ln -s /usr/share/fonts/X11 /usr/share/X11/fonts
Reboot.
Test
It should work now. To test the server, run the following in console:
vncviewer localhost:1
If it prompts you to input password, it should be done now!
Posted byWill Tang at 12:05 AM 0 comments
Labels: kde, kubuntu, linux, vnc
一年零八個月
Thursday, November 1, 2007
很久很久沒有再寫 Blog 了,該有一年多。在公在私,也想再續前緣。但是 Log 的精髓在於詳細中卻做到言簡意賅,所以廢話我也不多說了。
我回來了! ただいま.
Posted byWill Tang at 10:19 AM 0 comments
Labels: general