my net house

WAHEGURU….!

Monthly Archives: July 2014

Install XeTex on Ubuntu

Ok Latex fans! (I am one too)
first run
$ sudo apt-get install texlive-xetex
than Enjoy zitΙ›k πŸ™‚

https://github.com/arshpreetsingh/XETEX_Resume
http://en.wikipedia.org/wiki/XeTeX

Initially developed for Mac OS X only, it is now available for all major platforms.

Latex is most beautiful and XeTex is most beautiful++ (Looking forward more more fun with this.)

Advertisements

My First Great GD meet

################################GD##################################
####################################################################

Yes it was only great back than but it is Great GD Now. πŸ˜€
I really liked all people IT+Civil who attended and tolerate me for a looooooong while πŸ˜€

And some after presentation also clapped to tell me it was really not that bad. πŸ˜› πŸ˜€

Haan ikk cheez jaroor hai kuch chall nahi riha c,, chalna kithon c,,”AA civil aale kamm saukhe thodi hunde aa πŸ˜€ πŸ˜€ ” BAND bajj janda dimaag da,,,, But baad ch jado samaj auda vi accha ki cheez aa eh fer bass ikk gall e kehan nu dil karda.. Great…..!!!!

I think that’s why the name of our group is Great developer. (seems something is cracked here πŸ˜‰ )
At last I loved that evening that spend with GD people. Hatts off…!!! πŸ™‚
jeonde raho,,,Rabh Rakha…!!
………………………!!
………………………!!
Still Hungry for BIM…….!!

Install BIMserver on Ubuntu

OK first of all if you have no idea what is BIM,IFC,BIMserver than you should be go for some Google and come again. I am writing a guide to setup BIMserver on Ubuntu.

$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
$ sudo apt-get install openjdk-7-jre

Set the “JAVA_HOME” environment variable (If you do not know you can Google it or ask in the comments)

Again come to terminal:

$ wget https://github.com/opensourceBIM/BIMserver/releases/download/1.3.0-FINAL-2014-04-25/bimserver-1.3.0-FINAL-2014-04-25.jar

$ mkdir BIMserver

$ cp bimserver-1.3.0-FINAL-2014-04-25.jar BIMserver

$ cd BIMserver

$ java -jar bimserver-1.3.0-FINAL-2014-04-25.jar

This will extract the content of the jar file and create two subfolders, i.e. home and bimserver-[version]. Now an application window will open. You have to click on “start server”
Bingo..!! I have not tested it. Let me know(in comments) if you got any problem. Good luck with BIMing. πŸ˜‰

Dpkg packages fix Bodhi/ubuntu/debian

$ sudo dpkg –configure -a
$ sudo apt-get –fix-missing
$ sudo apt-get -f install
$ sudo apt-get autoclean
$ sudo apt-get autoremove
$ sudo apt-get update
$ sudo apt-get upgrade
Bingooooo….!!

Learn Python and OOPS

OOPS…..!!
Ok first of all when we think about OOPS we think about class.
yes Class
1.Create Class

class Honey:
name=”Arshpreet”;
#Object for class
meandme=Honey();
#Access variable of class using object
print meandme.name;

#One more object
myandmy = Honey();
#assign new value to variable using object

myandmy.name = “yackity”;
print myandmy.name;
[]
For using function just use object with function name. like meandme.functionname(). so I think we can also use other stuff too in Python class. That’s All

python sikhni hai

Python Job Schedule

Not sure Why writing this post, Don’t even need to because there is not solution at all. πŸ˜› Pagalpanti vi jaroori hoti hai. πŸ˜€

http://stackoverflow.com/questions/373335/suggestions-for-a-cron-like-scheduler-in-python

https://developers.google.com/appengine/docs/python/config/cron

https://developers.google.com/appengine/docs/python/config/cron

http://apscheduler.readthedocs.org/en/v2.1.2/#advanced-python-scheduler

https://pypi.python.org/pypi/python-crontab/

https://launchpad.net/python-crontab

http://pycron.sourceforge.net/ (For Windows)

https://docs.python.org/2/library/sched.html

https://github.com/dbader/schedule

http://blogs.esri.com/esri/arcgis/2013/07/30/scheduling-a-scrip/

http://apscheduler.readthedocs.org/en/latest/

http://stackoverflow.com/questions/5636458/python-library-for-job-scheduling-ssh

https://devcenter.heroku.com/articles/clock-processes-python

http://www.celeryproject.org/

Still no IDEA what is all above about and what it really means. Do I really need to that kind of approach? Actually I want just some Python code that will do all job scheduling or event scheduling? AHHH..!! what is the difference between event and job. Is there something else that also comes under this category? πŸ˜›

