Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

03 October 2018

How to restore GRUB loader after Windows 10 Update

If you just updated your Windows 10 in a multiboot configuration, and Grub no longer appeared, than just had to run in Windows Command Prompt as administrator, next command:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

and your Grub boot menu should appear in next reboot.

20 September 2018

Automatic Install nVidia drivers in Ubuntu

The first method is the easiest to perform and in most cases it is the recommended approach. First, detect the model of your nvidia graphic card and the recommended driver. To do so execute:
$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001180sv00001458sd0000353Cbc03sc00i00
vendor   : NVIDIA Corporation
model    : GK104 [GeForce GTX 680]
driver   : nvidia-304 - distro non-free
driver   : nvidia-340 - distro non-free
driver   : nvidia-384 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

== cpu-microcode.py ==
driver   : intel-microcode - distro free
If you agree with the recommendation feel free to use ubuntu-drivers command again to install all recommended drivers:
$ sudo ubuntu-drivers autoinstall
Once the installation is concluded, reboot your system and you are done.

19 September 2018

Start Android Studio in Ubuntu with root privileges

If you have to start Android Studio in Ubuntu with root privileges for regular updates, you should make these commands in terminal:

sudo ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/studio
sudo chmod 777 /usr/local/bin/studio

If you have problem with sudo in Ubuntu you can setup root password with command:

sudo passwd root

Now you can start android studio from anywhere by entering command : studio

01 December 2017

Android Emulator does not Launch in Ubuntu 17.10

I tried to run the Android Studio 3 emulator on fresh installed Ubuntu 17.10 to test an app I'm working on. And I got this error in Android Studio Event Log:

libGL error: unable to load driver: i965_dri.so
AVD Emulator: Process finished with exit code -1


Solution:
Type in Terminal:

$ cd ~/Android/Sdk/emulator/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6

That's it!



Now my Android Studio 3 emulator is working again!

HP 850 G3 Grub Multiboot Ubuntu and Windows 10 on UEFI

After I installed Microsoft Windows 10, and then alongside Ubuntu, with UEFI bootabled USB disks,
last setup (Ubuntu) created Grub configuration, which is listed in HP UEFI BIOS sequence, but after power on, system get Grub Bush command prompt, without listed operating systems, like Ubuntu, Windows e.t.c., unabled to boot.



Solution: In HP BIOS setup put in a 5 (or more) seconds delay in the "Boot Options" menu. Then, when you switch on your notebook, you'll have 5 (or more) seconds to choose "ubuntu" among the possible boot options (it should be the first one).

I think that those 5 seconds delay give HP enough time to recall all UEFI and other partitions and successfully recall Grub menu.

09 September 2013

Setup Screen Saver in Ubuntu

To Setup screen saver in Ubuntu type in Terminal:

sudo apt-get remove gnome-screensaver
sudo apt-get install xscreensaver xscreensaver-data-extra xscreensaver-gl-extra

To configure your screensaver

After installation, perform a search in the Dash for Screensaver. Launch the Screensaver utility and use it to configure XScreenSaver and select your screensaver settings.

03 September 2013

Install OpenERP in Ubuntu 13.04

To install OpenERP CMS in Ubuntu 13.04:

1. Add the following line to your /etc/apt/sources.list:
deb http://nightly.openerp.com/7.0/nightly/deb/ ./

2. Type in Terminal:
sudo apt-get update
sudo apt-get install openerp

3. Type in Terminal:
sudo -u postgres createuser -s openerp

Than you can see installed OpenERP CMS on adress:
http://localhost:8069

The PostgreSQL host configuration file was not found on your system

If you get message in ubuntu 13.04 webmin 1.650 for the PostgreSQL 9.1 module: host configuration file /etc/postgresql/pg_hba.conf was not found on your system...

Modify > Paths to host access config file, in module configuration on :
/etc/postgresql/9.1/main/postgresql.conf

21 August 2013

Ubuntu 13.04 > Install LAMP (Linux+Apache+MySQL+PHP)




To install LAMP platform in Ubuntu 13.04, for local CMS testing purposes, go to Terminal and type >

sudo su

apt-get install mysql-server mysql-client
apt-get install apache2
apt-get install php5 libapache2-mod-php5
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
apt-get install php5-xcache
apt-get install phpmyadmin

chown -R <username> /var/www
chmod -R a+rwX /var/www

15 July 2013

Ubuntu 13.04 : Manual installation of Libre Office 4

Download latest Libre Office from :
http://www.libreoffice.org/download

To install LibreOffice 4 you will need to remove all previous versions.
Run:
sudo apt-get remove --purge libreoffice-core libreoffice-common
sudo apt-get autoremove --purge

Extract the files:

cd to the Downloads directory: cd Downloads

Extract the tar.gz:

For 64 bit:
tar -xvzf LibreOffice_4.0.3_Linux_x86-64_deb.tar.gz

For 32 bit:
tar -xvzf LibreOffice_4.0.3_Linux_x86_deb.tar.gz

Install the program:

cd to the programs folder:

