Thursday, April 4, 2013

Ubuntu Tips

1) How install and set Mate-Desktop as remote desktop
  sudo apt install mate-environment
  sudo apt install xrdp
  [sudo apt install vino]
  echo mate-session> ~/.xsession

   Restart the system

The most usable and popular Ubuntu tools:
Dia: Drawing structured diagrams
LibreOffice4: For office purpose
Inkscape: Vector Drawing tool
OpenSSH: SSH server
Chromium-browser: Browsing tool
BeyondComparer/Meld: File or Folder comparison
VirtualBox: For virtually running Operating systems
CloneZilla: Creating clone image of hard disk or partition
Gparted: For hard disk partition
WPS: Replaces office
rdesktop: Remote desktop

Cleaning commands before creating image:

1) apt-get autoremove
2) apt-get autoclean
3) apt-get clean
4) history -c
5) clean browser histories, caches 

How to make USB bootable for windows OS? 
  • Format your USB as FAT32 in GParted
  • Open UNetbootin and get it as far as the stage where it brings up the USB partition to install to e.g. /dev/sdb1 - Don't install the ISO, though
  • Leaving UNetbootin open as is, reopen GParted
  • Format the USB in GParted as NTFS
  • If GParted doesn't automatically add the "boot" flag, add it yourself
  • Now, go back to UNetbootin, which you've left open in the meantime, and click OK
Doing so, UNetbootin will think you are using a FAT32 partition and will let you use NTFS format.
EDIT: at this point UNetbootin complained the USB device was unmounted. Keeping UNetbootin open I ran sudo mount /dev/sdb1 /mnt. Then I hit "OK" on the still-open UNetbootin. It wrote the USB image to the USB.

Format drive to NTFS, How?
Now to create a bootable Windows 7 USB Drive while using Ubuntu, then you need to make sure you have a Windows 7 .ISO file (you can create it from the DVD) and a 4GB USB flash drive (or larger).
Install Gparted and format the USB drive to NTFS. In Ubuntu, use the following command to install Gparted:1
sudo apt-get install gparted
To be able to format a drive to NTFS, you'll also need ntfs-3g - install it using the following command:1
sudo apt-get install ntfs-3g

Upgrading Ubuntu Kernel

Upgrading ubuntu kernel is easy; just needs a couple of steps:

sudo aptitude update
sudo aptitutde linux-image
sudo aptitude safe-upgrade
sudo init6

For more info

Environment Variables

To define and load environment variables permanently in the system, we need to define it in the /etc/environment file as supersuer(since other users dont have permission to write the file). Then save it, after you save it, the newly defined environment variables are not loaded. Normally, they are loaded after you reboot it.

BTW, if you are hurry enough and do not have time to reboot the system, you just use

source /etc/environment

Thats it :)

No comments:

Post a Comment