Feb 182009
 

http://www.studentendruck.uni-frankfurt.de/studierende/daheim_sternnix.html

  • Download the PPD files from http://www.studentendruck.uni-frankfurt.de/technik_drucker.html and save them to /usr/share/ppd/custom/
  • lpadmin -p blacknwhite_hrz -v smb://${HRZ-LOGIN:HRZ-PASSWORD}@ntsamba1.server.uni-frankfurt.de/schwarzweiss -P /usr/share/ppd/custom/<PPD-Datei> -E
  • do the same for colour_hrz …
  • lpq -P schwarzweiss_hrz gives → schwarzweiss_hrz is ready, no entries
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Feb 182009
 

check if cron runs the scripts as it should

cat /var/log/syslog

example output:

Jun 21 20:31:01 lion /USR/SBIN/CRON[8702]: (philipp) CMD (~philipp/sync.sh)

From the cron manpage:

  • cron logs its action to the syslog facility ’cron’, and logging may be controlled using the standard syslogd(8) facility. So if syslogd is available it is used. if not, check /var/log/syslog as stated above.
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Feb 182009
 

https://help.ubuntu.com/community/NFSv4Howto
http://www.cyberciti.biz/faq/how-to-ubuntu-nfs-server-configuration-howto/
new: http://notes.setvisual.de/NFSv4%20mit%20Ubuntu (German, not yet taken into account for the following information)

NFSv4 client

sudo apt-get install nfs-common

NFSv4 server

sudo apt-get install nfs-kernel-server

NFS v4 Server

NFSv4 exports exist in a single pseudo filesystem, where the real directories are mounted with the –bind option. Here is some additional information regarding this fact.

Let’s say we want to export our users’ home directories in /home/users. First we create the export filesystem:

sudo mkdir /export
sudo mkdir /export/users

and mount the real users directory with:

Feb 182009
 

You can display the contents of a .deb package with the program deb-gview. To install run:

sudo aptitude install deb-gview

To have a look at the contents of the package garmin-upload-tools_1.2.0_all.deb run:

deb-gview garmin-upload-tools_1.2.0_all.deb
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Feb 182009
 

http://ubuntuguide.org/wiki/Ubuntu:Intrepid#Firefox_Plug-ins

You can install Firefox add ons on your own by using the built in add on manager. But you can also use the Ubuntu/Debian package system to install some extensions such as the great Adblock Plus and the Noscript extension:

sudo apt-get install mozilla-firefox-adblock mozilla-noscript
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Feb 182009
 

The installation of the port knocking daemon is quite simple:

sudo apt-get install knockd

To start the knockd daemon automatically: uncomment START_KNOCKD=1 in /etc/default/knockd.

Configuration:

Edit the config file /etc/knockd.conf:

[options]
   logfile = /var/log/knockd.log
[openSSH]
   sequence    = 7000,8000,9000
   seq_timeout = 5
   command     = /sbin/iptables -I INPUT -s %IP% -p tcp --dport 22 --syn -j ACCEPT
   tcpflags    = syn
[closeSSH]
   sequence    = 9000,8000,7000
   seq_timeout = 5
   command     = /sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 --syn -j ACCEPT
   tcpflags    = syn

to open the port run (on the client side):

Feb 182009
 

https://help.ubuntu.com/community/IptablesHowTo

set up your rules:

1.As 1st rule (INPUT 1) allow all traffic on loopback adapter lo (so your programs on localhost can communicate if all other traffic is blocked later)

sudo iptables -I INPUT 1 -i lo -j ACCEPT

2.Allow incoming traffic on port 80:

sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

3.Block all other traffic:

sudo iptables -A INPUT -j DROP

list the rules

sudo iptables -L

save the firewall rules to /etc/iptables.rules

sudo sh -c "iptables-save > /etc/iptables.rules"

change /etc/network/interfaces to automatically load the rules before network adapters are set up: