Android studio buggy after upgrade to 16.10

In the recent android studio updates, google use a libstdc++ that is
incompatible with the intel driver installed on the system

You first have to install the following packages if there not on the system
lib64stdc++6 and mesa-utils

sudo apt-get install lib64stdc++6 mesa-utils

Then symlink the libraries to the android sdk tools path

## For the /Sdk/tools path

cd ~/Android/Sdk/tools/lib64/libstdc++
# making a copy of the file
sudo mv libstdc++.so.6 libstdc++.so.6.og
# symlink
sudo ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/tools/lib64/libstdc++

## For the /Sdk/emulator path

cd ~/Android/Sdk/emulator/lib64/libstdc++
# making a copy of the file
sudo mv libstdc++.so.6 libstdc++.so.6.og
# symlink
sudo ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/emulator/lib64/libstdc++


I think I resolved.

I manually deleted files named in the errors, I cleaned the cache, and I ran this which both deletes and reinstalls. I think the first manual action was actually the one which solved the error.


You can record any audio you can play using OutRec: http://www.omgubuntu.co.uk/2010/07/quickly-record-soundcard-output-in.html


Generally, if there are any issues with I/O, the system will mount as read-only so that further writes don’t damage the file system, but you can attempt to salvage whatever you can before attempting a check/repair (fsck).

I would also have a look at the device’s SMART stats using the Disks utility to see if it is failing. Reallocated sectors and read/write/seek error rates may point to a failing device. But I’ve also had cases where the drives were fine and the motherboard was causing erratic behavior to devices connected to a specific set of SATA ports. Many variables to consider…

Source: Filesystem suddenly read-only? | Unix & Linux Stack Exchange


How to upgrade/update online accounts software in ubuntu 11.10 to that available in ubuntu 12.10?

No not possible. Ubuntu webapps are only available for 12.10 (default) & 12.04 (via ppa)


Is there a writing tool that moves the text rather than the cursor?

When you use Vim, set scrolloff to a large number:

set scrolloff=999


If you want to initialize the terminal, all what you have to do is to edit ~/.bashrc file; .bashrc file is a like a script that is executed whenever you open a terminal.
For more information about .bashrc, check this link.
To do that:
1- Open your terminal and run gedit ~/.bashrc.
2- .bashrc will be opened in your editor, add the following lines to the end of the file:
alias python=python3
export PS1='>'

3- Save and close the editor.
4- To make those changes effective, close the terminal and open it again, or simply run source ~/.bashrc. You don't need to do that every time, it is needed just once.
After that every time you open the terminal, those lines will be executed/run and whenever you run python, you'll get Python3 run.


A while ago I added these lines to a shell script:

INSTALL=
for P in gnome-common yelp-tools yelp-xsl; do
    if ! dpkg -l $P >/dev/null 2>&1; then
        INSTALL="$INSTALL $P"
    fi
done
if [ -n "$INSTALL" ]; then
    echo "To use this script, please install required packages by running this command:"
    echo "\nsudo apt install$INSTALL\n"
    exit 1
fi

The same approach can be applied with Python code, I suppose.


dpkg-reconfigure gives me a message that a package is not installed

I've seen this before and generally, I've been told that "this can be safely ignored as there is no up-to-date package that comes with dpkg to install the specific package".

I didn't believe them, though, and neither should you. I dug a bit deeper, used bleachbit (as root) to clear all extra caches, ran apt-get update, and then found the package from it's source repository. Then, I put it in dpkg's folder and it seemed to work (I do not remember if I modified it or not, but you should not need to). Of course, in my situation it involved virtual-box, which isn't the easiest thing to force on ubuntu (it wasn't when I tried), but the results are the same. With very little tweaking, you should be able to get this package file (source Debian) to work perfectly.

I apologize that I cannot be more helpful, but it was over 6-months ago that I had an issue of this kind.


Is it possible to upgrade from 14.04 directly to 16.04?

Procedure:

First: You need to update the system.

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get dist-upgrade

Now edit the file /etc/update-manager/release-upgrades and change the value of Prompt from normal to lts, continue running:

nano /etc/update-manager/release-upgrades

Ctrl+O Save File

Ctrl+X Close nano

Reboot your system to finish installing updates, and to upgrade to new available version:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
update-manager -d

Software Updater will show up and search for the new release.

However, Ubuntu 16.04 is available now.

Press the button Upgrade to start upgrading to Ubuntu 16.04

The Software Updater will ask you to confirm still you want to upgrade, press Start Upgrade to begin installing Ubuntu 16.04

Now, the Software Updater will prepare to start setting up new software channels, and after a few minutes, the software updater will notify you the details the number of packages are going to be removed, and number of packages are going to be installed, press Start upgrade to continue.

Ended the dist-upgrade, reboot your system and:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
dpkg --configure -a
apt-get -f install
apt-get update
apt-get dist-upgrade
apt-get autoremove
apt-get clean


A very simple answer would be to boot into the live CD/USB and run Boot Repair

Boot Repair PPA

Boot into Live CD/USB.
Type the following in terminal(one line at a time)

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair

Run Boot Repair

    Type in terminal
    sudo boot-repair

    or

    type in Unity dash
    Boot Repair

Click the Recommended repair button

After the process is finished close everything.
This should solve your problem.

I have already answered a similar question here


Look in /opt/google/chrome/google-chrome.desktop or /usr/share/applications/google-chrome.desktop for the following line:

Exec=/opt/google/chrome/google-chrome %U

Add the flag you need in there, save it, then run Chrome again and pin it to your launcher, that should do the trick.


In bash script how do I ensure youtube-dl downloads all files in a playlist

You are passing a playlist to youtube-dl, together with the command line option --ignore-errors. That means youtube-dl will attempt to download the entire list of videos before exiting; regardless of how many failures it will face along the way. So if video #2 would fail, then the request for video #3 would follow immediately after. I don't know how vigilant Google is, but that could already ring a bell over there.

And even after the last video in your playlist has been hit, how sure are you that youtube-dl returns a non-zero exit code? There is no mention of that in the readme, so I wouldn't be surprised if your sleep 90 would never be executed.

Besides, what good is this loop anyway? Restarting youtube-dl with the same playlist will download everything all over again; including all videos that were downloaded successfully the first time. Though options --no-overwrites and --continue may help out here.

To prevent Google blocking your IP address (HTTP 429), I would suggest to use option --sleep-interval. Example:

youtube-dl --verbose --ignore-errors --sleep-interval 10 url-to-playlist

I'm not sure if the intention of your loop was to keep retrying a failed video until it eventually succeeds. I hope not; it is not very straightforward, since:

You cannot use the exit code of youtube-dl to detect failure. You'd need to either cross-reference the output folder with your playlist, or parse youtube-dl's output.
You'd need to implement some counter to restrict the number of retries; some problems don't disappear by themselves.


Want to change unallocated to fresh space

Go into the livecd and open gparted, create an ext4 partition and then use that. Unless the whole disk is "free space" I am not sure how well ubuntu installer handles it.


installation of linux in older windows based laptop

First of all, yes you can run various flavors of Linux, also Ubuntu up to the latest version on your HP G62.

And yes, given the smaller profile and lower load (compared to Windows), it will perform well on your device. The notebook I'm using right now, is quite similar.

However, the operating system will NOT make your heat problem go away. So, you still need to deal with that first. And you can Google it and find manuals for that.

Personally, I would always suggest a lightweight GUI option. I would favor Mate, since it is leight in weight, stable, reliable and easy to use. Meaning, you might want to go with 64Bit Ubuntu Mate and you can use the latest 18.04.

Just download an ISO, create a live system and test it yourself to see, if you like it. You'll need a USB thumb drive to put your live system on and an application to get it done. Like USB installer. Then just boot from the USB drive and give it a go before you decide, if you want to install it ;)

If you know a few things about computers, creating the live system is not that hard. Otherwise, manuals are all around ;)


Which ubuntu server should we setup for the office?

Try the Ubuntu Server Guide.
Use a LTS release, you don't want to be upgrading every 6 months.
Hardware needs will vary greatly depending on how your users use the service. Measure your current usage to get an idea for how much hardware you'll need.
This is a lot for a single server to do. Consider creating a virtualisation host using KVM (and virtual-machine-manager) then spinning up a VM for each service - this will allow you to migrate your services one by one and grow/shrink your resources as needed
Build two identical servers. One will be the hot spare in case the other one fails.

Some additional links that may be useful:

http://www.thefanclub.co.za/how-to/how-setup-ubuntu-business-box-server-ubb-part-1
https://wiki.ubuntu.com/SmallBusinessServer
http://www.zentyal.org/ (Ubuntu-based business box distribution)


You can find it in the first row. In your case this would be RTL8191SEvB.

If you run lspci with switch -nn instead of -vv you will find vendor and device ID in a hexadecimal format encapsulated in square brackets. This could further help identifying your hardware with a bit of Google-jutsu. An example from my own system:

lspci -nn -s 00:19.0
00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 04)

From this output you can read my vendor and device id is [8086:1503].


How can I export books from Ubuntu to Amazon Kindle?

send them via email to your kindle account. Calibre has an option for that. If you are unfamiliar every kindle has a unique email that you can send documents to.,


The OP reported that installing the atftpd  package solved this problem.


Problem with install USB WiFi ASUS USB-AC51 [Mediatek MT7610/Ralink RT2870]

There seems to be a regression in 4.4.0-79 compared to 4.4.0-78, and therefore the dongle is recognized only when hotplugged, and will not work after a reboot. With the older kernel everything is fine and dandy out of the box, alas a kernel downgrade on Mint 18.1 solved it.  Upgrading to 4.4.0-79 is of low urgency anyway. Not the most elegant solution, but it works.

Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter


Can you please add other folders back to sync options back to Ubuntu One in Windows?

I think you are talking about Ubuntu One on Windows.

You could try to create a Juction (a NTFS symbolic link) inside your User folder, that point to folder in D:. Here you can download the Junction utility:
http://technet.microsoft.com/en-us/sysinternals/bb896768

I have not tried it, but may work.


Command line:

$ now=$(date -d "06:45 today + 105 minutes" +'%H:%M')
$ echo "$now"
08:30

$now will hold the time you specified.

You can put a lot of things in between the " and "; like the current time and add 105 to it.

$now=$(date -d "06:45 today + 2.5 hour" +'%H:%M')
date: invalid date `06:45 today + 2.5 hour'
$now=$(date -d "06:45 today + 2:30 hour" +'%H:%M')
date: invalid date `06:45 today + 2:30 hour'
$ now=$(date -d "06:45 today + 2 hour" +'%H:%M')
$ echo "$now"
08:45

