-

Ubuntu VNC

Posted by aionman on Feb 26, 2009 in Linux

Edit

http://www.fedoraforum.org/forum/archive/index.php/t-1606.html

http://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:VNC&variant=zh-tw

http://ubuntuforums.org/showthread.php?t=122402&page=2

so, you have no graphics card, but you still want GUI management / X Windows……

Perhaps you do have a graphics card but want the convenience of using VNC to reach your Fedora / Ubuntu machine?

There are some great turotials on getting the basics of VNC set up, but it always logs you right into the machine as a specific user…I want to choose my user….VNC + GDM is the answer

VNC + GDM will allow you to fire a vnc viewr at you linux box and have the GDM appear. This information contained below is a collection of personal knowledge and information collected from other postings on some other boards (note: go back and reference some of the contributors).

This mini-tutorial will not cover off security…so if you are doing this..make sure it is on your own network, behind a firewall etc. etc. etc….I hope to come back and add the security pieces in later…just don’t have too much time today.

How it will work
===========
GDM will be running in the background (with no X-Server in this config). When we start a VNC session, VNC will contact the GDM to display the “Greeter”…then we log in as we normally do with GDM locally.

Configure GDM
==========

GDM presents the graphical greeter. To allow VNC to contact the GDM we must turn on XDMCP (Security concious peeps should set their firewall to only allow LOCAL connections for XDMCP – i.e. from the localhost – because VNC is running on the same linux device) – there is another option here to change the XServer that GDM can run to be VNC but I have not explored this option…perhaps later, but for now we’ll do it with XDMCP:
1. Turn on XDMCP

edit /etc/X11/gdm/gdm.conf
find the [xdmcp] section
Change
Enable=false
to
Enable=true

2. (optional) Turn off XWindows (VNC runs it’s own XWindows)

edit /etc/X11/gdm/gdm.conf
find the [servers] section
Change
0=Standard
to
#0=Standard

Configure VNC
==========
We will have VNC run from xinetd. We will create 2 “services”. One for 800×600 and the other for 1024×768…if you want others, you can extrapolate yourself….800×600 will be available via :0 and 1024×768 as :1 (don’t worry yet if you do not understand what I mean by :0 and :1)

1. Create /etc/services

edit /etc/services
add the following 2 liines:
vnc800 5900/tcp # VNC & GDM
vnc1024 5901/tcp # VNC & GDM

2. create xinetd services

create etc/xinetd.d/vnc800
service vnc800
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -broadcast -geometry 800×600 -depth 16 -once -fp unix/:7100 -securitytypes=none
}

3. -securitytypes=none means VNC will not ask you to authenticate…we want GDM to do that part…

4. create xinetd services

create etc/xinetd.d/vnc1024
service vnc1024 {
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -broadcast -geometry 800×600 -depth 16 -once -fp unix/:7100 -securitytypes=none
}

TEST IT
=====

1. stop any X Windows
init 3

2. Log into console (text mode)
3. Turn off “vncserver”…we don’t want VNC to run except for xinetd
chkconfig –level 2345 vncserver off
4. start GDM
init 5
5. start vncviewer
I tested my connection from Win XP…
for 800×600 -> vncviewer localhost:0
for 1024×768 -> vncviewer localhost:1

SUMMARY
=======
You should now be able to run a headless (no kbd/mouse/video) linux box with a GUI and GDM greeter….

I know this mini-tutorial is a little thin at the moment, but I only had a few mins to type it up..I will clean it up I promise…if anyone likes it…I could try and write a mini-howto…..anyway…good luck..

Tags:

 
-

Add Administrator Account to Log In Screen

Posted by aionman on Feb 23, 2009 in Windows XP

Add Administrator Account to Log In Screen

When Windows XP is first installed it requires you to enter at least one name of a user who will access the computer. Once you create this name the default Administrator account vanishes. To access it, press Ctrl-Alt-Delete twice at the Welcome screen to retrieve the standard Windows 2000 logon dialog. Log on as Administrator from this point. To log the Administrator off, click [Start] [Log Off] and [Log Off] when the [Log Off Windows] selection box appears. The Log On screen with the available users will be displayed.

To Make the Administrator Account Always Visible on the Login Screen

[Start] [Run] [Regedit]
Registry Key: HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
Modify/Create the Value Data Type(s) and Value Name(s) as detailed below.
Data Type: DWORD// Value Name: Administrator
Setting for Value Data: [0 = Disabled / 1 = Enabled]
Exit Registry and Reboot

 
-

Ubuntu – Install Webmin

Posted by aionman on Feb 1, 2009 in Linux, Ubuntu

http://www.ubuntugeek.com/ubuntu-804-hardy-heron-lamp-server-setup.html

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

You can install webmin for your server web interface to configure apache,mysql servers.Now we will see how to install webmin in Ubuntu 8.04

Preparing your system

First you need to install the following packages

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

Now download the latest webmin using the following command

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.420_all.deb

Now we have webmin_1.420_all.deb package install this package using the following command

sudo dpkg -i webmin_1.420_all.deb

This will complete the installation.

Ubuntu in particular don’t allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.

Now you need to open your web browser and enter the following

https://your-server-ip:10000/

Copyright © 2012 IT Support Blog All rights reserved. Theme by Laptop Geek.