- Shutdown Ubuntu Guest Machine
- Open Virtualbox
- Highlight Ubuntu Guest Machine
- Click Settings
- Click Display
- Uncheck Enable 3D Acceleration
- Uncheck Enable 2D Video Acceleration
- Click OK
- Start Ubuntu Guest Machine
- Open Chromium
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Friday, September 30, 2016
How to fix Chromium Latest Version on Ubuntu as Guest At Virtualbox
Wednesday, September 28, 2016
How to install VirtualBox Guest Additions on Ubuntu 16.04
- With the Ubuntu 16.04 as Guest running, click Devices
- Click Insert Guest Additions CD image...
- Open terminal
- Type
sudo apt-get install linux-headers-generic sudo apt-get install build-essentiall dkms sudo apt-get install virtualbox-guest-dkms
- Type N, if the virtualbox-guest-dkms configuration asks you to review the differences
- Open the file explorer (Example: Caja)
- Click the VBOX CD-ROM: VBOXADDITIONS device
- Double click VBoxLinuxAdditions.run
- Click Run
Tuesday, September 27, 2016
How to install the Android Studio 32-bit libraries on Ubuntu 16.04
- Open terminal
- Type
sudo apt-get install lib32z1:i386 lib32ncurses5:i386 lib32bz2-1.0:i386 lib32stdc++6:i386
How to see which current version of Ubuntu is being used?
- Open terminal
- Type
lsb_release -a
Saturday, September 10, 2016
How to enable root login in Linux
- Open terminal
- Type
sudo passwd root
Tuesday, July 5, 2016
How to restart the network in Ubuntu
- Open terminal
- Type
service network-manager restart
Source: http://www.howopensource.com/2014/12/ubuntu-restart-network/
Tuesday, February 9, 2016
Where it is the crontab file in Ubuntu?
/var/spool/cron/crontabs/{user account}
Example
Where it is the crontab file of the luizcgjr account?
/var/spool/cron/crontabs/luizcgjr
How to print the first and last parts of a file in Linux
First part
Last part
Source: http://linux.die.net/man/1/head
http://linux.die.net/man/1/tail
- Open terminal
- Type
head -n {n} {file}
{n} is the number of lines to return
{file} name of the file
Last part
- Open terminal
- Type
tail -n {n} {file}
{n} is the number of lines to return
{file} name of the file
Example
Print the first 10 lines of the blogger.log file
head -n 10 blogger.log
Print the last 10 lines of the blogger.log file
tail -n 10 blogger.log
Source: http://linux.die.net/man/1/head
http://linux.die.net/man/1/tail
Friday, February 5, 2016
How to reinstall a package in Ubuntu
- Open terminal
- Type
sudo apt-get install --reinstall {package}
{package} is the package name that you want to reinstall
Example
I want to reinstall firefox
sudo apt-get install --reinstall firefox
Thursday, October 29, 2015
How to resize a Ubuntu partition
This How To covers the following scenario:
GParted is showing that I have the following partitions
Partition | File System | Size |
/dev/sda1 | ext4 | 92.09 GiB |
/dev/sda2 | extended | 7.90 GiB |
/dev/sda5 | linux-swap | 7.90 GiB |
unallocated | unallocated | 107.91 GiB |
My goal is to use the whole unallocated partition
- Add a device to the machine with the Ubuntu "burned" on it ( http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows )
- Reboot the machine
- Click Try Ubuntu
- Press ALT + T
- Type the following command:
sudo gparted
- Highlight the swap partition /dev/sda5
- In the menu, click Partition
- Click Swapoff
- Highlight the swap partition /dev/sda5
- In the menu, click Partition
- Click Delete
- Highlight the extended partition /dev/sda2
- In the menu, click Partition
- Click Delete
- Highlight the partition that you want to resize /dev/sda1
- In the menu, click Partition
- Click Resize/Move
- In Resize/Move /dev/sda1 window, expand the size to 100 GiB
- Click Resize/Move
- In the menu, click Partition
- Click New
- In Create new Partition window, change Create as to Extended Partition
- Click Add
- Highlight unallocated
- In the menu, click Partition
- Click New
- In Create new Partition window, change Create as to Logical Partition
- Change File System to linux-swap
- Click Add
- In the menu, click Edit
- Click Apply All Operations
- In Apply operations to device window, click Apply
- Click Close
Monday, September 28, 2015
How to fix the “The open file ulimit level is too low, please increase it otherwise changes will not be detected properly” error in Copy Linux?
sudo sysctl -w fs.inotify.max_user_watches=100000
Source: http://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user
Friday, September 18, 2015
Where it is the hosts file in Linux and Windows?
Windows
Linux
C:\Windows\System32\Drivers\etc\hosts
Linux
/etc/hosts
Wednesday, September 16, 2015
How to check how much RAM you have installed in Linux
- Open terminal
- Type
free -mt
This command will output the memory in megabytes
Wednesday, September 2, 2015
How to activate the tab auto-complete on a xrdp session in Xubuntu
- Open terminal
- Open the ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml using a text editor
- Find the node
<property name="<Super>Tab" type="string" value="switch_window_key"/>
- Replace to
<property name="<Super>Tab" type="string" value="empty"/>
- Save the file
- Restart the machine
How to find the largest files and folders in Linux
- Open terminal
- Type
du -a /{folder} | sort -n -r | head -n {count}
{folder} is the starting location where you want to find the largest files and folders
{count} number of results you want to see
Example
Find the top 10 files of the whole file system
du -a / | sort -n -r | head -n 10
How to delete all files with a specific extension in the current folder and subfolders
- Open terminal
- Type the command
find /{path}/ -type f -name "*.{extension}" -delete
{extension} file extension that you want to delete
Example:
Delete all MPG files from /home/luizcgjr and its subfolders
find /home/luizcgjr/ -type f -name "*.mpg" -delete
Source: http://unix.stackexchange.com/questions/42020/how-can-i-delete-all-files-with-a-particular-extension-in-a-particular-folder
How to enable Remote Desktop connection on Xubuntu
- Open terminal
- Type the command
sudo apt-get install xrdp
- Restart Xubuntu
- Once the machine is restarted, go to the machine where you want remote connect
- Open remote desktop client
- Connect to the machine where you installed the xrdp
- At the Login to xrdp window, select sesman-Xvnc for Module
- In username type the login that you use to logon to the machine locally
- In password type the login's password
- Click OK
Attention: this will create a new x Session and not mirror what are you current seeing in your remote machine. There are other solutions for that.
Subscribe to:
Posts (Atom)