How can I get Firefox to open torrent files with Transmission?

Method (I): Using Firefox's Preferences menu: (preferred)
A. From Firefox's global menu, select Edit -> Preferences (or press Alt + E followed by N) to open Firefox Preferences.
(Snapshot taken in Ubuntu 12.04)

B. Select the Applications menu and search for BitTorrent seed file or application/x-bittorrent or torrent. Change the Always ask or Use gedit (default) to transmission-gtk by selecting Use other... and click File System in the side bar, then browse to /usr/bin.

C. In /usr/bin search for transmission-gtk and double click to open.

D. That's it! Now the .torrent files will be opened with transmission.

Method (2): Editing the mimeTypes.rdf file:
Step 1:
Open the mimeTypes.rdf file with text editor of your choice:
gedit ~/.mozilla/firefox/ythemo16.default/mimeTypes.rdf &

(Save a backup of this file.) Search for the container:
<RDF:Seq RDF:about="urn:mimetypes:root">
 ...
 ...

</RDF:Seq>

and insert this:
<RDF:li RDF:resource="urn:mimetype:application/x-bittorrent"/>

so that, now the container looks something like this:
<RDF:Seq RDF:about="urn:mimetypes:root">
 ...
 ...

 <RDF:li RDF:resource="urn:mimetype:application/x-bittorrent"/>
</RDF:Seq>

(step 1 snapshot)

Step 2:
Now, within the container:
<RDF:RDF ... ...>
 ...
 ...

 ...
 ...

</RDF:RDF>

insert these:
<RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
               NC:alwaysAsk="false"
               NC:saveToDisk="false">
 <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/transmission-gtk"/>
 <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
</RDF:Description>
<RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
               NC:prettyName="transmission-gtk"
               NC:path="/usr/bin/transmission-gtk" />
<RDF:Description RDF:about="urn:handler:local:/usr/bin/transmission-gtk"
               NC:prettyName="transmission-gtk"
               NC:path="/usr/bin/transmission-gtk" />

<RDF:Description RDF:about="urn:mimetype:application/x-bittorrent"
               NC:fileExtensions="torrent"
               NC:description="BitTorrent seed file"
               NC:value="application/x-bittorrent"
               NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-bittorrent"/>
</RDF:Description>

so that the container will look something like this:
<RDF:RDF ... ...>
 ...
 ...

 ...
 ...

 <RDF:Description RDF:about="urn:mimetype:handler:application/x-bittorrent"
               NC:alwaysAsk="false"
               NC:saveToDisk="false">
  <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/transmission-gtk"/>
  <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/x-bittorrent"/>
 </RDF:Description>
 <RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-bittorrent"
               NC:prettyName="transmission-gtk"
               NC:path="/usr/bin/transmission-gtk" />
 <RDF:Description RDF:about="urn:handler:local:/usr/bin/transmission-gtk"
               NC:prettyName="transmission-gtk"
               NC:path="/usr/bin/transmission-gtk" />

 <RDF:Description RDF:about="urn:mimetype:application/x-bittorrent"
               NC:fileExtensions="torrent"
               NC:description="BitTorrent seed file"
               NC:value="application/x-bittorrent"
               NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/x-bittorrent"/>
 </RDF:Description>
</RDF:RDF>

(step 2 snapshot)

Step 3:
Save and close the file. Then restart firefox.


How do I record from Ardour with Audacity?

I wrote a Wiki page on recording system sound on your Ubuntu computer.  You can use this method to change what device Audacity records from.

If all you want to do is convert a file from WAV to MP3, just import it into Audacity and then re-export it, there's no need to play it with one piece of software and attempt to record it, etc.  You could also check out the program winff.  It's available in the repos (so sudo apt install winff) and gives you an easy to use GUI for converting files.


I needed to install the bluez-5.43 to get around bugs in the default bluez-5.37 when using bluetoothctl from scripts.

You could probably install the binary version from Zesty, but my experience is that you often run into other dependencies.

I just install the deb-src package from Zesty.  You probably need to install other dependencies too, here is what I had to do.

sudo  apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev  libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev

wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.43.orig.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.43-0ubuntu1.debian.tar.xz
wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez_5.43-0ubuntu1.dsc

tar xf bluez_5.43.orig.tar.xz
cd bluez-5.43
tar xf ../bluez_5.43-0ubuntu1.debian.tar.xz
debchange --local=~lorenzen 'Backport to Xenial'
debuild -b -j4
cd ..
sudo dpkg -i *.deb

For an explanation of what is happening here, please consult
https://askubuntu.com/a/771272/655086


17.10: Bluetooth crashes and can't be turned back on. How to restart?

Just one more minute of experimenting gave me the result:

sudo rfkill block bluetooth && sleep 1 && \
sudo rfkill unblock bluetooth


Can't get index.html to open after lamp install on Ubuntu 14 on Amazon aws server

Assuming that the lamp-server package installed correctly, everything should "Just work" and you should see the default Debian/Ubuntu apache page. On Ubuntu 14.04, the default DocumentRoot is set to /var/www/html. The file /etc/apache2/sites-available/000-default is the default virtualhost controlling that. (It's sym-linked to /etc/apache2/sites-enabled/default - any file in the sites-enabled directory is the actual virtualhost that's created).

(I'm not sure if the lamp-server package does any extra/odd configuration form installing all those packages manually - read here to see the packages it installs).

Are your firewalls open to accept traffic from port 80? (This is usually related to AWS's security settings when you start up a server).

Lastly, I'll mention that I've gotten into the habit of installing the usual packages instead of the "catch all" lamp-server package. Here's an example of that on 12.04 (the same commands will work for 14.04). If you want to see examples of various installs in Ubuntu 14.04, check out my Vaprobash project, which has a ton of bash scripts you can copy/paste from to run commands for installing LAMP/LEMP stacks. (Warning: It uses php5-fpm over apache's usual libapache2-php5 package. If you're unsure what that means, follow the first link above I have instead of the Vaprobash project).


starting service on systemd won't terminate

Didn't have to do this when using upstart, don't know why.

You don't have to do it with systemd, either.  You have a readiness protocol mismatch.  Your service unit file says that your program employs the Type=forking readiness protocol.  But your program itself actually did not.

The forking readiness protocol is hard to get right, and easy to get wrong.  Almost no program in the wild actually employs it.  Just make your service unit Type=simple if that's what it already was to start with.

Moreover, you don't need to muck around trying to "dæmonize" by doing things like closing open file descriptors.  Your program is already dæmonized.

Further reading

https://unix.stackexchange.com/a/200365/5132
Jonathan de Boyne Pollard (2015). You really don't need to daemonize. Really..  The systemd House of Horror.


I may have found a temp solution, not sure if this is right fix!
I removed all my nvidia driver using apt-get remove nvidia-*
However Ubuntu autoinstalled Intel driver for video, but I have Nvidia. It's weird the issue went off, not sure if I wanted to do ubuntu-drvers autoinstall
Will wait and see if the issue replicates and install appropriate video driver.


1TB SATA HDrive on Marvell Adapter disappears after 10.10 upgrade - Why?

Think it is Linux kernel problem.

Have a Asus P5Q Premium with SIL5723 and I guess Marvell drivers (61xx / 88se6121). Everything was working nice when running 10.04.
After installing 10.10 Ubuntu would not recognise disks on the SIL5723. I have part of a Raid 6 on these connectors. ICH10 disks no problems.

Running old rescueCD showed Raid was ok. Also recognised by BIOS and see disks when starting the PC. With Ubuntu Live CD 10.10 same problem. Raid however not destroyed as Raid not mounted.

Started 10.10 today with kernel 2.6.32 and raid mounted and working perfect. Guess 2.6.32 is long term stable release. However with this kernel I'm not able to run Gparted and there might be other problems as well. Guess 2.6.32 was available as upgraded and did not do a fresh install.

Looks this is a Linux kernel (2.6.35) problem. I'm not able to find Marvell drivers to install. Not keen on going back to 10.04 either.

Per Arne


You have to install "fontconfig" package:

sudo apt install fontconfig

Now you should be able to use fc-cache.


"Authentication plugin 'caching_sha2_password' cannot be loaded: /

Use this query:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YourPassword';

You don't get caching_sha2_password.
Then connect to MySQL.


After Nvidia 331 and Bumblebee install, OpenGL reverts to old version

I shouldn't have installed linux-headers-generic. I've edited the answer to my other question to reflect this.


RSA certificate configured for localhost.localdomain:443 does NOT include an ID which matches the server name

Try going to certificate folder and if you have .pem file,
This worked for me:

$ openssl x509 -in nagios.pem -noout -subject

You should get something like:

subject= /C=AU/ST=Australia/L=Adelaide/O=Australian web agency/CN=Your.Server.Common.Name/emailAddress=whateverItIs@gmail.com


Trying to install NVIDIA drivers, can't find version.h

Seems like it's missing kernel sources specifically. You can fix that by running

apt-get source linux-image-$(uname -r)

Hope this helps.


How do I prioritise physical memory for a particular process?

Hope this is helpful

https://superuser.com/questions/243357/how-to-prevent-a-specific-program-from-swapping

If you really don't want to swap, get more RAM, or just #swapoff -a (not recomended, can turn your system unusable if you already have problems) on terminal.

https://stackoverflow.com/questions/578137/can-i-tell-linux-not-to-swap-out-a-particular-processes-memory


The easiest way would be to manually overwrite the first 512 byte of /dev/sdc by executing sudo dd if=/dev/zero of=/dev/sdc bs=512 count=1 ; sudo sync. Please make sure, that /dev/sdc is the correct device before executing the dd command. This should leave you with an emtpy SD-Card which you should be able to format, etc.


Connect to kvm instance via VNC and view X session

One way to do it is to install lightdm and unity-2d:

apt-get install lightdm unity-2d
service lightdm start

The KVM vnc will then default to the login page, which is X-based.


Application to view and print calendar events in a list (using .ics files)

The latest Thunderbird (31) in Ubuntu 12.04 LTS and Ubuntu 14.04 LTS does include a list print format but it's not exactly as you want it.

It includes all details of an event, including the description. You can find the option under Print > Layout > List.


Install ubuntu on Apple powermac G5 computers

The latest version of Ubuntu that will run on PowerPC architecture is 12.04. But, if you want something more modern, the latest version is Lubuntu 14.04, which uses the LXDE desktop environment, so it would probably be a better choice because of the old hardware.


you can add your command to your ~/.bashrc file
ex:
echo "export PATH=$PATH:~/.config/composer/vendor/drush/drush" >> ~/.bashrc

then reload the file
. ~/.bashrc


Ubuntu One not connecting to the cloud service

You probably will need to use the command line tools, 'u1sdtool' in this case. Start with the following.
For connecting..

u1sdtool -c

For checking that you are connected..

u1sdtool --status

Further command for understanding what is going on..

u1sdtool --waiting-content
u1sdtool --waiting-metadata
u1sdtool --current-transfers

If it still does not work check the logfiles under '~/.cache/ubuntuone/log'. Historically problems with individual files could  stop all syncing. From my experience  this is not so much an problem any more. After connecting (again) you might experience that the machine get quite busy for a while while the sync-daemon recalulate checksums for files to see that they have not changed.


There is currently (October 30th, 2013) no official Whatsapp client for Ubuntu One.

There were some non-official clients that were either web-based or simple to port but all that I knew have been discontinued. While the Whatsapp protocol looks easy to implement it changes too often, breaking non-official clients until the changes are reverse engineered.


upgrade form 14.04 to 16.04 is stuck, Help!

Well,
Since I got no answer, I aborted the stuck installation. Then tried to reboot the computer, to my surprise it started with alphanumeric ttys (6 of them) on 16.04.1.
I started to work on it, tried to burn a DVD, some library was missing for 'brasero'. I started to install following hints that I got from the system, and finally after some commands, that I list below, the system asked for reboot. Following the reboot I have a full functioning 16.04.1 (at least so it seems now).

The commands I typed following hints from the system:
$ sudo apt-get install brasero
$ sudo dpkg --configure -a

Then again, I tried

$ sudo apt-get install brasero
$ sudo apt-get -f install
$ sudo apt autoremove
$ sudo apt upgrade
$ sudo reboot

If more explanation is needed, I'll be glad to try and provide it.
Regards.


How to automatically edit a file (which requires hex editor) in ubuntu

This is the kind of thing you should be able to do with dd

DISCLAIMER: remember that dd is known affectionately as the disk destroyer: please make sure you have adequate backups of the original files before trying this.

For example, let's first create a minimal test file:

$ printf 'hello' > testfile
$ xxd testfile
00000000: 6865 6c6c 6f                             hello

That's just 5 bytes of course - in reality it will be your image file.

Now we want to write a few more bytes, 0x30, 0x83, 0x19, 0x89, 0x64, padded with null bytes 0x00 up to a block size of (say) 128 bytes, and append it to the file. This is just for illustration - you will actually use ibs=4096 in your case.

$ printf '\x30\x83\x19\x89\x64' | dd of=testfile ibs=128 conv=sync,notrunc oflag=append
0+1 records in
0+1 records out
128 bytes copied, 0.000500623 s, 256 kB/s

Let's check the result:

$ xxd testfile
00000000: 6865 6c6c 6f30 8319 8964 0000 0000 0000  hello0...d......
00000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 00                             .....

which is the 5 bytes of the original testfile, followed by the new byte sequence padded to the 128-byte block size, for a total of 133 bytes (hexadecimal offset 00000085).


How to solve graphics driver problem which changes a little the colors in any program just on the external monitor?

The difference between the images in the question is smaller than the difference between the same web page opened in Firefox and in Google Chrome, which was the main problem. I switched from Google Chrome to Firefox because in Firefox the main problem does not exist.


How can I take a screenshot from a window, with customizable margins

Script, using Shutter

I don't think it exists, but like anything, it can be made.

If you make the script below available under a key combination (explanation further below), a window will pop up, allowing you to set the margins of your screenshot on the left, right, top and bottom, separated by a space:

result:

or:

result:

etc.

I set the default to 30 px, but you can set any default value (see below).

How to use

The script uses Shutter and wmctrl. Assuming Shutter is already on your system (since you mentioned it), install wmctrl:

sudo apt-get install wmctrl

N.B. If you use Kubuntu, Zenity is not installed by default:

sudo apt-get install zenity

Copy the script below into an empty file. If you want you can change the "default' marge in the line of the script:

`arg =`

save it as custom_screenshot.py.
Add the script to a key shortcut combination: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/custom_screenshot.py

Note

The script uses wmctrl to determine the position of the window. On different window managers however, the output of the wmctrl -lG command shows small differences in the y-position of the window. These differences are eliminated by the value, set in the deviation= -line of the script. The currently set value (0) is appropriate for Unity and KDE.

The script is also tested, and works fine on Xfce and Gnome, but the value needs to be changed then, as explained in the head section of the script.

The script

#!/usr/bin/env python3
import subprocess
import time

"""
On different window managers, the window geometry as output of wmctrl differs slightly.
The "deviation" should compensate these differences. Most likely appropriate (tested) settings:
Unity: 0, Gnome: -36, Xfce (Xubuntu): -26, KDE (Kubuntu): 0
"""
#---
deviation = 0
#---
get = lambda cmd: subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")
try:
    arg = get('zenity --entry --entry-text "30 30 30 30" --text "border left, right, top, bottom" --title "Screenshot margins"').strip().split()
except:
    pass
else:
    time.sleep(0.5)
    # frontmost window pos
    frontmost = [l.split()[4] for l in get("xprop -root").splitlines() if "ACTIVE_WINDOW(WINDOW)" in l][0].replace(",", "")
    frontmost = frontmost[:2]+"0"+frontmost[2:]
    f_data = [l.split() for l in get("wmctrl -lG").splitlines() if frontmost in l][0][2:6]
    # extent
    xt_data = get("xprop -id "+frontmost).split()
    xt_i = xt_data.index("_NET_FRAME_EXTENTS(CARDINAL)")
    xt = [int(n.replace(",", "")) for n in xt_data[xt_i+2:xt_i+6]]
    # set data for screenshot command
    x = str(int(f_data[0])-int(arg[0])-xt[0])
    y = str(int(f_data[1])-int(arg[2])-xt[2]+deviation)
    w = str(int(f_data[2])+int(arg[0])+int(arg[1])+xt[0]+xt[1])
    h = str(int(f_data[3])+int(arg[3])+int(arg[2])+xt[2]+xt[3])

    command = "shutter -s="+(",").join([x,y,w,h])+" -e"
    subprocess.call(["/bin/bash", "-c", command])


How to get access to Search Results tab in Privacy Settings?

https://fixubuntu.com/
but note, The privacy problems started with 12.10, so earlier versions should do nothing.


Execute:

sudo alsactl store

This should save alsamixer configurations to /etc/asound.state which gets loaded every startup.


How can I automatically copy the content of a usb (flash) drive to another directory?

The script below is an opposite- variant of this script; while that one acts on specified drives, this scripts acts on all except specified (usb) drives.

What it does

Whenever an external usb storage device is being connected, the script copies its content into a directory, defined by you (in the head section of the script: target_folder =). A sub directory is created with the name of the drive it was copied from.
If the target folder (earlier copy of the disk's content) exists, it overwrites  the earlier copy.
I also added an entry excluded =, in which you can (and probably should) list the names of your "normal", (permanent) usb devices ("normal" drives are excluded already automatically). it seems Ubuntu defines the type of device mainly by the file system; I tested formatting a flash drive as ext4, and it showed up as a "normal" drive instead of a flash drive.

The script

#!/usr/bin/env python3

import subprocess
import time
import shutil

#--
target_folder = "/path/to/target_folder"
excluded = ["media_extern"]
#--

def get_mountedlist():
    return [(item.split()[0].replace("├─", "").replace("└─", ""),
             item[item.find("/"):]) for item in subprocess.check_output(
            ["/bin/bash", "-c", "lsblk"]).decode("utf-8").split("\n") if "/" in item]

def identify(disk):
    command = "find /dev/disk -ls | grep /"+disk
    output = subprocess.check_output(["/bin/bash", "-c", command]).decode("utf-8")
    if "usb" in output:
        return True
    else:
        return False

done = []
while True:
    mounted = get_mountedlist()
    new_paths = [dev for dev in get_mountedlist() if not dev in done and not dev[1] == "/"]
    valid = [dev for dev in new_paths if (identify(dev[0]), dev[1].split("/")[-1]  in excluded) == (True, False)]
    for item in valid:
        target = target_folder+"/"+item[1].split("/")[-1]
        try:
            shutil.rmtree(target)
        except FileNotFoundError:
            pass
        shutil.copytree(item[1], target)
    done = mounted
    time.sleep(4)

How to use

Copy the script into an empty file. In the head section, set:

the path to where you want to store the copies of your inserted flash drives

target_folder = "/path/to/directory"

the names of your possibly permanently connected devices (use lsblk if you don't know)

excluded = ["media_extern", "<some_other_drive>"]

For example:

sdb      8:16   1   471M  0 disk
└─sdb1   8:17   1   471M  0 part /media/jacob/19C3-0A41
sdc      8:32   0 698,6G  0 disk
└─sdc1   8:33   0 698,6G  0 part /media/jacob/media_extern
sr0     11:0    1  1024M  0 rom

In the output of my lsblk, there are two devices: 19C3-0A41 and media_extern. The last one is my permanently connected disk I want to exclude:

excluded = ["media_extern"]

Save the script as copy_flash.py, run it by:

python3 /path/to/copy_flash.py

If it does what you want, add it to your startup applications: Dash > Startup Applications > Add


Problem Solved...

What happened was, I was listening to rythmbox when I tried to install Rosetta Stone the first time and it would not detect the sound device. I tried again later when I was not listening to rythmbox and it installed just fine...


How to point /usr/bin/python to python2.6?

Assuming you have another version [i.e. 2.7] and also have 2.6 installed, I would do this:

ln -sf /usr/bin/python2.6 /usr/bin/python

Then, python would be a symbolic link to python2.6

This is what you are asking, right? Or am I missing something here.


Backup during installation of ubuntu alongside windows

It is not a requirement that you make a backup of your windows system, and a recovery disk, and make sure that you have installation media on hand, but it is a very, very good idea.

There are often questions on this site from people who have installed Ubuntu, only to discover that something has happened to their windows partitions.  The ability to recover from this depends upon having a recent backup.

As to the speed of the backup process, this will depend upon the media, the computer and of course windows itself.  It's never fast but I believe that I can assure you that it will be much faster than recreating important data by hand.


Print a specific part of output of a command

Using grep:

% xset -q | grep -Eo '(Caps Lock|Num Lock):[[:blank:]]+[^[:blank:]]+'
Caps Lock:   off
Num Lock:    on

(Caps Lock|Num Lock) matches either Caps Lock or Num Lock
the above will be followed by : and then character class [[:blank:]] matches one or more space or tab
Them [^[:blank:]]+ will match one or more characters prior to next space or tab i.e. on or off.


How to customize the close/Min/Max options in Ubuntu 14.04?

You could use Gnome Tweak Tools. Find it here

https://apps.ubuntu.com/cat/applications/gnome-tweak-tool/

Note : You can only switch on/off visibility of maximize and minimize buttons.

Also, if you are interested, Elementary OS(Freya) has a custom tweak tool that allows you to specify location and visibility of max/min/close buttons from a single line in their tweak tool.

Update :

Use dconf-editor

Access dconf-editor by pressing Alt+F2 and type in
dconf-editor
In dconf-editor access org->gnome->desktop->wm->preferences
In preferences change button-layout option like so -

  [option - will go on left side] : [option - will go on right
  side],[option - will go on right side]

options : minimize | maximize | close
eg :

  minimize,maximize:close

buttons will appear as

  _ []                                                                                X


Setting up 802.3ad for true 2Gb/s link aggregation

It sounds like the switch is playing along if the failover works.

What is your setting for bond-mode in /etc/networking/interfaces?

I bet it is bond-mode active-backup, which only provides failover.

Try changing it to bond-mode balance-rr which does load balancing.


New install 12.04 64bit dual NIC's, both DHCP, no route until one card disabled

I've also noticed an issue with this, and it appears to be udev related. Basically, udev reassigns one of the NIC's logical names, for no apparent reason. On top of this, it appears to be messing up the MAC addresses when the dirver is actually loaded, after the logical name of the device has been changed. Time for a bug report me thinks.


Error: Prefix Not Set - unable to install ubuntu 12.04 64bit

Its all wrong with a cyclic folder " ubuntu " which is shortcut created in the ISO ... because of that i couldnt install ubuntu 12.04 LTS 64 bit ... I have downloaded ISO master from software centre and deleted that that ubuntu folder and saved that iso in other location and burned it to DVD ... thats it ... Its all worked fine .. .now i am using it without any problem ...

If you have the same problem .. then install iso master in ubuntu and edit the iso file ...


There are several ways to fix this issue.

If you have access to a shell (any open terminal), run:

sudo /D_bin/mv -T /D_bin /bin

sudo is in /usr/bin so there is no need to run it with absolute path.

The other thing you can do is, adding the /D_bin to your PATH environment variable, like this:

export PATH=$PATH:/D_bin

If you don't have access to any shell:

reboot the system
when grub appears press e to edit the grub
at the end of the line which starts with linux, add:

init=/D_bin/bash

press CTRL+x

Now you will be dropped into a bash shell, you should remount file system as read and writable.

/D_bin/mount -o remount,rw /

And move the D_bin directory to bin:

/D_bin/mv -T /D_bin /bin

Then reboot the system.

It should work, but if nothing worked for you, you still can boot the system with a live ubuntu disk/usb and fix the issue.


How to install latest version of nodejs and npm on Ubuntu 14.04 LTS?

You can simply download nodejs binaries for linux from https://nodejs.org/en/download/ (preferably LTS version 4.4.3). Unzip it and place it anywhere you want (say /opt folder). Now you can link to bin/node and bin/npm commands in your ~/.bashrc file using alias

alias node='/opt/node-v4.4.3/bin/node'
alias npm='/opt/node-v4.4.3/bin/npm'


UBUNTU's Network Connection Manger can't detect Huawei ETS2051 Modem device!

I found the solution for this, you can simply stop the Network Manger and everything will run great including Ubuntu Software Center!
stop it by run this commend in the terminal:

sudo stop network-manager

you can bring it back by restart your computer or simply run this:

sudo start network-manager

that's it how easy fix, but hard to get the right answer nowadays!


How do I get Cassandra to start when there is an error about "Connection refused"?

If you look at /var/log/cassandra/system.log you'll see:

Port already in use: 7199; nested exception is:java.net.BindException: Address already in use (Bind failed)

This is the default port in /etc/cassandra/cassandra-env.sh :

JMX_PORT="7199"

Changed it to another port: 7198.

This solution work for me.


htk installation problem on ubuntu 14.04

I had the same problem installing HTK on Ubuntu 14.04. I found the answer on Voxforge forum. The setup was designed for 32-bit computers, and to install you need to call a 32 bash. Type this on a terminal window:

linux32 bash

Then proceed with the installation:

./configure --prefix=/home/yourname/htk
make all
sudo make install

You may also need to install 'libx11-devel', before typing these:

sudo apt-get install libx11-devel

http://www.voxforge.org/home/dev/acousticmodels/linux/create/htkjulius/tutorial/download


Your files are still being uploaded to the server, the time it takes to complete the process depends on the total size of your files and your Internet speed. Here is what the emblems over the files mean Sync status


How to add link buttons with label in quickly glade

I also can't find an option in Glade 3.16 which is shipped with Ubuntu 14.04. They made some major GUI changes, so it's possible they forgot about this property. You could check if there's a bug report about it.

In the meantime set the label property in your Python code:

linkbutton.set_label("My Website")


13.10 Laptop goes to sleep instead of shutting down when lid is closed

You need to configure logind.conf - this would not disable the suspend,  it would just to tell it to ignore the lid switch, or just lock screen.

This would also override any of your user's power settings, but it will work in the login screeen or when it is shutting down, when it is outside the user session and unaffected by the user's power settings.

You can configure it via:

sudo nano /etc/systemd/logind.conf

and change the HandleLidSwitch=
line to:

HandleLidSwitch=ignore

Here is a qoute from a manual page  - note it can take other values like lock, poweroff etc.

  HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=,
  HandleLidSwitch=

  Controls whether logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or
  suspend. Can be one of "ignore", "poweroff", "reboot", "halt",
  "kexec", "suspend", "hibernate", "hybrid-sleep" and "lock". If
  "ignore", logind will never handle these keys. If "lock", all running
  sessions will be screen-locked; otherwise, the specified action will
  be taken in the respective event. Only input devices with the
  "power-switch" udev tag will be watched for key/lid switch events.
  HandlePowerKey= defaults to "poweroff". HandleSuspendKey= and
  HandleLidSwitch= defaults to "suspend". HandleHibernateKey= defaults to
  "hibernate".

The manual page is here


How to move wifi passwords from Ubuntu to Xubuntu?

This might not solve your problem, but passwords for the Network Manager (the default Xubuntu network application) are stored in /etc/NetworkManager/system-connections.

However, I do not think you can simply copy-paste your Network files from Ubuntu to this directory. But feel free to give it a try!


Emerald installed but doesn't show in software center or synaptic?

What you did is to compile and install from the source code. When you do that it won't appear on Synaptic or Software Center, so as the answer above says, you have to sudo make uninstall in order to uninstall it, from the same folder where the source code is (in a terminal).

There are ways to create a deb package from the source code so you can install it as any other deb package and uninstall it as well.


Shell Programming using sed to delete a line from txt file

All I did was to change the single quotes to double quotes and the function I need worked well. Thank You @steeldriver for pointing that out. For the exit status of sed pointed out by @waltinator will work on it too so that I can get the program as bug free as possible.

Once again thank you @steeldriver and @waltinator :)

function remove_movie
{
    echo "Please Key in Title of movie"
    read title
    echo "Please Key in the Year of movie"
    read year
    echo ""
    grep ".*$title.*$year" movieDB.txt >/dev/null 2>&1
    if [ "$?" = "0" ]
    then
        sed  -i "/$title/d" movieDB.txt
        echo $movieDB "  ' $title 'movie deleted successfully "
    else
        echo "The movie $title does not exist."
    fi
}


Getting ngx.balancer Lua module for nginx with apt

You need install two libraries "lua-resty-core" and "lua-resty-lrucache" from OpenResty.
Then init it in nginx, like:

http {
   lua_package_path "/usr/local/lib/lua/?.lua;;";

   init_by_lua_block {
     require "resty.core"
     collectgarbage("collect")  -- just to collect any garbage
   }
}

Or simple use OpenResty web platform.


Doing a fresh ubuntu install without having to reinstall packages

On the old installation run the following command:

sudo apt-get install dpkg-repack fakeroot
&& sudo mkdir ~/dpkg-repack; cd ~/dpkg-repack && sudo fakeroot -u dpkg-repack dpkg --get-selections | grep install | cut -f1

that will put all packages into a folder in your home folder called "dpkg-repack". Copy that to the home folder on your new installation and run

sudo dpkg -i *.deb

to install every one that is compatible, then just update the packages normally to resolve incompatibilities. Very few applications are actually recoded for the new releases, @syfluqs, so the two or three out of over 300 are just maybe a couple of drivers or one or two core applications that are installed anyway during normal installation, and are thus not downgraded to the old version


stop using the apt node repo's, they are waaaay out of date and will never catchup, worst is version incompatibilies on upgrades! Use NVM instead for installing node -

git clone https://github.com/nvm-sh/nvm
run install.sh
source ~/.profile to initialise the nvm vars set in home profile
nvm ls-remote to list node versions available
nvm install your-node-version
nvm use your-node-version


Will Ubuntu 16.04 run Unity 8 on the desktop?

No, it will not be using Unity 8, the default will remain Unity 7 & Compiz

This video indicates that the Unity 8 team is targetting 16.10:

https://youtu.be/Clf4Dvy-x4w?t=42m10s


Ubuntu Server Randomly Dropping to BusyBox on Boot

I had the same problem, and it needed a delay to give the raid a chance. Taken from here: http://ubuntuforums.org/showthread.php?t=2241430, I fixed it with:

# echo “sleep 60" > /etc/initramfs-tools/scripts/init-premount/delay_for_raid_array_to_build_before_mounting

# chmod a+x /etc/initramfs-tools/scripts/init-premount/delay_for_raid_array_to_build_before_mounting

# udate-initramfs -u


Manually installed files to display in dash

for adding manually installed program to the dash and launcher you have to write a desktop files for it (which end with .desktop ) .

the desktop file have this form in usual :

[Desktop Entry]
Name=application name
Exec=the command which you have to launch your application
Comment= a small description for this application
Icon= the directory for the icon which you want

this file is a very simple one , there is a lot of options that you can add to it .

then you have to put it into this directory :

/usr/share/applications/

if you want to add an icon for this program add your icon to this directory :

/usr/share/pixmaps

and then configure the .desktop file to user this icon .(in the Icon field )

it will appear in the dash now , or you may have to logout and login again.


I also have a late 2006 iMac 5,1 Core 2 Duo and spent many hours trying to get Ubuntu installed as a full replacement for Lion without success.  The DVDs just wouldn't boot.  Instead I got asked to select a boot device 1 or 2  (don't remember the exact question), but my keyboard wouldn't work.

Tried USBs. Tried various boot loaders.  Tried bizarre tricks involving holding down the 1 key till you see a black screen, then quickly hitting Enter when the shade of black changes.  There's lots of good intentioned but useless advice out there, as the original poster said.  I was about to give up when I stumbled on this solution:

https://mattgadient.com/2016/07/11/linux-dvd-images-and-how-to-for-32-bit-efi-macs-late-2006-models/

which explains how to create a DVD image that boots perfectly on late 2006 macs.  Be sure to thank him if it works for you too!


No, a device can only use one driver. Maybe you can install two drivers, but just one driver will be used for the device.Some drivers do an uninstall of other drivers while your are installing them or give you an error, that another driver is installed and causing problems.


That is only the source for the kernel. All of the source packages for all the packages included in Ubuntu, are however, hosted in the archive and mirrors. If you install the ubuntu-dev-tools package, you can then grab the source for any package using the pull-lp-source tool.


Cannot stop Kinsing malware from creating cronjob

Step1 Get PID and Kill Them
ps -aux | grep kinsing
ps -aux | grep kdevtmpfsi

Step2 Delete Files
rm -f /tmp/kdevtmfsi


Is there any way to use global menu in Xubuntu 16.04?

WebUpd8 (the site you linked) has an updated instructions to make it work in Xubuntu 16.04. Some manual configurations are required such as creating a shell script in /etc/profile.d/topmenu-gtk.sh.

Note that the functionality of TopMenu in Xubuntu16.04 is very limited compared to Ubuntu 14.04. It only works with GTK2 and 3 apps. Qt4 and Thunderbird support was removed. In addition, Firefox recently stopped working with TopMenu, and TopMenu have no support for Qt5, Chrome, or LibreOffice, so YMMV.

EDIT: Vala Panel AppMenu PPA is now available from WebUpd8. Like TopMenu, some manual configurations are required so make sure you read and follow the instructions carefully.


If I understand you correctly the problem is likely that you lack the VirtualBox GUI.

VirtualBox has a quite powerful command line. You can create your machine with:

VBoxManage createvm Name

You will need to use

VBoxManage modifyvm options

to configure the machine. You can create a virtual hd with:

VBoxManage createhd

You can read the manual online. It's very complete and there are even more options than using the GUI.

First, you can't use the .deb file, because it will bring Qt and all it's dependencies with it. You should use some of the alternative install options.

Finally, configure VBox virtual CD to use a Windows.iso or the server real CD and start the machine with:

VBoxHeadless -s MachieName

This will start the machine and listen for RDP connections on port 3389 (default). Just use rdesktop or a similar software from your desktop to connect to it and do all the windows install stuff.


php-pam : Depends: phpapi-20180731 but it is not installable

According to OpenMediaVault docs → Installation on Debian you can install OpenMediavault on top of Debian, but not on top of Ubuntu.
I have tried to install it even on Ubuntu 18.04 LTS which is based on Debian Buster (10) and it does not work too.
Also note that phpapi-20180731 is a virtual package from Debian Buster, it does not exist in any Ubuntu version. The php-pam package depends on it and has origin in OpenMediaVault repository.
So you have to follow above guide using original Debian 10 netinstall.


Installing Opera browser on Ubuntu 16.04

opera-stable:i386 pre-depends on apt-transport-https
  apt-transport-https is not installed.

As you see you just need to install apt-transport-https

apt-get install apt-transport-https
dpkg -i opera-stable_*.deb


A software for adjusting touch screen options

I found a blogpost concerning modifications of the sensitivity of a touchpad of a notebook under ubuntu 13.10, but I think that your problem is related to that one or can be solved in a similar way.

What is proposed in the blog is an edit of the touch driver configuration, which should be synaptic.

$ sudo vim /usr/share/X11/xorg.conf.d/50-synapticconf

In that file you will probably need to add an event for long-presses, if it is not there yet.


It depends on your hardware; if your mouse supports smooth scrolling wheels it works...

BUT: Here is a trick to get perfect smooth scrolling in Firefox (just like safari)

Obvious: make sure smooth scrolling is enabled in the Firefox settings (as well as HW acceleration)
Set your vm.swappiness=0.  Sounds strange I know but because the smoothness of the least amount of memory swapping, setting sudo sysctl vm.swappiness=0 will actually smooth out the Firefox scrolling with amazing effectiveness. To make it permanent type in the console: sudo gedit /etc/sysctl.conf  and add a line  vm.swappiness=1  to the bottom of the file and save. (restart and you are done)


How to use a Eaton 3S 700VA UPS with Ubuntu Server?

The usual package used to monitor a UPS is Network UPS Tools, which is packaged in Ubuntu as nut.  Your model is listed as supported through the usbhid-ups driver on their website.

Among other features, NUT includes a client/server architecture that lets one machine make the UPS status available over the network.  This is useful in cases where you have a single UPS powering multiple machines, as in your situation.


This issue has been bugging me too since I've bought a high DPI tablet PC. Luckily, if your screen is connected to Intel's GPU, there is a solution.

Xrandr's scaling is done by rendering X11 screen contents onto a Xrender picture, then scaling it and displaying on real screen. That said, Xrandr doesn't really decide how the output is scaled and displayed, everything depends on Xrender implementation of used DDX driver. These always have been quirky and hackish, resulting in synchronization and performance problems.

Intel's DDX provides a non-standard option, called TearFree, that forces synchronization between Xrender pixmaps and screen (and also introduces some performance issues, that's why it's not enabled by default). You can enable it by creating *.conf file in /etc/X11/xorg.conf.d/ containing:

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"

    Option "AccelMethod" "sna"
    Option "TearFree" "true"
EndSection


Update Tomcat 7.0.52 to 7.0.53 on 14.04 Server

The easiest way is to just use the standalone binary provided by Apache which you can download here: http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.53/bin/ (either apache-tomcat-7.0.53.zip or apache-tomcat-7.0.53.tar.gz).


How do I get thunderbird to give notifications for only my inbox

Starting with Oneiric, the Thunderbird version shipped with Ubuntu has an add-on bundled that handles integration into the message menu. That add-on called "Message menu and Unitiy Launcher integration" provides some additional options on the General tab in your Thunderbird settings (not sure about the wording, as I'm re-translating from German here ;) ). Near the options to play a sound file when a new mail arrives and such, you can decide whether the message notification should be lit for new mails and whether to do that for every folder or just for the inbox. I don't know a solution for choosing a custom set of folders, but maybe there's an add-on out there to do that.

TL;DR

Edit > Preferences > When new messages arrive > checkbox "Show in the messaging menu" > change radio from "For messages in all folders" to "Only for messages in my Inbox folder"


Error no boot device found or disk failed ubuntu 14.0

You can see whether Boot Repair is working by attempting to boot after it's done. You've done that, and it's not working in your case. That's not to say it's necessarily Boot Repair's fault, though; a lot of things that Boot Repair cannot control, or even detect, can affect the boot process. I have some specific comments on your setup (some of which aren't boot-related per se), based on your second Boot Repair output:

You have four NTFS partitions, but it appears you have no Windows installation. (One of these four NTFS partitions is a Windows recovery partition, though.) It's possible that the Boot Repair output is missing the evidence of a bootable Windows partition; but if not, either you've accidentally trashed your Windows installation or you deliberately deleted it. If the former, you should stop fiddling with Ubuntu and fix Windows before proceeding. If the latter, you should not be using NTFS on a Linux-only installation, for numerous reasons. Unless you've got data on those NTFS partitions that you want to preserve, you're best off deleting them and continuing with Linux-native filesystems.
You're using BIOS/CSM/legacy mode on a computer that almost certainly uses an EFI/UEFI. Using the CSM creates all sorts of problems, as detailed on this page of mine. In particular given your symptoms, you sometimes need to play games with partition table details when booting an EFI-based computer from a GPT disk in BIOS/CSM/legacy mode. There's a significant chance that this is why your computer won't boot with your current installation. You're probably better off disabling the CSM and doing an EFI-mode install.
It's possible that a leftover NVRAM entry from your Windows installation is blocking a BIOS-mode boot of your Ubuntu. You might be able to fix this by adjusting the boot priority settings in your firmware setup tool, but precise details of how to do this vary from one system to another, so I can't provide detailed instructions. Performing a fresh EFI-mode install of Ubuntu should override any leftover Windows NVRAM entries, which of course is another reason to do a fresh EFI-mode install of Ubuntu.
If you do have a Windows installation, it must necessarily be in EFI/UEFI mode. Mixing an EFI-mode Windows installation with a BIOS-mode Ubuntu installation is a recipe for frustration. Thus, if Boot Repair has missed a Windows installation, my general recommendation to install Ubuntu in EFI mode becomes a very strong recommendation.
Your disk is not big enough to need GPT. Given the presence of occasional quirks of BIOS-mode booting from GPT disks, you're probably better off switching from GPT to MBR if you want to stick with BIOS-mode booting. This can be done non-destructively with gdisk, as described here; however, there are caveats, and you'll need to re-install GRUB. Unless you need to preserve those NTFS partitions, you're probably better off wiping the disk clean and starting with a fresh MBR.

Overall, your best bet is to start clean:

If your NTFS partitions hold files you want to preserve, back them up to an external medium.
Wipe the hard disk with sudo sgdisk -Z /dev/sda. This command is destructive!
Disable the CSM in your firmware.
Boot the Ubuntu installer. It should boot in EFI/UEFI mode, as indicated by the presence of a directory called /sys/firmware/efi. (You can look for this directory by booting to "try before installing" mode and using a Terminal or file manager. If the directory is present, you can run the installer from the same boot.)
Install Ubuntu. Use default partitioning or the "Something Else" option, as you see fit. If the latter, I recommend the following partitions:

A ~550MiB EFI System Partition (ESP)
A partition a little bigger than your RAM for swap space
A 20-30MiB Linux root (/) partition
The rest of your disk as a /home partition
Note that there's seldom a need in Linux for multiple data partitions

After you install Ubuntu, the system should boot normally. There are multiple questions and answers here about installing Ubuntu in EFI mode, as well as information and tutorials elsewhere. For more information, check out:

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI
Adam Williamson's blog entry on how EFI/UEFI works
The Ubuntu wiki's page on installing under EFI/UEFI
My page on EFI/UEFI-mode Linux installations

I strongly recommend you read these pages before posting back with more problems; you'll be in a much better position to understand what's going on, and therefore to post a question that will produce a useful response, after you read the preceding pages. Ideally, you'll learn enough that you'll be able to solve your problem yourself.


It works although the Insert Disc menu item is still grey. To Play, click  Open Location and put there dvd:///dev/sr0 . Also be sure you might need to have next previously installed:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-get install libdvdcss2


Not able to Install Teamviewer on Ubuntu 14.04

First, download it:

wget http://www.teamviewer.com/download/teamviewer_linux.deb
Now you have 2 options. You can use gdebi (recommended) to solve the dependencies, or you can solve them yourself.

Gdebi method:

First, install gdebi:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gdebi
In the same directory you downloade the .deb file just run:

sudo gdebi teamviewer_linux.deb
It will list the dependencies and install it with a y.


GRUB boot loader(Ubuntu) not working after updating

boot live ubuntu from a stick and try running boot-repair
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

https://help.ubuntu.com/community/Boot-Repair

i have used this a few times after i messed up grub by installing windows.
try a repair and reboot after. ive had instances where the second time i ran boot-repair it fixed the problem


How do I move my LVM 250 GB root partition to a new 120GB hard disk?

As you suspect, this is extremely elegant to do using LVM.

Shrink the existing installation to fit the smaller disk.

Physically install the new harddisk, format and pvcreate it, use vgextend to add it to the same vg as your root partition

Use pvmove to transparently move all data away from the old partition

Use vgreduce to remove your external hd from your vg. Unplug the old disk /dev/sdOLD.

In the example below:

/dev/sdOLD stands for the old partition to replace
/dev/sdNEW stands for the new partition to take its place.
vgX        stands for the volume group

Example: Of course, you have to be 100% sure that your are using the right devices. Also, having complete and up-to-date backups, removed from the system, is essential.

pvcreate /dev/sdNEW
vgextend vgX /dev/sdNEW
pvmove /dev/sdOLD
vgreduce vgX /dev/sdOLD

Use update-grub and grub-install to make your new root disk bootable

Done.


Which packages are needed for a full kubuntu desktop?

Try installing with sudo apt-get install kubuntu-full, it should get you the complete netbook/desktop Plasma edition. You can then go through the list of available Kubuntu packages.


Can I keep BURG on a triple boot with Windows 7 and Windows 8?

I can't seem to find many details about whether windows 8 still uses bootmgr underneath all that metro, but based on what I can see (having never installed it) I believe it does. There is a surefire (and reverseable) way to check however.

First boot to a live CD or USB of your distro of choice. Then, once booted, determine which harddrive you have Windows 7 installed to.

#ls -la /dev/disk/by-label
#(gparted)&

The first command will list the labels of filesystems linux can recognize and which partition they are on in the form: Label -> /dev/sda1 where 'a' is the drive and '1' is the partition. Next run the following command to save the MBR (boot sector only, no partitions) to a file incase you want to undo these changes later. (Save this file to a thumbdrive maybe) [EDIT: make sure /dev/sda below matches the output of ls for the drive windows 8 is on, e.g., if Windows8 -> /dev/sdc3 then use /dev/sdc]

#dd if=/dev/sda of=/path/to/safe/storage/orig_mbr.bin bs=446 count=1

Now use gparted to make a partition for windows 8 and go through the install procedure for windows 8. Afterwards, boot the live CD or USB again and run:

#dd if=/dev/sda of=/path/to/safe/storage/win8_mbr.bin bs=446 count=1
#dd if=/path/to/safe/storage/orig_mbr.bin of=/dev/sda bs=446 count=1

This will back up the Windows 8 MBR and install your old one (thus restoring BURG/GRUB/LILO/etc). You can now boot whatever linux you have on that box and attempt to do your bootloader's update / OS probe procedure. If Windows 8 is detected (or multiple Windows OSes are detected) then Windows 8 uses the same boot procedure as Windows 7 (called bootmgr) and you can continue to use your current bootloader. If not, then you may try to manually chainload it like you would for ntdlr and windows XP.


How do I set up glowing bear for Ubuntu servers?

Glowing Bear is probably not something you want to set up in your server. The idea is usually to have weechat in a server that is working 24/7, so you don't miss anything from IRC chats. And use Glowing Bear from your desktop or phone.

So, to install weechat on your server, just do:

sudo apt install weechat

Then, you should configure weechat to use a certificate. This is copied from https://www.glowing-bear.org/:

  Setup: If you want to use an encrypted session you first have to set
  up the relay to use TLS. You basically have two options: a self-signed
  certificate is easier to set up, but requires manual security
  exceptions. Using a certificate that is trusted by your browser
  requires more setup, but offers greater convenience later on and does
  not require security exceptions. You can find a guide to set up
  WeeChat with a free trusted certificate from StartSSL here. Should you
  wish to use a self-signed certificate instead, execute the following
  commands in a shell on the same host and as the user running WeeChat:

  $ mkdir -p ~/.weechat/ssl $ cd ~/.weechat/ssl $ openssl req -nodes
  -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out relay.pem -sha256 -subj "/CN=localhost/"

  If WeeChat is already running, you can reload the certificate and
  private key and set up an encrypted relay on port 9001 with these
  WeeChat commands:

  /set relay.network.password yourpassword /relay sslcertkey /relay add
  ssl.weechat 9001


How to check whether a file is executable or not?

Bash test:

[ -r file ] tests if a file is readable.
[ -w file ] tests if a file is writeable.
[ -x file ] tests if a file is executable.

if [ -x file ]; then
  ./file
else
  echo "File is not executable"
fi

Try it with a simple example:

#!/bin/bash
touch testfile
test -x testfile && echo true || echo false
# --> false
chmod +x testfile
test -x testfile && echo true || echo false
# --> true
rm testfile


Installing Bionic Beaver freezes in the first purple screen

I had the same problem, and after more than 8 hours, I have realized that my TV is my "main screen".
After disconnecting the HDMI cable, everything started working perfectly!


virtual box error after reinstallation of 12.04 64bit

First go into the VM's settings and enable 3D acceleration from Display. Then boot the machine and install the virtualbox-guest-utils package. After rebooting, the graphics problem should be resolved.


Aliases don't handle arguments. Fortunately, functions do:

mycurl () {
    curl "$1" > "${1##*/}"
}

Where ${1##*/} is a form of Parameter Expansion which says "Remove everything to the last slash in $1".


Will it be possible to use GTK3.2's HTML5 extension in 12.04?

Well, apparently not:

$ GDK_BACKEND=broadway gnome-calculator

Gdk-ERROR **: Unsupported GDK backend: broadway
Trace/breakpoint trap (core dumped)

You could try to create a bugreport for the Ubuntu GTK3 package, asking to compile it with --enable-broadway-backend

GTK3 Ubuntu source package


Delete every self installed material and reset ubuntu to default without reinstallation

To create an Ubuntu 14.10 64-bit installation disc from the command line, follow these steps.

Download the install disc image.

wget http://releases.ubuntu.com/14.10/ubuntu-14.10-desktop-amd64.iso

Identify your DVD drive.

wodim --devices

Your drive is given after dev=/dev/ e.g. sr0

Burn the image to disk (replace NNN with your device, that you found in the previous step)

wodim -tao speed=1 -eject dev=/dev/NNN -v -data ubuntu-14.10-desktop-amd64.iso


Problems dual-booting Windows 10 and Ubuntu 16

Go to your BIOS settings and search for Boot options>Secure Boot and disable it. From Windows 8.1 Microsoft has introduced UEFI firmware to provide safety from rootkit malware and what is happening here is that Windows Boot Manager is bypassing GRUB bootloader. Boot into Windows and Go to Control Panel>Power Settings>Choose what power button does and disable fast startup. If you are still unable to boot into Ubuntu then boot into Windows and open Administrator's Command Prompt and run this command.

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

You should be able to see GRUB bootloader.


lubuntu - command to use in .desktop file to launch application reduced to panel

I'm posting a method that may work providing nothing else you've done conflicts and it applies if you have a default Lubuntu 13.04 with Openbox managing your windows. Also, please read How do I open specific applications on specific workspaces in Lubuntu 13.04 in which I've covered other essential aspects (and omitted here).

In brief, you need to create a subsection in the applications section of ~/.config/openbox/lubuntu-rc.xml for Thunderbird. The subsection would look like this:

<application name="..." class="...">
  <iconic>yes</iconic>
</application>

I'm purposely not being specific about ... because I don't have Thunderbird installed. But, you should be able to figure out what has to be inserted in place of both occurrences of ... after you read about xprop in the linked answer. If the solution works for you, could you please come back and post the exact contents you use?

Here is code that makes gedit and Firefox open "iconic" which is the term Openbox uses to describe apps in a minimized state:

<application name="gedit" class="Gedit">
  <iconic>yes</iconic>
</application>

<application name="Navigator" class="Firefox">
  <iconic>yes</iconic>
</application>

If you're interested in using lubuntu-rc.xml further, also look at Launching Windows Maximized and the section that follows.

Caveat: this procedure may not work for everything! I couldn't get Transmission to open iconified with this code:

<application type="*" name="transmission-gtk" class="Transmission-gtk">
  <iconic>yes</iconic>
</application>


Looks like you've got plenty of old kernels (headers/devel) installed which are filling the /boot partition.

Run dpkg -l | grep linux-image and check the list and identify the ones you don't want any more. Remove all that you don't want by running apt-get purge to remove those no longer needed kernels.

  NOTE: Normally it's a good idea to keep at least 2 kernels in case 1 breaks and doesn't boot.

As you have more space on /boot now you can apt-get install linux-image-3.5.0-32-generic --reinstall to install the latest kernel for 12.10. If it is successful, you can run dist-upgrade.


how to make iphone as a mouse via bluetooth

touchmoused

I found a project called touchmoused that simulates Logitech Touch Mouse app.

Description

touchmouchd will act as a server for Logitech's Touch Mouse app for IOS or
other clients using the same network protocol. The Logitech Touch Mouse app will
allow you to control your mouse and keyboard using your IOS device.

Implemented features

Mouse buttons
Mouse movement
Two-finger scroll
Alphanumeric key support (1..9, a..z, A..Z)
Modifier key support (Ctrl, Alt)
Some other keys

The software is in fact a daemon so save the script, make it executable and have a look at the help at the bottom on how to use it. It is a year old and looks like an coding example attempt so mileage may vary

Remotepad

Besides that there is an app called Remotepad in your store.

Description

RemotePad is an open source application that controls the mouse cursor of your desktop PC. This way, you can use your iPhone or iPod touch as a wireless touchpad!

Overview

Mouse control with a virtual touchpad.
Software keyboard for ascii text inputs.
Server support for major platforms, namely, Mac OS X, Windows, Linux and BSD.
Bonjour (Zeroconf) server detection under Mac OS X.
Customizable appearence and behaviour.

number of buttons to display
tap clicking and dragging
dragging with mouse button dragging
landscape mode
two finger tapping for secondary click
button location (triple tapping and continuously dragging to move)

Vertical and horizontal scrolling.
with two fingers
with center button dragging

Mouse (pseudo)control via accelerometer.
Send arrow keys. (double tapping and continuously dragging to enter arrow keys)

Demo mode.

you can show a tap view and a setup view without any servers (to enter a demo mode, tap your iPhone name and hold four seconds)
nothing happen :-)

Dependencies

Remotepad requires build-essential and libxtst-dev to run. You can install them with the command:

sudo apt install build-essential libxtst-dev

Download remotepad source code.

Installation

sudo apt-get install build-essential libxtst-dev
Download the remotepad and move it to /opt or where ever you want if not /opt.
Untar/Unzip the package and this will create a directory called RemotePad Server
cd ~/"RemotePad Server"/X11 and "make" it...

./configure
make
sudo make install

To start it run remotepad.

Source #1 and Source #2


Installing TP-Link TL-WDN4800 Adapter with Ath9k

Since lspci sees your card the following should work.

1) Get the Atheros module

sudo apt-get install firmware-atheros

2) modprobe ath9k

sudo modprobe -r ath9k
sudo modprobe ath9k

Check your Network manager and it should be working.


Installing software on an offline Ubuntu server

I once had a similar problem. I solved it using apt-mirror. With that it is possible to mirror a whole repository onto a external hard drive an then install from that hard drive on your offline machine.

Upsides

Once configured you can install packages as you were used to.
Espacially dependencies are resolved comfortably.
You can easily do updates by first updating the mirror files and then updating on your offline machine.

Downsides

You need a lot external hard drive space (about 35gb).
Mirror must be configured first. May not be suitable for beginners.
Initital creation of mirror takes some time.

If you want to give it a try this tutorial seems to be quite good. Can't find the one I used back then.


serious crashing problem with ubuntu 12.04

Have you tried rebooting into recovery mode?
Press shift key when the very first purple screen appear than use check or fix filesystem. Have you tried updating everything ? In the update manager ?
If non of that works try to reinstall ubuntu you could of have an bad install.


I'm sure that this slowdown is definitely not related directly to Ubuntu Operating system. The problem might be with Hard disk.


Ubuntu system totally freezes 12.04 12.10 13.04

Have you tested your RAM?  To test, just boot from the Ubuntu CD/DVD, and Hold down Shift to bring up the GRUB menu.  Choose the Test memory option, and let it run for one full pass.

Note: The image below is fro Ubuntu 12.04, and 13.04.


I fixed the issue.
I installed a new driver by following the instructions of the kernel wiki.
After rebooting everything works fine


Invalid redirect not defined on Apache2 vhost

The Redirect directive must be:

Redirect permanent / https://www.dummy.com/

Note the final slash /.

Modify the configuration file then restart Apache2 or just reload its configuration. And then flush your browser's cache or use new incognito window to do the test.

In addition you do not need RewriteEngine on in order to use the Redirect directive (it is not rewrite rule).

Here is a similar Q&A: Redirect people after SSL is set up


Cant see databases of mysql from command prompt in ubuntu 12.04

That's because you're trying to enter SQL commands from the Ubuntu command line.  You need to enter them from the MySQL command line:

$ mysql -h localhost -u user -p password

mysql> show databases;


LXD 3 or newer supports the creation of additional storage pools.
Therefore, create an additional storage pool and then move the big container to the new storage pool.

Here is an example.

Create an additional pool. Here we give 100GB of space.

lxc storage create secondpool zfs size=100GB

Support the container is called bigcontainer. We move it with lxc move, specifying that it should be placed inside the new storage pool. During the moving, we have to rename the container because we move within the same LXD server.

lxc move bigcontainer bigcontainer-moved --storage secondpool


browser google.com/search?q=query

Where browser is the desired web browser.


Open a terminal and do

on 32bit system

sudo chmod -x /usr/lib/indicator-appmenu/hud-service

on 64bit system

sudo chmod -x /usr/lib/x86_64-linux-gnu/hud/hud-service

which removes - the execute mode x (i.e., permission) from hud-service.

Done.

You may want to gently end (or violently kill) the currently running hud-service (or reboot, etc) for "changes to take effect" immediately...


How can I download and install refind bootloader (0.7.7.1)?

Download rEFInd Boot Manager for Ubuntu from its page here or the current version 0.7.8 from  Sourceforge.

Since it is .deb file installation is as easy as double clicking the .deb file which will open the installer to install it.

or from the terminal you can do

dpkg -i name_of_file_you_downloaded.deb

to install it.


Programmatically disable apt unattended upgrades

Several methods exists:

Method One

Turn off automatic upgrade by reconfiguring unattended-upgrades in the /etc/apt/apt.conf.d/50unattended-upgrades file:

Comment out individual lines in the Unattended-Upgrade::Allowed-Origins set of rule:-

Unattended-Upgrade::Allowed-Origins {
    "${distro_id}:${distro_codename}-security";
    //      "${distro_id}:${distro_codename}-updates";
    //      "${distro_id}:${distro_codename}-proposed";
    //      "${distro_id}:${distro_codename}-backports";
};

Selectively disable auto-update on a package level, by adding package names to "Unattened-Upgrade:Package-Blacklist" set of rules:

Unattended-Upgrade::Package-Blacklist {
    //      "vim";
    //      "libc6";
};

Method Two

Disable auto-update system-wide from the /etc/apt/apt.conf.d/10periodic file:

sudo nano /etc/apt/apt.conf.d/10periodic:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0"; <--- line of interest, should be "0"

Method Three:

Go to Ubuntu Software Center, Edit --> Software Sources, choose Never for Automatically check for update

Source (including images):

http://ask.xmodulo.com/disable-automatic-updates-ubuntu.html


Bash script to sleep at given CPU temperature ~ update for 16.04

I managed to make my own script.

#!/bin/bash
while true; do
   val=$(sensors | awk '/temp1/ {print $2}')
   max="+75.0"
   if [[ "$val" > "$max" ]]; then
       dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
   fi
   sleep 10
   clear
   sensors
done
exit 0

For 16.04 (also here):

#!/bin/bash
while true; do
   val=$(sensors | awk '/temp1/ {print $2}')
   max="+75.0"
   if [[ "$val" > "$max" ]]; then
       systemctl suspend
   fi
   sleep 10
   clear
   sensors
done
exit 0


how to install websocket++ dependencies?

librt, libpthread, and libz should be included by a base Ubuntu install. It is likely that libcrypto and libssl are as well. What will not be installed by default are the development headers. Packages build-essential and libssl-dev should cover most, if not all of it.

Also keep in mind that the boost versions installed by apt lag the boost.org releases by over a year. 12.10 includes boost from Nov 2011, 13.04 will include boost from Feb 2012.

Due to some more extensive recent changes to the boost libraries to align them with C++11, there may be some feature limitations or workarounds necessary if you are not supplying your own more recent build of boost.


I guess the problem is that the host (Ubuntu) claims the device as soon as you plug it in - at least thats what happens for me (VMWare Workstation 8). If i eject the device from ubuntu it's automatically claimed by the guest OS if you have configured a USB device.

At least a Windows7 guest recognizes it perfectly.


Ubuntu distribution for a broadcom bcm4313 wireless driver and an nvidia 630 graphics adapter

I'm pretty sure the latest Ubuntu distribution (12.10) provides excellent support for numerous graphic drivers, and the b43 driver for BCM4313.

You can install the b43 driver using APT:

sudo apt-get install firmware-b43-installer

and restart your PC.


Frequent freezes on 15.04 with kernel 3.19.0-29+

Kernel 3.19.0-30 is not a supported kernel for Ubuntu 15.04.

The current kernel in stable repository is 3.19.0-28.

You got 3.19.0-30 installed because you had enabled proposed repository in System Settings -> Software & Updates. It is a testing kernel.

Remove  testing kernels using Synaptic and disable proposed.

But before you remove it I suggest reporting the bug to launchpad. You can do it by running

ubuntu-bug linux

in terminal.

UPDATE: Now kernel 3.19.0-30 is in stable repositories. If it still has issues, report a bug.


Wifi problems with Compaq CQ60-419wm running Athelos ar5009

Install dependencies required to compile the driver:

sudo apt-get install --reinstall linux-headers-generic linux-headers-$(uname -r) build-essential dkms

Go here and download the newest driver to your computer then place the file on your desktop and right click and extract here.

Then compile the driver using the directions below.

cd ~/Desktop/backports-3.15-rc1-1
make defconfig-ath5k
make
sudo make install
sudo modprobe -rv ath5k
sudo modprobe -v ath5k

When you have an upgrade to the kernel you will need to do:

cd ~/Desktop/backports-3.15-rc1-1
make clean
make defconfig-ath5k
make
sudo make install
sudo modprobe -rv ath5k
sudo modprobe -v ath5k


I put this
SUBSYSTEM!="sound*", GOTO="end"
ACTION!="change", GOTO="end"
KERNEL!="card*", GOTO="end"

# remove the 'internal' sound form factor, so more descriptive
# names are used in pulseaudio for bcm... entries
ENV{SOUND_FORM_FACTOR}=="internal", ENV{SOUND_FORM_FACTOR}=""

# uncomment to ignore audio sink on HDMI1, even if present, so that
# headphones + HDMI0 audio will work in pulseaudio - temporary workaround
ATTRS{id}=="b2", ENV{PULSE_IGNORE}="1"

LABEL="end"

into /lib/udev/rules.d/79-rpi-pulseaudio-fixes.rules
and it solved my headphone jack audio problem.
For further reading
https://ubuntu-mate.community/t/3-5mm-audio-output-not-working-on-rpi4-with-20-04/22456/5
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=275372&start=125


White screen with black strips Ubuntu 12.04 LTS after install NVidia drivers

You could remove the nvidia drivers by typing into the console:

sudo apt-get remove nvidia-304*

...then reboot once it's done ( sudo reboot ) and you will be using the open-source nvidia drivers again...

Note: You are probably better installing Ubuntu 13.10 to run Steam so you will have the newer drivers, or you could wait until April and install Ubuntu 14.04 and have the latest LTS release instead...


USB Tethering with Ubuntu 11.10 not working for me

same problem here (except i ran 11.04 on my desktop and upgraded to 11.10 when i got my new laptop ) ilv even tried  apt-get install gvfs ipheth-dkms ipheth-utils but appearently the ipheth-dkms is no longer available so i tried installing just the other two packages with no luck


"Enable Wifi" on Xubuntu 15.04 Dell Inspiron 1564

This is one of the best linux wifi tutorials out there:

https://www.linux.com/learn/tutorials/374514-control-wireless-on-the-linux-desktop-with-these-tools


Driver support and general knowledge needed

how is the driver support for a rig like this 2600x . GTX 1650. A 144hz monitor that needs ICC. M2 drive.

You get a GENERIC driver installed when installing and have the option of some proprietary drivers. From 19.10 onwards the proprietary driver will be included on the installer.

  am I gonna need terminal command when it comes to fixing resulotion or refresh rate or applying ICC.

Maybe. terminal is the best feature ever. If you start like this you Ubuntu experience is going to be bad ;) Open your mind! Embrace the terminal. You will learn so many things about your system through command line.

  is Nvidia control panel access

Yes there is a control panel. Example:

  able like the one in windows.

We don't know what Windows uses as a control panel.

  is there any other concerns I should worry about when it comes to dealing with Ubuntu for a complete Linux noob.

Do not compare it to Windows, Linux is set up from the ground up as a multi-user system and therefor has tools to enforce this. "sudo" being one of those tools.
Do not fight against tools in Linux. With the live session comming in at a 2nd place command line is the BEST FEATURE EVER. In Linux you can fix almost every mistake you make through command line.
Use virtualization; that way you can still use Windows and can get used to Ubuntu.


how to remove old entries in Additional Drivers pane in settings panel

The Additional Drivers should only show what driver versions are available for install. Sometimes for compatibility reasons it is good to have multiple versions available. That however, does not mean that they are installed. The Additional Drivers will only allow for 1 driver to be installed on the system at a time for a specific hardware like video card.


I'd have a look at these methods (if not already tried). Of particular note are the commands:

sudo apt-get update
sudo apt-get install –reinstall ubuntu-desktop
sudo apt-get install unity
rm -rf ~/.cache/compizconfig-1
sudo shutdown -r now

If that doesn't solve it I guess a reinstall is in order. But it's always a good idea to take an image of your system while it is running well and is up to date. Then you'll never have to worry about reinstalls if anything goes wrong again. Only ever taken me a few minutes to restore from an image with  everything back to normal.


Open up terminal in Ubuntu and type:

sudo -i
<your password>

Now: fdisk -l and look for the the device/partition you have android x86 installed on,
next:

nano /etc/grub.d/40_custom

you can add this to the bottom of your custom menu:

menuentry "Android-x86" {
set root='(hdX,X)'
linux /android-4.4-RC2/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-4.4-RC2S SDCARD=/data/sdcard.img
initrd /android-4.4-RC2/initrd.img}

Press CtrlX than Y then hit Enter.

Last:

update-grub

To determine what your set root='(hdx,x)' using the fdisk -l command where you installed android, you need to edit accordingly:

sda =  (hd0,0)
sda1 = (hd0,1)
sda2 = (hd0,2)

or USB may be recognized as sdb

sdb = (hd1,0)
sdb1 = (hd1,1)
sdb2 = (hd1,2)

This means sdX is a=0,X b=1,X c=2,X d=3,X, well hopefully you get what I'm trying to explain.

One thing I found that got me stuck was the sections for /android-4.4-RC2.  Wherever android is located in a directory, this has to match, or you will spend hours trying to figure out why android is not booting up.  What made it easy for me in the beginning was to put android in a folder under the name android and than just making those three sections /android instead of /android-4.4-RC2.

If you did not setup a SDCARD than you can remove the section SDCARD=/data/sdcard.img

If you are already running Ubuntu, you do not need to install grub.  Ubuntu, linux already has grub.  You do not even have to install android-x86.  All you need to do is extract the Android-x86 ISO and copy these four files:

-initrd.img

-system.cfg

-kernel

-ramdisk.img

than create an empty folder called data.

If you are running on the same partition as Ubuntu, put the four files, along with the empty data folder, somewhere, for example, /home/media/android.  If you want to run android-x86 from a separate partition, then put the four files and empty data folder in it's own folder on that partition with a folder name you can remember, something easy, such as android works.

If running android-x86 on a separate partition or USB stick, then the last two lines of the menuentry should be:

linux /android/kernel

initrd /android/initrd.img

If you are going to run it on the same partition as Ubuntu then your menuentry lines should look something like:

linux /home/media/android/kernel

initrd /home/media/android/kernel

I also wrote on my blog a more detailed faq: How to install android-x86 without a CD or USBstick


Is there a free Ubuntu Studio 20.10 instruction manual available?

https://launchpad.net/ubuntu/groovy/+package/manpages-fr
Has all the french Manuals for Groovy Gorilla OS and CPUs.
Page also mentions: "The English package manpages contains additional manual pages which have not been translated yet."
The last "s390x" link I found first on Google was not a secured link, but was readable from Firefox.
The one for my CPU had "_all.deb" debian file for download: I don't know what to do with it (probably needs to be compiled into something readable, didn't appear in my Documents).
I searched "manpages-fr" in Discover and installed it.
Other Ubuntu flavor translations can be found here:
https://translations.launchpad.net/ubuntu
but it is probably better for a new user like me to search with Discover "manpages-" + 2 letters (language abbreviation name).


How to move both panels to the bottom in GNOME?

With both panels at the bottom try this:

Push Alt + F2 and type gconf-editor

Navigate to /apps/panel/general

In the list on the right side, double-click on the toplevel_id_list item

Switch the two items using the Up/Down buttons (in my case I switched from bottom_panel_screen0 top_panel_screen0 to top_panel_screen0 bottom_panel_screen0):

Close the gconf-editor, log out and back in again.


How to define a solid color for background in Ubuntu 16.04 (with Cinnamon desktop)

Answer here:

http://www.linuxquestions.org/questions/ubuntu-63/how-to-remove-background-in-cinnamon-desktop-4175556682/#post5437769

System Settings > Backgrounds > Settings > Picture Aspect > 'No Picture'


How to open the terminal with specific command already run? Best at Unity Launcher!

You have two options to open a terminal or uxterm with already running a command:

uxterm -e <command>

Or

gnome-terminal -x <command>

For multiple commands to be already run:

gnome-terminal -x bash -c "<command1>; <command2>; <command3>"


How can a default user can access the directories owned by group and user root although it has permission of 750?

As said by Muru, the + in the ls output indicates ACL's (access control lists). When active these superseed the normal file permissions, this can be anoying so a lot of people don't use acl's because of that.

If I'm not mistaken, you seem unaware that you where using ACL's and probably don't need it besides the normal file permission. If that is correct you can delete the ACL permission using the following command:

setfacl --remove-all -R <file or directory name>

This command removes the ACL permissions from anything in the given path. The files/directories will then fall back to using the basic file permission as you probably intended.

p.s. About you question regarding masks. When a user creates a file or directory, its created with a default set of permissions. With umask you can say what these defaults should be. You can ignore this until its hinders you, since you are now aware that you can change it when needed.


How to save print paper size in LibreOffice Calc?

You can change the global default printer settings which LibreOffice respects in the system settings menu, section “Printers.”


Can't boot after installing Ubuntu - dual boot

You have to disable Windows fast boot and hibernate.
Open command prompt as administrator and execute:

powercfg /h off

Then open Windows Control Panel -> Power Settings.
Enable show hidden settings and disable fast startup.

Shutdown the computer completely - do not reboot.
Boot into BIOS and select Ubuntu as the default OS.
Now you can select what to boot from GRUB menu.


Use bash to extract number from between square brackets

You can achieve this with just a single grep command. This is because GNU grep lets you use a Perl regular expression (-P), which supports zero-width lookaround assertions (\K and (?= ), in this case):

grep -oP '^\[\K\d+(?=\])' infile

As written, that will send the output to your terminal. To redirect it to a file, use:

grep -oP '^\[\K\d+(?=\])' infile > outfile

This method has the advantage of brevity and simplicity. It matches text that

is preceded by (\K)

a [ character(\[) -- \ is needed as [ otherwise has a special meaning in regular expressions
that appears at the beginning of a line (^);

consists of one or more (+) digits (\d);
is followed by ((?= ))

a ] character (\]) -- like with [, \ forces ] to be matched literally.


Is wine an emulator or compatibility layer?

A program in Windows makes extensive use of standard libraries that belong to Microsoft Windows. These libraries are rewritten and implemented in Wine so that they do much the same. The more a program is well written and the standard libraries, the greater the chance that the program will work in Wine.

The code of a program is first examined for calling the Windows libraries. These calls are translated so that the Wine's libraries called. Then the code of the program executed at full speed. There is no emulated code, but only the calls to the libraries are translated.

Therefore, in theory. a program should work about as fast as Microsoft Windows. In practice, the program may be slower, because the translation is made. But there is a possibility of a program working faster because the libraries of Wine are simpler, and because disk access is often faster in Linux.

Because Linux uses OpenGL, Windows programs that use OpenGL often work well in Wine. Linux does not use DirectX - however, DirectX games work in Wine because the DirectX calls can be translated by Wine to OpenGL calls.


Ethernet & Wifi problems Ubuntu 15.10 Lenovo z50

Check the driver required for your computer using

lspci

In my case:

sumit@Lenovo-Z50-70:~/Documents/programs$ lspci
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT   Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.   RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)

In my case this is Realtek Semiconductor Co., Ltd.   RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10). Use the following link for realtek drivers

http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

If you don't have an internet connection do it on any other system. Download it & copy it to your system's desktop. Extract it. Open the terminal. Use the commands

cd Desktop/r8168-8.041.01 (go to the extracted folder)
sudo ./autorun.sh

Enter your password. This will install the driver & connection will be established. If it doesn't work try rebooting your system.

For wifi see this answer if your system has Broadcom Wireless Drivers:

http://askubuntu.com/questions/55868/installing-broadcom-wireless-drivers


Installing Ubuntu on Acer Aspire V5-573G-54208G50AKK: nothing happens

try unetbootin for writing image into USB, I had some similar problems while using other applications.


The official repository has changed. Based on the new wiki instructions, here is how I installed inxi on my Xubuntu 12.04 LTS machine:

sudo add-apt-repository ppa:unit193/inxi
sudo apt-get update
sudo apt-get install inxi


KDE connect indicator not showing on tray

Same issue on Lubuntu 18.04.

I have managed to send files from my PC to a paired Android devices using the command line utility from kde connect. To see the options available, open up a terminal and type

kdeconnect-cli

Maybe this helps.


After submitting a .crash file using apport, I get no feedback URL to Launchpad, whoopsie reports the crash is already reported

Just prior to Release Apport crashes opening a LP report is disabled. All Apport crash reports then go to a Db via whoopsie. In the current dev LP reports from crashes is turned back on a couple of months or so from the start of dev.

If you want to open a LP report in a Release version of Ubuntu then you'll need to use ubuntu-bug packagename.

Otherwise they only way in these cases is to re-enable LP reports in Apport, generally that's not appreciated though on occasion I'll do just that. But in order to do so do the following:

1. Run:

sudo vim /etc/apport/crashdb.conf

2. Add a # to the beginning of the 'problem_types': ['Bug', 'Package'], line in order to comment it out.

3. Save the changes and Apport should report bugs to LP as you requested.

Non-security-related bugs in a Release version should be first checked if they also exist in the current dev, if so the LP report should be against the dev package. That's the first step in a possible SRU (stable release update ), for the Release version.


package 'unrar-free' has no installation candidate xubuntu 20.03 (ubuntu based os)

Let's review how to find packages in the Ubuntu repositories.

First, let's look for rar using the packages.ubuntu.com website. The web page for rar shows that the rar package does exist in the Ubuntu repositories, it's available for 20.04, and it's in the "multiverse" pocket:

Next, let's look for "multiverse" in the Software & Updates control panel. In my example below, you can see the "multiverse" is unchecked. Check it.

You can find Software & Updates using your normal Desktop Search.

Finally, run sudo apt update because your sources changed.
Now rar and unrar will be installable for you.
unrar-free is slightly different. It's in "universe" instead of "multiverse". The process is the same; merely a different checkbox.


Xubuntu upgrade to 20.4.1 ERROR - E6550 is NOT 32 bit!

OKAY! Well, I looked at all that and decided that I don't have that much "Stuff" and I will reinstall from a DVD. This system is a download server so not that much to reinstall really and I already reinstalled on my Media Player system so I know that worked just fine. I started this because my Media Player was having difficulty playing some video files. Otherwise I didn't know the 20.04.1 was out there. I guess it didn't tell me because I was on the 32bit version? OBTW 20.04.1 solved my video problem and does seem to be faster. Also ARCH returns i686 NOT i386!!!! No idea what that is about!


Enable both: two finger scrolling and edge scrolling permanently

According with this answer, you can enable both two finger scrolling and edge scrolling using the following commands in terminal:

synclient VertEdgeScroll=1
synclient VertTwoFingerScroll=1

The problem is that these commands are not persistent after a system restart. To prevent this, let's put them to run at start up.

First, make a new small bash script called scrolling with the following code inside:

#!/bin/bash

synclient VertEdgeScroll=1
synclient VertTwoFingerScroll=1

Save it in your ~/bin directory, and don't forget to make it executable using the following command in terminal:

chmod +x ~/bin/scrolling

Second, search for Startup Applications in Dash, and open it:

Then add the script scrolling to run at startup:


crontab to prevent USB hard drive from spinning down

The problems

It runs using the shell /bin/sh, not /bin/bash, so $RANDOM probably doesn't work
Unless you set the PATH within your crontab file, it won't know where things like dd (or in the solution below, bash) are located
If you want to do it using UUIDs, a much simpler way is to use /dev/disk/by-uuid/THE-UUID

The solution

Find out the device file under /dev/disk/by-uuid by looking it up and checking that you don't get any errors with dd (replace THE-UUID with the actual UUID):

ls -alF /dev/disk/by-uuid
sudo dd if=/dev/disk/by-uuid/THE-UUID of=/dev/null count=1 skip=$RANDOM

Edit root's crontab to (replace THE-UUID with the actual UUID):

* * * * * /bin/bash -c 'dd if=/dev/disk/by-uuid/THE-UUID of=/dev/null count=1 skip=$RANDOM'


dell xps 17 l702x Nvidia GT 555M (optimus)

I have the same laptop you have. Below are my notes from a year+ ago which are really just a summary from the other posts here on AskUbuntu. You may need to change the header version number to what you have installed.

What puzzles me though is what you mean by, your computer won't boot. Do you get a blinking cursor, a login, or the computer truly hangs? You may want to post some additional info here to get more feedback.

The default nvidia drivers do not work with the Optimus chipset (no menu, launcher etc.)

sudo apt-get install linux-source linux-headers-3.8.0-31-generic
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

and reboot after installation

To test bumblebee support, execute

sudo optirun


I fixed this by going here LINK

I then found the file named 'freetype-2.8.tar.gz' extracted it, and then I ran the command ./configure in that directory, and then ran make I received an error and had to modify the file to what the error suggests. You will see this when you ran the command. After correcting everything I ran the command sudo make install

After doing all of the above, nvidia-settings finally worked.


How to save a binary file bigger than a DVD to a set of DVDs and how to recover them afterwards?

The easiest way is to create an archive of the file. And allow the archive/compression utility split the file for you.

In Unity:

right click on the file select compress
click other options select a format that supports splitting an
archive file into several
click split into volumes and select the maximum size for each volume.

Then you can burn each file to your DVD.
You can just right click and select decompress once  you have copied the files over to the destination for it to reassemble all files.


What is terminal initialization by reset command?

reset will actually completely re-initialise the terminal, instead of just clearing the screen. However, it won't re-instantiate the shell (bash). That means that bash's state is the same as before, just as if you were merely clearing the screen.


How do i upgrade to Ubuntu 12.04 LTS or greater?

Install update-manager-core if it is not already installed by using terminal:

sudo apt-get install update-manager-core

Launch the upgrade tool:

sudo do-release-upgrade

Follow the on-screen instructions.


No Pocket icon in Firefox although it's installed and active ("true")

Make sure Pocket for Firefox is available in your region:

Pocket for Firefox is currently available in English (U.S.), German, Japanese, Russian and Spanish (Spain) versions of Firefox 38.0.5 and up. If your language is not on the list, stay tuned.

Disable the old Pocket add-on:

Pocket for Firefox is disabled by default if you already have the Pocket add-on. The old add-on will no longer receive security or feature updates in countries where Pocket for Firefox is available.

1.Click the menu button menu , followed by Add-ons.

2.Go to the Extensions panel.

3.Click the Disable button for Pocket.

4.Restart Firefox. The new Pocket button will appear in your toolbar when Firefox restarts.

Move the Pocket button to your toolbar or menu

After you've disabled the old add-on and verified that you're in a supported locale, activate Pocket for Firefox by following these steps:

Click on the menu button ,then click  + customize
Drag the Pocket button to your favorite spot on the toolbar or menu panel.

(source: mozilla.net)

reference here


Cannot access http-server since installing Landscape

The quickstart package assumes it owns apache I'm afraid. It gets rid of the default vhost file in /etc/apache2/sites-enabled directory.

You should be able to restore your other sites by inspecting what's missing in that vhost file, but anytime quickstart is installed or upgraded, it will take over again.

quickstart is meant as an easy and quick way to sample landscape, but more permanent deployments should consider other installation options listed in https://help.landscape.canonical.com.


Targetting Boost 32-bit While on 64-bit ubuntu?

Old question, but for prosperity on bionic:
dpkg --add-architecture i386 && apt-get update && apt-get -y install g++-multilib libboost-system1.65:i386


Script, using notify-send, refuses when run from Startup Applications

Running commands on log in
This is typically one of these cases where a command breaks if it runs too soon in the log in process. The desktop is not fully loaded yet ans the command cannot be run.
Add to your Startup Applications a break before the script starts, and it will run fine:

/bin/bash -c "sleep 15 && python2 /path/to/script.py"

I tested your script both with and without the break, and indeed failed if I ran it without, but succeeded with the break.
A few remarks

Be aware that if you don't use the shebang (#!/usr/bin/env python) you must precede the path to the script by python to run it. No matter if it is executable or not.

On slower systems (or on a VM) , the break of 15 seconds might not be sufficient. If so try to start with a relatively long break, experimenting "down" to the limit.

About the script; didn't really look into it, but I definitely wouldn't use os.system any more, use subprocess.Popen() instead, and oh, you can save a line by removing the first os.system(to_send) and un- indent the second one, since you will run the command in both cases after the if / else route . :)


Is there a free trusted virtual machine image with Ubuntu preinstalled?

There is an official place where ubuntu distributes it's cloud images (including ovf format):

https://cloud-images.ubuntu.com/

Ex, for 14.04 (scroll to page bottom):
https://cloud-images.ubuntu.com/trusty/current/


How do I map the keyboard soft keys when they give no event notification?

Have a look at https://wiki.ubuntu.com/Hotkeys/Troubleshooting


I cannot link freeglut to code::blocks on Ubuntu

There was only one thing I didn't try and it was adding the flag

-lglut

I kept trying it with lfreeglut and variants. This is the answer.


Kubuntu 16.04 Windows go behind panel after upgrade

I've found a solution after inspecting of everything. In Display and monitor→Display configuration something evil changed Primary display to No primary output. After change to Laptop screen the issue disappears.


What are mountpoints, and which one should I pick?

A mountpoint defines where in the filesystem that particular drive is mounted.

The root of the filesystem is always / - and you must always have one. Everything lives in here.

You can then (optionally) add other mountpoints to segregate your data, for instance /home contains all your user-specific files. So you might have another bigger hard drive that you want all your user files on if you're storing lots of photos in your home directory.

However, the most basic use-case is to simply start with one drive and mount it at /, which is likely what you want for now.

The only special case is swap, which is not a mountpoint in the normal filesystem, but is used as additional memory (on disk) - Windows calls it a pagefile.


kget showing in application but not opening

For me ps -aux (or similar) does show kget as running but the window won't display. It was working fine until a couple of days ago, nothing was changed it just stopped displaying the kget window when the application was called (from flashgot plugin in Firefox 37 on Kubuntu).

The fix was to edit kgetrc, e.g. nano ~/.kde/share/config/kgetrc, and alter the line ShowMain=false to read ShowMain=true. However, after rebooting I've found this has at some point been reverted.

My kget gives the following on startup from the command line:

k1410:~$ kget
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action

Usually then killall kget is necessary to kill the hidden application; then just kget from the commandline or selecting from the application menu works as expected.

If you have the same problem as me then you'll need to trace what's resetting the kgetrc (e.g. see https://stackoverflow.com/questions/8672039/see-what-process-last-touched-a-file and look at auditd package and auditctl tool); a workaround might be to set kgetrc read only, eg chmod a-w ~/.kde/share/config/kgetrc.


How do I change resolution without screen in Jupiter applet?

If you can change to a tty (ctrl alt F1) then login and use
xrandr -q 'this will display a list of modes with the connected device for you to choose'

set the one you want with

xrandr --output LVDS --mode 1920x1080

For example, make sure you use the correct display identifier given by xrandr -q, mine being LVDS.

You can see which from the output of xrandr -q
for example mine is

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
LVDS connected 1920x1080+0+0 (normal left inverted right x axis y axis)

Then when set, switch back to your desktop with ctrl alt F7 (possibly F8 if F7 doesnt do it)


Have you tried with --net=host and removing the --publish flag?

Squid is probably just intercepting traffic on the $CONTAINER_IP:3128 and not 0.0.0.0:3128, although you're mapping the port with the --publish flag.