No decimals allowed...

From comments: To get the answer for 1.45 decimal hours:

$ now=$(date -d "06:45 today + $((145 * 60 / 100)) minutes" +'%H:%M')
$ echo "$now:
8:12


I was running into the same issue. I noticed the errors on the documentation as well. Here is how I finally resolved the issue. Note ssh_enabled boolean is capitalized to conform to the rest of the booleans. Also, note that I did not use the bloat file when generating the image as I did not need to use the vmdk. Lastly, before attempting this new image, delete your previous virtual machine import as that import is altered every time you start the machine with a cloud init file. If you use these notes, the login should be

  ubuntu

and the password should be

  passw0rd

.

$ cat >> user-data << EOF
#cloud-config
snappy:
    ssh_enabled: True
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
EOF

$ cat >> meta-data << EOF
instance-id: $(uuidgen)
local-hostname: ubuntu-snappy
EOF

$ genisoimage \
    -output seed.iso \
    -volid cidata \
    -joliet -rock \
     user-data meta-data


What was the default font for Ubuntu 11.04?

The standard font should have been Ubuntu Light as indicated in this blog post on Ubuntu Vibes.

You can see this particular font and download the whole Ubuntu font family here: http://font.ubuntu.com/#charset-light


Permission Denied error message while running C++ program in Code Blocks

You need the execute permission to run/execute the file. If the file is /home/user/test.cpp and you are the owner of the file then to execute the file you need the permission bits like:

-rwxr--r--  1 user user      1490 Feb 13 12:07 /home/user/test.cpp

Here only the owner ('user' in this example) can read, write and execute the file whereas the group ('user' in this case) and all others can only read the file.

To set the permission like this run the following command from Terminal:

sudo chmod 744 /home/user/test.cpp

If you do so, the execute bit will be set and you will now be able to execute the file.


How come OpenGL version is only 1.4 with Tesla K40?

Are you connected from the console or remote shell?
That is the typical output when you are in by remote.

If that's the case, unless you are using a very old release of Ubuntu you will face with this problem because of the newer Xorg. To be able to use higher OpenGL I'm afraid you have to go with something like VirtualGL (this requires you have a working X on the server though).


How to make INTEX 3.5G (aka 普创E003) Wireless USB Modem work on Ubuntu?

Step 1

Before plugging in your modem, check the entries in your /dev directory.

ls /dev

You'll find an entry named sr0 if you have an Optical Disk drive(CD, DVD, Blu-Ray, etc.). If you have no optical drive (as in the case of NetBooks and newer machines), then the dongle's storage will appear as sr0, and IntexModem binary'll work for you. If that's the case, you don't need to follow these steps. Else, plug in your modem, wait a few seconds and then repeat the ls /dev command to look again in /dev directory.

Step 2

Inside /dev directory, you'll find a new entry /sr1 along with previous /sr0. This is a Read Only partition present on your modem, which must be ejected everytime you plug in the dongle, for switching the modem from removable storage state to modem state.

eject /sr1

In case you had no optical drive, you'll have to run eject /sr0 instead. Wait a few seconds and then check your Modem's USB ID:

lsusb

If everything worked as expected, it'd have turned to 20a6:1105 from the previous ID 20a6:f00e.

Step 3

Now you have to load the kernel module to make this device recognised as a USB modem:

sudo modprobe usbserial vendor=0x20a6 product=0x1105

Now that you have succesfully loaded the module, the modem will be residing at /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2. To check, do:

ls /dev | grep ttyUSB

If nothing turns out, then wait. It can take anywhere from 30 seconds to a whole minute. Once you are sure there are these ttyUSB entries in your /dev, just use your default connection client to connect. For example in Ubuntu, the Network Manager or the connection icon on top panel.

Background/History:

IntexModem binary didn't work for me and showed strange behaviors such as ejecting the Optical Drive. So I contacted the author of the IntexModem binary - Prateek "GunJack" Sharma, who explained to me how the binary works. It's his reply I formulated as this answer.

Newer usb-modeswitch versions contain 20a6:1105 and 20a6:f00e config files by default and so you don't need to do the above steps to get it working. As a result, if you're running a recent Ubuntu release, the modem'll work 'out of box' without any extra configuration.


Try first to stop and disable pulseaudio

systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service

or

sudo systemctl stop pulseaudio
sudo systemctl disable  pulseaudio

and eventually

sudo systemctl mask pulseaudio

to prevent that other services  start pulseaudio again.

Take a look at

man pulse-daemon.conf

This man describes the PulseAudio daemon configuration file.

   The  PulseAudio sound server reads configuration directives from a con‐
   figuration file on startup. If the per-user  file  ~/.config/pulse/dae‐
   mon.conf  exists,  it  is used, otherwise the system configuration file
   /etc/pulse/daemon.conf is used. In addition to those main  files,  con‐
   figuration  directives  can  also  be  put  in  files under directories
   ~/.config/pulse/daemon.conf.d/  and  /etc/pulse/daemon.conf.d/.   Those
   files  have  to  have  the .conf file name extension, but otherwise the
   file names can be chosen freely. The files under daemon.conf.d are pro‐
   cessed  in alphabetical order. In case the same option is set in multi‐
   ple files, the last file to set an option overrides earlier files.  The
   main daemon.conf file is processed first, so options set in files under
   daemon.conf.d override the main file.

One of these settings is

   daemonize=  Daemonize after startup. Takes a boolean value, defaults to
               no. The --daemonize command line option takes precedence.

Open the /etc/pulse/daemon.conf and set

daemonize = no

Open the local configuration file  ~/.config/pulse/client.conf

Uncomment the following line

autospawn = no


Installing Ubuntu and getting an 'Invalid Format' error message

Try this: Select "Try Ubuntu". After the error message appears, press Ctrl+Alt+F1, which should take you to a command prompt. Type:

sudo dpkg-reconfigure xserver-xorg

and then press Enter.

This will reconfigure the X display server.


The SVN server is independent of the client. The windows clients should work with the svn protocol (additional libraries might be necessary for SASL authentication), http is generally supported well.

The server can be Apache serving over WebDAV or a svnserve daemon. See https://help.ubuntu.com/community/Subversion for more details.


How drag a window with ALT+click like in Unity in GNOME 3

It works the same, however with the Super key rather than the Alt key. If you would rather prefer the Alt key, then you can change that using Gnome Tweaks.

Gnome Tweaks is not installed by default, so you may need to install it first using Ubuntu Software. Launch Tweaks, and you will find the setting "Window action key" on the Windows tab. Change that setting from Super to Alt.


Iptables rule for server accessed remotely via DHCP

Well, to be honest, there is a bit of a learning curve to iptables.

First, you can use ufw to start. ubw is a powerful command line tool and the advantage is the syntax is similar to iptables.

sudo ufw enable
sudo ufw limit 22

Here I am limiting port 22, you can use any port you wish.

https://help.ubuntu.com/11.10/serverguide/C/firewall.html

Again the advantage is ufw will automate much of this and ease your learning process.

If you want to use iptables, you at a minimum need to learn to save and restore your rules.

sudo iptables-save > /etc/iptables.save
sudo iptables-restore /etc/iptables.save

You can edit /etc/iptables.save, the syntax is straight forward enough.

When trying rules from remote, use iptables-apply to prevent a lockout

sudo iptables-apply /etc/iptables.save

To restore your rules on boot, one of several methods is to add this to /etc/rc.local

iptables-restore /etc/iptables.save

Other options listed in the Ubuntu iptables wiki page (see below).

The iptables syntax is

iptables -I INPUT -p tcp -m state --state NEW -m limit --limit 30/minute --limit-burst 5 -j ACCEPT

To LOG, add a LOG, but unless you are going to monitor your logs, use snort. logging iptables, IMO, is more helpful for debugging.

See man iptables, Ubuntu wiki iptables

Some people find my iptables web page helpful to start.

To answer your comment, see these rules

iptables -A INPUT -p tcp -m tcp --dport 22 -m tcp -m state --state NEW -m recent --set --name SSH --rsource

iptables -A INPUT -p tcp -m tcp --dport 22 -m recent --update --seconds 600 --hitcount 8 --rttl --name SSH --rsource -j DROP

iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT

http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/

The caveat is , it depends on the service. ssh is configured to allow so many attempts at password authentication 9see /etc/ssh/sshd_config ), so each connection gives 6 password attempts.


Windows bootloader doesn't come up after installing via Wubi

The best way for installing Ubuntu is a separate partition.  You may do a control of the actual situation.  Download Gparted (it is for free) http://gparted.sourceforge.net/download.php, burn it to a disc, and boot you computer from this disc.  This will give you an idea what is going on.  You can make a separate partition for ubuntu (ext4) and a swap (max. 2Gb), and install Ubuntu in this partition. See here: http://opensource-sidh.blogspot.com/2011/10/install-ubuntu-1110-and-windows-dual.html


I think my issue is resolved.

The reason why is that the tutorial to install kernel 4.16 only told me to install:

linux-image-4.16.0-041600-generic_4.16.0-041600.201804012230_amd64.deb
linux -headers-4.16.0-041600_4.16.0-041600.201804012230_all.deb

Virtualbox box missed :

linux-headers-4.16.0-041600-generic_4.16.0-041600.201804012230_amd64.deb

After that installed i could correctly did :

sudo /sbin/vboxconfig

and it worked perfect:)

I try to install a new VM and an old OVA to tell you if it works correctly


Check your router's settings if your WAN IP is different from your public IP, then it is possible that your router is behind another router i.e., your ISP use CGN (Carrier-grade NAT). Look at this also RFC6598.

If this is the case, then this link may help you

how to do port forwarding if my router wan ip is different from public ip?


Using the fingerprint scanner as middleclick mouse button

What Google did is a hack: a fingerprint reader can be considered a tiny touchpad and fingerprint gestures can be generated by the Android Kernel to then let applications act upon it.
However in the Linux Kernel, no one is working on that so if you'd want something like this it would mean:

Becoming a kernel developer
Developing this yourself so it works for you
Getting blasted by Linus Torvalds for breaking something else  ;-)
Re-doing it properly
Nirvana!

