Gå til hovedinnhold

Innlegg

Viser innlegg fra mai, 2008

UBUNTU LINUX 8.04 WITH VIRTUALBOX OSE RUNNING WINDOWS XP

I'll have to admit - there is some applications that more or less will *ONLY* run under Windows. I've got such a program (Mamut Buisness Solutions). That's why I always have to do a dualboot with ubuntu/win. This has been a source for fustration and physical pain. With Ubuntu Linux 8.04 Hardy Heron I finally found a soulution! I've been trying with Wine to get Windows applications to run under linux - some do, but not Mamut. Then I found VirtualBox, and with the OSE version I managed to install Windows XP "out of the box" on Ubuntu. This is really great, and I can finally drop dualboots :-) A howto will come soon, but it's really straight forward...

HOWTO SHARE LOCAL PRINTERS ON A NETWORK

1. Install gnome-cups-manager on both server and client. sudo apt-get install gnome-cups-manager 2. Make a backup of cupsd.conf on both machines. sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf-bak 3. Replace /etc/cups/cupsd.conf on server with: ConfigFilePerm 0600 LogLevel info Printcap /var/run/cups/printcap RunAsUser Yes Port 631 Include cupsd-browsing.conf BrowseAddress @LOCAL BrowseAddress 10.0.0.0/8 BrowseAddress 172.16.0.0/12 BrowseAddress 192.168.0.0/16 <Location /> AuthType None Order Deny,Allow Deny From All Allow From @LOCAL Allow From 10.0.0.0/8 Allow From 172.16.0.0/12 Allow From 192.168.0.0/16 </Location> <Location /jobs> AuthType None Order Deny,Allow Deny From All Allow From @LOCAL Allow From 10.0.0.0/8 Allow From 172.16.0.0/12 Allow From 192.168.0.0/16 </Location> <Location /printers> AuthType None Order Deny,Allow ...

HOWTO INSTALL NFS

HOWTO INTSALL NFS ON SERVER (remote host) 1. sudo apt-get install nfs-kernel-server rpcbind nfs-common 2. sudo dpkg-reconfigure portmap ...and answer NO 2. sudo vi /etc/exports Add (at the end): /home/mydir 192.168.0.1/24(rw,insecure,async,no_subtree_check) /home/mydir 10.0.0.1/24(rw,insecure,async,no_subtree_check) 3. sudo /etc/init.d/nfs-kernel-server restart 4. sudo /etc/init.d/nfs-common 5. sudo /etc/init.d/portmap HOWTO INTSALL NFS ON CLIENT 1. sudo apt-get install nfs-common rpcbind 2. Make a mountpoint sudo mkdir /mnt/server 2. Mount nfs-server in fstab (/etc/fstab) with [serverIP]:[exported] /mnt/server nfs rsize=8192,wsize=8192,timeo=14,intr eks. 10.0.0.2:/home/mydir /mnt/server nfs rsize=8192,wsize=8192,timeo=14,intr

HOWTO SETUP NAT

1. sudo apt-get install dnsmasq 2. Add (at the end) in /etc/sysctl.conf net.ipv4.conf.default.forwarding=1 net.ipv4.conf.all.forwarding=1 3. Empty iptables for existing rules sudo iptables -F 4. Check that iptables is empty sudo iptables -L 5. sudo iptables -A FORWARD -i eth1 -o eth0 -s 192.168.0.0/24 -m state --state NEW -j ACCEPT ...where eth0 is internet and eth1 is the local network 6. sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT 7. sudo iptables -A POSTROUTING -t nat -j MASQUERADE 8. sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 9. sudo iptables-save > /etc/iptables.up.rules 10. Add, under the local network-configuration (eth1) in /etc/network/interfaces pre-up iptables-restore < /etc/iptables.up.rules 11. sudo /etc/init.d/networking restart Resources: https://help.ubuntu.com/community/InternetConnectionSharing?highlight=%28iptables%29%7C%28nat%29

HOWTO SETUP LTSP ON (ed)UBUNTU SERVER

This HOWTO is under construction.... [EDUBUNTU] 1. Download, burn and install edubuntu server from ftp://ftp.uninett.no/linux/ubuntu-iso/edubuntu/gutsy/edubuntu-7.10-server-i386.iso 2. This will give you ltsp out of the box... 3. Some tuning: For tuning the dhcp3-server: sudo vi /etc/ltsp/dhcpd.conf, example: # # Default LTSP dhcpd.conf config file. # authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.20 192.168.0.250; option domain-name "examle.org"; option domain-name-servers 192.168.0.1; option broadcast-address 192.168.0.255; option routers 192.168.0.1; # next-server 192.168.0.254; # get-lease-hostnames true; option subnet-mask 255.255.255.0; option root-path "/opt/ltsp/i386"; if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { filename "/ltsp/i386/pxelinux.0"; } else { filename "/ltsp/i386/nbi.img"; } } 4. If you change some of the...

HOWTO for å rydde på Linux....

I motsetning til Windows legger ikke Linux igjen "programrester" rundt om på datamaskinen etter å ha avinstallert et program. Det som derimot ikke fjernes automatisk er konfigurasjonsfiler. Dette er noen programmene selv oppretter for brukerne, og som avinstallasjons-scriptene ikke bryr seg om. I tillegg kan en avinstallasjon av et program føre til at enkelte biblioteker blir overflødige. Det er minimalt å spare av diskplass, og det gjøre heller ikke maskinen tregere (i motsetning til Widows) om du har slike konfigurasjonsfiler liggende. Hvis du derimot vil ha ut alt som ikke trenger å ligge på harddisken er dette måten å gjøre det på. Åpne en terminal og følg oppskriften under: 1. Skal du avinstallere et program bruk purge opsjonen. sudo aptitude purge <pakke> eller sudo apt-get --purge remove <pakke> 2. Kjør jevnlig rense-kommandoen clean. sudo apt-get clean eller sudo aptitude clean 3. Konfigurasjonsfiler du ikke trenger finner du slik: dpkg -l | awk ...