I just got an internet connection at home :)
it is an ADSL on 512kbps, but unfortunately I can\’t afford any better for the time being. Anyway, this is quite enough for web, mail, FreeNX and ssh :)
… mammoth cave …
I just got an internet connection at home :)
it is an ADSL on 512kbps, but unfortunately I can\’t afford any better for the time being. Anyway, this is quite enough for web, mail, FreeNX and ssh :)
I have registered for the Bachelor program of Computer Science in the Nicosia\’s Campus of Intercollege. This semester I will be taking four classes all of which a computer related. I have got Artificial Intelligence, Object Oriented Programming, Computer Organization and Architecture and Software Development.
Most of the classes are night ones, so I will still have a lot of time during the day.
I\’ve been playing around (so popular these days) LinkedIn and I (also) found this tool to be quite interesting and useful. There are many ways one may make a use out of it. My ones:
– Get all my useful connections at one place accessible from anywhere
– Make it possible for my contacts to change their profile them selfs :)
– Find my old contacts and never loose them again
– Get new connections with different people
I have already connected to some people and I am continuing to expand my network. The only problem is that in order to undestand the whole beauty of the tool, one need to spend some time around checking it from the different sides, but mostly, people do not want to spend time, so many people to whom I have sent invitation just created their profile and left. I still can see them, but first of all I do not get the full picture of their current status and second – I do not get any more connections through them :(
I hope that one day either they will come back by them selfs to study the tool more, or that I will have some opportunity to meat with them and show them how cool it is :)
BTW, I have put a button (logo) in the right-side of this blog, linking directly to my profile on LinkedIn, so if you want to check it out, feel free to get there and don\’t forget to add me as a connection ;)
I have updated my Flickr photos by putting some new stuff (taken recently) as well uploading some old stuff which was not there.
I have managed to set up FreeNX to work quite smoothly with MS Active Directory authentication. Here are few steps to be done (assuming Fedora Core 5 as a FreeNX server):
1. Make the linux server where FreeNX will be installed an AD member
For this we will need samba and kerberos stuff which are either installed or easily retrieved with yum. So I will not bother describing on how to get packages :) If some configs mentioned below are missing, then obviously you are missing some packages
In /etc/samba/smb.conf:
[global]
netbios name = myhost
realm = mydomain.int
workgroup = mydomain
security = ADS
password server = pdc.mydomain.int bdc.mydomain.int
socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
idmap uid = 10000-20000
winbind enum users = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
winbind use default domain = yes
encrypt passwords = yes
log level = 3 passdb:5 auth:10 winbind:5
template shell = /bin/bash
In /etc/krb5.conf
[libdefaults]
ticket_lifetime = 600
default_realm = mydomain.int
default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
dns_lookup_realm = false
dns_lookup_kdc = false
[realms]
mydomain.int = {
kdc = pdc.mydomain.int:88
kdc = bdc.mydomain.int:88
admin_server = pdc.mydomain.int:749
default_domain = mydomain.int
}
[domain_realm]
.mydomain.int = pdc.mydomain.int
mydomain.int = pdc.mydomain.int
[kdc]
profile = /etc/krb5kdc/kdc.conf
[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log
This is enough to be a member of AD. Just make sure that smbd and winbindd are running. To join the domain, use net join ads command with required options (see net help join for more info)
2. Make domain users be able to login to linux server with SSH
I suppose there are many ways to do this, but I went with modifying the /etc/pam.d/ssh the next way
#%PAM-1.0
#auth include system-auth
#account required pam_nologin.so
#account include system-auth
#password include system-auth
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_nologin.so
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_unix.so use_first_pass shadow nullok
account sufficient /lib/security/pam_winbind.so
account required pam_nologin.so
account include system-auth
session include system-auth
session required pam_loginuid.so
and now make system look for AD users by modifying the /etc/nsswitch.conf to contain the next lines:
passwd: files winbind
shadow: files
group: files winbind
#hosts: db files nisplus nis dns
hosts: files dns winbind
From now on the system will allow domain users to login with SSH.
3. Make it work
Now just install freenx:
# yum install freenx
Optionally make it work with default nomachine keys (so that clients will have less configurations to do) by reconfiguring freenx:
# nxsetup --override --install --setup-nomachine-key --clean --purge)
start nxserver
# nxserver --start
create home for desired domain users
# mkdir /home/mydomain/myusername
and finally allow the user to use FreeNX
# nxserver --adduser mydomain+myusername
4. Troubleshooting
All problems are seen in log files under /var/log
5. Other benefits
The way the samba is configured now, it is very easy to add SQUID with NTLM auth ;) If you are interested in this - just let me know in the comments - I will post the samples of config files.