So simply a python code without external libraries to schedule jobs or whatever(just need to run my Python Script) ….!!!
jai mata di mitroo(SEO :D)

Bodhi linux , Bodhi and linux ,Bodhi and linux in india

THIS ARTICLE IS FICTIONS ON LINUX AND THE RISE OF BODHI LINUX, PLEASE DON’T TAKE IT SERIOUSLY AT ANY COST πŸ˜‰

What is Linux:
http://en.wikipedia.org/wiki/Linux
http://www.linux.com/
http://www.linux.org/

There are millions or may be billions pages are available about Linux, Which you can find on the Google who also use Linux. Google has also promoted Linux very well to get great and stable services. Like Android which is also a fork of Linux. IMHO Linux is just not an operating system it is a thinking and when we use Linux we don’t use it we do Linux-ism. πŸ˜€

So that was all I wanted to say about Linux.
Now let us go to bodhi linux which is now one of my favorite Linux distro ever.
First: Who is Bodhi Linux
http://www.bodhilinux.com/
http://forums.bodhilinux.com/
http://www.bodhilinux.com/downloads_desktop.php

Bodhi Linux is the minimalist. Well it depends on how bodhi linux stuck in my mind. This is just the linux distro I ever wanted. That is Bodhi Linux. while tlking about Bodhi linux there are many other concepts those comes in our mind about Linux distros.

What actually all Linux user want from linux?

Light weight and fastest, Yes true. We want Light weight and fastest Linux distro because that is the actual standard of Linux but Linux with Gnome3,XFCE,ABC,XYZ, there are also good distros of Linux but not as good as Bodhi Linux. So we want fastest and Light weight linux.(Men’s style) But as we know there are lots of girls are taking lots of interests in the Linux so they want their Linux little bit dashy,sparky and styliey (I don’t know actual meaning of these words I just Listen from some of the girls :D). Due to this lots of graphical Linux developments has been started like Bodhi Linux. I am sure creator must be Indian because from the name of bodhi Linux we can see the Indian name Bodhi.

Basically Bodhi is Indian name:
http://en.wikipedia.org/wiki/Bodhi
http://www.facebook.com/wearebodhi
bodhi.in/

It is not Just enough that Bodhi is only a class of people or a clothes brand in bodhi, Bodhi is also a scared tree of India we also call it Bohad in Punjab. You can search the Images of Bodhi tree on Google by just typing the keywords “bodhi tree” or “bodhi india” or “india bodhi”(I just try to did some SEO trick for bodhi and linux here πŸ˜‰ ) You can also see in the following Link.
http://en.wikipedia.org/wiki/Bodhi_Tree

Now you got how cool Bodhi and Linux are. Either the come together bodhi Linux or just separated bodhi and linux.

Now lets talk about features of bohdi linux.

Bodhi Linux is fastest Linux. When I say that about bodhi Linux you must have a question about Why it is fastest Linux? Number one about bodhi linux is that: Bodhi linux uses one of the light weight Linux desktop environment which is Enlightenment. You can find more about Bodhi Linux and enlightment in the following Linux related to Bodhi Linux and enlightenment.
https://www.enlightenment.org/
http://www.bodhilinux.com/e17guide/e17guideEN/
http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=20423
Nuber two is ease of use of Enlightenment: Which is one of the biggest reason for bodhi linux to be one of the fastest Linux. It is common fact that how easy something will be to operate we will operate it fast. Just like hand pump is easy to operate than throwing a basket in the well. Using the handpump we can do much work with less time and less effort. (ahh handpump wali example tan siraa e c πŸ˜€ ) so using Bodhi linux due to ease of use we can do more work with bodhi in lesser time. Third point is smart design of bodhi and enlightenment. As I have already told you about hand pump in the bodhi Linux example, Ease of use comes from the smart design same as Hand pump is smart design than basket pull method so we can do easily and get maximum output same is due to smart design of enlightenment on Bodhi Linux. Graphics design, Application minimize, Software installation from browser in Linux, Reliability of Ubuntu Linux, Style of Debian Linux and Power of simple Linux are the best key features of Bodhi Linux.
There are lots of good reviews about Bodhi linux those you can see just type the keywords “bodhi linux” and you will get the lots of good stuff about bodhi linux. πŸ˜€ (apne wallon tan poora jor laya dekho ki banda πŸ˜€ )

en.wikipedia.org/wiki/Bodhi_Tree

Enlightenment Debian and Debian Enlightenment

