Time to be in Action!

Today was an ok day. One thing I did today is to get back to blogging :p

Firstly, I installed google chrome on ubuntu through terminal:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

sudo apt-get update

sudo apt-get install google-chrome-stable

Apart from this I got to know about Grammarly

Currently working upon flatpak.

Apart from this got to know about downloading youtube videos from terminal

sudo apt-get install youtube-dl

sudo apt-get install python-pip

sudo pip install –upgrade youtube-dl

youtube-dl https://www.youtube.com/watch?v=hXh35CtnSyU

The best way to predict the future is to create it … 🙂

 

Advertisements

Ubuntu was Flickering

I always heard of that leaving something in between is just not acceptable. But realized it first time.

Yesterday, I run the following command on terminal:
sudo apt-get upgrade

But then I stopped the process in between (which is definately not good).
After that when I started my ubuntu OS it was flickring (shaking or dancing :p) and due to this system speed was also reducing.

To solve this problem I ran following commands:

sudo dpkg –configure -a

sudo apt-get update

sudo apt-get upgrade

sudo reboot

Problem Solved .. 🙂

Apart from above, today I just randomly put my hands again on Internet problem of Ubuntu. I just changed the signal antenna to 3 in driver’s config file. To my surprise, it worked. 😀

P.S: I tried IRC for help and found it good.

PHP-Shell

So as the featured image clearly indicates the topic of my blog, lets get started.

What basically one need to do to accomplish this work?
The answer is dedication 😀

Obviously yes but relating  it more to technical world, one need to have:

  • Scripts in PHP for accessing shell
  • WebServer
  • Mysql
  • PhpMyadmin

It’s not a big deal just try to find the logic and working of every PHP file and you are done.

You can get the code of PHP-shell over here

Read various files in it to understand it’s working properly.

P.S: I had tried most of the my work on Ubuntu.

Game of Shell & Browser

While surfing on net I got to know some of the interesting things. Starting with a technique in which you can operate web browser from your ubuntu terminal.

I never though of this but to my surprise it exists and I installed it.

sudo apt-get install w3m w3m-img

  • Now, to open a webpage simply type in a terminal window: w3m (url of site)
  • to open a new page: type Shift+U
  • to go back one page: Shift+B
  • open a new tab: Shift+T

OR one can go for this also:

sudo apt-get install links2

Then, to load a page:

links2 http://www.google.com

One more is there:

sudo apt-get install lynx-cur

lynx (url of site)

Then use up-down arrows to go to a particular place and then press enter.

Though above was not the part of my task. But I got to know something new so thought of kinda sharing it … 🙂

Grub Problem

Oops! I deleted one of my old ubuntu patition from windows and after that when I get back on my system. I was able to see a black screen only with a saying:

GRUB RESCUE-ERROR

Later on I got to know that the particular partition which I had deleted was having grub settings in it. So I did the following steps to recover the grub.

ls

It gives list in this way: (hd0,msdos1),(hd0,msdos2) and similarly  so on …

ls (hd0,msdos6)

Above will help in recognising partition of ubuntu.

set root=(hd0,msdos6)

set prefix=(hd0,msdos6)/boot/grub
insmod normal
normal

After this you will be able to see the grub menu.
Choose ubuntu then install & update the grub

sudo apt-get install grub2 OR sudo apt-get install grub
sudo update-grub

Problem Solved … 🙂

Brightness stuck in Ubuntu 14.04

I recently installed ubuntu 14.04 on my laptop. There I got to meet my old friend. His name is Error. :p

The problem was well said from the  title itself. It was simply stuck at a point. As I always work in less brightness mode so it was creating a problem somehow for me.

So I finally made my mind to make my old friend one of my wellwishers. 😉

Firstly,  run the command below in terminal to know what video/audio card is used for the backlight/brightness:

ls /sys/class/backlight/

Or you can simply check it in: System Settings -> Details

Now open the terminal and make a new file if it didn’t exist:

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf

Now, add the following in that file:

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Now reboot it and Problem solved.

P.S: Ting ting ti ting :p