Back with lubuntu 15.04

After being away for a while, totally on windows 8, I’ve setup my old laptop to be totally on lubuntu.

It is core2duo processor, 2G RAM and 320 GB HDD.

This laptop had windows 7 and ubuntu.

Now, it is the only lubuntu 15.04.

One thing, I’d like to share is how to change the default browser from firefox to chromium.

In the terminal:

sudo update-alternatives –config x-www-browser

then choose your favorite browser

Hope to write soon on something new on lubuntu

Posted in Configs, Platform | Tagged | Leave a comment

Install Linux Mint Debian On External HDD

Hardware

Dell XPS 15

Steps

1- Download Linux Mint iso

linuxmint-201403-cinnamon-dvd-64bit.iso

2- On Windows download Universal-USB-Installer

Universal-USB-Installer-1.9.5.2.exe

3- Prepare live usb or sdcard of Linux Mint:

a. Run Universal-USB-Installer

b. Choose your usb flash drive or sd card

c. Select Linux Mint

d. Browse to the path of the iso file

e. Install

4- Leave live usb created in step [3] attached.

5- Restart PC

6- When seeing Dell logo, press F12 to select Boot

7- Your live usb will be seen in the UEFI boot list, select it

8- Live Linux Mint will load.

9- Note that the touch pad will not be able to click with it unless press it as a button and not the normal tapping. The scroll is also lost. It is better to use an ordinary mouse first to change the setting of the touch pad to enable the click and the scroll.

10- Click on install Linux Mint icon on the desktop

11- Follow the steps and choose carefully the external hdd. You can loose your data if another hdd was selected. Be careful

12- Before going into the partitioning steps, linux partitioning app (gparted) may warn you about gpt partition not in the correct location in your windows hdds. I simply ignored those warnings. The fix may damage how windows start or work. Because windows using intel smart technology to raid both hdds SDD and sata. If you really know what you are doing, go ahead and fix it otherwise ignore the fix.

13- Partition the external hdd exaclty as follows:

a. EFI boot partition: It must be the first. Partition type: fat32. Size  511 MB (I’ve read it from an article, I am not sure how it is calculated. But it worked for me. You can try otherwise if you like). Mount to [/boot/efi]. manage the flags of this partition to be boot. format it vfat

b. System partition: Partition type: ext4. It will have the system files (after the first setup system files took around 4.5 GB. I made it 100 GB. I am planning to setup a lot of fat development apps). Mount it to [/]. Format it ext4.

c. Swap partition: some articles says that it should be double your RAM size. I did so. You can experiment with that.

d. Home partition: Partition type: ext4. It will contain all your personal data. This should be the largest partition. You can store musice videos , photos, projects, etc. Mount it to [/home]. Format it ext4.

14- When you asked for the location of the boot loaded after the paritioning phase select the partition of EFI boot [e.g. /dev/sdd1]. You cannot select the hdd [e.g. /dev/sdd], It will not boot. You must select the partition of EFI boot [e.g. /dev/sdd1].

15- Complete the setup to the end.

16- Reboot your PC.

17- When seeing Dell logo, press F2 to enter the BIOS  settings

18- From Boot menu disable the secure boot.

19- Save changes and reboot PC.

20- When seeing Dell logo, press F12 to select Boot

21- Your Linux Mint on ext hdd  will be seen in the UEFI boot list, select it

22- This is how it worked for me. Good luck.

23- If the boot option for Linux Mint disappeared

24- Enter Bios, create a new boot option

25- Select the usb partition with efi boot

26- Write the path to efi file: \EFI\linuxmint\grubx64.efi. if this did not work, find the path to efi file as follows.

27- From windows, run command prompt

28- diskpart

29- list disk

30- select disk 2: this is my usb external hdd

31- list partition

32- select partition 1

33- assign

34- run file explorer, you will see the efi boot partition with a new letter, click on it and browse the efi file. Save that path to the file. This is what to write in Bios setting new boot option

35- Hope this helps

Posted in Platform | Tagged , , , , | Leave a comment

Use Your Android Cellphone as a Mouse

Turn your android cellphone to a wireless mouse using ulimate control from negusoft.

You only need to setup Ulimate Mouse Lite app on your cellphone.

Then setup ucontrol receiver on your PC. It supports Linux, Mac and Windows.

After setup on linux, to use the bluetooth connection you need to setup a bluetooth library as follows:

sudo apt-get install libbluetooth-dev

Posted in Accessory Apps, Apps | Tagged , , , , , | Leave a comment

Install Shrew Soft VPN client on Ubuntu 13.04

The following post is based on the original post in stackoverflow site . The answer done by JapSlap and Kate Gregory.

I’ve just added some dependencies based on my installation experience and some configuration.

Step 1: download shrew soft package Download the latest linux schrew soft vpn package here:http://www.shrew.net/download/ike

At the time of writing (May 6th 2013) the file is ike-2.2.1-rc-1.tgz

Step 2: untar package Untar this into a directory and navigate to the folder created called ike

Step 3: try to prepare for install run this command:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES

Step 4: install dependencies the initial cmake command failed for me the first two times because I needed to install these dependencies:

  • sudo apt-get install libedit-dev

  • sudo apt-get install libqt4-core libqt4-dev libqt4-gui

  • sudo apt-get update && sudo apt-get install build-essential

  • sudo apt-get install g++

  • sudo apt-get install libcurl3-openssl-dev

  • sudo apt-get install flex

  • sudo apt-get install bison

  • sudo apt-get install checkinstall