Sorry! :-(


Is there a difference between Ubuntu with MATE installed after and the pre-made Ubuntu MATE edition?

It depends on your skills level.

I have two systems:

previously normal Ubuntu 12.04 LTS with Unity and GNOME FlashBack, then I upgraded it to 14.04 LTS and then to 16.04 LTS. On 16.04 I installed ubuntu-mate-desktop^ and carefully removed all GNOME and Unity stuff by hand.
installed as 11.04 then upgraded to 12.04 LTS with manually added MATE PPA, then upgraded to 14.04 LTS and 16.04 LTS. After last upgrade I removed MATE PPA and carefully removed all GNOME and Unity stuff by hand.

Both resulting 16.04 LTS systems with MATE DE going to sleep and wake up without issues.

I know small differences of my self-made MATE DE system compared to MATE-edition - I removed ubuntu-mate-welcome and some other stuff.

In your special case I think you should remove gnome-screensaver package with

 sudo apt-get purge gnome-screensaver


How can I get MAC address in ubuntu 16.04?

You can find the MAC address for your network devices with the terminal command:

sudo lshw -C network

The MAC address is called 'serial,' like this, for example:

*-network
       description: Ethernet interface
       product: Ethernet Connection I217-LM
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: enp0s25
       version: 04
       serial: 11:22:33:44:aa:bb
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       <snip>

If your devices do not appear in ifconfig then they are probably not yet claimed by any drivers.


How do I set an external monitor as default? (Or move Unity bar to monitor at least)

If your video card is xrand compilant (everything but NVIDIA, IRC), you can use this command:

xrandr --output VGA1 --primary

You will need to open a terminal: click on the dash and write Term. When the terminal, a blank screen with a cursor open, type the above command.

Note that the VGA1 parameter is just a good (I hope) guess. If it didn't work you should type in the terminal

xrand

And it will show you a list of the connected monitors and the resolutions that they support. In my laptop:

Screen 0: minimum 320 x 200, current 2726 x 768, maximum 8192 x 8192
**LVDS1** connected 1366x768+1360+0 (normal left inverted right x axis y axis) 270mm x 150mm
   1366x768       60.0*+
   1360x768       59.8     60.0
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9
**VGA1** connected 1360x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
   1360x768       60.0*+
   1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        72.8     75.0     66.7     60.0
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)

The names between the ** are the screen names. Take note of yours and change VGA1 in the above command for the name that apply to you.

You will need to issue this command just once, it will be remembered between reboots.


Open Compizconfig Settingsmanager.

Go to Accessibility / Enhanced Zoom Desktop.

Click on the "Disabled" titled Button of Zoom in, click on enable, grab key combination and press ctrl+f7. Do the same for Zoom out, and you are set. Screenshot:enter image description here


Bad sectors on a drive and partial slow speeds after reformat

Likely you reformatted on MegaByte boundaries. Re-reformat on cylinder boundaries for better speed.

The cylinder is a physical stack of all the same-numbered sectors (slices) across all platters (visualize a stack of pies, all with the same sized slices,, all lined up).

A MegaByte (MB) boundary does not physically align with the slices, and although using MB boundaries on an SSD is OK, if slows things down on an HDD.

GParted makes setting this up easier and here is an illustration.


user in plugdev group; are your udev rules wrong or error: insufficient permissions for device: udev requires plugdev group membership?

Answer: you need create sudo /etc/udev/rules.d/51-android.rules file as root privilege, then use sudo chmod a+r /etc/udev/rules.d/51-android.rules change privilege of this file. Add rule into this file, check Solution 3 know how to make a rule.


Remove double slashes from several strings with sed (current idea not working)

I don't know if it's important to mention, but there are several spaces in front of those results. Probably not, but I thought I would mention this anyways.

It is extremely important - if you use ^ to anchor your match pattern to the start of the string. In particular:

^//recursion will only match exactly at the start
^//[ \t]recursion will only match when // is exactly at the start and there is exactly one space or tab character after
^//[\t]recursion will only match when // is exactly at the start and followed by exactly one tab

In addition, you seem confused about what * means in a regular expression (as distinct from a shell glob - or wildcard) - in regex, it's a quantifier meaning zero or more of the preceding expression.

Assuming the whitespace comes before the //, what I'd probably do is something like

sed -E '\:[ \t]*//recursion|listen-on: s://::' named.conf

Breaking it down

\:^[ \t]*//recursion|listen-on: match zero or more spaces-or-tabs followed by // then recursion or listen-on
s://:: substitute // by nothing only on matching lines

I used : as a delimiter in place of the default / to avoid confusion with the pattern string, and removed the -i for testing. -E enables extended matching which makes | mean or.

If you need to allow for arbitrary whitespace on both sides of the //, you can change the match expression to

\:^[ \t]*//[ \t]*(recursion|listen-on):

You can also use [[:blank:]] in place of [ \t] if you prefer (or even [[:space:]] which also includes vertical whitespace - the distinction is moot in this context since you are processing one line at a time).

With awk, things are slightly different - at least if you use the default field separator. In that case, awk strips off leading whitespace, so you can anchor the // to the start of the first field:

awk '$1 ~ /\/\/recursion/ {sub(/\/\//,"",$1)} 1'

Note that only GNU awk provides an in-place editing option. In awk, you could also consider using fixed string matching like

'$1 == "//recursion" || $1 == "//listen-on"

Also note that these methods will both strip leading whitespace from the output.


Workspace Switcher does not highlight active workspace

This is a known bug affecting the Radiance and Ambiance themes on gnome-fallback-session on 11.10.

Fix

Press Alt+F2, type

gksudo gedit /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css
The first line will say: /* Fallback Mode Panel */
Add the following 4 lines after it:

*:selected {
background-color: @selected_bg_color;
color: @selected_color;
}

It will look like the following:

Do the same for the Radiance theme, with

gksudo gedit /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css
Logout and log back in.

Result

Notice the active workspace is highlighted orange for Ambiance (color may vary for Radiance).
Couldn't find anything about showing icons for maximized applications, sorry.


provide_data doesn't send data when required_keys not satisfied (juju charm using services framework)

That is indeed a bug. I ran into it this week while rewriting a charm using the Services framework. I'm working on a fix for it, but in the meantime, I do have a workaround.

In the ServiceManager setup, pass the key=value that you want to send over the relation wire, and don't pass anything for the required_data relation.

def manage():
    manager = ServiceManager([
        {
            'service': 'example',
            'ports': [80],  # ports to after start
            'provided_data': [
                RabbitMQRelation(username='example', vhost='/')
            ],
            'required_data': [
               RabbitMQRelation(),
            ],
            'data_ready': [
                configure_rabbitmq,
            ],
            'data_lost': [
            ],
        },
    ])
    manager.manage()

The Relation class basically short-circuits the required_keys by only setting it if there's no provided data to handle.

class RabbitMQRelation(helpers.RelationContext):
    name = 'amqp'
    interface = 'rabbitmq'

    vhost = None
    username = None
    required_keys = []

    def __init__(self, username=None, vhost=None):
        """
        This works around a bug with the RelationContext class that expects
        the required keys to be set before it will call provide_data.
        """
        if username and vhost:
            self.username = username
            self.vhost = vhost
        else:
            self.required_keys = ['private-address', 'hostname', 'password']

        super(RabbitMQRelation, self).__init__(self.name)


Use MongoDB and PyMongo inside an PyGTK app

When you package your application, You'll have to say what extra programs (Dependencies) are needed by you application.

So then when a user installs you program it will check whether all the dependencies are met or not, if not then it will auto install the dependencies.

Here is a guide: https://wiki.ubuntu.com/PackagingGuide/Python

I've not used quickly, but i think the idea should be the same in quickly.


Rocky Release using Ubuntu 18.04 with netplan

Here is a sample netplan config I am using:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
      dhcp6: no
# When using bridging move this block to the bridge definition or it wont work... dont really kno why
#      addresses: [192.168.2.22/24]
#      gateway4: 192.168.2.1
#      nameservers:
#              addresses: [8.8.8.8,8.8.4.4]
  bridges:
    br0:
      addresses: [192.168.2.22/24]
      gateway4: 192.168.2.1
      nameservers:
              addresses: [8.8.8.8,8.8.4.4]
      parameters:
              stp: false
              forward-delay: 0
      interfaces: [eno1]

Once you have the file set-up you need to apply it:

# netplan apply


How to configure Apache 2.4.7 on Ubuntu 14.04 64 bit desktop for php development

Simply use htaccess file to generate symbolic links. By default it doesn't work with default settings so you need to edit httpd.conf. As far as I remember it was some settings about FollowSymLinks that needs to be altered.


USB external hard drive not detected on startup

Use blkid to find the UUID of your device.

sudo blkid | grep ntfs

Then change your mount command into something like this:

sudo mount -t ntfs -o nls=utf8,umask=0222 -U 123e4567-e89b-12d3-a456-426655440000 /media/storage

just replace the 123e4567-e89b-12d3-a456-426655440000 part with your device's UUID.

Also, consider saving it to fstab instead of using mount command directly.


How to enable Intel Display Controller instead of NVIDIA?

Go to System Settings > Software & Updates > Additional Drivers
Here you may have the list of additional drivers - for example drivers of graphic card. Select nouvea and Apply changes.

Edit: Oh, Iam sorry, I readed wrong your post, this wont work


How to mount EXT4 drives from another system

There is no way to unambiguously define a partition as ext4fs vs. ext2fs in the partition table, so there is no partition table error that can explain this problem. I recommend you look at your /etc/fstab file. There may be an entry in there that misidentifies the filesystem type; or if there's no /etc/fstab entry for the problem volume, you can create one that explicitly identifies it as ext4fs.


USB tethered connection via Nexus One not showing on NetworkManager

It seems to be a problem with the Ubuntu kernel 2.6.35. I have installed the 2.6.36 and 38 kernels from Ubuntu mainline kernel PPA and then there is no problem, thing is I would like to use this kernel since the wireless backport drivers seem to give me less issues. I may have to boot the kernel for the application, 2.6.38 if I'm on the road and 2.6.35 if I'm in the office. Hope this helps you though:

http://kernel.ubuntu.com/~kernel-ppa/mainline/

Download and install the version you want, Google "mainline kernel howto" if you are struggling.


Can I edit the Amnesia and Psychonauts launchers to run Bumblebee?

Fortunately this is easy...

I assume that you have the Alacarte Menu Editor installed.

If not, please go to the Ubuntu Software Center and search for:

  Alacarte

First you go to the dash and type:

  Alacarte

Click to open and go to Games
Look here for Amenesia and/or Psychonauts.
Double click on the name.
You should see a new window popping up where you can edit the launcher to your needs.
You should see a line of text like this:

  /home/***/.apps/Bastion/Bastion/Bastion.bin.x86_64

