NTP configuration

hwclock –systohc

Trac administration

==Start the administration==
trac-admin /home/domains/spider/trac-dagensps

==Run the server with==
tracd –auth=*,/home/domains/spider/.passwords, –port 8000 /home/domains/spider/trac_envs/dagensps /home/domains/spider/trac_envs/trucks

==Add users==
htdigest /home/domains/spider/.passwords

==Apache Integration==
Here is what I use to start the trac in spider:
router:/home/domains/spider# cat
tracd –port 8000 \
–auth=dagensps,/home/domains/spider/.passwords, /home/domains/spider/trac_envs/dagensps \
–auth=trucks,/home/domains/spider/.passwords, /home/domains/spider/trac_envs/trucks \
–auth=bbi,/home/domains/spider/.bbi_passwords, /home/domains/spider/trac_envs/bbi/

Bash tips and tricks

Nice quick bash book

How to check if files containt “this” and “that”

Display timestamp

Nginx with Rails

downloaded from here
documentation here
If you want to try different solution check it haproxy Continue reading

Debian/Ubunto notes

How to save and installed packges

$ dpkg --get-selections > /backup/installed-software.log

# dpkg --set-selections < /backup/installed-software.log

Now your list is imported use dselect or other tools to install the package.
# dselect

Select ‘i‘ for install the software.

Upgrade Debian


cat /etc/debian_version

Fix the W: There are no public key available for the following key IDs:


apt-key update

gpg –keyserver –recv-keys XXXXXXXXXXXXXXXX
apt-key add /root/.gnupg/pubring.gpg
apt-get update

debian tracd initscript

Trac startup script.

Continue reading

Gentoo Cheatsheet

Java install

ls /usr/portage/dev-java/sun-jdk/
emerge -av =dev-java/sun-jdk-
java-config -L
java-config -S 1
/usr/sbin/env-update && source /etc/profile

Emerge and Equery

Taken from here

emerge brings in new packages. equery looks at the package database.

update repository:
emerge –sync
install package with query
emrge -av sun-jdk
start with this software
emerge links wget htop
emerge …
manipulate package database
emerge -NDtu world
–update packages and packages that depend on updated packages (–deep) in the world list. Give output in –tree format. Consider packages changed if their USE flags have changed (–newuse, -N) Add –pretend (-p) to just see what it will do first.
emerge –skipfirst …
skip first pkg on a rebuild; very useful if something doesn’t work
equery …
query package database
equary belongs
who owns these files?
equery list
list packages on system


Taken from here

Do this whenever you want a steaming pile of fresh packages.

# emerge --sync
# emerge --update system
# etc-update
if necessary
# emerge --update world

I have seen Meddle to do it this way

emerge –newuse –deep –update world
emerge –ask –verbose coreutils
emerge –resume

Fix the mktemp / coreutils block in Gentoo

Looks like mktemp is now provided by coreutils. No wonder. This block has been bugging me (read: I’ve been ignoring it) for months.

To fix just unmerge mktemp and update coreutils.

Update: Same for the setarch / util-linux block should you come across it. Unmerge setarch.

Software and Tutorial Links

Linux firewall with packet string-matching support
Firewall scripts
Debian Kernel how-to * in Bulgarian *
Active Ports (Windows)
Security and Audits Checks & updates
RedHat –

© 2019 Gudasoft

Theme by Anders NorénUp ↑