E17 or Enlightenment is one Linux desktop Environment. E17 is just “beauty at your fingertips” seriously? Don’t trust me I am little bit out sometimes due to power cuts and slow Desktop environments like Unity,KDE,Gnome3,XFCE and all A,B,C. Yes i love E17 or Enlightenment desktop environment.
https://www.enlightenment.org/
You can install Enlightenment on your system also. I have not tried it but you can and let me know. πŸ˜‰
https://code.google.com/p/e17mods/wiki/ReasyE17

This script will help you install enlightenment17 on your system (from SVN).
The first obvious question is: why the hell another script to install enlightenment when we just have Easy_17.sh?

Now lets talk about combinations of E17 with Debian. E17 and Debian wow. Means stability and beauty. Just like Makki di roti with sarso da saag. :D(It is my blog I will write whatever I want to write πŸ˜€ either it is technical or not )
Debian(https://www.debian.org/) is known as the universal operating system. Debian is flexible and very much cool towards Enlightenment.(still don’t believe in me?:P )
Search for the keywords “Enlightenment” “Debian” or “E17” “Debian” or “Debian” “Enlightenment” on Google. Someone has done pretty good SEO here. ;). Now the calls ask what I want to say. There are lots available options which can give you both Debain and Enlightenment. Someone has explained it with lot of details here(http://jeffhoogland.blogspot.in/2010/12/ten-linux-distros-that-use.html). You can trust him. I do. πŸ˜€
Basically in the above link he has explained the Linux distributions those use Enlightenment or E17 but he missed Snowlinux. He told bout Elive OS which is Debian based using Enlightenment. Elive is live only I mean you have to pay if you want to install on hard disk. Not sure either someone is doing Evil or Business. πŸ˜€

http://www.snowlinux.de/
Snowlinux is one Debian based Enlightenment(E17) known as Snowlinux E17.
So finally E17 on Debain. It is that thing like potato+punjabi.

http://sparkylinux.org/tag/enlightenment/
Sparky Linux is one more option. It uses Enlightenment and Debian together. there is one more plus point that it uses E18 instead of E17.

http://www.makululinux.com/enlightenment.htm
As I always do believe that “Inovations travel beyond the borders even with passport and visa :D”
It is also Debian and Enlightenment. Makulu linux is using Debian and running E17 on it. So again the combination of Enlightenment and Debian or Debian and Enlightenment.
That was all I know about Debian and Enlightenment or E17 and E18. πŸ˜‰
There must be some more flavors of Enlightenment over Debian. You/readers can help to dig those out. You can also test those Debian and Enlightenment combinations those I have talked about and let me know.

Rsnapshot: makes life really easy

Rsync=Local backup, Rsync over ssh=server backup. TakeΒ XXX.XXX.XXX.XXX as your IP address(local or remote).

First download Rsnapshot and install. I am using Bodhi Linux and used apt package.

Prepare you server for password-less Β entry. Create keys and send to your server.(Optional if you are curious and Super Geek πŸ˜‰ )

$ sudo ssh-keygen -t dsa

Now go to .ssh directory.

$ cd .ssh

$ sudo ssh-copy-id -i id_dsa.pub root@XXX.XXX.XXX.XXX

Now chek if you are successfully able to run the command below

$ sudo ssh root@XXX.XXX.XXX.XXX

now Edit /etc/rsnapshot.conf.

Check your rsnapshot root

snapshot_root /var/cache/rsnapshot/

Un-comment the following Line

cmd_ssh /usr/bin/ssh

Read carefully the file. It uses <tab> rather than space. Move down and down and read the file you will find some settings like Intervals for backup and remote commands. You can read and give try if you want.

Now if you are backing up Local go under #localhost for remote go under # EXAMPLE.COM

I am doing server backup here so I add following under #EXAMPLE.COM

backup root@128.199.226.232:/etc/ myserver-etc/ Β  (remember <tab> here. This line is like backup<tab>root@128.199.226.232:/etc/<tab>myserver-etc/)

So in the above line we are instructing Rsnapshot to bakup /etc folder on server to /myserver-etc on local computer. /myserver-etc will be created automatically underΒ rsnapshot root(locally).

Save & Exit.

$ sudo rsnapshot configtest

if you did everything OK you will be get output:Β Syntax OK

$ sudo rsnapshot hourly

It will start Rsnapshot on hourly basis for backup. It will take some time to complete the command. After the completion you can move to rsanpshot root and check for backed-up files like hourly.0Β or hourly.1

To stop use:

$ sudo rsnapshot -q hourly

I followed the tutorial from:Β https://www.youtube.com/watch?v=Pf2uC9izWtI&list=PL46CECC9242712613

PS:It is difficult to do read all and follow steps. πŸ˜› NEED SCRIPTING….!!! πŸ˜€

%d bloggers like this: