Ubuntu

De WikiMar
Dreceres ràpides: navegació, cerca

Contingut

Installing Ubuntu 11.04 Natty on a ASUS EEE PC 1101HA

Drivers

Taken from: https://wiki.ubuntu.com/HardwareSupport/Machines/Netbooks#Asus_Eee_1101HA

Most things work well, except for the video card, Intel GMA500 (Poulsbo) not being supported out-of-the-box. It requires installation of binary drivers that needs to be reconfigured after every kernel update. https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/ Other known Issues: * Wireless works out of the box, but connection is flaky. To fix, open a terminal and type 'sudo apt-get install linux-backports-modules-wireless-karmic-generic' * Some users have experienced problems with audio disappearing.


GMA500 Graphic card

Out of the box 11.04 Natty does not support the 1366x1024 resolution. No correct that:

sudo add-apt-repository ppa:gma500/emgd 
sudo apt-get update
sudo apt-get install xorg-emgd emgd-dkms emgd-xorg-conf
sudo emgd-xorg-conf

More info: https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo

Extras
sudo gedit /etc/default/grub

Add the Following: Should fix the Brightness Key

GRUB_CMDLINE_LINUX="acpi_osi=Linux acpi_backlight=vendor"

If you have 1GB Of Ram Add this:

GRUB_CMDLINE_LINUX="mem=896mb"

If you have 2GB of Ram Add this:

GRUB_CMDLINE_LINUX="mem=1920mb"

Now Run

sudo update-grub

More info: http://ubuntuforums.org/showthread.php?t=1229345

Change from Unity interface to Classic

Unity is displaying the top bar blurred, not displaying it correctly. The rest is ok. You have to change to the old Classic interface to avoid it.

More info: http://www.madtomatoe.com/how-to-switch-from-unity-to-the-classic-interface-in-ubuntu-11-4-natty-narwhal/


Super Hybrid Engine

To take advantage of the SHE, is needed to install Jupiter, a program that works on many laptops. You can extend the battery with it.

Add repository

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update

The main Jupiter package - works on any netbooks:

sudo apt-get install jupiter

Support for EeePC - required for SHE (Super Hybrid Engine)

sudo apt-get install jupiter-support-eee

More info: http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html http://www.webupd8.org/2010/06/jupiter-take-advantage-of-asus-super.html


Installing Ubuntu 11.10 Oneiric Ocelot on a ASUS EEE PC 1101HA

Booting Live CD image

The installation image of 11.10 does not boot by default. It seems to be a common problem with some graphic cards. Info: http://ubuntuforums.org/showthread.php?t=1860359

I personally repaired it by upgrading using the Ubuntu 11.10 Live-CD on a USB stick. The problem is that it didn't even boot the GUI due to my graphic card. So I had to follow the following procedure writen by prince_of_death:

  • Step 1: boot from the live usb and as soon as it displays the ubuntu color screen press 'F6'. this will take u to a boot option page where a pop up bar will appear due to F6 being presses. press 'Esc' key and go up to "try Ubuntu Without Installing" and edit the kernel string to add "poulsbo.asd=1 psb_gfx.asd=1" to the end then press enter.
  • Step 2: the live usb will then boot to the desktop GUI where you can start the installation.

(I selected here the second option "Upgrade from 11.10 to 11.10")

  • Step 3: after installation reboot your system and at the GRUB menu press 'e' to edit the first kernel. (this is needed or it wouldn't boot to the desktop GUI)
  • Step 4: modify the kernel string after 'quiet splash' and add "poulsbo.asd=1 psb_gfx.asd=1" then press 'F10' to boot with the modified kernel
  • Step 5: it will now boot to the desktop GUI were you will now install the EMGD driver with :-
sudo add-apt-repository ppa:gma500/emgd-1.8
sudo apt-get update
sudo apt-get install xorg-emgd emgd-dkms
sudo emgd-xorg-conf

(once the EMGD driver is installed you no longer need to edit the kernel at boot)

  • Step 6: this step might also be needed to prevent session from not being started.
sudo mv /etc/init/plymouth.conf /etc/init/plyouth.conf.disabled


More info:


Enable External Display / Monitor

By default the external monitor does not work. To enable duplicate of the LCD screen you can do it like this:

sudo gedit /usr/share/X11/xorg.conf.d/10-emgd.conf

Backup the original file. And enter the following content:

Section "Module"
    Load "dbe"
    Load "dri"
    Load "dri2"
    Load "record"
    Load "extmod"
    Load "glx"
EndSection

Section "Monitor"
    Identifier   "MainMonitor"
    ModelName    "LCD Panel 1366x768"
EndSection

Section "Screen"
    Identifier    "MainScreen"
    Device        "MainDevice"
    Monitor       "MainMonitor"
    SubSection "Display"
    Depth     24
    Modes    "1366x768"
    EndSubSection
EndSection

Section "Device"
    Identifier "MainDevice"
    Driver     "emgd"
#    Driver "vesa"
    VendorName "Intel(R) DEG"
    BoardName  "Embedded Graphics"
    BusID      "0:2:0"
    Screen      0
    VideoRam    32768
    Option     "PcfVersion"             "1792"
    Option     "ConfigId"               "1"
    Option     "ALL/1/name"             "lvds-display"
    Option     "ALL/1/General/PortOrder"        "24000"
    Option     "ALL/1/General/VideoRam"                 "32768"
    Option     "ALL/1/General/DisplayConfig"        "2"
    Option     "ALL/1/General/DisplayDetect"        "1"
    Option     "ALL/1/General/Accel"            "1"
    Option     "ALL/1/General/DRI"          "1"
    Option     "ALL/1/General/DRI2"         "1"
    Option     "ALL/1/General/XVideo"           "1"
    Option     "ALL/1/General/XVideoBlend"      "0"
    Option     "ALL/1/General/TearFB"           "0"
    Option     "ALL/1/General/ShadowFB"         "0"
    Option     "ALL/1/General/SWCursor"         "0"
    Option     "ALL/1/Port/4/General/name"      "LVDS"
#    Option     "ALL/1/Port/4/General/Rotation"     "0"
    Option     "ALL/1/Port/4/General/Edid"      "1"
#    Option     "ALL/1/Port/4/Attr/70"          "100"
#    Option     "ALL/1/Port/4/Attr/71"                   "20300"
    Option     "ALL/1/Port/4/Attr/72"           "0"
#    Option     "ALL/1/Port/4/FPInfo/BkltMethod"         "1"
#    Option     "ALL/1/Port/4/FPInfo/BkltEnable"         "1"
    Option      "ALL/1/Port/2/General/name"     "SVDO"
    Option  "ALL/1/Port/2/General/Edid"     "1"
    Option  "ALL/1/Port/2/General/EdidAvail"    "1"
    Option  "ALL/1/Port/2/General/EdidNotAvail"     "7"
EndSection

# Secondary (for dual-head only) display
Section "Monitor"
    Identifier   "VGAMonitor"
    ModelName    "VGA Output"
EndSection

Section "Screen"
    Identifier    "VGAScreen"
    Device        "VGADevice"
    Monitor       "VGAMonitor"
    SubSection    "Display"
    Depth   24
    Modes   "1600x900"
    EndSubSection
EndSection

Section "Device"
    Identifier "VGADevice"
    Driver     "emgd"
    VendorName "Intel(R) DEG"
    BoardName  "Embedded Graphics"
    BusID      "0:2:0"
    Screen     1
EndSection

Section "ServerLayout"
    Identifier     "Dual Head Layout"
    Screen  "MainScreen"
    Screen  "VGAScreen" RightOf "MainScreen"
EndSection

Section "DRI"
        Mode         0666
EndSection

Section "ServerFlags"
#   Option "AutoAddDevices" "false"
EndSection


More info: http://ubunteros.blogsome.com/2011/11/21/configurar-la-tarjeta-gma500-para-dos-monitores/

Disable Login Sound in Ubuntu Oneiric

gksudo gedit /usr/share/gnome/autostart/libcanberra-login-sound.desktop
  • change the “NoDisplay” from “true” to “false”
  • go to the Startup Application (from the power icon at the top right corner) and you should see the Gnome Login Sound entry. Uncheck it

More info: http://maketecheasier.com/disable-login-sound-in-ubuntu-oneiric-quick-tips/2011/09/15


Return to Ubuntu Classic Desktop in Ubuntu 11.10

sudo apt-get install gnome-session-fallback
gksudo gedit /etc/lightdm/lightdm.conf

Content:

[SeatDefaults]
autologin-user=<USERNAME>
autologin-user-timeout=0
user-session=ubuntu
greeter-session=unity-greeter

user-session:

'Ubuntu' (regular Unity) :    'ubuntu'
'Ubuntu 2D' (Unity 2D) :      'ubuntu-2d'
'GNOME' (Gnome Shell) :       'gnome-shell'
'GNOME Classic' :             'gnome-classic'
'GNOME Classic (No effects)': 'gnome-fallback'


More info:


Sound problem: Choppy, Glitches, skips or crackling sound

Glitches, skips or crackling

The PulseAudio sound server uses a timer-based audio scheduling instead of the traditional interrupt-driven approach. Timer-based scheduling may expose issues in some ALSA drivers. To turn timer-based scheduling off, replace the line:

load-module module-udev-detect 

in /etc/pulse/default.pa by:

load-module module-udev-detect tsched=0

Then restart the PulseAudio server.

Choppy sound

Choppy sound in pulsaudio can result from wrong settings for the sample rate in /etc/pulse/daemon.conf. Try changing the line

; default-sample-rate = 44100

to

default-sample-rate = 48000

and restart the PulseAudio server.

If you experience choppy sound in applications using openAL, you should also change the sample rate in /etc/openal/alsoft.conf:

frequency = 48000

Restart or:

Restart pulseaudio to apply the new settings

pulseaudio --kill
pulseaudio --start

More info:


RAM upgrade Problem: No overclocking or SHE when usuing 2GB RAM

The Problem

I bought a 2GB Hynix DDR2 800 memory on ebay for 20eur new. It is not the one accepted to support overclocking, and the overclocking option in the Bios disappears when this RAM is installed. It is not depend on the BIOS version. I have ASUS 1101HA ACPI BIOS Revision 0323 and overclocking works with 2GB memory using the solution below.

The problem is described here: http://liliputing.com/2009/09/how-to-install-2gb-of-ram-on-the-eee-pc-1101ha-without-crippling-overclock-utility.html That for overclocking it is required:

DDR2-667 SO-D UNIFOSA  2GB 200P
DDRII800 SO-D HYNIX 2GB 200P

But the official site states: http://support.asus.com/faq/detail.aspx?SLanguage=en&p=20&m=Eee%20PC%201101HA&s=1&hashedid=8AF6gYB7thq87JM8&os=17&no=220020D5-26B9-DF37-ECA7-35D4D257B800

That for overclocking it is required:

DDRII800 SO-D HYNIX 1GB 200P
DDRII800 SO-D A-DATA 1GB 200P
DDRII800 SO-D SAMSUNG 1GB 200
DDR2-667 SO-D UNIFOSA  2GB 200P

The Solution

Read the Post Backup from fluffypony below and follow the steps. Some notes:

SPDTool is free (http://www.techpowerup.com/spdtool/) I used Thaiphoon Burner because I could not find the image for SPD Tool. Now you have it below. The new demo version of Thaiphoon is limited to 15 days and you cannot write to RAM, so it is useless, not even to evaluate it. I could find a version by [searching something like Thaiphoon Burner v7 0 2 0307 Incl Keymaker CORE http://www.filestube.com/search.html?select=All&q=Thaiphoon%20Burner] but I had to change the computer time to June 2011 to make it work with the serial.

For the operation I used an ASUS Aspire 9420.

Here you can find all flashes for Hyundai_Electronics_HYMP125S64CP8-S6 and Hyundai_Electronics_HYMP125S64CP8-S5 on both formats HYMP125S64CP8-S6.spd SPDTool and HYMP125S64CP8-S6.pth Thaiphoon Burner:

http://www.multiupload.com/SNFL51DVTV
http://www.megaupload.com/?d=R66D79OY
http://www.uploadking.com/49AB8SDUGZ
http://www.uploadhere.com/RYXO4X908R
http://depositfiles.com/files/io7744j8i
http://www.zshare.net/download/973898333a607d6d/
http://www.filesonic.com/file/4221384605/Hyundai_Electronics_HYMP125S64CP8-S6_spd_thp.zip
http://www.fileserve.com/file/BvtwHTK/Hyundai_Electronics_HYMP125S64CP8-S6_spd_thp.zip
http://www.wupload.de/file/2615226657/Hyundai_Electronics_HYMP125S64CP8-S6_spd_thp.zip
http://hotfile.com/dl/137507866/04fb19a/Hyundai_Electronics_HYMP125S64CP8-S6_spd_thp.zip.html


Backup from the fluffypony post on forum.eeeuser.com

For those that missed vladimir.cdi's post in a different thread, there is a successful method for getting overclocking to work with any memory module - 1.5gb, 2gb, whatever. Please note disclaimer below.

DISCLAIMER: I am not responsible for you breaking your machine. This procedure is REASONABLY safe, much safer than flashing your BIOS. The reason for this is that it only writes to the SPD (Serial presence detect) section of your memory, which contains timing information and manufacturer information. Most modern memory manufacturers, like Kingston and Corsair, produce memory that is robust enough to handle different timings. If you stuff the timings up, you can always write the SPD back again.

What you need is:

* a copy of Thaiphoon Burner (http://jungle.at.tut.by/ - the free, 15-day trial version will do everything you need WITHIN the 15 days. I paid for my copy, $21 isn't a lot of money, even if I only use it once. If someone is feeling brave, they can try duplicate this using SPD Tool: http://www.techpowerup.com/spdtool/)

* your new memory module. For my test I used a Kingston KVR667D2S5/2G (2gb PC2-5300 CL5 200-pin)

* a spare computer that has the SMBUS open - check by going into the SPD section of CPU-z, if it is empty the SMBUS isn't open (I first tried my old Aspire One, which didn't like the memory. Then a Dell Inspiron, also didn't like it. Eventually a Vostro A8600 did the trick)

* a copy of vladimir.cdi's SPD dump for Thaiphoon from http://rapidshare.com/files/304609715/H … 6.thp.html

Process:

1. Put your new memory module into the spare computer (doesn't matter if it is the only memory module in the computer)

2. Start up Thaiphoon (requires no installation...you may have to disable your virus scanner, AVG had issues with it on the Inspiron, but not on the Vostro)

3. If you have more than one memory module, click Read and choose the first address. Make a note (by checking the Module Features) of which address contains your new memory module.

3a. RECOMMENDED OPTIONAL STEP: if you have paid for Thaiphoon (this doesn't work in the trial) you can read your SPD info into Thaiphoon, and save it as a THP. You can later use this to restore your SPD data if, for example, you broke the timings or it is unstable.

4. Click Open

5. Browse to the SPD dump you got from Rapidshare and click Ok

6. Click Write

7. Choose Full Rewrite

8. Change the SPD Device Address to the one noted in step 3 if you have more than one memory module

9. Tick the Refresh HEX Editor on completion box

10. Click Write

11. When writing is done, verify the information Module Features - it should have made your module look like the Hynix 2gb module we're all after

12. Shut down, put the RAM in your 1101HA, and start it up

13. Go into the BIOS to verify it has detected the 2048mb module and that your SHE is set to 30% or whatever

TADA!

A million thanks to vladimir.cdi for his idea, SPD dump, and information, all I really did was test it and put it into more coherent English:)

http://www.epic.za.net/Hyundai_Electronics_HYMP125S64CP8-S6.thp



Installing Ubuntu 12.04 Precise Pangolin on a ASUS EEE PC 1101HA

Boot CD

  • Select Run Ubuntu (and not Install Ubuntu).
  • Once started it is displayed incorrectly (only half screen)
  • Crl+Alt+F1 and type
sudo service lightdm restart
  • Crl+Alt+F7
  • Now you can install Ubuntu with the desktop icon
  • Once installed edit:
sudo vi /etc/default/grub

and change GRUB_CMDLINE_LINUX_DEFAULT to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet console=tty1 acpi_backlight=vendor acpi_osi=Linux acer_wmi.blacklist=yes mem=1920mb"

Exit and run:

sudo update-grub


More info:

https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo
http://doc.ubuntu-fr.org/asus_eee_pc_1101?redirect=1
http://blog.bodhizazen.net/linux/ubuntu-12-04-gma500-poulsbo-boot-options/

Other things to be done

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ubuntu-restricted-extras

More info: http://www.techdrivein.com/2011/10/15-things-i-did-after-installing-new.html


sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter
sudo apt-get install jupiter-support-eee
sudo apt-get install vlc
sudo apt-get install playonlinux
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get install guake
sudo apt-get install gkrellm
sudo  apt-get install libxine1-ffmpeg gxine mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec  vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg totem-mozilla icedax tagtool easytag id3tool lame  nautilus-script-audio-convert libmad0 libjpeg-progs
sudo apt-get install apache2 mysql-server php5 php5-mysql php5-cli


sudo apt-get install gnome-commander
sudo apt-get install libgnomevfs2-extra


Alt Tab not working becouse it's Unity 2D, not Unity 3D

check in your "System Settings" -> "Keyboard" panel, opening the "Shortcuts" tab, selecting the "Navigation" option in the left pane, and verify that the shortcut for "Switch Applications" is "Alt+Tab"

Intelligent hiding of the Applications Launcher

sudo apt-get install dconf-tools

Switching the variable of "hide mode" allow you to select if you want the launcher to be:

0: Always Visible
1: Autohide
-->2: Intellhide (dodge windows)

More info: http://askubuntu.com/questions/32667/how-do-i-configure-unity-2d


Reduce Unity 2D Program Launcher Icon size

Some aplications like compizconfig-settings-manager or dconf-editor can change the size only on Unity 3D. More info: http://askubuntu.com/questions/32667/how-do-i-configure-unity-2d and http://askubuntu.com/questions/82395/how-can-i-make-unity-2d-launcher-icons-smaller and script here: http://ubuntuforums.org/showthread.php?t=1954637

To change the size on Unity 2D do:

Create script.py:

#!/usr/bin/python

import shutil
import sys
import os

def getparent (content, line_nr):
    for i in range (line_nr - 1, -1, -1):
        if "{" in content[i].lstrip():
            return content[i].lstrip().split(" ")[0]

def change_line (content, key, value, parent):
    line_nr = 0
    for line in content:
        if line.lstrip().startswith(key + ":"):
            lparent = getparent(content, line_nr)
            if parent == lparent:
                content[line_nr] = key + ": " + value + "\n"
                return content
        line_nr = line_nr + 1

def load_file (filename):
    file = open (filename, "r")
    content = file.readlines()
    file.close()
    return content

def write_file (filename, content):
    shutil.copyfile (filename, filename + ".bak")
    file = open (filename, "w")
    for line in content:
        file.write (line)
    file.close()
    return

shell_qml = "/usr/share/unity-2d/shell/Shell.qml"
icontile_qml = "/usr/share/unity-2d/shell/common/IconTile.qml"
launcherlist_qml = "/usr/share/unity-2d/shell/launcher/LauncherList.qml"
launcheritem_qml = "/usr/share/unity-2d/shell/launcher/LauncherItem.qml"

if (len(sys.argv) > 1):
    icon_size = int(sys.argv[1])
else:
    sys.exit("Please enter your desired icon size as the first argument.")

if not os.geteuid() == 0:
    sys.exit("Script must be run as root.")

content = load_file (shell_qml)
content = change_line (content, "width", str (icon_size + 16), "LauncherLoader")
write_file (shell_qml, content)
content = load_file (icontile_qml)
content = change_line (content, "sourceSize.width", str (icon_size), "Image")
content = change_line (content, "sourceSize.height", str (icon_size), "Image")
write_file (icontile_qml, content)
content = load_file (launcherlist_qml)
content = change_line (content, "property int tileSize", str (icon_size + 6), "AutoScrollingListView")
content = change_line (content, "property int selectionOutlineSize", str (icon_size + 16), "AutoScrollingListView")
write_file (launcherlist_qml, content)

Run it:

sudo script.py 32

Fix suspend

If suspend does not work for you, there are various quirk options you can try. See the manpage for pm-suspend for a list of them all. One that has been reported to help is quirk-vbemode-restore, which saves and restores the current VESA mode. To test it, open a terminal and use the following commands

sudo pm-suspend --quirk-vbemode-restore

That should suspend your system. If you are able to resume, you'll want to configure UBuntu to use this option every time you suspend. To do this oOpen a terminal and use the following commands:

sudo vi /etc/pm/config.d/gma500 Add in the following code and save the file:

ADD_PARAMETERS='--quirk-vbemode-restore'

Source and more info: https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo#Fix_suspend

Add Hibernation

Before enabling hibernation, please try to test whether it works correctly by running pm-hibernate in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override. To do so, start editing

sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Fill it with this

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

Source and more info: http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04



Installing Ubuntu 12.10 Quantal Quetzal on a ASUS EEE PC 1101HA

How to Display Hidden Startup Applications

Starting with Ubuntu 12.04 the ‘Startup Applications' manager now only displays a sub-set of applications to control at startup with the remaining applications being hidden. To make the hidden applications visible in the manager, follow these steps:

sudo sed -i ‘s/NoDisplay=true/NoDisplay=false/g’ /etc/xdg/autostart/*.desktop

More info: http://www.ubuntugeek.com/how-to-display-hidden-startup-applications-in-ubuntu-12-04-and-above.html#more-13602


Other apps

sudo apt-get update ubuntu-restricted-extras vlc gkrellm ttf-mscorefonts-installer libxine1-ffmpeg gxine mencoder flac faac faad sox  ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec  vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg  totem-mozilla icedax tagtool easytag id3tool lame  nautilus-script-audio-convert libmad0 libjpeg-progs gnome-commander libgnomevfs2-extra  playonlinux
   sudo add-apt-repository ppa:webupd8team/jupiter
   sudo apt-get update
   sudo apt-get install jupiter jupiter-support-eee
   jupiter
sudo apt-get update & sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

System Monitoring Desktop Widget:

sudo apt-get install gkrellm

or

sudo apt-get install conky

info: http://lifehacker.com/5847676/the-best-system-monitor-for-linux




Installing Ubuntu 14.04 LTS (Trusty Tahr)

General (Acondicionando Ubuntu 14.04)

Source: http://www.muylinux.com/2014/04/23/acondicionando-ubuntu-14-04

Backup:

Una vez instalado el sistema se comprueba si hay actualizaciones pendientes y se ejecutan de ser el caso.

Sin cerrar el módulo de actualización entro en la configuración de repositorios.

Y simplemente por si lo necesito para algo, activo en la pestaña de “otro software” la casilla de “socios de Canonical”.

Lo que sí necesito para sacarle el mayor provecho a mi gráfica son los controladores privativos en funcionamiento, así que cambio de pestaña y en “controladores adicionales” activo la casilla correspondiente.

Todavía sin reiniciar el sistema, lanzo el Centro de software e instalo, de nuevo simplemente por si lo necesito, el famoso paquete de “extras restringidos de Ubuntu” (Flash Player, Unrar, Java, etc”).

Ahora sí, reinicio el sistema. A partir de aquí todo va a gusto del consumidor, y el mío pasa por sacar partido de alguna de las nuevas características que estrena Unity en Ubuntu 14.04, comenzando por reducir el tamaño del panel hasta los 32 píxeles en “configuración del sistema > apariencia > aspecto”.

Y en la siguiente pestaña, “comportamiento”, mostrar los menús de las ventanas en la barra de títulos (una adición genial, ésta).

Hecho lo anterior, recuerdo lo terrible de la búsqueda en el tablero de Unity y desactivo de una los resultados en línea desde el mismo módulo de configuración del sistema, en el apartado de “seguridad y privacidad > búsqueda”.

Aunque más tarde me apetece probar y decido volver a activarlos e ir desactivando a mano, una a una, las fuentes en línea que no me interesan (la mayoría, ya que estamos). Se hace entrando en el tablero -cambiamos definitivamente el término dash por tablero-, en la sección de aplicaciones, mostrando los filtros y entrando en “complementos del tablero”.

(...)

En la pestaña de “Launcher” de la misma sección, por cierto, se encuentra otra de las novedades ocultas de Ubuntu 14.04, el minimizar con un clic las aplicaciones del panel. “Minimize single window applications (unsupported)” es la opción a marcar.


Remove online content from dash unity search

There's now a GUI for doing this.

Open "System Settings" (type that in the Dash). Then go to "Security and Privacy". Then "Search". Then set the "include on-line search results" to off.

Disclaimer: It seems likely that this prevents the system from phoning home with everything typed in to Dash, but I'm not positive of this.

More info:http://askubuntu.com/questions/366238/how-do-i-remove-only-shopping-searches




How to create desktop shortcut in Ubuntu

  • Go to the folder /usr/share/applications and find the program you want.
  • Then right click on it and copy.
  • Now go to your home folder and open up the folder Desktop.
  • Right click and then select paste.

ex.

/usr/share/applications/google-chrome.desktop

Virtual Desktops and mouse moving

sudo apt-get install compizconfig-settings-manager
  • Open CompizSettings ( compizconfig-settings-manager )
  • General Options -> Desktop Size -> Horizontal 1 / Vertical 4
  • Desktop wall plugin -> Edge flipping -> Edge flip pointer
  • Expro plugin -> Expo Corner/edge -> TopRight

Ocell installation

  sudo apt-get install krusader
  sudo apt-get install p7zip arj rar rpm unace krename kdiff3 kdesudo meld kget
  sudo apt-get install vim ssh rsync yakuake unison wireshark samba fail2ban 
  sudo apt-get install compizconfig-settings-manager
  sudo add-apt-repository ppa:tuxpoldo/btsync
  sudo apt-get update
  sudo apt-get install btsync   

Other staff

  • Install hd-idle
  • Samba user:
sudo smbpasswd -a normal
/media/U3000_64k /home/public/media/U3000_64k none bind 0 0
/media/TREBALL1000_Backup /home/public/media/TREBALL1000_Backup none bind 0 0

add the mount to the /etc/rc.local

mount --bind /media/TREBALL1000_Backup /home/public/media/TREBALL1000_Backup
mount --bind /media/U3000_64k /home/public/media/U3000_64k

Install in addition:

apt-get install usbmount

Copied from old disc

 /etc/passwd shadow group
 /etc/ssh
 /root/
 /home/*
 crontab

Edited fstab and added the old disks, ex:

UUID=01CEBCDE3E29C710 /media/TREBALL1000 ntfs nobootwait,nosuid,noexec,nodev,noatime,nodiratime,big_writes,fmask=0003,dmask=0002,uid=1002,gid=1002,utf8 0 0
UUID=01CE1EA4C5809050 /media/T3000_64k_Backup_U ntfs nobootwait,nosuid,noexec,nodev,noatime,nodiratime,big_writes,fmask=0003,dmask=0002,uid=1002,gid=1002,utf8 0 0 
UUID=01CE4473E3D75170 /media/N2000_64k_Backup_M ntfs nobootwait,nosuid,noexec,nodev,noatime,nodiratime,big_writes,fmask=0007,dmask=0007,uid=1002,gid=1011,utf8 0 0

Mount a LVM external drive

If it was also created by the Ubuntu installer it will have the same group name as the main disc, so you need to rename it using the VG UID.

To find the UID:

  vgdisplay

Then rename it using:

  vgrename ridJF2-162l-XhUl-IQNv-YGNu-crNc-y5d8HH it-vg2

Finally mount it:

  mount /dev/it-vg2/root tmp/

Other commands:

  apt-get install lvm2
  vgscan
  pvscan


Autoconnect mobile broadband

More info: http://www.thefanclub.co.za/how-to/how-auto-connect-ubuntu-1204-gsm-mobile-broadband-connection-on-boot-startup-service

#!/bin/sh
# Mobile Broadband Startup Service script v0.1 alpha by The Fan Club - April 2012
# acts as startup service script for nmcli to fire up Mobile Broadband Connections
# NOTE: Use the name of the Mobile Connection in the Network Manager as the 'id' 
# USAGE: start|stop|status
#
### BEGIN INIT INFO 
# Provides: mobile-broadband-connect 
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 3 4 5 
# Default-Stop: 0 1 6 
# Short-Description: Autoconnect 3G GSM
### END INIT INFO

#http://www.thefanclub.co.za/how-to/how-auto-connect-ubuntu-1204-gsm-mobile-broadband-connection-on-boot-startup-service

NAME="mobile-broadband-connect-marti"
DESC="Autoconnect 3G/4G GSM USB modem at startup"

test -x $DAEMON || exit 0

case "$1" in
	start)
	   echo "Starting Mobile Broadband Connection."

	   while true; do
 	      # testing...
	      LC_ALL=C nmcli -t -f TYPE,STATE dev | grep -q "^gsm:disconnected$"
	      if [ $? -eq 0 ]; then
	         break
 	      else
	         # no GSM modem detected yet, sleeping for a second
	         sleep 1
 	      fi
	   done

	   # Once GSM modem detected, run the script
	   nmcli -t con up id vodafonedefault
	;;
	stop)
	   echo "Stopping Mobile Broadband Connection."
	   nmcli -t con down id vodafonedefault
	   nmcli -t nm wwan off 
	;;
	status)
	   # Check to see if the process is running with nmcli
       nmcli -p dev
	;;
	
	*)
	   echo "Mobile Broadband Startup Service"
	   echo $"Usage: $0 {start|stop|status}"
	   exit 1
esac
exit 0

And add it to cron:

1 */4 * * * /etc/init.d/mobile-broadband-connect start
0 8 * * * /etc/init.d/mobile-broadband-connect stop


Autoreconnect periodically wifi

#!/bin/bash

if ! [ "$(ping -c 1 google.com)" ]; then
#    nmcli nm wifi off
#    nmcli nm wifi on
    NOW=$(date +"%Y%m%d")    
    echo "$NOW reconnected" | tee -a /root/checkwifi.log 
fi

nmcli nm wifi off
sleep 10
nmcli nm wifi on

and add it to cron:

1 3 * * * /root/checkwifi


Power Manager Energie

apt-get install sispmctl

On:

sudo sispmctl -D 01:81:7f:02:00 -o 4

Off:

SIS-PM Control for Linux aka sispmctl is an application enabling the use of the GEMBIRD (m)SiS-PM device family under Linux. The SiS-PM is an itelligent advanced surge protector with unique features: 4 sockets are manageable from the PC via USB port (GEMBIRD LTD). The mSiS-PM is an itelligent advanced surge protector with unique features: 1 socket is manageable from the PC via USB port (GEMBIRD LTD).

More info: http://sispmctl.sourceforge.net/ http://manpages.ubuntu.com/manpages/saucy/man1/sispmctl.1.html

sudo sispmctl -D 01:81:7f:02:00 -f 4



Installing Ubuntu Utopic 14.10 on a ASUS EEE PC 1101HA

Unity 2D

apt-get install gnome-session-flashback

When login in select "Gnome Flashback (Metacity)"


Home encryption

If you select to encrypt the home folder during installation, then the log in does not work.

Install without encryption and then from another user run

ecryptfs-migrate-home --user marti

and follow the instructions


Juniper power management

Juniper does not have suport for Ubuntu 14.10, install the .deb manually:

https://launchpad.net/~jolicloud-team/+archive/ubuntu/ppa/+sourcepub/3142317/+listing-archive-extra

https://launchpad.net/~jolicloud-team/+archive/ubuntu/ppa/+files/jupiter-support-eee_0.0.13-1%7Ewebupd8%7E1_all.deb



Android Studio

To optimize virtualization speed

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils


To remove the new network device virbr0

virsh net-destroy default

Also follow the steps from here:

http://techtach.com/2014/05/boost-android-emulator-performanceon-linux-speeding-up-android-emulator-on-ubuntu/

Installing Ubuntu Vivid 15.04 on an ASUS ZENBOOK UX31E

https://help.ubuntu.com/community/AsusZenbook


Energy optimization

Info: https://wiki.ubuntu.com/Kernel/PowerManagementALPM

edit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rootfstype=ext4 pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1"

better (from https://help.ubuntu.com/community/AsusZenbook):

 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rootfstype=ext4 intel_pstate=enable pcie_aspm=force pcie_aspm.policy=default ath9k.ps_enable=1 i915.semaphores=1 i915.enable_rc6=7 i915.powersave=1 i915.lvds_downclock=1 drm.vblankoffdelay=1 i915.enable_fbc=1"
sudo update-grub


sudo apt-get install powerstat
echo SATA_ALPM_ENABLE=true | sudo tee /etc/pm/config.d/sata_alpm
sudo pm-powersave true


sudo vi /etc/fstab

add discard,noatime,nodiratime:

UUID=764e2f30-eb53-47b5-ae20-35fc3d5bd8333 /               ext4    discard,noatime,nodiratime,errors=remount-ro 0       1

Enable Hibernation

Swap memory needs to be the same or bigger than RAM.

sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
killall indicator-session-service


Un-hide startup applications

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop

Info: http://www.howtogeek.com/192104/how-to-showhide-all-hidden-startup-applications-in-ubuntu-14.10/

Programs

sudo apt-get install compizconfig-settings-manager; sudo add-apt-repository ppa:dhor/myway; sudo add-apt-repository ppa:tuxpoldo/btsync; sudo add-apt-repository ppa:boomaga; sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install  libqt4-dev libgs-dev libsnappy-dev libpoppler-dev libpoppler-cpp-dev  p7zip arj rar rpm unace krename kdiff3 kdesudo meld kget alacarte  oracle-java8-installer   wireshark aircrack-ng ettercap-graphical yersinia  bridge-utils kismet aircrack-ng  gkrellm qbittorrent unity-tweak-tool plasma-nm

Apps / Programs

Useful application indicators

More info: http://www.techdrivein.com/2011/05/10-useful-application-indicators-for.html

Weather

sudo apt-get install indicator-weather

System Load

sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload


Useful apps

Gnome Do

To quickly start programs or find bookmarks, files, etc.

Once installed you press WinKey + Space to search. You can personalize everything you want to search, even to Chrome, using plugins in preferences.

Guake

Press F12 and you get a drop down terminal, like the one in QUAKE.

http://www.ubunturoot.com/2010/08/drop-down-terminal-for-ubuntu.html

UPDATE: I find it better to use yakuake I configured it to open it with F2 Configuration is at (first start it):

nano $(kde4-config --localprefix)/share/config/yakuakerc

And the content:

Animation]
Frames=0
UseWMAssist=false

[Appearance]
TerminalHighlightOnManualActivation=true

[AutoOpen]
PollMouse=true

[Behavior]
FocusFollowsMouse=true

[Dialogs]
FirstRun=false

[Favorite Profiles]
Favorites=

[Shortcuts]
view-full-screen=F11

[Window]
DynamicTabTitles=true
Height=98
KeepOpen=false
Position=100
Screen=2
Width=98

Nautilus Terminal

Nautilus is the standard file manager in Unity. To add an integrated terminal:

sudo add-apt-repository ppa:flozz/flozz
sudo apt-get update && sudo apt-get install nautilus-terminal

More info: http://www.omgubuntu.co.uk/2010/09/nautilus-terminal-gui-meets-cli/


Ubuntu-Tweak

Ubuntu Tweak is a must have application for Ubuntu and LinuxMint, it is an application to config Ubuntu easier for everyone. It provides many useful desktop and system tweakoptions that the default desktop environment doesn't provide.

Using Ubuntu Tweak you can install all needed applications with a simple click, you can change the window buttons from Left to right...etc.

Install Ubuntu Tweak in Ubuntu via repository:

sudo add-apt-repository ppa:tualatrix/ppa 
sudo apt-get update
sudo apt-get install ubuntu-tweak


Install Medibuntu repositories

Install Medibuntu using command Line (Ubuntu 9.10 and above including 11.04 Natty):

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && 
sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Medibuntu's repository is deactivated by upgrading to a newer Ubuntu release, so you should run this command again after the release upgrade. Now you may also wish to add the following packages. The first (APP-INSTALL-DATA-MEDIBUNTU) will cause many apps from the Medibuntu repository to appear in Ubuntu Software Center (Ubuntu 9.10+) or Add/Remove Applications (versions prior to 9.10). The second will allow users to generate crash reports against Medibuntu packages and submit them to the Medibuntu bugtracker.

sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu

Taken from: http://www.unixmen.com/linux-tutorials/linux-distributions/linux-distributions4-ubuntu/1656-how-to-add-medibuntu-repository-in-ubuntu-via-terminal-and-gui


Sharing folders in Natty Narwhal

In order to share folders in Natty Narwhal with other Linux and windows machines in your network, you will need to install and configure samba share, for instructions how to configure samba in Ubuntu see this Post Installing samba can be from buntu software center or via terminal :

sudo apt-get install samba

Taken from: http://www.unixmen.com/linux-tutorials/linux-distributions/linux-distributions4-ubuntu/1540-top-things-to-do-after-installing-ubuntu-1104-natty-narwhal


Install Media Utilities

Unless you can use mplayer perfectly yourself, I recommend installing the vlc media player.

VLC is the best media player for Linux it play almost everything , he has many features that you can not find in any other media player , read this post to know more about vlc : Things you didn’t know VLC media player can do

You can install VLC from Ubuntu software center or via terminal by using the following command:

sudo apt-get install vlc
Codecs

Perhaps installing a few common codecs might give you better sensibility of your system.

sudo  apt-get install non-free-codecs libxine1-ffmpeg gxine mencoder  libmpcdec3 libquicktime1 flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec  vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg libmp4v2-0 totem-mozilla icedax tagtool easytag id3tool lame  nautilus-script-audio-convert libmad0 libjpeg-progs
Enable DVD support

To play encrypted DVDs, the libdvdcss2 package is essential. libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. If you already added Medibuntu repositories above, you can Install from software center or using the terminal by entering the following command:

sudo apt-get install libdvdcss2 && sudo /usr/share/doc/libdvdread4/./install-css.sh
Enabling Flash support on your browsers

For Ubuntu 32 bit & 64 bit : To be able to watch videos and see flash website in your browser (firefox/ Chrome..), you need to install flash plugin, go to ubuntu software center and search word "flash" and install it. Note: For 64 bit OS you can install flash square using the following commands :

sudo add-apt-repository ppa:sevenmachines/flash
sudo apt-get update
sudo apt-get install flashplugin64-installer

Taken from: http://www.unixmen.com/linux-tutorials/linux-distributions/linux-distributions4-ubuntu/1540-top-things-to-do-after-installing-ubuntu-1104-natty-narwhal


Installing the latest Java run time JRE

JRE stands for ‘Java Runtime Environment’. It’s an essential application that many applications ‘depend on’.

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts


Backup

Déjà Dup is a simple backup tool. It hides the complexity of doing backups the 'right way' (encrypted, off-site, and regular) and uses duplicity as the backend.

Deja Dup features :

  • Support for local or remote backup locations, including Amazon S3
  • Securely encrypts and compresses your data
  • Incrementally backs up, letting you restore from any particular backup
  • Schedules regular backups
  • Integrates well into your GNOME desktop
sudo apt-get install deja-dup


PlayOnLinux windows emulator

It's a backend for WINE app.

PlayOnLinux is a piece of sofware which allows you to easily install and use numerous games and softwares designed to run with Microsoft®'s Windows®. You can install many windows games like callofduty, doom ,.... Msfonts ,Itune ,Microsoft office 2007 (see our howto install MS office 2007 in Ubuntu using playonlinux )

You can install playonlinux via Ubuntu software center or via command:

sudo apt-get install playonlinux

More info: http://www.playonlinux.com/en/manual.html

Other apps

  • Filezilla
  • Rhythmbox (for music)
  • (XMBC)
  • Opera
  • Google Earth - to correct the fonts type:
sudo apt-get install ttf-mscorefonts-installer



FinePrint equivalent

PDF printer and merging documents like FinePrint (oldest system)

sudo apt-get install cups-pdf

Create script ajuntar.sh in folder /home/USER/PDF:

#/bin/bash

NOW=$(date +"%Y%m%d")

pdftk $(ls -tr *.pdf) cat output $NOW.pdf
#pdftk *.pdf cat output $NOW.pdf
#gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf


GUI graphical system (old system)

PDF-Shuffler

http://sourceforge.net/projects/pdfshuffler/?source=dlp
apt-get install pdfshuffler


Virtual printer driver similar to FinePrint (Best system)

Boomaga is a virtual printer for viewing a document before printing it out using the physical printer and help you get your documents prepared a bit before printing. http://www.boomaga.org/download/


sudo apt install boomaga
Old manual method of installing
sudo add-apt-repository ppa:boomaga
sudo apt-get update
sudo apt-get install boomaga

If add-apt-repository does not work add it manually at the end of /etc/apt/sources

deb http://ppa.launchpad.net/boomaga/ppa/ubuntu trusty main

and if the dependences are not found automatically:

sudo apt-get install libqt4-dev libgs-dev libsnappy-dev libpoppler-dev libpoppler-cpp-dev


If you get the following error when installing:

The following packages have unmet dependencies:
 boomaga : Depends: libpoppler46 (>= 0.26.5) but it is not installable
E: Unable to correct problems, you have held broken packages.

then download and install:

http://de.archive.ubuntu.com/ubuntu/pool/main/p/poppler/libpoppler46_0.26.5-0ubuntu1_amd64.deb

or from:

http://packages.ubuntu.com/utopic/amd64/libpoppler46/download

BTSync

sudo add-apt-repository ppa:tuxpoldo/btsync
sudo apt-get update
sudo apt-get install btsync-gui


Ubuntu 15.04

sudo vi /etc/apt/sources.list.d/tuxpoldo-ubuntu-btsync-vivid.list
deb http://ppa.launchpad.net/tuxpoldo/btsync/ubuntu utopic main
sudo apt-get update
sudo apt-get install btsync-gui

Krusader

UPDATE: better install doublecmd double commander which supports the Total Commander plugins.

UPDATE2: better install Gnome commander which allows Directory synchronization and sftp/samba connections.

UPDATE3: better install doublecmd as the directory synchronization can be done with meld or even better freefilesync


Using the Ubuntu Software center, install also almost all the addons when opening the packet krusader.

Copy the configuration file so that all settings are already configured:

~/.kde/share/config/krusaderrc

It is saved in google drive/Fitxers/configuracions/krusader https://docs.google.com/a/espai.de/file/d/0B8y4WsL2cVxCTHdZVUNFZkdmbkk/edit

Basically it is the same as going to settings:

Startup:
 disable command line, statusbar, function keys
 enable terminal emulator
Panel:
 general -> tab bar position top
         -> up/down cancels quick search
 selection mode -> total commander, right click pops context menu immediately


Other apps for Krusader

apt-get install p7zip lha arj rar rpm unace krename kdiff3 kdesudo meld kget


freefilesync

   sudo add-apt-repository ppa:freefilesync/ffs
   sudo apt-get update
   sudo apt-get install freefilesync

hd-idle

Get USB HDD to sleep in Ubuntu automatically

This will put your USB HDD to sleep after it being idle for 6 minutes, and you can change the time in the initscript to whatever you like.

Source: http://www.gizfun.com/content/get-usb-hdd-sleep-ubuntu-automatically

/etc/init.d/hd-idle

#!/bin/sh

### BEGIN INIT INFO
# Provides:          hd-idle
# Required-Start:    
# Required-Stop:     $local_fs
# Default-Start:     1 2 3 4 5
# Default-Stop:
# Short-Description: put USB HDD to sleep after a specified period of idle time
# Description: 
#              
### END INIT INFO

PROGRAM="/usr/bin/hd-idle"
PROGRAM_NAME=${PROGRAM##*/}
LOG_PATH="/var/log/hd-idle.log"
start () {
     
      if pgrep -f "$PROGRAM" 1>/dev/null;then
             echo "$PROGRAM_NAME is already running"
             exit 1
      else 
          "$PROGRAM" -a sda -i 600 -l $LOG_PATH
          echo "$PROGRAM_NAME is starting"
          sleep 1
     fi
}

stop () {

       if pgrep -f "$PROGRAM" 1>/dev/null;then
             killall "$PROGRAM" > /dev/null 2>&1

          if [ $? -eq 0 ];then
             echo "$PROGRAM_NAME is terminated"
          fi
       fi
}
  case $1 in 
 
       start) start;;
       stop) stop;;
       restart|reload) stop && start;;
 
  esac


Download hd-idle from http://sourceforge.net/projects/hd-idle/

make
sudo make install
sudo chmod 755 /etc/init.d/hd-idle
sudo -s /usr/local/sbin/hd-idle /usr/bin/hd-idle
sudo update-rc.d -f hd-idle defaults
service hd-idle start


Shortcuts editor

sudo apt-get install alacarte


Chrome use old printing dialog

The Chrome printing dialog prints white to the Boomega printer. Using alacarte edit the menu option for Chrome as this:

google-chrome --disable-print-preview %U


Oracle Java (JDK)

Recomended instead of OpenJDK by Android Studio

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

http://ubuntuhandbook.org/index.php/2014/02/install-oracle-java-6-7-or-8-ubuntu-14-04/




Security tools

apt-get install wireshark aircrack-ng ettercap-graphical yersinia
wget https://airoscript.googlecode.com/files/airoscript-ng_1.2-3_all.deb

o bé

svn co http://svn.aircrack-ng.org/branch/airoscript-ng/ airoscript-ng

Info: http://www.aircrack-ng.org/doku.php?id=airoscript-ng


To create Layer 2 bridges we need brctl:

sudo apt-get install bridge-utils


Other apps for Aircrack

  sudo dpkg --configure -a && sudo apt-get install -f
  sudo apt-get update
  sudo apt-get install gettext
  sudo apt-get install linux-headers-$(uname -r) build-essential make patch gettext autoconf subversion tcl8.5 openssl libssl-dev libnl1 libnl-dev libpcap0.8 libpcap0.8-dev cracklib-runtime python-scapy macchanger-gtk tshark
  mkdir wifi2013
  cd wifi2013/
  cd airoscript-ng/
  sudo make


apt-get install kismet aircrack-ng


tambe wifilite?


Configuration / tweaks / fixes

Add shortcut or run bash script from the Unity lauchbar

Create a suvirtualbox.desktop file in the home for example and drop it to the laucher.

[Desktop Entry]
Name=SU Virtualbox
Comment=
Exec=gksudo virtualbox
Icon=virtualbox
Terminal=false
Type=Application
StartupNotify=true


Add Teamviewer

Use the 32bit version, also for Ubuntu x64

To start it minimized

sudo apt-get install devilspie.

To configure it to minimize Teamviewer everytime it is executed:

mkdir ~/.devilspie
vi ~/.devilspie/teamviewer.ds
( if 
( begin 
( is ( application_name ) "Teamviewer" )
( is ( window_name ) "TeamViewer" )
) 
( begin 
( minimize )
( println "match" )
)
)

More info: http://askubuntu.com/questions/20989/how-do-i-tell-a-start-up-program-to-start-


Remove notification dialog that it is running

~/.config/teamviewer9/config/client.conf

Add the following line to the end of the file:

[int32] ShowTaskbarInfoOnMinimize = 0

...and restart TeamViewer.

more info: http://askubuntu.com/questions/419806/how-do-i-remove-teamviewers-notification-that-it-is-still-running-in-the-backgro






LVM volumes

To recover/access volumes formated in LVM, connect the disc using USB and do:

root@host:~# vgscan  
 Reading all physical volumes.  This may take a while...  
 Found volume group "foo" using metadata type lvm2  
root@host:~# vgchange -a y foo  
 2 logical volume(s) in volume group "foo" now active  
root@host:~# ls /dev/foo  
 root swap_1  
root@host:~# mount /dev/foo/root /mnt

More info: http://gerikson.com/blog/comp/Mounting-LVM-volumes-from-a-USB-disk.html


Encrypted Home Folder

Open in LiveCD and use the tool:

sudo ecryptfs-recover-private

To check the passphrase:

ecryptfs-unwrap-passphrase /home/.encryptfs/normal/.Private

More info: http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/


encfs

encfs


encfs /media/M2000_64k/.M2000_64k_ENC /media/M2000_64k_ENC


To automatically ask for password install gnome-encfs-manager:

sudo add-apt-repository ppa:gencfsm && sudo apt-get update && sudo apt-get -y install gnome-encfs-manager

VirtualBox

VirtualBox_-_Virtualització


Unattended-upgrades

Install the unattended-upgrades package if it isn't already installed (sudo apt-get install unattended-upgrades).

To enable it, do:

sudo dpkg-reconfigure -plow unattended-upgrades

(it's an interactive dialog) which will create /etc/apt/apt.conf.d/20auto-upgrades with the following contents:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

More info: https://help.ubuntu.com/community/AutomaticSecurityUpdates


xnview (alternative to ACDSee image viewer)

sudo add-apt-repository ppa:dhor/myway
sudo apt-get update
sudo apt-get install xnview


Bluetooth network

It can be used to connect to wireless and share the keyboard and mouse using Synergy to another computer

sudo apt-get install blueman

More info: http://askubuntu.com/questions/254794/how-can-i-share-my-internet-connection-via-bluetooth


Synergy (share mouse and keyboard)

Download x64 .deb from:

http://synergy-project.org/download/

Uninstall first any previous version


Share internet connection to android devices

sudo apt-get install plasma-nm

then start:

kde-nm-connection-editor

or

kde5-nm-connection-editor


info: http://ubuntuhandbook.org/index.php/2014/06/share-internet-with-android-ubuntu-1404/


Change scroll bars to legacy

After installing unity-tweak-tool go to Scrolling


Android devepment

sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
adb version
fastboot help


Geary: simple gmail offline client

sudo add-apt-repository ppa:yorba/ppa
sudo apt-get update
sudo apt-get install geary

Exfat support for sdcards

sudo apt-get install exfat-fuse exfat-utils


List all packages that have been installed manually on the system

comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)


Then you can mark the packets that you no longer need as automatically installed using:

apt-mark auto PACKETNAME

and you can clean the automatically added not anymore needed with:

apt-get autoremove


More info: http://askubuntu.com/questions/2389/generating-list-of-manually-installed-packages-and-querying-individual-packages

List wich package installed a particular file

dpkg -S bin/open

This is needed if usrmerge complaints that two files exist one at /bin/.. and the other at /usr/..

more info: https://www.reddit.com/r/Ubuntu/comments/uc98gx/usrmerge_issue_fatal_error_both_binopen_and/

Plex

Plex

Autoupdate the system

#!/bin/bash

sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get autoremove

# delete old kernels to free up space in /boot
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")


Disable autoboot of avahi-daemon

avahi daemon implements Apple's Zeroconf architecture (also known as "Rendezvous" or "Bonjour").

It enabled by default and listening to ports like 50338 and 5353.


To disable it, since 16.04 is a systemd system, you need to do

sudo systemctl disable avahi-daemon.socket
sudo systemctl disable avahi-daemon.service

Also, the cups-browsed.service "Wants" avahi to start, so you'll either have to disable that, too, or comment out the line in /lib/systemd/system/cups-browsed.service:

Wants=avahi-daemon.service

Then you don't need to uninstall anything.

This won't take effect until reboot, but you can do

sudo systemctl stop avahi-daemon.socket
sudo systemctl stop avahi-daemon.service

If you want to stop it right away.

Info: https://askubuntu.com/questions/761292/how-to-disable-avahi-daemon-in-ubuntu-16-04-lts


Disable Screen Shield screen-shield

This is the screen with the time that you have to slide up with the mouse if you dont have any password setup, after the monitor was automatically off.


1. Disable Screen Lock

Gnome settings → Privacy → Screen Lock → Off

2. Install this extension

Download:

# Clone this repo into the correct folder:
git clone https://github.com/lgpasquale/gnome-shell-extension-disable-screenshield.git ~/.local/share/gnome-shell/extensions/[email protected]

Install from GNOME Shell Extensions.

3. Reload GnomeShell

Press ALT + F2 then enter r and press Enter.

4. Activate this extension

Tweak Tool → Extension → Disable Screen Lock → On

Info: https://github.com/lgpasquale/gnome-shell-extension-disable-screenshield

Info: https://extensions.gnome.org/extension/672/disable-screen-shield/


Disable automatic suspend on lid close

sudo vi /etc/systemd/logind.conf
  • HandleLidSwitch=poweroff, shutdown / power off when lid is closed.
  • HandleLidSwitch=hibernate, hibernate when lid is closed (need to test if hibernate works).
  • HandleLidSwitch=ignore, do nothing.
  • HandleLidSwitch=suspend, suspend laptop when lid is closed.
systemctl restart systemd-logind.service

More info: https://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/


Configure automatic security updates

sudo apt install unattended-upgrades

check status:

systemctl status unattended-upgrades --no-pager -l

More info: https://linux.how2shout.com/automatically-update-ubuntu-22-04-lts-using-unattended-upgrades/