edit the command so it will use you Nvidia card.

  optirun /home/ivo/.apps/Bastion/Bastion/Bastion.bin.x86_64

click close and close the menu editor

Start your game and have fun!


Network disabled after update kernel to 3.13.0-77-generic on ubuntu 14.04.1

Hi I had the same problem (I guess), after update kernel my network was disabled (ethernet and wifi).

I was on Ubuntu 14.04 LTS.

When I went to the network panel I got something like this:

  network services are not compatible with this version

I solved by re-installing this package

https://www.dropbox.com/sh/imqtsqw6iwjzbti/AABdywvaxU5Y2aIzGVHUg7Nma?dl=0

I got this link from ubuntu italian forum.

create a folder

Create new folder for example abc that contains those package
cd/abc
sudo dpkg -i *.deb

Reboot the system. It worked for me, let me know.


Ubuntu 18.04 LTS: The client area of window of some apps is black while starting

The reason is the old global app menu extension. I removed one and installed latest version from https://gitlab.com/lestcape/Gnome-Global-AppMenu. This made things work.


How to install new tmux 1.8 on Ubuntu 12.10 or 12.04?

Here is the way I did it on Ubuntu 13.04 (Raring Ringtail) and 14.04 (Trusty Tahr):

sudo add-apt-repository ppa:pi-rho/dev (source)

sudo apt-get update (freshens the cache/database of packages)

sudo apt-cache show tmux (*optional, shows you available versions, 1.7 & 1.8 should be listed)

sudo apt-get install tmux

tmux -V


Why partition is not showing, sudo fdisk - l