For 64 bit:
cd LibreOffice_4.0.3.3_Linux_x86-64_deb/DEBS

For 32 bit:
cd LibreOffice_4.0.3.3_Linux_x86_deb/DEBS

Install part one (for both 32 and 64 bit):
sudo dpkg -i *.deb

Install the desktop integration (again for 32 and 64 bit):
cd desktop-integration
sudo dpkg -i *.deb

You're done!


Ubuntu 13.04 64bit : Unable to install ia32-libs

If you are unable to install ia32-libs package on your fresh installation of Ubuntu 13.04 64bit, for installation of Skype, Teamviewer or Adobe Reader, than you should do :

- Switch Update server to Main, in System Settings / Software & Updates
- Check on all Install updates from option on Update tab

than do in Terminal :

sudo dpkg --add-architecture i386

sudo apt-get update
sudo apt-get install ia32-libs

26 February 2013

How to install mobile phone over USB on Windows 7 VirtualBox


If you are trying to install the drivers for HTC mobile phone inside MS Windows 7 VirtualBox, try installing the VirtualBox Extension Pack and enable USB 2.0 in the settings after doing that.

15 February 2013

How to install Clementine music player in Ubuntu


In Terminal window type :

sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine

06 February 2013

Speed Up Ubuntu

1. sudo apt-get install preload

2. sudo apt-get autoclean

3. sudo gedit /etc/fstab
  • - At the end of the file, add these lines:
  • # Move /tmp to RAM
  • tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0
4. sudo gedit /etc/sysctl.conf
  • - At the end of the file, add these two lines:
  • #
  • # Decrease swap usage to a workable level
  • vm.swappiness=10
5. gksudo gedit /etc/init/network-manager.conf
  • Copy and paste the below code, below the existing ‘stop on stopping dbus’:
  • kill timeout 1
6. gksudo gedit /etc/init/modemmanager.conf
  • Then look for the existing ‘stop on stopped network-manage’ text line, and simply paste the below code just below it :
  • kill timeout 1
7. Comment out this line works too in /etc/init/modemmanager.conf :
  • #start on starting network-manager
  • stop on stopped network-manager
* If your Eclipse Android SDK Manager wont start after 3rd step in moving /tmp to RAM,
then execute :
  • sudo mount -o remount,exec /tmp
and in /etc/fstab comment line
  • # Move /tmp to RAM
  • # tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0

04 February 2013

How to configure Ubuntu to allow IP Forwarding for torrent ?


I figured it out.

Edit /etc/default/ufw and set

DEFAULT_FORWARD_POLICY="ACCEPT"

and restart network...

Set root password in Ubuntu


Open the terminal and type


  • sudo passwd root


and write new password .

03 February 2013

How to setup CodeTyphon - for Cross compiling FPC and Lazarus - AIO

This is install procedure in Ubuntu 12.10 64bit environment :

1. Install last CodeTyphon zip packet from


2. Extract archive in folder , for example :

  • /home/ct 

3. Enter that folder from Terminal with root privileges and start

  • ./install.sh

4. Only for the first time of CodeTyphon installation in your Computer, select option

  • (3) "Install System Libraries" (about 10 min.)
    • for Ubuntu 12.10, you will need to manually add these packages
      • sudo apt-get install binutils-dev devel-essential

5. After System Libraries Installation, run again "Install.sh" and select option

  •  (0) "Install CodeTyphon Studio"

6. After copy operation, select option
  •  (8) "Remove and Build All" (about 15 min.)

6. After that, you have CodeTyphon Studio installed in your dash, start it and select :

  • menu Cross-Build and choose desired platform

7. Than you should start Lazarus and choose related fpc, for example :

  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcx64 (for Linux64)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcross386 (for Win32)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcrossx64 (for Win64)

8. Finally, don't forget to choose menu Project/Project Options/Code Generation/Target OS :

  • Linux
  • Win32
  • Win64

Write Once, Compile Anywhere

How to build FPC and Lazarus from SVN for cross-compiling

This procedure is implemented in Ubuntu 12.10 64bit.

1. You need to install subversion via apt-get in Terminal window :

  • sudo apt-get install subversion

2. Than you can download your first trunk of fpc and lazarus :

  • cd /home/svn
  • cd fpc
  • svn checkout http://svn.freepascal.org/svn/fpc/trunk
  • cd lazarus
  • svn checkout http://svn.freepascal.org/svn/lazarus/trunk

3. For later update from svn sources :

  • cd /home/svn
  • svn update fpc 
  • svn update lazarus

4. To build fpc and lazarus

  • make clean all


29 January 2013

How to download source code from SVN or GIT in Ubuntu

In terminal windows type :

sudo apt-get install subversion
sudo apt-get install git

than you can download trunk with sort of these commands :

svn checkout http://android-samples.googlecode.com/svn/trunk/ android-samples-read-only
git clone https://code.google.com/...

28 January 2013

How to fix unreadable tooltips in Ubuntu Eclipse

An easy workaround to fix this is to install gnome-color-chooser.
Open it, go to Specific -> Tooltips and put black foreground over pale yellow background.