Posts

loki is dead

After serving me for more then 8 years(it was my desktop during school), and working non stop for the last 400 days, loki, my gateway server, is dead. I don't know why, maybe the cpu, the motherboard, or the ram. I'm thinking to revive it, but this time it will run opensolaris.This will be fun!!! RIP:)

UPDATE: How to run Opensolaris in Virtualbox

Well, my last article about virtualbox and opensolaris is outdated.why?because the new vbox(2.1.0) version replace TUN/TAP on Linux. What does that mean? You don't need anymore a tun/tap interface. You can attach to a real interface as eth0, eth0:1, br0, or another "real" interface. So, my bash script is useless now. Anyway, to update your virtual opensolaris, run this command: VBoxManage modifyvm "opensolaris" -nic1 hostif -hostifdev1 eth1 More info about virtualbox 2.1.0 here That is all :)

Old lady

Image
97 years old lady

How to run opensolaris in virtualbox

Opensolaris in virtualbox, short how to 0 - what do I need to run virtualbox 1 - creating the image 2 - disk management 3 - vm management(start stop), delete vm, monitoring 4 - snapshot 5 - short_how_how 0 - to run opensolaris you need: - linux, duhhh:) - virtualbox Version 2.0.6 - tunctl (uml-utilities) - brctl (bridge-utils) and this script (run it from root account) #!/bin/bash PATH=/sbin:/usr/bin:/bin:/usr/bin USER=dbordeanu IPTABLES="/sbin/iptables" /usr/sbin/brctl addbr br0 #tap 1 for opensolaris #ip 10.1.1.2 /usr/sbin/tunctl -t tap1 -u $USER ip link set up dev tap1 /usr/sbin/brctl addif br0 tap1 #start br0 ip link set up dev br0 ip addr add 10.1.1.1/24 dev br0 ip route add 10.1.1.0/24 dev br0 chmod 0666 /dev/net/tun 1 - Creating the opensolaris image - creating the image: VBoxManage createvm -name "opensolaris" -register - specify the ram, boot order, and the net interface VBoxManage modifyvm "opensolaris" -memory "512MB" -acpi on -boot...

How to enable ip forward in opensolaris

Well, you think this task is simple, like in linux, where you type in a console "echo "1" > /proc/sys/net/ipv4/ip_forward" In opensolaris this task is more complicated. Why?because, they can :) root@opensolaris:/net# uname -a SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc Solaris to check if the ip forward is enabled type: root@opensolaris:/net# svcs -a | grep forward disabled 10:24:40 svc:/network/ipv6-forwarding:default disabled 12:46:49 svc:/network/ipv4-forwarding:default in this case, it is disabled (by default) To enable it, you can do: - root@opensolaris:~# ifconfig pcn0 router for ipv6: root@opensolaris:~# ifconfig pcn0 inet6 router - root@opensolaris:~# ndd -set /dev/ip ip_forwarding 1 for ipv6: root@opensolaris:~# ndd -set /dev/ip ip6_forwarding 1 - In the previous Solaris releases root@opensolaris:~# routeadm -e ipv4-forwarding for ipv6: root@opensolaris:~# routeadm -e ipv6-forwarding To disable ip forward root@opensolaris:~# ifconfig ...

bash script to check left space on device

This is a very simple bash script intended to be used for checking the space on every partition from your hardisk #!/bin/bash PROG_NAME="space_usage" #Set usage USED_SPACE="95" #log file if you want to use log file LOG_FILE="space.txt" #email address EMAIL="user@localhost" SEND_EMAIL="N" #crontab every night at 12 #0 0 * * * root space.sh function log() { /usr/bin/logger -i -p kern.crit -t ${PROG_NAME} "UPSS: ${i[5]} has used more than $USED_SPACE % space" echo "UPSS: ${i[5]} has used more than $USED_SPACE % space" >> $LOG_FILE #send email if [ $SEND_EMAIL == 'Y' ] then mail -s "no more space on ${i[5]} " $EMAIL fi } #grep mounted partitions df -k -P --sync |grep -v "Mounted" | while read i; do i=( ${i} ) #echo mounted partitions #echo ${i[5]} USED=`df ${i[5]} | awk '{print $5}' |grep -v "Use%" | cut -f1 -d%` #...

BitDefender RescueCD

The BitDefender Unices team is re-mastering a rescue cd based on Knoppix Live CD. The re-mastered CD will be capable of scanning and disinfecting all your existing hard drives (including NTFS partitions) before your OS boots. To use this RescueCD, you need to be familiar with a few basic notions, such as: what is a partition and what type of internet connection you have. Another condition would be that you should not be afraid to use the console to type commands and read the manual. The new CD will provide a few tools for data rescue, partition size changes and basic forensic networking. Its main feature is that after the boot, all detected and mounted partitions on your hard drive will be automatically scanned by our antimalware scanner, bdgui. Bdgui is a frontend for bdscan and it was designed to make the disinfection procedure easier for the common user. Plus it looks cool :-). More info here: http://unices.bitdefender.com/?p=12 If you want to download the iso go here : http://dow...