The answer to your question is in the first output that fdisk produced:

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Your disk uses the GUID Partition Table (GPT), which the version of fdisk you're using doesn't support. You must use GParted, parted, gdisk, or some other GPT-aware tool to partition the disk, not fdisk. (The latest versions of fdisk do support GPT, but they don't yet ship with Ubuntu.)


mysql installation stuck on Ubuntu 16.04 (no root user privilege)

An easy solution is to sudo killall mysqld while the apt-get operation is running.

The apt operation just kept on running without any errors after that(!)

Source: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1596815


Has the Emerald window decorator been abandoned in terms of development?

The code is open-source and thus this means anyone including yourself are able to grab the source, edit it and preferably handback changes.

Looking at the log of emerald, the last substantial change was in 2011 - so, no it is not "actively" maintained.

But as you can see, there was a commit just 7 days ago to fix a compile issue.

http://cgit.compiz.org/fusion/decorators/emerald/

Compiz decorators have not greatly changed for a number of years - until Ubuntu 14.04 which has completely replaced the standard GTK decorator with its more forward looking GTK3 themeable variant.

Thus - you should be able to take the source and compile and install it - I've answered a how-to for Ubuntu 13.04.  This should in theory work for 13.10.

How to compile & install Emerald window manager in Ubuntu 13.04 64bit?

As with any legacy code - yes there will be quirks and incompatibilities - it just needs people to give the code a bit of love and attention to iron out any issues.


how to configure squid to use ssh tunnel for external sites?

Could you clarify if you want to use your EC2 instance as an additional gateway, so for example something like this:

client -> somepage.domain1.com -> lan squid -> lan internet
client -> somepage.domain2.com -> lan squid -> ec2 -> internet

Is that what you mean?  If so, I'd first caution that you'll be charged for network traffic for anything leaving your EC2 instance - and that could get costly.

I think what you might be interested in is setting up a squid cache_peer.  Take a look at this document on the subject

https://wiki.squid-cache.org/Features/CacheHierarchy


apt update message : /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist - invalid file name extension

There was an update for the unattended-upgrades package on November, 17th / 2016, which might have caused this problem, because this file did not exist before. The correct and relevant /etc/apt/apt.conf.d/20auto-upgrades file is still in place. To get rid of the message, remove the file by running this command : sudo rm /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist

Here is the correct content of the /etc/apt/apt.conf.d folder, you can check it by executing :

ls -l /etc/apt/apt.conf.d
total 60
-rw-r--r-- 1 root root   49 Okt 13 15:38 00aptitude
-rw-r--r-- 1 root root   40 Okt 13 15:37 00trustcdrom
-rw-r--r-- 1 root root  769 Okt  4 19:43 01autoremove
-r--r--r-- 1 root root 3160 Nov 10 10:19 01autoremove-kernels
-rw-r--r-- 1 root root   42 Okt  4 19:43 01-vendor-ubuntu
-rw-r--r-- 1 root root  168 Okt 13 16:09 10periodic
-rw-r--r-- 1 root root  108 Jul 12  2013 15update-stamp
-rw-r--r-- 1 root root   85 Jul 12  2013 20archive
-rw-r--r-- 1 root root  168 Okt 13 16:09 20auto-upgrades
-rw-r--r-- 1 root root  243 Dez 16  2009 20dbus
-rw-r--r-- 1 root root 1040 Mai 19  2016 20packagekit
-rw-r--r-- 1 root root 1438 Sep 16 13:16 50appstream
-rw-r--r-- 1 root root 2554 Nov 18 07:26 50unattended-upgrades
-rw-r--r-- 1 root root  182 Apr 27  2016 70debconf
-rw-r--r-- 1 root root  305 Jul 12 00:02 99update-notifier

This is the output after removing the invalid file and upgrading the Ubuntu 16.10 system today.

Update : I tested whether this was a single exceptional issue on another machine which runs the same system and no, it is showing the same behavior, so most probably it is the package update.


-d is for development releases. Do not put that command-line [option] in the command.

If you want a fresh and stable 18.04 simply type:

sudo do-release-upgrade

Now press enter


Is there a simple, plaintext, lightweight hosted web-based text editor?

http://gpl.internetconnection.net/vi/

It is online clone of popular VI editor that should run in most javascript enabled browsers. It's called jsvi, and now you can write your own programs and HTML code from anywhere!

On a more serious note, the Vi simulator works with nearly all the traditional keys and substitution commands, and you can copy/paste from the clipboard. It also includes a built-in spell checker for those long-night moments when you've stared a word for too long and can no longer remember how to spell it. Does that happen to other people, or is it just us?

if you want more chechout this link
http://www.catswhocode.com/blog/10-useful-online-code-editors


apt install g++-10 installs clang-10 instead of g++-10

The issue here is that the default Ubuntu 18.04 repositories don't contain g++-10 (but do contain clang-10)
On 18.04, if apt fails to match an exact package name, it expands the name as a regular expression1. In this context, the + character means "one or more of the preceding character" so g++-10 matches clang-10 (it's just coincidental that they're both compilers).
If you want gcc-10 / g++-10 on 18.04 you can do so by adding the toolchain-r PPA to your repositories:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt install g++-10

See also

How do I use the latest GCC on Ubuntu?

Notes:

it no longer does that - see for example Problem using wildcard with apt


How do I get my files from my Windows machine to my Ubuntu web server for development?

Here's an Apache feature I found recently: the "userdir" module.

If I'm not mistaken, you can enable it by executing in the terminal:

sudo a2enmod userdir
sudo service apache2 restart

After this, if you create a folder named public_html inside your home folder, that folder will be "included" in Apache (your 2nd possible solution).
The URL to access the content in that folder from the browser is of the type http://YOUR_SERVER_ADDRESS/~YOUR_USERNAME/.

Example: localhost/~ubuntu/ if your username is ubuntu.

By default, only static HTML files can be used, PHP scripts can not be used for security reasons. To enable PHP processing when using userdir:

Edit /etc/apache2/mods-available/php5.conf and comment out the line php_admin_value engine Off by putting a # before it. See below:

sudo nano /etc/apache2/mods-available/php5.conf

<IfModule mod_userdir.c>
  <Directory /home/*/public_html>
    #php_admin_value engine Off
  </Directory>
</IfModule>

Reload apache2 using

sudo /etc/init.d/apache2 reload

and test your PHP code in the userdir directory.

If you get a permission denied error (or similar) in the browser, make sure that the www-data user (I think that's the correct name) can access that folder and the files inside.
That means your home folder must have execute (x) permission for the others (o), and that the public_html folder must have read (r) and write permissions for the others.

You should then be able to share the public_html folder with the network without problems.


Using Ubuntu One for managing dotfiles seems like an overkill. I prefer using Git (or any other version control system) to synchronize configuration between multiple machines. Thanks to this I can maintain the full history of changes, merge overlapping modifications easily, and get all the power that comes with version control when needed.

PS. If you like you can take a look at my dotfiles.


Is it worth paying for Crossover Games or Cedega?

Paying for CrossOver Games can save you some hassle and support the Wine project.

CrossOver is the commercial sponsor of the Wine project. It builds upon its technology to provide user-friendly compatibility for Windows games.

Cedega is TransGaming's product which was derived from Wine many years ago and has parted its way with Wine long ago. They do not contribute to Wine and their codebase lacks a lot of the features that Wine and CrossOver have currently. I have noticed that as of sometime Cedega has stalled and they forecast on their Mac solution but I may be wrong.

So all in all - I would say that using Wine or CrossOver Games will give you better results than Cedega and if you opt for CrossOver you will not only help yourself but the Wine project.


How is it possible to install VMware tools on a guest, without host access?

Use sudo apt-get install open-vm-tools (for a guest running Ubuntu Server) or sudo apt-get install open-vm-tools-desktop (for a guest running Ubuntu Desktop).

VMware recommends using open-vm-tools instead of the proprietary distribution.


20.04 - fixing recursive fault but reboot is needed

There are many posts out there with similar questions.
I recall once having a problem (possibly the same) and solving with a change in GRUB:
Edit the default boot line (GRUB_CMDLINE_LINUX_DEFAULT) in /etc/default/grub, adding acpi=off nomodeset xforcevesa.
Then
$ sudo update-grub
$ sudo shutdown -r

Possibly related:
https://unix.stackexchange.com/questions/412075/fixing-recursive-fault-but-reboot-is-needed-on-x3850-x6-sles12
(emulex card driver upgrade is posted as the solution)
Error "fixing recursive fault but reboot is needed"


Cannnot enter console mode on Ubuntu 18.04.03 LTS tty2

Some of the devices have different combinations of Keys to enter to the console mode.

As mine is

  Alt + Fn+ Ctrl+ F5

Try combining different keys, and try mine one too.


I don't know how it is done in LAMP, but a pure Apache setup has a user group called www-data with write permission into /var/www.

To achieve the same result, follow these steps:

Create the group www-data, if not already existent (check with grep www-data /etc/group):

groupadd www-data
Transfer group ownership of /var/www to www-data, if not already done:

sudo chgrp www-data /var/www

Add your user to the www-data group:

sudo usermod -a -G www-data <username>

Fix permissions, if necessary (give full permission to group members):

sudo chmod g+rwx /var/www

Now you can access the directory without sudoing.


How to access /etc/ldap/slapd.conf file?

You can either, create it yourself (when you save the file any text editor will create it if it do not exist already) or you can add the configuration in the slapd.d directory. Any of them will do.


(initramfs) unable to find a live medium containing a live file system Toshiba

Try a newer release.  This problem, bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/817145 was present for me in 12.04, but not in 13.04.


Since you did not state, I will assume that you are installing Ubuntu 16.04 LTS with kernel 4.4 and you are trying to use the AMDGPU-Pro driver instead of the the AMDGPU open source driver which should load by default as it comes with the kernel.
If this is the case, I would reinstall Ubuntu.  Make sure that you are using the latest kernel.  Ubuntu 16.04.3 should be using kernel 4.10 if you have an earlier kernel you need to install the Hardware Enablement Stack (HWE) following these instructions.  After upgrading to the latest kernel reboot and check which driver is installed:

lspci -k | grep -EA2 'VGA|3D|Display'

This should indicate that the kernel driver in use is "amdgpu".
If it does not, then wait for a better answer, but if it does then you can proceed with installing the proprietary amdgpu-pro driver following the instructions from AMD.  (Note that the fglrx proprietary driver is not supported in Ubuntu 16.04)


ARM processors (Raspberry Pi) are not capable of running i386 or amd64 software packages which are designed for x86 processors (and NOT ARM processors or instruction sets).
Further, Steam does not have an ARM variant at the moment for you to install/use and only supports amd64 at the moment, from what I have found in my research.
So, Steam is not likely to function under an RPi environment, judging by its dependencies.
Similarly, most programs that Steam would install or depend upon need to be amd64 or i386 versions, which ARM will not be able to run. Therefore, Steam is not going to function on an RPi.  An RPi is also not capable of running resource wise most of the things on Steam either.


export DPJ_ROOT="$Home/dpjbin"
PATH+=":${DPJ_ROOT}/Implementation/bin"

PATH is already exported, so you don't have to do that.


Squid on Ubuntu 20.04 installation problem, acl command not found

The line you mentioned starting acl is configuration data, not a command.

According to the guide you were following, you need to open the file /etc/squid/squid.conf with a text editor, for example by running the command

sudo nano /etc/squid/squid.conf

And then add the line starting acl to that file, perhaps at the end, and perhaps with a comment to tell you what it is there for in future...

# give access permission
acl localnet src 192.168.0.15

After adding the new text, save the file and exit (the nano text editor has instructions for these actions at the bottom of the window). The guide says that you should then restart the squid service.

Previous steps in the guide also required editing that file, so if you didn't follow them you may need to backtrack and check the earlier steps to get everything working.


If you can use xbacklight, then you need to point the default control to intel_backlight.

Run

sudo -H gedit /usr/share/X11/xorg.conf.d/20-intel.conf

and paste this text to gedit:

Section "Device"
    Identifier "Card0"
    Driver "intel"
    Option "Backlight" "intel_backlight"
    BusID "PCI:0:2:0"
EndSection

then reboot.


The package p7zip you installed from Software Center contains a port of the command line utility included in the 7-Zip installer for Windows. It does not include any applications with a graphical user interface (GUI) like 7ZipFM.exe. Instead, it extends the functionality of the archive and extract tool (file-roller, page in Software Center) included in the default installation.

LZMA, LZMA2, XZ and RAR support

p7zip may only include support for the LZMA compression algorithm, not for LZMA2. For that you should install the xz-utils package from Software Center and set the output format to .xz or better .tar.xz or .txz to preserve file attributes.

For support of the .rar format you should install the unrar-free package from Software Center and run the program from terminal, as that seems to provide the best support for this particular format.

Change the default compression level

See: Set 7z compression level using GUI in Ubuntu

Please understand that questions and answers can only be asked and answered in English, but you may find helpful German support over at ubuntuusers.de.


Here's my solution:

Alt+F2 and type “gnome-disks”
In the "Disk Drives" list select the hard drive you want to change the automount point
In the "More actions..." button select "Edit Mount Options..."
Turn off the "Automatic Mount Options"
In the "Mount Point" entry, write the new mount point you wish for the disk, for example /media/Data
In the "Identify As" entry select /dev/disk/by-label/Data (where Data is the disk's label)
Click "Ok"
Unplug and plug the external drive again, it should be mounted to the new mount point, in this case: /media/Data


Why Exaile can not read my music folder with special chars?

UPDATED
I've done a test and the musics in the directory previously added to the library appear after you quit the application and restarted it. A system reboot is not nedded.

First answer was: After a system reboot, it just worked. I don't know how to explain what happened.


Go to Preferences in VLC. Click on All in Show settings in the bottom.

Go to Control interface under Interface and uncheck the option next to D-Bus control interface and save the changes.


1 nic, looking for 2 external ip address's

You must create an alias for ethernet card.

To create an alias for eth0 you must use ifconfig command. It is use to configure a network interface and aliases.

Example: assuming that your eth0 IP is 10.160.1.10 and you would like to create an alias eth0:1 with IP 10.160.1.11

Open a terminal, and type the following commands:

sudo su
ifconfig eth0:0 10.160.1.11 up

Your ethernet configuration is located in a file called /etc/network/interfaces.

If you reboot system you will lost your alias.

To make it permanent you need to add it network configuration file:

sudo su
nano /etc/network/interfaces

Append the following configuration:

auto eth0:1
iface eth0:1 inet static
address 10.160.1.11
netmask 255.255.255.0
broadcast 10.160.1.255
network 10.160.1.0

Control + O, save file. Control + X, close nano.

Note: If you want more network aliases, use eth0:2, eth0:3, eth0:4, etc.(max upto 254)


Upgraded to 16.04, "The system is running in low graphics mode", and Windows is missing from grub

Ubuntu 16.04+ removed FGRLX packages. "amdgpu" and the opensource "radeon" drivers are the currently default installed kernel drivers. I'd suggest upgrading the kernel first, to 4.8+. To install the 16.10 kernel, use this:

sudo apt-get install --install-recommends linux-image-generic-hwe-16.04 xserver-xorg-hwe-16.04

Note: this will update your 16.04.1 installation to 16.04.2, and enable HWE. Kernel 4.8 will also be installed.

If this doesn't work, I'd suggest manually installing a newer mainline kernel.
http://kernel.ubuntu.com/~kernel-ppa/mainline/


"Syntax error: Unterminated quoted string"

The line with

DROPBOX="/root/Dropbox/Backups

does not have a " at the end.

The MYSQL, MYSQLDUMP and GZIP variables refer to the programs used to execute various commands. So they should contain the path of those programs:

MYSQL="/usr/bin/mysql"
MYSQLDUMP="/usr/bin/mysqldump"
GZIP="/bin/gzip"

You can use the output of which <program name> to see what to put there:

$ which mysql
/usr/bin/msql
$ which gzip
/bin/gzip


Does linux filesystem support fast file searching /indexing?

Run sudo updatedb and locate [ filename or part ]
updatedb updates the index database.
If you want to locate a program, run whereis [ program name ]


HUGE PROBLEM! Can't log in to Ubuntu 14.04 after upgrade to 15.10, stuck at login screen

Reboot. Try to boot into the recovery system from grub. When it comes up, or anything with a CLI, do (as root) a apt-get -f install. Let the update process finish, you can make sure with apt update && apt full-upgrade that no error messages remain.

Your system should be in a usable state then, this happens more often than I like.


How can I change some of the system sounds?

As far as I'm aware, themes are still in the works. While you can select a theme in the sound settings, you can't create or install any new ones. If you still really want to change the sounds, replace the corresponding files in /usr/share/sounds/ubuntu/stereo.


How to add and play extracted youtube files on rhythmbox?

It is because Rhythmbox is music player. Try to open video files in "Video" application or install other videoplayers in Software Manager

For example, to install VLC player, execute next coomand in terminal:

sudo aptitude install vlc


No microphone available (Dell XPS 13 Developer Edition)

I am using Xfce, when I encounter similar problem I execute alsactl init to init the device to make it normal.May be you can try it.


You can format the output using the '+FORMAT' parameter, e.g.

touch "log$(date +'%m%d%y')"

See the manpage for what sequences you can use in FORMAT.


How to add your own color scheme to notepadqq

You can add CSS themes into the directory:

/usr/share/notepadqq/editor/libs/codemirror/theme

All the themes are stored in there (Except the Deafult, which can be found at /usr/share/notepadqq/editor/libs/codemirror/lib/codemirror.css). The syntax seems relatively simple if you wanted to create your own.

If anyone knows where I can find a Notepad++ 'Default Theme' replica, I'd be forever gratefull :D


Let's compare the output of apt show PACKAGENAME for the two packages. I'm not showing the full output here, just some relevant parts:

$ apt show libdianewcanvas2 libdianewcanvas2-dev

Package: libdianewcanvas2
Version: 0.6.10-5.4
[...]
Description: a gtk+2 vectorial canvas with extra features
 Dia-newcanvas is a gtk+2 vectorial widget that has got extra features as
 compared to GNOME canvas:
 .
    [...]

Package: libdianewcanvas2-dev
Version: 0.6.10-5.4
[...]
Description: a gtk+2 vectorial canvas with extra features
 Dia-newcanvas is a gtk+2 vectorial widget that has got extra features as
 compared to GNOME canvas:
 .
    [...]
 .
 This package contains the header files and static library needed for
 development of programs using dia-newcanvas.

The difference here is **This package contains the header files and static library needed for development of programs using dia-newcanvas.** and actually that is exactly what describes most *-dev packages.

To sum up, you normally only need *-dev packages to develop your own applications based on the libraries a package provides. Other than that, I see no use case where you would want to install one manually. Of course it could also always happen that some other packages you install have *-dev packages as dependency so that it ill get automatically installed.


Creating an .sh (same as .exe in Windows) file would do. You can make it executable by this command:
chmod +x nameofscript.sh

You may have a look at this one as well which elaborates a bit more.


Multiple background scripts in one command

The right syntax is

python script1.py & python script2.py & python script3.py &

My reference is man bash in the Lists section:

Lists
   A list is a sequence of one or more pipelines separated by one of the
   operators ;, &, &&, or ||, and optionally terminated by one of ;, &, or <newline>.

[...]

   If  a  command is terminated by the control operator &, the shell executes
   the command in the background in a subshell. The shell does not wait for
   the command to finish, and the return status is 0.


HTML5 multi touch events from touch screen

There is actually jQuery Mobile (http://jquerymobile.com/) a plugin for the jQuery JavaScript Framework, which offers touch events and gestures support for all devices.

Also check out http://www.jqmgallery.com/ to see some real life applications which are built with jQuery Mobile. ( in most cases you can spy on the source files for advanced real life examples)


How do you install the Ubuntu Touch Coreapps?

Information acquired from LinuxG.net

To install and test the Ubuntu Touch Core Apps on Ubuntu 14.04 Trusty Tahr and Ubuntu 14.10 Utopic Unicorn

First off you must add two PPAs. Open a terminal window (ctrl + alt + t) and enter the following:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa

sudo add-apt-repository ppa:ubuntu-touch-coreapps-drivers/daily

sudo apt-get update

From here you have two options.

Install the entire touch-coreapps package.
Install certain applications only.

To install the entire pack:

sudo apt-get install ubuntu-sdk touch-coreapps

To install only certain applications, replace touch-coreapps with the name of the application(s) you wish to install.

e.g. 1 sudo apt-get install ubuntu-sdk ubuntu-calculator-app

e.g. 2 sudo apt-get install ubuntu-sdk calendar-app music-app sudoku-app

A list of the available applications:

ubuntu-calculator-app
calendar-app
ubuntu-clock-app
ubuntu-weather-app
ubuntu-docviewer-app
ubuntu-emailclient-app (not working yet)
ubuntu-filemanager-app
ubuntu-rssreader-app
ubuntu-terminal-app
stock-ticker-mobile-app
dropping-letters
sudoku-app
music-app


Yes, you can completely replace Win10 (actually it would be easier than dual-booting), but before you completely jump ship, I suggest you try running off of a live USB or DVD to make sure that all the hardware in your computer works under Linux.

In particular, the touchscreen and automatic screen rotation when the display is rotated may or may not work. I would also check to make sure the battery doesn't drain way faster than it should. (The kernel can sometimes force the CPU to run at the highest frequency even when it isn't needed)

But that way, you can try it without making any changes whatsoever to your computer.

Also, keep in mind that Windows software will not run natively in Linux. There is a lot of software for Linux, though. For example, Google Chrome is available for Linux, as well as Libreoffice (a free alternative to MS office). There is a compatibility layer called WINE that will allow you to run some Windows software, but it is quite buggy and not a great experience.

Assuming that you're not a power user though, and you mostly just use the web browser and email, you shouldn't have any problem with finding Linux software.

Overall though, if you're OK with not being able to run Windows software, I think you will find that Linux is a lot more stable than Widnows. You don't have to reboot once a week. Some servers can even run for years before they are rebooted, and even then only rebooted to apply critical security patches.

As an added bonus - you don't really need antivirus for Linux :)

(Sure, there is Linux malware, but any software you install through apt is scanned and is basically guaranteed to be safe, and you could always audit the source code if you wanted :D)


I had a similar problem with my Canon Pixma MG3620; Simple Scan doesn't find the scanner.  I was able to scan using the terminal and typing in "scangearmp".


Other programs from software and updates

TL;DR
This question is vague and some kind of multi-variant.
Details
Better tool to determine the actual solution is Synaptic Package Manager which is installable by sudo apt-get install synaptic. Here you can navigate to Origin tab and then sort list by clicking on PPA/repository name and then S (status) in the listing.
For example below is the screenshot from my daily driver system:

The above screenshot tells us that there are packages installed (they have green rectangle in the list) from flatpak PPA. So removal of the PPA will transform its packages to obsolete or locally installed. This is not recommended.
Other PPAs like LibreOffice should be removed with their packages. The special application named ppa-purge should be used in this case. This will lead to downgrade of the LibreOffice to the version from official repository.
It is safe to remove the PPA which does not have any packages installed.
Analysis of your list

dl.google.com/linux/chrome is needed to have auto-upgrade of Google Chrome, thus should not removed;
bookworm is not officially packaged for 20.10, thus PPA should not removed;
elementary-os PPA is needed for styling, thus PPA should not removed;
fingerprint PPA is needed for fingerprint scanner, thus PPA should not removed;


I managed to solve this myself.

I downloaded a new driver from HP's website http://hplipopensource.com/hplip-web/index.html. This solved the problem.


Missing shorcuts newly installed applications Xubuntu 14.04

Solved.

sudo apt-get update
sudo apt-get upgrade

Miraculously solved my problem.


Error while trying to install Ubuntu on my PC

verify that you've downloaded the good ISO file and correctly(finished download). Check if you have a good usb drive. I hope this helps. Don't forget to download the correct ISO for your system. Either 32bits or 64bits


Play youtube videos in vlc in 1080p quality

You should try SMPlayer (it supports DASH via mpv, via youtube-dl).


Why does the wifi icon not appear on the taskbar in Lubuntu 14?

I had the same question when I did a fresh install of Lubuntu 14.04.  Go to Menu->Preferences->Default applications for LXSessions.  Navigate to Core Applications and then to Network GUI.  Type in nm-applet and then hit reload.


How do you add execute permissions to a USB Flash Drive?

With the USB drive mounted, type mount in a terminal window. Find the line referring to your USB drive. On my Ubuntu 14.04.4, and with a DIFFERENT USB drive, the line I found is:

/dev/sdc1 on /media/w3/ADATA UFD type vfat (rw,nosuid,nodev,uid=1003,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
#^device     ^mountpoint              ^filesystemtype     ^options

Note: You will NOT see the same values, but the ones your system tells you are the right ones.

Now it's time to read and re-read man 8 mount and decide which options you need to change, then do (adjusted for your options, device name, mount point):

# no changes
OPTIONS="rw,nosuid,nodev,uid=1003,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2"
sudo mount /dev/sdc1 -t vfat -o remount,$OPTIONS /media/w3/ADATA\ UFD


Error for Phpldapadmin after install in php function

The programmer who wrote PhpLdapAdmin seems to have used a PHP function called create_function. That function is deprecated as of PHP 7.2, which is the version of PHP that comes with Ubuntu 18.04.

If something is "deprecated", it means that it will be removed in a later version. You can imagine it as a heads-up, like "as of now, create_function() is still available, but we plan to remove it in a later version of PHP".

What you're seeing is a deprecation notice, not necessarily an error. If PhpLdapAdmin isn't working properly, there's probably something else wrong as well. But because according to Wikipedia the last release of PhpLdapAdmin is already six years old, I'd strongly recommend to look for a replacement.


How do I stop displaying "warranties" notice when logging in on tty1 console

The text you are looking for is inside

/etc/legal

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Before you start editing this: as far as I know this is shown ONCE per user logging in.  When there is a file

~/.cache/motd.legal-displayed

it will NOT be shown. So just create that and it will be gone. Easiest method is to execute this command:

touch ~/.cache/motd.legal-displayed

If you want to add your own messages you can add a file to

/etc/update-motd/

Currently it will hold:

00-header     90-updates-available  98-fsck-at-reboot
10-help-text  91-release-upgrade    98-reboot-required

The file names are executed in alphabetical order and their name sort of states what it shows. 00-header is the "Welcome..." text. 10-help-text shows the URL to the Ubuntu documentation etc.


Writing a script to automatically run against consecutive variables


iptables-restore failing to load my rules

It's because that file is not in the expected format. You should add your rules manually the first time, then use iptables-save to get a file in the expected format.

However it's quite simple to "mimic" the format that iptables-restore expects.

Add a line with just *filter at the top of the file.

Add a line with just COMMIT at the bottom.

So you end up looking like this:

*filter

# Allows SMTP access
-A INPUT -p tcp --dport 25 -j ACCEPT

# Allows pop and pops connections
-A INPUT -p tcp --dport 110 -j ACCEPT
-A INPUT -p tcp --dport 995 -j ACCEPT

# Allows imap and imaps connections
-A INPUT -p tcp --dport 143 -j ACCEPT
-A INPUT -p tcp --dport 993 -j ACCEPT

COMMIT

There's a few other snippets it should have too but that should make it work. After doing this, you can use iptables-save >filename to get the fully correctly formatted save file into filename.

Note that if you do use iptables-save your comments in the file will be lost (it will replace the entire file with its own similar formatted one).


How do I disable the PCI wifi and use only a USB wifi card?

You ran the terminal command:

lspci -nnk

You found your wireless device:

  Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b]

We search for the device ID 168c:002b and find, among others: https://wikidevi.com/wiki/Arcadyan_WN7811A

It reports:

  Probable Linux driver ath9k

You can verify that this is the module that is loaded with:

lsmod | grep ath

If so, let's unload and blacklist the driver:

sudo -i
modprobe -r ath9k
echo "blacklist ath9k"  >>  /etc/modprobe.d/blacklist.conf
exit

You should be all set.


Edit: Since writing this answer, some things have changed in overlayfs, namely the addition of a required parameter workdir, see totti's answer below for a detailed description of this new parameter.

I finally managed to find it. I found references to it in the kernel source, but for some reason it doesn't appear in the git tree on kernel.org. But! If you pull the Ubuntu kernel source like this: apt-get source linux-image-3.0.0-16-generic you can find it in linux-3.0.0/Documentation/overlayfs.txt.  It is also available in the linux-doc package in /usr/share/doc/linux-doc/filesystems/overlayfs.txt.gz.

As the actual help documentation is more of a "how it works" instead of a "how to mount with it," here's a brief rundown (there is one example in the kernel documentation):

mount -t overlayfs -o [mount options] overlayfs [mountpoint for merged system]

Where [mount options] can be:

lowerdir=somedir: lowerdir is the directory you're going to lay your new filesystem over, if there are duplicates these get overwritten by (actually, hidden in favor of) upperdir's version
upperdir=somedir: upperdir is the directory you want to overlay lowerdir with. If duplicate filenames exist in lowerdir and upperdir, upperdir's version takes precedence.
standard mount options. The only one I've seen from code is ro/rw, but you can experiment.

One thing that confused me at first, so I should probably clarify, is that mounting an overlayfs does not actually mount a filesystem. I was trying to mount a squashfs filesystem using an overlayfs mount, but that's not how it works. You must first mount the (in my case squashfs) filesystem to an arbitrary directory, then use overlayfs to merge the mount point (a directory) and another directory onto a tertiary directory (the overlayfs mount point)(edit: this "tertiary" directory can actually be the upperdir= directory). The tertiary directory is where you will see the merged filesystems (or directory trees - it's flexible).

Example 1, overlaying the root filesystem

I've been working on an Ubuntu hybrid boot disk where the base Ubuntu system exists as filesystem.squashfs and I have files called ubuntu.overlay kubuntu.overlay xubuntu.overlay and lubuntu.overlay. The .overlay files are base installs of said systems with the contents of filesystem.squashfs pruned (to save space). Then I modified the init scripts to overlay the correct distro's .overlay file (from a boot parameter) using overlayfs and the above options and it works like a charm!

These are the lines that I used in my init scripts (once all variables are translated):

mkdir -p /overlay
mount -t squashfs /cdrom/casper/ubuntu.overlay /overlay
mount -t overlayfs -o lowerdir=/filesystem.squashfs,upperdir=/overlay overlayfs /

Note that filesystem.squashfs above is a directory created by casper, not a file.

These three statements create an /overlay directory, mount a squashfs filesystem on the /overlay directory and then use OverlayFS to essentially merge the contents of /overlay over /.

Example 2, transparent merging of two directories

In the process of re-building my live USB for each release, I use OverlayFS to save a bunch of time. I start off with a directory called ubuntu-base which contains the contents of the ubuntu-core image which is the most basic install. I will then create directories called ubuntu, kubuntu, lubuntu, and xubuntu.

Then, I use OverlayFS to make the files from the ubuntu-base show up in the individual directories. I would use something like this:

mount -t overlayfs -o lowerdir=ubuntu-base,upperdir=kubuntu overlayfs kubuntu

This makes the files from ubuntu-base show up in the kubuntu folder. Then, I can chroot to the kubuntu folder and do something like apt-get install kubuntu-desktop. Any changes that are made while in this OverlayFS mount will remain in the upper directory, in this case the kubuntu folder. Then, once I unmount the OverlayFS mount the files that really exist in ubuntu-base but are "mirrored" into the kubuntu folder vanish unless they have been changed. This keeps me from having to have multiple copies of the files in ubuntu-base while still being able to use them as if they physically exist in each location.


how to give WINE/ windows application access to privileged ports

Try this:

sudo apt-get install libcap2-bin

Then:

sudo setcap 'cap_net_bind_service=+ep' /usr/bin/wine

And try your game.


Answering my own question (thanks to link from Ravan) in case anyone else, like myself, has this bug and bangs their head into it.

Upon login to Unity, (Ubuntu 15.04) icons, top status bar, everything but the cursor vanish. On my system, the Guest login worked just fine. I only have my main login and GUEST on my system.

System is a very old HP Mini netbook with generic Intel GPU.

Suspect my user's Unity config got borked somehow. No recent installs or modifications on my part; I use the system for work.

Fix: using another system and a USB key, downloaded the Unity reset tool from first link here:

http://www.webupd8.org/2012/10/how-to-reset-compiz-and-unity-in-ubuntu.html

Plugged the USB key into the problem laptop while logged in as my essentially useless main profile.

Was able to install the DEB package using software center, which thankfully came up.

The big bonus I didn't notice at first - RIGHT-CLICK menu still works, so right-click and open Terminal that way, then issue the "unity-reset" command.

After a few moments, everything popped up. Config was reset, naturally, so the icons were HUGE. Also, the icons of installed programs were all missing, so I had to manually add things like Evolution Mail back to the launcher bar.

-Fin


How to have Ubuntu read the file in windows hard drive which became RAW?

Your disk has been marked as "raw" because the filesystem was corrupted for some reason (not ejecting, not shutting down, bad luck, whatever). You can likely repair the disk with a command line tool known as fsck. You may want to look at this U&L post, as well as here. You're going to want to boot into the live CD / USB drive and run fsck from a terminal. From man fsck:

fsck [-sAVRTMNP] [-C [fd]] [-t fstype] [filesys...] [--] [fs-specific-options]

What this means is you need to find the identifier of your disk (in your screenshot /dev/sda1, though you should check again with sudo fdisk -l to be sure, especially after reboots), and run the command:

sudo fsck -t NTFS  /dev/sda1

(replace NTFS with FAT32 if that was the format of the drive). If all goes well (which it may not), you should be able to mount the disk manually or reboot your computer and access the drive. If fsck has errors, edit your answer to include them as well.


Cannot restart, reboot, nor shutdown Ubuntu 11.04

Ctrl+Alt+Backspace will kill the X-server and bring you back to the log-on screen. You should be able to dismiss the session there using the shut-down / log-off / restart button.

If that fails to render the satisfaction of shutting down the machine then Ctrl+Alt+F1 which puts you directly into the shell-propmt.

sudo shutdown -h now

or to reboot Ctrl+Alt+Del


I had this problem and found the answer here: https://ubuntugenius.wordpress.com/2012/06/18/ubuntu-fix-add-program-to-list-of-applications-in-open-with-when-right-clicking-files-in-nautilus/ and http://www.walkingrandomly.com/?p=300 .

Summary: There should be a matlab.desktop file which tells Ubuntu how to handle opening the application. It should be in either /usr/share/applications or ~/.local/share/applications.
The fix is to add -r "edit %f" to the end of the "Exec" line in that file.

Mine looked like this

$ cat /usr/share/applications/matlab.desktop
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=matlab -desktop
Name=MATLAB
Icon=/usr/share/icons/hicolor/48x48/apps/matlab.png
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true
StartupWMClass=com-mathworks-util-PostVMInit

I just changed that file only in the Exec line to say

Exec=matlab -desktop -r "edit %f"

and it immediately appeared in the "Open With" menu.
For some reason, unlike other applications where you can just add "%f" to the end of the Exec line, MATLAB doesn't actually open that file to edit without specifically saying "run the command edit %f", which then edits the file you are right clicking to open.

https://ubuntuforums.org/showthread.php?t=794255 This explains with the extra %f means, as does What does “%U” mean when calling a command? this answer.
It basically just tells matlab to pass whatever you are right clicking to open as an argument to the matlab command.


I have the same problem, just did the same. Apparently even though on the ubuntu website Wubi is quite promoted as "click and play" - it's quite problematic. Some of the problems are due to the ntfs-3g driver which is, well, buggy. They have a commercial version of the driver (you know, $$) which works better.
To sum up, you'd need to install Ubuntu on a separate drive, with no ntfs partitions on it.


Unable to correctly format and boot certain USB drives

I've finally managed to install an operating system via USB.
I'm not sure, but it looked like to me the BIOS was too old for recognizing my 4Gig drives, fortunately it recognized 2 of my 1Gig drives, when I tried it.

I was able to make a bootable one with UNetbootin. Neither the Ubuntu system, or my softwares had problems. It is only the BIOS in old computers that might had something to do with it.

I hope my answer can help someone dealing with the same or similar.


On newer Ubuntu versions it was replaced with tesseract-ocr: https://wiki.ubuntuusers.de/tesseract-ocr/
For simple usage with a GUI, I recommend using gImageReader:
https://github.com/manisandro/gImageReader/releases
installation:
sudo add-apt-repository ppa:sandromani/gimagereader
sudo apt-get update
sudo apt-get install gimagereader tesseract-ocr tesseract-ocr-eng


How can I change the order of cycling windows in Unity launcher?

Those things are getting massive attention for 11.10, but in 11.04, that's not configurable and won't be fixed. Luckily, 11.10 is only a couple of months away :)


Ubuntu VM display not loading correctly on iMac 5k

Ok, I've found a workaround to this issue:

Once  that screen appears, hold the Host+F1 key (it should show the Ubuntu console), and then then the Host+F7 combination (goes back to the Ubuntu installation window). Before you do that just make sure you have the Function keys set to act as normal function keys on OSX.


How can I restore my previous Windows boot manager after using boot-repair?

In your EFI settings (occasionally mistakenly referred to as BIOS) change the default loader to Windows.


How to make multiple monitors work just like in Windows?

Hmm... here's screenshot of XFCE's display properties from my home system with two equal monitors. When I had Benq 24" and LG 19", there also weren't any problem for using two monitors with different resolutions. Left (primary) connected with HDMI, and secondary connected with DVI.

XFCE: 4.12,
Ubuntu: 14.04.2

(originally in Russian, I added English overlay)

May be something wrong with your video-card? I use built-in Intel video. It have 3 outputs - VGA, DVI and HDMI. I could detect 3 monitors (2 Benq and 1 LG), connected simultaneously, but could use only 2 of these 3.

Also, dpkg-reconfigure -phigh xserver-xorg may help to re-detect monitors' capabilities.


How to permanently mount password-protected samba share with workgroup

Change your ~/.smbcredentials

user=myUser
password=pass
domain=WORK

That's all ;)

The problem occurs when you use the user name and the domain name together.

And please revert the changes for ~/.smbcredentials

chmod o-rwx,-x ~/.smbcredentials


How to know who accessing my computer via ssh command remote in Ubuntu?

sshd logs all authorizations in /var/log/auth.log . You can check for logins by performing
grep sshd /var/log/auth.log. The output will look something the following:

Jun  5 13:56:06 computer-name sshd[1582]: Accepted password for user from 10.0.2.2 port 41341 ssh2

However, if you are sure that your system is compromised, these logs cannot be trusted. You need to change your password immediately, backup all data and reinstall the system. If an attacker managed to get root access (either because your user has sudo rights or through an exploit)  to the system neither the logs nor any executables (even system ones) can be trusted. The only thing left to do is to nuke it from orbit.


What should I do at "Installation Type" step in the Ubuntu installation?

Realizing this thread is a little dated, I came across it while seeking info on installing Ubuntu onto OS X and just wanted to close it up for the next person who might stumble across it.

To answer the question, know that when you get to the point in the process where you have to choose between overwriting your existing install (Windows or OS X), or "something else", choose "install over existing". The installer will advance to the next step and allow you to chose which partition or drive you wish to install Ubuntu onto.

I just went through this with my MacBook and was stumped for a moment, but then I realized that no installer is just going to wipe you're drive without asking at least twice to confirm it's something you really want to do.

Maybe in future installers they might include a small note "You will be able to select where you want to install Ubuntu on the next screen."

Hope this helps.


Do I need to fully update 12.10 before upgrading to 13.04? (Non-internet USB upgrade)

Unfortunately the offline upgrade path using an USB installation CD was discontinued and does not work for 13.04 any more. You will not be able to upgrade without a functional Internet connection.

  Offline upgrade options via alternate CDs are no longer offered for Ubuntu Desktop and Ubuntu Server. Please ensure you have network connectivity to one of the official mirrors or to a locally accessible mirror and follow the instructions above. Raring Ringail Release Notes

Also see: How can I perform an offline upgrade using Ubiquity on the installation disc?

Many packages may be upgraded from the CD/USB installation medium but some may not. This is even more an issue when you hold many broken packages.

We can not recommend you upgrade from an incomplete or malfunctioning system. The safest way to go now for you would be performing a clean installation of 13.04. Make extra sure to keep your HOME untouched when you do so.

  As always it is strongly recommended to backup your data before you perfom a release upgrade.


How to reboot using an updated kernel with kexec?

That method IS the fast way that does it on explicit request.  First you load the new kernel with kexec, and then you reboot and the modified script launches the new kernel instead of actually rebooting.  The actual launch needs done in the reboot script because you need to cleanly shutdown the system first.


Is it possible to add an option to the context menu in nautilus to open media in an existing VLC instance?

Your new edit at the question is good pointed. But I'll rephrase.
The submenu Scripts only appears in the right click on a file or directory in Nautilus once you have at least one script in the scripts directory. This script directory should be located in (if you don't have it, you should create it):

~/.local/share/nautilus/scripts - for versions of Nautilus >= 3.6
~/.gnome2/nautilus-scripts - for versions of Nautilus < 3.6

You can check your nautilus version from terminal using nautilus --version command.

Note: Once you place a script in your scripts directory, it's name will not necessarily appear in the scripts menu immediately. You might have to visit the scripts directory with Nautilus - which can be done using the last option in the scripts menu. Once the directory is visited, Nautilus will know about which scripts you have, and you will be able to use them.
Source: https://help.ubuntu.com/community/NautilusScriptsHowto

These being said, the following script should make the trick about you asked for your VLC:
#!/bin/bash

pid=$(pidof vlc)

## !!! if you want that only the last opened instance of vlc to be replaced
## in case you have many instances opened, uncomment next line (delete the hash mark from the front)
#pid=$(echo $pid | cut -d ' ' -f1)

if [ "$pid" != " " ]; then
    kill $pid
fi

vlc "$@"


How to find the mount point for a partition?

use /proc/mounts - it contains all the current mount information, so for /dev/sde1 use:

grep /dev/sde1 /proc/mounts


Ctrl+Shift+C not working to copy from terminal (either gnome terminal or roxterm)

Using xev I found out that the key combination wasn't sending any event at all. Doing some research on my computar model (MSI G72 6QD Dominator), I found out that this was due to a buggy Firmware.

I upgraded my firmware and the problem was fixed.


How to assign a shortcut key to send my system into hibernation?

Firstly, Hibernate will need to be enabled. Go into console and type

sudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla

In the new gedit window, copy-paste this in:

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

Save and close the file, reboot the computer, and then you have it available as a menu option. Assuming you're on a laptop, the fn + F11 shortcut should work afterwards as well, if this is a default option that came with the laptop (i.e. printed on the keyboard, etc.).


As Ravexina has suggested either of the desktop images will do for creating a live CD. The only difference would be is if you were installing Ubuntu on your hard drive which you are not as you are recovering data from it. You can then burn the image, mount the drive and copy the files onto an external disk following the rest of the instructions in the article.


compiz config effects having some problems on 12.10?

Unity is not really designed with heavy tweaking in mind, and the version of ships with Ubuntu is heavily patched. I used to modify compiz behavior quite a bit (adding a lot of customization to the tiling behavior + changes to window rules), but it now it breaks stuff pretty badly. It seems like the more compiz is patched (which it is extensively in every release cycle), the more things break when you change the settings. While I am a fan of Unity and enjoy using it very much, it is not a good option for those who would like to deeply modify window manager behavior.

This is one of the reasons there was debate in the last release cycle about removing CCSM from the software center entirely and moving it to a PPA only. Tweaking Canonicals version of Compiz simply breaks Unity, and is discouraged.

If you turn off the Unity plugin in Compiz, some of the other tweaks become more functional, but another distro would be more suited to getting classic compiz behavior. Unity and normal Compiz should be considered different window managers for all practical purposes.

It is also worth noting that the developer of Compiz is no longer working on it so he can focus on his studies and because he believes maintaining a compositing window manager is redundant with Wayland just around the corner. Not sure what Canonical will do after that, but I do recall that they were paying him to put the Compiz functionality required by Unity into plugins that could be ported to Wayland.

Things do not bode well for the future of wobbly windows under Compiz, though I'm sure someone will implement them in Wayland at some point (still having trouble figuring out why anyone would want to waste system resources and battery life on something like wobbly windows, but I'm sure you have your reasons).


Booting from USB HDD, GRUB2 fails to load(Black Screen) and no GRUB rescue

I just ran into this same problem installing 14.04 from a USB disk.  It didn't even get to Grub menu; after I selected to boot off the USB drive, the system just stayed on black screen with the hard drive activity LED indicator staying on.

Solution:
On the USB stick, navigate to and open in an editor the file /boot/grub/grub.cfg
Change the line

set gfxmode=auto

(line 2?)  to

set gfxmode=640x480;auto

Save file and Reboot


The Recently Used list you referring to is stored as an xml file ~/.local/share/recently-used.xbel. Following is an example

<?xml version="1.0" encoding="UTF-8"?>
<xbel version="1.0"
      xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"
      xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
>
  <bookmark href="file:///home/Usename/Firewall/fwbuilder.fwb" added="2012-11-07T04:33:55Z" modified="2012-12-20T05:31:26Z" visited="2012-11-07T04:33:55Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="application/octet-stream"/>
        <bookmark:applications>
          <bookmark:application name="fwbuilder" exec="&apos;fwbuilder %u&apos;" modified="2012-12-20T05:31:26Z" count="4"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>
  <bookmark href="file:///home/Usename/Desktop/limit_test.py" added="2012-12-16T04:48:29Z" modified="2012-12-16T06:02:28Z" visited="2012-12-16T04:48:30Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="text/x-python"/>
        <bookmark:groups>
          <bookmark:group>gedit</bookmark:group>
        </bookmark:groups>
        <bookmark:applications>
          <bookmark:application name="gedit" exec="&apos;gedit %u&apos;" modified="2012-12-16T06:02:28Z" count="16"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>
  <bookmark href="file:///home/Usename/Firewall/gateway.int.apple.com.fw" added="2012-12-20T05:32:03Z" modified="2012-12-20T05:35:25Z" visited="2012-12-20T05:32:03Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="application/x-shellscript"/>
        <bookmark:groups>
          <bookmark:group>gedit</bookmark:group>
        </bookmark:groups>
        <bookmark:applications>
          <bookmark:application name="gedit" exec="&apos;gedit %u&apos;" modified="2012-12-20T05:35:25Z" count="3"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>
</xbel>

It is a facility/feature of the GTK+ library/framework.

The reason of inconsistency between software, including software using GTK+, is because author of individual package/software may choose to use or not use it. There is no law/rule to enforce that. Some author may choose to not provide a recent list in their software. Some may implement their own. Some may use it with filter for file type(file extension).

There is no right or wrong about this. This also happen to software running on other OS, not only Linux.


possible to stream audio from Ipod via Bluetooth to Ubuntu?

It should be possible.

Check if the necessary packages are installed:

dpkg -l bluez pulseaudio-module-bluetooth python-gobject python-gobject-2

if not, install them.

Edit your /etc/bluetooth/audio.conf and uncomment or add

[A2DP]
Enable=Source,Sink,Media,Socket
SCORouting=PCM
AutoConnect=true

The above is enough to make a Samsung Galaxy S5 connect.

If this isn't enough to recognize the iPod, change your class of device (COD) in main.conf. The audio device class (commented out) is #Class = 0x000100. This is in 16.04, maybe your value is different. If you uncomment this, the iPod should connect.

Reference for device classes from Bluetooth SIG.

You basically need to make sure that your computer advertises itself as an audio device, so the iPod is willing to pair with it.


Nexus 7 with Ubuntu Touch stuck on Google screen

If you recently installed Ubuntu Touch to the Nexus 7 (using build 20130704.2), the device may be (temporarily) bricked.

.. endlessly cycling between the Google boot logo and a blank screen ..

Step 1.

Wait for the screen to go blank, and then ..

Press and hold Power + Volume Up + Volume Down buttons, for 5-7 seconds.

( This may take a few attempts. )

You should now be at the Bootloader screen ('green START' )

Step 2.

Use the Volume Down button twice, to show 'Recovery Mode' (in red)

Then press Power, to restart in 'Recovery Mode'.

This will first show the Google logo for 4-6 seconds ..

Then change to Recovery Mode (with a Ubuntu logo in white circle).

Step 3.

You should now be able to verify a USB connection.

adb devices should return 'recovery'

You can now download a fresh install to device.

Make sure only the target device is connected. This will not verify the device attached, and will simply install software for a Nexus 7 (grouper).

phablet-flash -b -d grouper

If this does not succeed, restore the device to Android (factory) settings.


Conky taking focus off ubuntu desktop (14.04)

I found solution:
just disable “Hide Skip Taskbar Windows” in General Settings in Compiz-config-settings-manager (ccsm)
howto-disable-conky-minimization-on-show-desktop


Unable to install Wine on Ubuntu 16.10 due to i386 packages

Ubuntu 16.10 offers wine-stable (1.8.5) and wine-development (1.9.20) -- why did you use a wine ppa?  Either should install directly with a

sudo apt-get install wine-stable     (or wine-development)

Use ppa-purge (install if necessary) to get rid of the inconsistent packages you have installed

sudo ppa-purge <whatever wine ppa you used>

and try one of the standard installs.

Since Wine is community supported, you have to enable the universe software source.  Run Software Updater, click on the "Settings" buttton, and under the Ubuntu Software tab, click on the "Community maintained free and open source..." checkbox. (first box, Canonical-supported should also have been checked).

The version of libwine:386 on my fresh wine install is 1.8.5-1ubuntu2 not ...ubuntu1

   ii  libwine:i386   1.8.5-1ubuntu2   i386   Windows API implementation - library

I'd suggest you uninstall every wine package you can identify with

dpkg -l | grep wine

and reinstall wine-stable

sudo apt-get install wine-stable


I am on POP OS now, before ubuntu 20.04 on old Imac (always trouble with graphics driver). I have tried all known solutions but only thing that has helped me is switch to another desktop environment, in my case Mate.