Sunday 20 September 2015

Sublime Text Editor, Single Text editor as IDE of Multiple language | Abhishek Singh

Hey guys !!
       Today I have something stunning for you.
so, if you are a programmer or coder and you work on either Windows, Linux or Mac this post is for you !!!

I'm taking Linux and python as example.

you just need to install the compiler or something of your language. and add it to path variable. if you don't know about path google it or you can visit my other post regarding path variable.

so, all of you know that linux comes with python inbuilt. so i have to do nothing
in windows you have to install python and set it to path variable.

now type your code and don't forget to save your file. (ctrl +s)

now type ctrl+B to run your code and output will be in active console.

your sublime will show you something like this.


Happy coding fellas ;]

Friday 18 September 2015

Kali linux 2.0 sana Black Blank screen after booting and startx command not found or CPU pipe a FIFO error [solved] | Abhishek Singh

hey guys,
       so how are you all ?
       Today when i finish installation of Kali Linux 2.0 Sana in my machine and reboot it. It stuck with a black black screen.
so if you are also in this problem please read and follow it, in the end you will be with a smile ;]

so on that blank screen hit ctrl+alt+F2
this will lead to command line interface where it shows something like "CPU pipe a FIFO error" hit enter
now give the username "root" [obviously without quotes ;) ]
and hit the password which you enter during installation {default pswd is toor}

now type "vi /etc/X11/xorg.cong.d/20-intel.conf" [without quotes]

for your info-  vi is a text editor of command line.

the above command with create a folder and a file. (nothing you to worry about)

now you will see the vi window

hit "i" button for entering into insert mode. [you will see word insert in bottom left corner of the screen.]

actually this vi editor is little different. ;]

now type the following code in that window [exactly, plz care about whitespaces also and case of letters]

Section "Device"
            Identifier "Intel Graphics"
            Driver "intel"
            Option "AccelMethod" "uxa"
            #Option "AccelMethod" "sna"
EndSection

now press <Esc> button to exit the insert mode. and then press ctrl+z to exit that file and save it.

now simply type "sudo reboot" to reboot your machine.
and select the Kali in Grub if you have.

wait for a while and then smile ;]

owk guys, see you later with new post and problems along with their solutions , thanks for reading also apology for no images in this post.
Happy Hacking with Kali.

Cuer - Note, Reminder & Alarm

A life savior app which I made for myself is now available on play store. Simple, light and smooth note taking app with Alarm and reminder with date and time both.

Set 3 types of Notes.
1. Simple Notes (quickly save anything important)
2. Reminders (drops a notification on given time and date)
3. Alarms (sounds and alarm on given time and date)

Give it a go 2 MB app size only and No Ads.

Saturday 12 September 2015

Permanently mount or auto mount any NTFS partition on startup like windows in Linux mint, Ubuntu or Kali linux | Abhishek Singh

Hey guys !!!
        many of you have ever wondered that your NTFS partition should be automatically mounted when you start your beloved Linux OS like mint, Ubuntu or Kali..
     It is very easy although not popular guys..
Now, simple open the menu of your OS [mint, Ubuntu or Kali]
search for the application 'Disks' (Obviously without quotes ;] )
now open it and select your partition in the give chart or picture of Volumes..

confused ?? see the picture given below..


in my case i select the partition 2 which is NTFS and of 400 GB
now click the gear (more option)...

now turn off the 'automatic mount option'
and check the 'mount at startup' checkbox
as well as check 'show in user interface' checkbox
hit ok and it's done.. see the image



you are good to go restart the machine and see the result ;]
Happy coding ;]

[solved]Grub not opening on startup after formating a drive with windows 'or' Reparing of Grub without any software or internet [only with terminal] | Abhishek Singh

hey guys !!!
       many of you have face a problem that if you formate any drive with windows after installation of linux in any drive then grub doesn't start on startup..

This is because windows boot loader has replace the grub and also it doesn't like to show the list of any Linux OS installed on your machine.
so, now we gonna repair it.
you need any installation media of Linux mint, Ubuntu or Kali Linux.
so create a bootable usb or bring a CD from any of your friend (you can use your also, obviously ;])

now run that OS live (I'm using linux mint in my case!!!)

now open the terminal and type following command

sudo mount  /dev/sdXY /mnt

where X is usually a and Y is any integer..



for checking this just open menu and search for 'Disk' now find the Ext4 partition and see the address and value of X and Y. see the image below

see the 2nd line below the volumes figure.
so mine in "sda6" 
now type in the terminal

sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

then type 

sudo chroot /mnt

now,

grub-install /dev/sdX [X=a in my case]
grub-install --recheck /dev/sdX
update-grub

now done.. and we just have to unmount all those partition. so,
type

exit &&
sudo unmount /mnt/sys &&
sudo unmount /mnt/proc &&
sudo unmount /mnt/dev/pts &&
sudo unmount /mnt/dev &&
sudo unmount /mnt

now hit <enter>



all done. congratulations you have sucessfully repaired your grub.

see you all with new problems and their solutions.
Happy coding !!! ;]