Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, October 16, 2022

VMware player doesnt go in full screen mode (screen too small)

 If you have same problem as me that VMware player doesnt go in full screen mode (screen too small), then welcome to the club.

The fix:

Start the OS, Go to Player -> Manage -> Reinstall / Install Vmware Tools.

After this if you change your Vmware player window size, the OS in the VM will follow your resolution :-)

Happy coding ... 

Sunday, February 17, 2019

MySql & Ubuntu , installation & uninstall (removing)

Installing MySql on Ubuntu


sudo apt-get install mysql-client mysql-server
Uninstall & Removing MySql on Ubuntu

sudo apt-get remove -y mysql-*
sudo apt-get purge -y mysql-*

Sunday, September 28, 2014

Android on Ubuntu & tricks with Thinkpad laptop

Want to install android on a virtual machine on your Ubuntu? Well it's not that hard, have a look at this tutorial which simply tells you how to do it :-)

http://www.howtogeek.com/164570/how-to-install-android-in-virtualbox/

Important Update : Talking about it being easy, if you are having a Lenovo or Asus laptop remember to download the special iso file made for laptops with special hardware. android-x86-4.0-r1-thinkpad.iso in my case. Also after you are finished installing and you do not have the mouse in the Virtual box windows when u start the Android, read this article at PC world which helps you with that :-P

http://www.pcworld.com/article/2048220/hybrid-hijinks-how-to-install-android-on-your-pc.html

It basically only is saying the following which is useful for you : "Click Machine in VirtualBox’s toolbar, and select Disable Mouse Integration. Dialog boxes may appear; if so, click through them and continue. Disabling mouse integration allows you to manually control whether your mouse is controlling your primary OS or Android-x86. Pressing the right Ctrl button on your keyboard switches between the two operating systems. To swipe, click and hold the mouse button, and then move the mouse.
With that taken care of, you’re free to explore Android on your PC!"

Friday, January 10, 2014

So you forgot your Ubuntu password ???

If you're unlucky enough not to remember your Ubuntu password, re-installing the OS is not the only option you've got :-) Follow the instruction in following link in Ubuntu Recovery to reset your password :-)

http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less/

Monday, May 14, 2012

Linux switching between text mode & graphical mode, Gnome



  • Switching from X Window to one of the 6 consoles: Ctrl + Alt + F1, ..., Ctrl + Alt + F6.
  • Switching from a text console to another text console: Alt + F1, ..., Alt + F6.
  • Switching back to X Window: Alt + F7.

Thursday, March 10, 2011

Live USB of different Linux distributions in Windows, HOWTO

Universal USB Installer, is a very easy tool to do this. Manual :

  1. Insert a USB stick with at least 2GB of free space
  2. (Optional) You can download the iso file of the Linux distro that you want to have it on your USB / The download can be done through the Universal USB Installer later as well.
  3. Download the Universal USB Installer (Both Download link & user manual)
  4. Select the desired Linux distro from the dropdown list
  5. Click 'Browse' and open the downloaded ISO file/ OR simly download it by clicking on the "Download iso(optional)"
  6. Choose the USB drive and click 'Create'

    Monday, January 03, 2011

    HOWTO : Add a program to Applications Menu

    In Gnome(edgy) : System -> Preferences there is an item called "Main Menu". Here you to edit the application menu.

    HOWTO : Find out if you have a 64 bit Ubuntu or a 32 bit one ?

    Simply open a terminal and write the following command :

    uname -m
    x86_64 = 64 bit
    i686 = 32 bit

    Wednesday, December 29, 2010

    Start X from shell, Ubuntu

    First method, Use init script
    sudo /etc/init.d/gdm start
    sudo /etc/init.d/kdm start

    Second method, type startx command :
    startx

    If nothing works, type xinit to star X server without KDE:
    xinit

    Now start kde with following :
    startkde

    Tuesday, December 28, 2010

    add a user to Ubuntu from Shell/terminal

    useradd -m -s /bin/bash userName
    passwd userName
    cd /home
    ls -l
    mkdir scheiber ----> if it already does not exist
    chmod 0700 scheiber
    chown -R scheiber:scheiber scheiber

    Switch between X login and shell, Ubuntu

    Use the Ctrl-Alt-F1 shortcut keys to switch to the first console.

    To switch back to Desktop mode, use the Ctrl-Alt-F7 shortcut keys.

    Friday, October 22, 2010

    Upgrade to Ubuntu 10.10 from Desktop version of Ubuntu 10.04

    You want to upgradet to latest Ubuntu version(10.10) and you don't get it in your update menu(upgrade to Ubuntu 10.10), then you need to read the following :

    Network Upgrade for Ubuntu Desktops (Recommended) :

    1. System -> Administration menu->Software Sources application
    2. Open Updates from the Software Sources application window
    3. Change the Release Upgrade drop down to "Normal Releases" and close the application
    4. Press Alt-F2 and type update-manager
    5. Click the Check button to check for new updates.
    6. If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
    7. A message will appear informing you of the availability of the new release.Click Upgrade.Follow the on-screen instructions.

    Monday, October 18, 2010

    Show Line numbers in VIM

    To show line numbers in vim while editing document, run the following command :

    Press Esc and write

    :set number

    Sunday, June 13, 2010

    Trash bin on Ubuntu Desktop

    Run Terminal & write the following command to run the Configuration Editor :

    • $ sudo gconf-editor

    Then go to apps/nautilus/desktop and select 'trash_icon_visible'.

    Sunday, June 06, 2010

    Take a snapshot of an area on your Desktop

    This command ran in the terminal allows you to select an area on the desktop and have a snapshot of it ... very handy for making guides :-)

    • user@computer:~$ import test.png
    After this you will have a file called test.png created on your desktop which contains a snapshot of selected area.

    Changing your Desktop on your local linux computer to another directory


    The default location of your Desktop folder is ~/Desktop. You might want to have it pointing to another location(online home directory forexample). Run the terminal and run the follwoing command :
    gedit ~/.config/user-dirs.dirs
    Find : XDG_DESKTOP_DIR. Change it to the right path that you like: 

    XDG_DESKTOP_DIR="$HOME/Desktop" 
    change it to :
    XDG_DESKTOP_DIR="$HOME/Test/NewDesktop"


    After changing it to the right address, again run the follwoing command in the terminal :
    killall nautilus 
    OR simply log off and log in again.

    Change your desktop to your home directory

    to change your simple default desktop to your homedir :
    1. open gconf-editor
    2. browse to /apps/nautilus/preferences entry in it
    3. set desktop_is_home_dir flag

    Thursday, May 13, 2010

    Virtual drive in Ubuntu

    You do not need a virtual "drive". ISOs are supported directly by the Linux kernel itself. Google Search Result.