Step 5: prepare for installation: Run this command again:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQTGUI=YES -DETCDIR=/etc -DNATT=YES

Step 6: install the application using this command

sudo checkinstall

sudo ldconfig

sudo cp /etc/iked.conf.sample /etc/iked.conf

Step 7: launch the shrew soft daemon

sudo iked

Step 8: launch the graphical interface

sudo qikea

Step 9: use the import feature or set up a new connection

You’re done!

Posted in Apps, Network Apps | Tagged , , , | 13 Comments

Secure Shell (ssh) to another computer with audio and video forwarding

Recently, I’ve succeeded in connecting to my desktop computer using my laptop using secure shell command (ssh). It was my first time to use ssh.

I’d like to share this experience with you.

I tried to play audio on Ubuntu 12.04 64bit and the source files were on Ubuntu 12.10 32bit.

Source computer: the computer with the audio files.

Client computer: the computer with the speakers attached on.

First I’ve installed the secure shell server on the source computer using the following command

sudo apt-get install openssh-server

Then I’ve installed paprefs on the source computer

sudo apt-get install paprefs

paprefs

I’ve configured my source computer as follows:

Network Access:

check Make discoverable PulseAudio network sound devices available locally

Network Server:

check Enable network access to local sound devices

check Allow other machines on the LAN to discover local sound devices

Simultaneous Output

check Add virtual output device for simultaneous output on all local sound cards

I’ve installed paprefs on the client computer

sudo apt-get install paprefs

I’ve checked on the port of PulseAudio

pax11publish

by default it is 4713

using the following shell command to connect to the source computer

ssh -C -R 24713:localhost:4713 user@SourceComputerIP -X

-C: compress the network info, speeds up the connection

-R: use port forwarding, we have used the PulseAudio port got in the previous step

-X: to use the client computer display for the source computer applications

After the shell command, on the source computer

export PULSE_SERVER=”tcp:localhost:24713″

to transfer the PulseAudio stream to the port of the shell forward

Now every thing is configured try the vlc to play any audio / video file.

As a newbie to ssh command, I am really enjoying it.

Posted in Configs, ssh | Tagged , , | Leave a comment

Remote Desktop Client

I’ve been using Remmina Remote Desktop Client for a while now. But recently it kept freezing on rdp remote connection with a windows machine. It was so frustrating, till I used rdesktop.

Please use the following command to install it (if it is not already installed)

sudo apt-get install rdesktop

You can specify the resolution you want or to make it run full screen.

rdesktop -f [the machine ip]

To exit the full screen press ctrl+alt+enter

To specify certain resolution or percentage of your current machine resolution use one of the following commands:

rdesktop -g 1024×768 [the machine ip]

or

rdesktop -g 90% [the machine ip]

the command line has many options,I am currently trying it out.

Posted in Apps, Network Apps | Tagged , , , , , , , , | 1 Comment

Add A New Resolution To An External Monitor

I had a problem when trying to connect my laptop “HP ProBook 5310m” to a projector using a VGA converter plugged in my DisplayPort. The best resolution I got was 1024×768. I know the projector can display a higher resolution.

Recently, I found the following steps in askubuntu site and I’ll try it out.

You must add the resolution with:

xrandr --newmode <ModeLine>

To know the ModeLine of your resolution, do this:

$ cvt 1650 900

You will get some like this:

# 1656x900 59.93 Hz (CVT) hsync: 55.98 kHz; pclk: 122.25 MHz
Modeline "1656x900_60.00"  122.25  1656 1752 1920 2184  900 903 913 934 -hsync +vsync

Then, copy the information after the word “Modeline” into the XRandR command:

$ xrandr --newmode "1656x900_60.00"  122.25  1656 1752 1920 2184  900 903 913 934 -hsync +vsync

After the mode is entered, it needs to be added to the output:

xrandr --addmode VGA1 1656x900_60.00

Now you have the new resolution 🙂

Posted in Configs, Display Configs | Tagged , | Leave a comment

My Office Apps

My Office Apps:

  1. LibreOffice: usually the libreoffice site contains more recent version than the one in Ubuntu Software Center.
  2. Tomboy Notes: note taking app
  3. Xmind: it is a nice cross platform mind mapping app. You can find it here.
Posted in Apps, Office Apps | Tagged , , , , , , | Leave a comment

My Network Apps

My network apps:

  1. Shrew Soft VPN Access Manager: can import cisco vpn files. The setup is very easy from Software Center in Ubuntu 12.04, but you have to install it manually in Ubuntu 12.10. You can use this article for manual setup.
  2. rdesktop: please read my post on Remote Desktop Client.
  3. FileZilla
  4. Desktop Sharing
  5. openssh-server
  6. traceroute
Posted in Apps, Network Apps | Tagged , , , , , , , , | Leave a comment

My Media Apps

My Media Apps are

  1. VLC: the popular cross platform media player
  2. TvTime: It is a simple tv tune app
  3. gmtp: it is a GUI for mtp service on Linux to connect to mtp devices (e.g. Nexus 4). You can use this article to connect to a mtp device from the terminal.
Posted in Apps, Media Apps | Tagged , , , , , , , | Leave a comment