tag:blogger.com,1999:blog-27287812271134362402024-03-13T00:38:33.084-07:00De-LuxerBossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.comBlogger109125tag:blogger.com,1999:blog-2728781227113436240.post-74525842025890834132010-01-03T23:11:00.000-08:002010-01-03T23:16:26.000-08:00iSCSI/NFS on LVM on RAID5 (Software RAID) howto guide, CentOS 5.3<span style="font-style:italic;"><span style="font-weight:bold;">This is just a quid blog to show howto, cos I found there are not much on-line tutorial cover this in a easy way. <br /><br />And of course, as I keep it simple, it only cover basic stuffs. Please feel free to comment and add on better approach.</span></span><br /><br /><pre><br />## RAID ##<br />===============================<br />Links:<br /> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch26_:_Linux_Software_RAID<br /><br />= Create Partition with 'fdisk'<br />to create partition (with 'n')<br />modify the partition's label to RAID (with 't', and code is fd)<br />then 'w' to write the partition<br />repeat until the disks is done<br />do a 'partprobe' to make sure it's written and take effect<br />do 'fdisk -l' to make sure the partition tables is correct<br /><br />= Assign disk to raid<br />mdadm -C -v /dev/md0 -l5 -n3 /dev/hdb1 /dev/hdc1 /dev/hdd1<br /> # l5 => RAID 5, n3 => a RAID set of 3 disks<br />cat /proc/mdstat # make sure RAID is created. it will also show if it's sync-ing or recoverying<br />mdadm -D -s -v # Double check. or 'mdadm -D -s -V /dev/md0 <br /><br /><br />## LVM ##<br />===============================<br />Links: <br /> http://www.howtoforge.com/linux_lvm_p3<br /><br />= Create Physical Volume(PV), Volume Group(VG) and Logical Volume(LV)<br />pvcreate /dev/md0 # assign "/dev/md0" as an PV<br />pvdisplay # make sure they're all set<br />vgcreate vg-raid /dev/md0 # create VG group "lvm-raid" <br />vgdisplay # Show the Volume Group status<br />lvcreate -n xStorage -L 40G vg-raid # Create a LV as xStorage, 40G from vg-raid<br />lvdisplay # Show Logical Volume status<br />ls /dev/vg-raid/xStorage # The created LV should be here.. <br />mkfs.ext3 /dev/vg-raid/xStorage # format the LV to be used<br />mount /dev/vg-raid/xStorage /mnt # lets test if we could mount it. :-) <br />df -h # You should see it in your mounted list<br /><br />## iSCSI ##<br />===============================<br />Links: <br /> http://www.cyberciti.biz/tips/howto-setup-linux-iscsi-target-sanwith-tgt.html<br /><br />= Installation<br />yum -y install scsi-target-utils iscsi-initiator-utils<br />chkconfig iscsid on<br />chkconfig iscsi on<br />chkconfig tgtd on<br />chkconfig --list | grep iscsi<br />chkconfig --list | grep tdtd<br />/etc/init.d/iscsi restart<br />/etc/init.d/tgtd restart<br />/etc/init.d/iscsid restart<br /><br />= Configuring iSCSI Target (iSCSI Server)<br />tgt-setup-lun -d /dev/vg-raid/xStorage -n xStore 192.168.1.4 # create lun only accept client with IP 192.168.1.4<br /> #*** NOTE: You can only setup lun with a device, not partition!! ***#<br />tgtadm --lld iscsi --op show --mode target # Show alll luns<br />iscsiadm --mode discovery --type sendtargets --portal 192.168.1.4 # List lun from the server<br />Change iptables:<br /> iptables -I RH-Firewall-1-INPUT -p tcp -m tcp --dport 3260 -j ACCEPT # Open the port to all NIC<br /> iptables-save > /etc/sysconfig/iptables # Save the updated rules to iptables configuration file<br /> <br />= Configuring iSCSI Initiator (iSCSI Client)<br />iscsiadm -m discovery --type sendtargets --portal 192.168.1.4 # Check if the iSCSI Target is accessable <br />iscsiadm -m node -T iqn.2001-04.com.NesSAN-xStore -l # -l to login to target, -u to logout<br /> # add '--portal 192.168.1.4:3260' for specifid server <br />ll /dev/sd* # The new disk should be now there.<br />mount /dev/sdc /mnt # Lets mount it..<br />df -h<br />touch `hostname`-`date +%Y%m%d-%H%M%S` # Test if it's writable and if it's sync over the network<br /><br /><br />## NFS ##<br />===============================<br />Links: <br /> http://www.cyberciti.biz/tips/howto-setup-linux-iscsi-target-sanwith-tgt.html<br /><br /><br />echo '<br /># Local Mount Name # Client Access List<br />/mnt 192.168.1.0/24(rw,no_root_squash,sync)<br />' >> /etc/exports<br /><br />exportfs -a<br />/etc/init.d/nfs restart # Restart nfs mount<br /><br /></pre>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-18730428719583186652009-11-01T07:13:00.000-08:002009-11-01T07:44:39.829-08:00BASH: Using untyped variable to get unlimited parameterI have been working a backup script at work that support MySQL, PostgreSQL and file using mysql_dump, pg_dump and duplicity commands. Since the script will be running parallel, the script will be calling up itself a lot, I need a better parameter parsing. And I absolutely do not want to use 100 lines of code to do such simple task. It will be so hard to maintain. And when I was trying to improve my parameter parsing, I found something called "untyped variable". I am not sure if it's a proper name. <br /><br /> Anyway, the whole point of doing this is: you do not have to use a lot of if conditions or case to sort variable one by one. You can just put the variable name in a loop, and it will parse out all recognized variable names.<br /><br /> I am using 'eval' to assign the values into variables. I was originally using 'export'. And I know there is actually some other way to do some, something like $($OPT)=$FIELDS, but somehow it didn't work for me. :-( <br /><br /><br /><span style="font-weight:bold;">Using 'eval' to assign.</span><br /><pre>eval $OPT=$FIELDS</pre><br /><br /><span style="font-weight:bold;">Parsing all variables and values</span><br /><pre><br /># Define all acceptable variable names here<br />ALL_OPT=(Type Host Pass User DB Table MaxTry BackupDir Src Dst Port sshUser Period dbExtra) <br /><br />for WORD in $@ ; do # $WORD is the name of variable, <br /> for OPT in ${ALL_OPT[*]} ; do # Check if I have the option in the list<br /> FIELDS=""<br /> case $WORD in<br /> $OPT=?*) # To make sure it has '=' and at least one character after '='<br /> FIELDS=${WORD:`echo ${#OPT}+1 |bc`} # grap the value<br /> eval $OPT=$FIELDS # Assign the variable to <br /> echo " export $OPT $FIELDS" <br /> ;;<br /> Report)<br /> echo "calling up Report"<br /> bkReport<br /> break<br /> ;;<br /> esac<br /> [ "$FIELDS" == "" ] || break # no value at all<br /> done<br />done <br /></pre> <br /><br /><span style="font-weight:bold;">Display all variable names and value </span><br /><pre><br />for OPT in ${ALL_OPT[*]} ; do<br /> eval aaa=\$$OPT<br /> echo $OPT = $aaa<br />done<br /></pre><br /><br /><br /><span style="font-weight:bold;">Calling up the function </span><br /><pre><br /># Define all function names, which is the accepted variables value in first variable in ALL_OPT<br />ALL_TYPE=(Mysql File MySql Redmine)<br />[ $Type == "NULL" ] || for TypeCHK in ${ALL_TYPE[*]} ; do<br /> if [ $Type == $TypeCHK ] ; then <br /> ChkPeriod $Period<br /> [ $? == 0 ] && bk$Type # Of course, you have to have the function, e.g: 'bkFile'.<br /> fi <br />done<br /></pre><br /><br /><span style="font-weight:bold;"><a href="http://pastebin.com/fa54fee5">All codes</a></span>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-88626447786745222612009-07-05T23:29:00.000-07:002009-07-05T23:34:25.217-07:00The Smallst Linux.. what can it do??<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.picotux.com/pt112x.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 540px; height: 405px;" src="http://www.picotux.com/pt112x.jpg" border="0" alt="" /></a><br /><br /> It's such an interesting product. I found it when I was thinking to build my own digital frame. This little guy runs uClinux, build-in web and telnet service. I wonder what else can it do... any one??<br /><br /><a href="http://www.picotux.com/indexe.html">The Smallest Linux in the World</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com2tag:blogger.com,1999:blog-2728781227113436240.post-43793657455515950982009-07-04T20:15:00.001-07:002009-07-04T23:10:06.903-07:00Chris Tyler ROCKZZZZ!!!<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKMO_t2UfNhoAHV4ojwUDguJdsDd-MdPjnLvb_uFvoJDjODx982DRKcdPfLL8QkfhhCjWW3daH3KFbnl-f8yrqoXqv10hMMqYZ7FAeBFg00jb7hL5KF7mI_x339ATA2tRJfBxDgIWqJi4/s1600-h/DSC_5837.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 314px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKMO_t2UfNhoAHV4ojwUDguJdsDd-MdPjnLvb_uFvoJDjODx982DRKcdPfLL8QkfhhCjWW3daH3KFbnl-f8yrqoXqv10hMMqYZ7FAeBFg00jb7hL5KF7mI_x339ATA2tRJfBxDgIWqJi4/s400/DSC_5837.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5354809528999867938" />Is that a Ronald USB midi guitar?? Hopefully it's Linux based LOL</a><br /><br /> This is a top secret photo. I think Chris sneaked out when he was supposed to go No Frills to buy milk for next week.. sh... don't tell Diana.. LOL<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixNNALisijRHehgoR0YEYbVch-x72AKH_cHc8vmWGJHf9k7HELMR6dmsVy8LIt4XIuzTlxDJrlEUukP_jyveWBY9zKck5MKplQAGrIJ365UoqAas5y3KjnTOn_z0Z7IplRjlM9kHB7RNY/s1600-h/DSC_5860.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixNNALisijRHehgoR0YEYbVch-x72AKH_cHc8vmWGJHf9k7HELMR6dmsVy8LIt4XIuzTlxDJrlEUukP_jyveWBY9zKck5MKplQAGrIJ365UoqAas5y3KjnTOn_z0Z7IplRjlM9kHB7RNY/s400/DSC_5860.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5354810083410773106" />Chris and other Seneca teachers whom should not be named of...</a><br /><br /> Just a joke.. Chris.. hope you don't mind... LOLBossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-1135690930169412872009-07-04T09:34:00.000-07:002009-07-23T00:27:55.139-07:00The easiest way to setup the most unsecure sendmail service in linuxYes, the easiest way, and yes, the most unsecure, i mean it. <br /><br /> I hope this blog will help you. This is what I've found after 2 days of reading and frustration of trying to set up sendmail server/client for whole day. <br /><span style="font-style:italic;"><br /><span style="font-weight:bold;"> And trust me, never setup sendmail on Friday... @@<br /></span></span><br /><br /><br /><span style="font-weight:bold;">--- Setup Sendmail --- </span><br /><br />-- Server -- <br />#vi /etc/mail/sendmail.mc<br /><span style="font-style:italic;">= Replace 192.168.168.1 with your mail server's IP.<br /></span><br />DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl<br />DAEMON_OPTIONS(`Port=smtp,Addr=192.168.168.1, Name=MTA')dnl<br /><br />## and... <br /><span style="font-style:italic;">= find "relay_based_on_MX" and comment or replace it with "loose_relay_check"<br /></span><br />dnl #FEATURE(`relay_based_on_MX')dnl<br />FEATURE('loose_relay_check')dnl<br /><br /># then.. <br />echo "Connect:192.168.2 RELAY" >> /etc/mail/access<br /><br />-- Client --<br /># find following line in sendmail.mc and change it.<br />[root@bb ~]# grep mail000 /etc/mail/sendmail.mc <br />define(`SMART_HOST', `mail0001.test')dnl<br /><br /><br /><span style="font-weight:bold;">-- MAKE SURE --</span><br /><br />= check if sendmail is listening to port 25<br /><span style="font-weight:bold;">netstat -ant | grep LISTEN | grep 25<br /></span><br />= check local or the service connect by telneting the port<br /><span style="font-weight:bold;">telnet mail0001 25<br /></span><br />= check sendmail status <br /><span style="font-weight:bold;">service sendmail status<br /></span><br /><br /><span style="font-weight:bold;">--- Links ---</span><br />-- Howto -- <br />http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers<br /><br />-- Masquerading -- <br />http://www.brandonhutchinson.com/Sendmail_masquerading.html<br /><br />-- Mail Relay --<br />http://www.sendmail.org/m4/anti_spam.html<br /><br />PS:<br /> Here is the story be hide this post. Has any one found that the documentation of sendmail is a mess?? I always found it overwhelm, all the tutorial gives you some options that you may not even understand. That's why, I think it's good to setup the most basic one and then build stuffs on top of it. Making a service work is more important than any thing after all. Well... the worst thing about the way I setup is someone may use you mail server to send spam.... well... u lose some resources cos people may use it to send spam but, you can setup other options once you make sure every thing is working. <br /><br />20090723<br /> When I read this page again, I found that the reason why I could send it, it`s because I have already accept all my internal network. After doing more configuring with sendmail, I realize it wasn`t a fully open relay. I now have SSL configured with sendmail and dovecot. I may post the tutorial later, once I`m sure that`s really working and it`s the simplest way to do.Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-32903566662517990062009-06-30T20:13:00.000-07:002009-07-02T08:43:37.048-07:00Laziest way to set SSH without passwordI've been crazily busy lately, finally got a chance to check our fabulous CDOT planet again. Saw a few nice posts from LUX classmates. As the king of blog in LUX class, of course I have to post something, I'm gonna beat Kezong!! hehe... (see below for Kezhong's blog)<br /><br /> Yesterday I just did public key authentication too. You can actually do the following to minimize all the work. All you have to do is copy and paste following and type your password twice. :-)<br /><br />===== Commands =====<br />##### Step: 1 #####<br /><span style="font-style:italic;">ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa<br />Key=`cat ~/.ssh/id_rsa.pub `<br />ssh -f -q nestor@bossanesta.ath.cx "echo $Key >> .ssh/authorized_keys"</span><br /><br />##### Step: 2 #####<br /><span style="font-style:italic;">ssh -f -q nestor@bossanesta.ath.cx chmod 600 .ssh/authorized_keys<br /></span><br /><br /><br />===== Verify =====<br /># if dosen't work, you can always use verbose/debug mode to see the ssh process..<br /><br /><span style="font-weight:bold;">ssh -vv bossanesta.ath.cx</span><br /><br /># if still dosen't work and you're sure your file and permission is right, you may want to check the server sshd config file and make sure Public Key authentication is enabled. It's enabled by default anyway. Also you may need to create and change the ~/.ssh folder permission by yourself, if you have never ssh "from" the server/target.<br /><br />##### IF SOMETHING GOES WRONG #####<br />Just follow the official guide step by step.. :-) <br /><br /><br /><span style="font-weight:bold;">=== LINK ===<br /></span><a href="http://sial.org/howto/openssh/publickey-auth/">OpenSSH Public Key Authentication</a><br /><br /><a href="http://kezhong.wordpress.com/2009/06/24/using-sshscp-without-password/">A professional article about Public Key Authentication from very profession LUX student </a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com4tag:blogger.com,1999:blog-2728781227113436240.post-13815653375550707452009-06-03T17:29:00.000-07:002009-06-03T17:37:06.400-07:00Weekend; Toronto Island; Unplug day..<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyafG4p9BJPYZ6tu7Z82N9fOqOhmn_tYLS7Y2uypHLgKwinCYv2PlFISC30MduRq4Q_NN9cGx6VSidLbcTuLOCGbnGGffWRLhfLMkYweWR17CmSf42ROUR_3KhyphenhyphenCXH95lavmesPH9oQ9E/s1600-h/DSC_4829.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyafG4p9BJPYZ6tu7Z82N9fOqOhmn_tYLS7Y2uypHLgKwinCYv2PlFISC30MduRq4Q_NN9cGx6VSidLbcTuLOCGbnGGffWRLhfLMkYweWR17CmSf42ROUR_3KhyphenhyphenCXH95lavmesPH9oQ9E/s400/DSC_4829.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5343264716580148674" /></a><br /><br /><br /> I've been quite busy for work and things that I want to learn in this field. Last week was very busy. So, last weekend, I decided not to do any thing about computer.. well.. i did tried. I went to Toronto Island for photography. I found that's the best way to be away of computer and get some real fresh away. :-)<br /><br /> I did about 300, 400 photos in there, went there around 5pm and start shooting once I was on a boat. I was surprised that view was so good from Toronto Island. Too bad there were a bit of fogs. I should go there one more time when humility was low. Any way, hope you enjoy the photos. Save them as your wallpaper if you want. :-) <br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj820ko-UF2fVW3qW3FIhWx3i6JMK-jQMmKIXM_RoXf0iYICziJy1LmuyU7TBZKpr_V-jier3vyksS620x9A1XhcYls9vJpPY5TiFSQruoTcYtTN79tAoYZbx_qJKqjbqeTxhOBvRpkhbI/s1600-h/DSC_5139.JPG"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj820ko-UF2fVW3qW3FIhWx3i6JMK-jQMmKIXM_RoXf0iYICziJy1LmuyU7TBZKpr_V-jier3vyksS620x9A1XhcYls9vJpPY5TiFSQruoTcYtTN79tAoYZbx_qJKqjbqeTxhOBvRpkhbI/s400/DSC_5139.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5343264714146213682" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhb_n3annGk8KoMNKK-sE8LD_xGbmfFdcykZmKZw8_Ecec6D-mwCsYhlchSIcolJ2UZ_LnpbHi-IiAc3fnEcCkfyNTOqfzRhHrnKOgtziR4Ztjoi6jEjJlOcYydlBzB74Jt8u7zCi7yys/s1600-h/DSC_5246.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhb_n3annGk8KoMNKK-sE8LD_xGbmfFdcykZmKZw8_Ecec6D-mwCsYhlchSIcolJ2UZ_LnpbHi-IiAc3fnEcCkfyNTOqfzRhHrnKOgtziR4Ztjoi6jEjJlOcYydlBzB74Jt8u7zCi7yys/s400/DSC_5246.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5343264710518533778" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtMCeDRfJ-b_oQCZWsDPI1erQLiSh_HaElzMw3YMAvXJNbAffp3kln2FjhCpj9saiX0yqucZa032BCL07MNw7OXWl07AykxnHfra-DNDDDe4yfgCuNQGl3f4VNL6h4mnEX0bOm3FcBvio/s1600-h/DSC_4809.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 268px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtMCeDRfJ-b_oQCZWsDPI1erQLiSh_HaElzMw3YMAvXJNbAffp3kln2FjhCpj9saiX0yqucZa032BCL07MNw7OXWl07AykxnHfra-DNDDDe4yfgCuNQGl3f4VNL6h4mnEX0bOm3FcBvio/s400/DSC_4809.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5343264704049560850" /></a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com2tag:blogger.com,1999:blog-2728781227113436240.post-63332751565347268952009-06-03T00:19:00.000-07:002009-06-03T17:29:25.136-07:00hackers; spider; IDS; spamIn last few days, I've been getting a lot of possible attack warning from my IDS. Before, i always get some local port scan, brut force attack. Yesterday, I found one form Hong Kong.. i was like.. how could that be?<br /><br /> Then, I found the reason. 1,2 days ago.. I login to a photography site and post some of my photos, and I updated my profile and put my domain name on it. That site is from HK.. so.. I guess that explain why I got more attacker from HK.<br /><br />Nes: 20090603:2030<br /> I totally forgot to mention about "spider". I believe after posting that photo site (dcfever.com) I got attack from HK. I believe somehow some hacker use spider program to search every one's profile and see if there is a site. I believe that's how they got my site. I'm putting myself in a hacker's situation, I would do this. Why waste the time to surf every one's profile and see if there is any possible site to attack?:-) <br /><br /> I've been thinking to do something interesting to my possible attacker. I was thinking to hack them back.. but. hehe... i'm not a good hacker and i dun wanna get in big trouble. So, I've been thinking to telnet their mail port (25) and use snmp protocol to send them an email and tell them that there is 'someone' trying to hack other people's network. (hey, if someone trying to login my ssh with root or ssh more than 5 and it's not me, i'm sure that's not accident!!) That would be fun.. but I think i'll have to mangle my IP too. Just send that mail command, i wouldn't care if i got receive back.<br /><br /> Unfortunately, my Rogers broadband block port 25.. sigh.. I've been thinking to switch an other ISP.. found one for $45 with a static IP and all port open!! That seems to be a good choice tho.Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-51902064909826492782009-05-18T11:36:00.000-07:002009-05-18T11:51:14.744-07:00My IDS has some Interesting reports.. got attacks from a security blog serverIn the LUC course, we wrote an IDS program in perl. After setting up my own server, I put my IDS there and add on some simple features. When ever there is an possible attack, no matter if it's brute force, port scan, I will block the source IP and also port scan back with "nmap -A -PN", then output the result in my apache directory. It's been running for a while. And my IDs has collected quite a lot of interesting reports. <br /><br /> As far as I know, the source IP can be a hacked machine or from a network. Althought I may not able to track down the attacker, but I would like to see where it's from. One of the source has an entry mentioned about an site called "http://echelon.pl/", it blog talk about IT security or.. IPSec... I'm thinking how could it end up attacking my server? haha... <br /><br /><span style="font-style:italic;"><span style="font-weight:bold;">Tne entry:<br><br />106/tcp open pop3pw Poppassd 1.8.5 (http://echelon.pl/pubs/poppassd.html)</span><br /></span><br /> Anywya, if you're interested, you can see all the nmap result here.. And have some mercy.. don't hack my server.. ;-)<br /><br />http://bossanesta.ath.cx/NesIds/nmap/Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-69960364017992727612009-05-03T18:55:00.000-07:002009-05-03T19:29:20.550-07:00FREE Photogrphier for Open Source and Seneca!!<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3352/3497215895_ae586c7f89.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 334px; height: 500px;" src="http://farm4.static.flickr.com/3352/3497215895_ae586c7f89.jpg?v=0" border="0" alt="" />Dessert Flower, love the contrast</a><br /><br /> Just bought a new lens, Nikkor 50mm F1.4. It's super amazing!!! It's not expensive tho, I bought a used one for $320, a new one is around $350. It's actually a mid-priced lens. cos the top one should be 50mm F1.2 or 80mm F1.4. But.. u know what? this is amazing!! When I first saw the photos, i was like.. OMG.. are those really my photos? hahaha..<br /><br /> I would love to dedicate my hobby to all every one involved in open source and Seneca. Let me know if I could help you. And I'll try my best! <br /><br />PS: look at my tittle, geez.. i should be in media instead of computing. Maybe I've read too much gossip magazine, hahaha..<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3565/3497215099_4d9361afba.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 334px; height: 500px;" src="http://farm4.static.flickr.com/3565/3497215099_4d9361afba.jpg?v=0" border="0" alt="" />SHOW TIME!! Great deep of view from my Nikkor 50mm F1.4</a><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3624/3498034522_d21518456c.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 334px; height: 500px;" src="http://farm4.static.flickr.com/3624/3498034522_d21518456c.jpg?v=0" border="0" alt="" />Zen, love the colour match and the peaceful sweet scene </a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-43137907352522944622009-05-03T17:33:00.000-07:002009-05-03T19:27:12.291-07:00CDOT Student Presentation 200904 in Flickr<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3591/3498305927_5d31445d01.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 334px; height: 500px;" src="http://farm4.static.flickr.com/3591/3498305927_5d31445d01.jpg?v=0" border="0" alt="" /></a><br /><br />Finally, I've uploaded it, hehe.. If you want the original, please let me know. <br /><br /><br /><br /><a href="http://www.flickr.com/photos/bossa_nesta/sets/72157617571963655/show/with/3498305927/">CDOT Student Presentation 200904 in Flickr<br><font size=-3>(Full Screen, flash required)</font></a><br /><br /><a href="http://www.flickr.com/photos/bossa_nesta/3498305927/in/set-72157617571963655/">CDOT Student Presentation 200904 in Flickr</a><br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3618/3498302045_5dc38aa7e9.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 500px; height: 334px;" src="http://farm4.static.flickr.com/3618/3498302045_5dc38aa7e9.jpg?v=0" border="0" alt="" /></a><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://farm4.static.flickr.com/3330/3499570558_85cbb04c93.jpg?v=0"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 500px; height: 334px;" src="http://farm4.static.flickr.com/3330/3499570558_85cbb04c93.jpg?v=0" border="0" alt="" /></a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-62577224398800076592009-04-30T00:44:00.000-07:002009-04-30T00:59:42.652-07:00Another Andrio Phone, Samsung i7500<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.dcfever.com/articles/news/2009/04/090428_samsung_i7500_01.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 500px; height: 334px;" src="http://www.dcfever.com/articles/news/2009/04/090428_samsung_i7500_01.jpg" border="0" alt="" /></a><br /><br /> Cool.. finally, another Android!! Really looking forward to see the real thing. I actually have been using my iPhone at home when I have problem with my network. It's just so cool and convenience. When every I need to test WLAN or LAN, I would use it.I can run ping, nmap, sniffer, tcpdump, ifconfig, etc networking tool on my phone. And in last few days, on my brother's request, I setup tittering for his brand new Asus 1000HE, so he can connect the internet any where with his 3G network. And he loves it!!<br /><br /> And it should be practical at work also. You know, in some critical production site or some data center, it's quite hard to get internet connection. Using your phone, which allow you connect to the internet without affect the production site network, this is amazing.<br /><br /> When there is a new iPhone coming up(next year?), i may get a new phone, it should be either the new iPhone or an Android. Frankly, mostly i'll get the new iPhone. But if I do use it to type command.. well.. an Linux based smarphone with slide keyboard should be a better choice tho. Although I do love the touch screen on iPhone.. but for typing? A physical keyboard is much more better tho.<br /><br /> Consider Linux SmartPhone is going to be the future, should every Sys admin get a smart phone? <br /><br /><br /><a href="http://reviews.cnet.com/smartphones/samsung-i7500/4505-6452_7-33637212.html">Samsung i7500 in cent</a><br /><br /><a href="http://www.mobile-review.com/fullnews/main/2009/April/27.shtml#24036">Hands on preview in a Russian site</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-4035390198088312482009-04-17T21:00:00.001-07:002009-04-17T21:08:35.250-07:00mNm Release 0.9<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_gg7eaxWWqKQS0HrHq0RV8bMJttjeAjtIgajIOC3KQc9AL3Yv61_cJWrPdQ4MBu_LKbSCsMDsLC96Ji3zbQfGGf298M5w9ajVDDqmyl2RcamubB8XGKEHEhLEknWNvF9wiv0zfmoQY20/s1600-h/Screenshot-2.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 234px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_gg7eaxWWqKQS0HrHq0RV8bMJttjeAjtIgajIOC3KQc9AL3Yv61_cJWrPdQ4MBu_LKbSCsMDsLC96Ji3zbQfGGf298M5w9ajVDDqmyl2RcamubB8XGKEHEhLEknWNvF9wiv0zfmoQY20/s400/Screenshot-2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5325876470956954114" /></a><br /><span style="font-weight:bold;">mNm Release 0.9<br /></span><br />= integrated multi-language support<br />= progress bar & message<br />= Existing Code migrate with Fedora First Boot, as a plug-in in 'Create User' Module<br />= Improved Auto Mount (instead of un-mount every thing, it only mount non-existing one)Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-28506839702892368092009-04-12T04:23:00.001-07:002009-04-12T04:37:03.257-07:00OH.. My gosh... i almost delete all my post in blogger..I was managing my label/tag of my post to prepare my project presentation.. i click on the 'delete' below 'apply label', it thought it's delete the label. But no!! it deleted my blog. I actually doubt about it already, but as labeling a blog has an undo function, i thought delete a blog should have an undo, right?<br /><br /><br /><br /><font size=+3 color=red><b><span style="font-weight:bold;"><center> NO!!! IT DOSE NOT!! </center></span></font></b><br /><br /><br /> Lucky that I was playing blogger because my FreeBSD assignment needs to import post from blogger to wordpress. And I did have a backup... that I didn't even remember. Thanks god.. every thing is here.. :-) I still wanna show my blog to my grand children... LOLBossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-58164739561039502022009-04-06T23:17:00.001-07:002009-04-12T04:18:14.690-07:00Migrate aNd Manager Release 0.8 Progress Update<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqajJ4fKCCLqzMD9dZFEAjCSClcyYsg-XLJeyPwrn4rJ8iYtX89qtH057YdAnCQHAPMwv9ymVe2_6HKEy-5zXwxIxKqMyZ9f6GQA14zslFf4BMzTJ2bVko_hMyryMo_XdTse5WaL2rB9k/s1600-h/mNmAsFirstbootModule.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 234px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqajJ4fKCCLqzMD9dZFEAjCSClcyYsg-XLJeyPwrn4rJ8iYtX89qtH057YdAnCQHAPMwv9ymVe2_6HKEy-5zXwxIxKqMyZ9f6GQA14zslFf4BMzTJ2bVko_hMyryMo_XdTse5WaL2rB9k/s400/mNmAsFirstbootModule.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5321979466561365778" />mNm running as an Firstboot module</a><br /><br /><br /> So... I've been trying to put mNm to merge with firstboot. Althought I should contact firstboot owner soon.. but I still want to make sure my program will not have big problem when integrate to firstboot. I've been playing around the modules. After 2 days of testing, I finally figure out a way for it. <br /><br /> Instead of using it as a module in Firstboot, mNm should be used as a plug-in (Please correct me if this is not the proper way to call it.). So.. in "Create User" module, user can also choose a 'Network Login' thing.. (honestly, i dun really know what it really dose tho). It calls up '/usr/bin/authconfig-gtk --firstboot' as a process. So... that where mNm should be!!<br /><br /> Let me also talk why it should be a plug-in. I was thinking if mNm should be replacing 'create user' module or should be an alternative module. But the logic is kinda wired. and firstboot dose not run like that. Firstboot will call up modules one by one in sequence. As mNm will do automount, it's kinda silly to mount every thing even mNm will not even being used. I believe running mNm as the Create User plugin is the best way to do. And also.. it seems that calling up mNm as a module in firstboot is not possible. As you can see in the capture that I run mNm as a module and the item list is blank. Maybe there will be some way to do.. but if the plug idea is working.. why bother? :-)<br /><br /> But I will still confirm with my super duper professor Chris Tyler first. Then... multi-language!!<br /><br /><br />Here is some improvements I've also done in last two days..<br />1. disable umount when calling up 'AutoMount'.<br />2. It has a bug that, if the user folder contain file, mNm will crash. This issue has been fixed.<br /><br />PS: <br /> Finally, I fixed the problem in the tree list when mNm running as a module in firstboot. I've also uploaded the capture as the first image. (Nestor, 200904071200)<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV_nb3_OvSGlOuuRRg2KoYbUfm0S31nEzGo0EgSNhipO5ncpjfMJMWGg89Ovv6ARF1fMwoMQ8v-DdTCSPm3qaDPAyDNjrxS6vRWjL8KQzvbUzA8RIV6Jqh0uFqgC0j9k4BgWnfDbeWUgU/s1600-h/mNm_Firstboot.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 234px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV_nb3_OvSGlOuuRRg2KoYbUfm0S31nEzGo0EgSNhipO5ncpjfMJMWGg89Ovv6ARF1fMwoMQ8v-DdTCSPm3qaDPAyDNjrxS6vRWjL8KQzvbUzA8RIV6Jqh0uFqgC0j9k4BgWnfDbeWUgU/s400/mNm_Firstboot.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5321830400730824098" />mNm running as an plug-in inside Firstboot module 'Create User'</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com2tag:blogger.com,1999:blog-2728781227113436240.post-50971498540694627852009-04-01T22:03:00.001-07:002009-04-12T04:18:14.702-07:00Migrate aNd Manager Release 0.8This version of mNm has a functional GUI that will provide all functions that need to be done for firstboot. Although there are some small improvements need to be made but Since it matches all milestone that I planed before except Multi-Language font part, therefore, I'm posting it here.<br /><br /> Hopefully, I'll have a newer version of 0.8, which would be called 0.8.1 coming this weekend that will have scroll bar and it will a better version of 0.8. The next release 0.9 should be a fully working version. And I'm targeting to do bug fixing and improvement after release 0.9. <br /><br />Here is a list of things that I've added in this 0.8 release...<br />* check boxes<br />* auto mount (add on auto mount to mount all supported types)<br />* auto search (including OS type and users, default OS User home only)<br />-- get supported OS type from database<br />-- put list of supported OS object(classes) in a list<br />-- find out if the mounted drives (just in all drives except default live CD user) has any user <br /><br /><a href="https://fedorahosted.org/mnm/attachment/wiki/TracBrowser/mNm0.8.py">mNm Program/Source</a><br /><br /><a href="https://fedorahosted.org/mnm/">mNm Main Page in FedoraHosted</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-3835695735358707752009-03-23T09:10:00.001-07:002009-04-12T04:18:14.711-07:00Migrate aNd Manager Release 0.71<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLkBo63pShN_3VMIpmKdlu3yuuw0RslXGQcJm7AkEDrbEk_94YAzF8x01VZYYwXFCVhv8ljqZcXSprUecI1OFfi-7mn59_QmVxvvvvYhmBy9HPwsKiBeM1_wWJgeCJ2fqq3c7XegOZHXk/s1600/Screenshot-CellRenderer+Example.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 406px; height: 561px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLkBo63pShN_3VMIpmKdlu3yuuw0RslXGQcJm7AkEDrbEk_94YAzF8x01VZYYwXFCVhv8ljqZcXSprUecI1OFfi-7mn59_QmVxvvvvYhmBy9HPwsKiBeM1_wWJgeCJ2fqq3c7XegOZHXk/s1600/Screenshot-CellRenderer+Example.png" border="0" alt="" /></a><br /><span style="font-weight:bold;">Welcome to the team</span><br /> First welcome <a href="http://kezhong.wordpress.com/">Kezong Liang, Stephen</a> joing me on this project. Stephen will be concentrating on multi-language support of the program.<br /><br /><span style="font-weight:bold;">What's in 0.71 release?</span><br /> This release is a preview of 0.8. Several bugs have been fixed in GUI mode. And it could be download with yum from <a href="http://matrix.senecac.on.ca/~mdvyas/">Mohak Dilipbhai Vyas</a>. <br />The GUI function is only showing ideas of how the GUI may look like. <br /><br /><span style="font-weight:bold;">Instruction:</span><br />1. download this rpm package and put vyasrepo in your repo list<br />http://matrix.senecac.on.ca/~mdvyas/vyasrepo-10-1.fc10.noarch.rpm<br />2. type in this command..<br />yum install mnm<br /><br /><span style="font-weight:bold;">How to run...</span><br />the program will be saved in your /usr/sbin/. If you do not want to risk you documents, running in virtual machine is strongly recommanded.<br /><br /><span style="font-weight:bold;">Thanks</span><br />Thank you for Patty, Milton on helping me testing this program, and Mohak kindly packaged this program and put it in his repository. And of course all the hard work from Stephen Liang. :-)Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-55885759910263620402009-03-18T14:23:00.001-07:002009-04-12T04:18:14.722-07:00How many VMs can my Asus EEE PC handle?? 2?? no.. 4?? em... hehe..<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVuNf2ubjSBmjkjPFq4nX-w1_R40w-MKQjsaWbMjuNfbhWETxOuQwc4BbcdS8NJykersLPg_JOVIVf5Y-XGNAD5oUlsY_okSg-Kz7GJpj2I3NbL0avtYn3vxw6VEUdV9znZxkOSiBqVzA/s1600-h/Screenshot.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 234px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVuNf2ubjSBmjkjPFq4nX-w1_R40w-MKQjsaWbMjuNfbhWETxOuQwc4BbcdS8NJykersLPg_JOVIVf5Y-XGNAD5oUlsY_okSg-Kz7GJpj2I3NbL0avtYn3vxw6VEUdV9znZxkOSiBqVzA/s400/Screenshot.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5314646555153472498" /></a><br /><br /><br /><span style="font-weight:bold;">Intro:</span><br /> I've been working on my NAD project with vbox's vms.. i'm really curous what this little single core cpu machine can do. Here is the config..<br /><br /><span style="font-style:italic;">Asus EEE</span><br />- 2G Ram (MAX for eee)<br />- Fedora 10<br />- fresh boot<br />- laptop mode (as real ram as much as possible, instead of swap)<br /><span style="font-style:italic;">VMs</span><br />- 4 F10 with 256 ram, 4mb Video ram, text mode (init 3)<br />- 1 F10 with 512 ram, 12mb Video, X windows<br /><br /><span style="font-weight:bold;">Assumption:</span><br />- F10 host (Asus EEE) fresh boot with X running use about 500-700mb<br />- One F10 VM in text mode use around 250Mb<br />- idealy<br />- total 2gb ram means I can use at least 5 Vms.. (700+(250*5))<br />- when the VM in text mode and idle, it use 5-15% CPU<br />- start all VMs one by one to reduce run time and chance of crashes<br /> <br /><span style="font-weight:bold;">Result:</span><br /><span style="font-style:italic;">- IT WORKS!!! 5VMs running smoothly!!</span><br />- impressive!!<br />- it use some swap but.. well.. cos the last one was 512mb F10..<br />- it may able to run 6 VMs smoothly if I have 2 more 256mb ram F10<br />- really impressive!!<br />- if it has service running (httpd, dns).. it may use a bit more memory... and a lot more CPU. using a 'find' command use 60% host CPU already!<br />- it may able to handle 6VMs or even 7VMs in text mode and still have an acceptable performance. even with some simple service on and those are not busy services..<br />- it's perfect for testing...<br />- it's absolutely impressive!!!! ;-p<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwLj5AKLI5DTGyF8u_okXZaioeyiq4GacaibWB37uSsXMc7z1_qM_GQsrf4JCaseNrV8TTzFjkwq-gG88U5xSn1SKEr2YHg5cPlIDgOBZy8PMP4tpEoSgcWVPhZ-CCErVKvarvk8nIz8w/s1600-h/Screenshot-Sun+xVM+VirtualBox.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 216px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwLj5AKLI5DTGyF8u_okXZaioeyiq4GacaibWB37uSsXMc7z1_qM_GQsrf4JCaseNrV8TTzFjkwq-gG88U5xSn1SKEr2YHg5cPlIDgOBZy8PMP4tpEoSgcWVPhZ-CCErVKvarvk8nIz8w/s400/Screenshot-Sun+xVM+VirtualBox.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5314646752892287154" /></a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-58993657246286916372009-03-18T10:53:00.001-07:002009-04-12T04:18:14.733-07:00Adding a bridge NIC(virbr, br, pan) in Fedora 10(F10), purely command lines..I've been using Virtual Box for a while and love it. But the downside of vbox is you can not use your NIC's alias as the bridge or interface. So, I found out a way to add a bridge NIC in pure command mode. Since there is no such tutorial online, I would love to write this down and share with you. This is just a short tutorial that to show you create a virtual NIC in command lines only.<br /><br /><br />========================================================================<br /><br /><span style="font-weight:bold;">brctl addbr virbr2<br />ifconfig virbr2 up<br />ifconfig virbr2 </span> <br /># now, record the MAC address of your Virtual NIC<br /><br /><span style="font-weight:bold;">vi /etc/sysconfig/network-scripts/ifcfg-virbr2</span><br /># and type all following lines in there,<br /># but modify 'HWADDR' as the MAC address<br /># and change the IP as you want.<br /><br /><span style="font-style:italic;">TYPE=Ethernet<br />DEVICE=virbr2<br />HWADDR=B6:9F:39:E6:DC:64<br />BOOTPROTO=none<br />ONBOOT=yes<br />USERCTL=no<br />PEERDNS=yes<br />IPV6INIT=no<br />NM_CONTROLLED=no<br />NETMASK=255.255.255.0<br />IPADDR=192.200.200.2</span><br /><br /># now, check if it's really working<br /># if it's successfull, the ip you typed before should be assigned <br /><span style="font-weight:bold;">service network restart<br />ifconfig virbr2</span><br /><br />========================================================================<br />then, your virtual NIC should be up and running after restart.<br /><br /><br />PS: i put a long title on purpose, so other people can google it. :-)Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-36301215417025298442009-03-16T14:34:00.001-07:002009-04-12T04:18:14.742-07:00mNm Update<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe4Rp5EVJ1XilltIkix-sJomi2dJfLRtpfaDJAScMPzKOTjSVTcM-jxiyeZe8my9fkPu9sNhV3LotdkCnsftvR6hs1PqM3JaytRcurrUcIA6G5Jx6XuS64DgAC7AL-fD4QLs5hpVWerjI/s1600-h/Screenshot-CellRenderer+Example-1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 233px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe4Rp5EVJ1XilltIkix-sJomi2dJfLRtpfaDJAScMPzKOTjSVTcM-jxiyeZe8my9fkPu9sNhV3LotdkCnsftvR6hs1PqM3JaytRcurrUcIA6G5Jx6XuS64DgAC7AL-fD4QLs5hpVWerjI/s400/Screenshot-CellRenderer+Example-1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5313903833504704706" /></a><br /><br /> I've been working on the GUI after 0.7 release. The next release will have a working GUI that automatic mount Fedora supported partitions, and detect all users from supported OS. It will also have a click box that allow user just migrate certain folder, mount or users. And of course, automatically create user if the user is not existing.<br /><br /> And finally, I got my tree working with check box. The next step will be integrating these check box with the migration process. Since I don't have good foundation on python GUI module, this may take me a while. <br /><br /> But i can't help myself to show off my work, hehe.. even there is a lot to work on..so.. here is the capture...<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLkBo63pShN_3VMIpmKdlu3yuuw0RslXGQcJm7AkEDrbEk_94YAzF8x01VZYYwXFCVhv8ljqZcXSprUecI1OFfi-7mn59_QmVxvvvvYhmBy9HPwsKiBeM1_wWJgeCJ2fqq3c7XegOZHXk/s1600-h/Screenshot-CellRenderer+Example.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 289px; height: 400px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLkBo63pShN_3VMIpmKdlu3yuuw0RslXGQcJm7AkEDrbEk_94YAzF8x01VZYYwXFCVhv8ljqZcXSprUecI1OFfi-7mn59_QmVxvvvvYhmBy9HPwsKiBeM1_wWJgeCJ2fqq3c7XegOZHXk/s400/Screenshot-CellRenderer+Example.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5313903430636163186" /></a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-74775361889688526132009-03-13T19:50:00.001-07:002009-04-12T04:18:14.752-07:00mNm Release 0.7Finally, GUI can work with out command lines!! :-) right now i'm calling "create and move" function to do file copying and automatic create users. This function will be the foundation of the program and it will be good enough to use in firstboot.<br /><br /> Anyway, here is the code...<br /><a href="https://fedorahosted.org/mnm/wiki/TracBrowser">mNm Release 0.7 source code</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-42791949289845131282009-03-08T03:58:00.001-07:002009-04-12T04:18:14.761-07:00mNm Release 0.6.3It's only been few days after release 0.6. This release of 0.6.3 is not for bug fixing, it's actually some internal improvement of 0.6. It is kind of an early release 0.7 I have successfully move every thing into a class. And instead of putting supported OS database in array, i put them in a file and import them when necessary. <br /><br /> The next step of 0.7 will be targeting on calling internal function from GUI instead of using os.system to call up mNm in bash. <br /><br /> If time is allowed, I will also create another function to get all supported OS into a list. So, the GUI could just call up the function and user will be easier to choose.<br /><br /><a href="https://fedorahosted.org/mnm/attachment/wiki/TracBrowser/mNm0.6.3.py">Soure Code of mNm0.6.3</a><br /><br /><span style="font-weight:bold;"><br />Some more to share...</span><br /> It was tough to restructure the whole program. Especially it's about 800 lines of code now. Sometime I've totally forgot what i have and what i was trying to do in the code. So, I try to work on 0.7 as soon as I can, so i don't have to pick up again. ;-p<br /><br /> And surprisingly, every thing go smoother after 0.6 release. I didn't expect having my function use those classes would be so easy. I only spend about 5,6 hours from 0.6 to 0.6.3. That's a relief. :-)<br /><br /> Since the foundation is much more better now. All I have to care is improving the GUI, and build some small functions if necessary.Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-14800939379985806052009-03-04T20:17:00.001-08:002009-04-12T04:18:14.771-07:00Migrate aNd Manage(mNm) Milestone for Release 0.7Before adding functions on GUI, I want to build up a better foundation. At this moment it is impossible to have mNm pure GUI mode. Currently, mNm GUI will organise a command line with all parameters and call the line in batch. Which is acceptable but not a perfect GUI if I want this in firstboot. There for, I want to build a better foundation so I don't have to worry about variables in the future.<br /><br />So, here is the milestone for mNm release 0.7:<br />= put all supported OS type and directory list in an array which is stored in a class for easier management and calling.<br />= GUI call up internal functions, instead of calling batch.<br /><br /><br />Please check the link below for updated milestone.<br /><a href="https://fedorahosted.org/mnm/milestone/Release0.7">mNm Milestone Release0.7in FedoraHosted</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-64121171403492536202009-03-04T19:58:00.001-08:002009-04-12T04:18:14.782-07:00Migrate aNd Manage(mNm) Release 0.6After all hours and days of debugging, finally, release 0.6 is here. It sounds easy to put all variables into class, but.. OMG.. i couldn't believe how tough it was.. So I had to change my mile stone. But the brightside is, it's always better to improve the foundation instead of changing it later when its more than 2000 lines of code, right? Luckily... I have only did 800 lines... ;-p<br /><br /> Anyway, here is what I've done for Release 0.6...<br />- those code of sorting flags and calling function will be put in 2 functions instead of on the upper level lines. It's better for future development. <br />- put global variables into classes <br />- fixed all bugs after moving all global variables into classes - added a variable named "ProgMsg?" for easier debugging <br /><br /><a href="https://fedorahosted.org/mnm/attachment/wiki/TracBrowser/mNm0.6.py">mNm Release 0.6 code in FedoraHost</a>Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0tag:blogger.com,1999:blog-2728781227113436240.post-45711425262508617192009-03-04T00:25:00.001-08:002009-04-12T04:18:14.791-07:00Migrate aNd Manage Release 0.6 Progress (and problems..)After bug fix of 0.5, which is 0.52. I've moved all the codes into functions. I found there is problem on calling few functions, such as calling help.<br /><br /> After hours of testing and searching, I found the reason. The reason is because the way python handle global is totally different to my other programming language experience. Of course, I can assign global variable in functions then, I can change it in any where, or I can pass the variables. But... I think I'll change all variable in a class, so I can call up any time any where. And I think it's better for future development too. <br /><br /> This release's coding is more than I thought. It's more like restructuring the whole program instead of adding code on it. @@ And I'll have to do a lot of testing to make sure all variables pass successfully too. And I need a little plan on it too.<br /><br /> And the reason why I'm putting every into functions is because it's easier for GUI development. So I can actually call up the functions form GUI instead of just call up mnm in bash command with all parameters.Bossa Nestahttp://www.blogger.com/profile/11916659212202822136noreply@blogger.com0