Ubuntu 17.10 powers off without going through the shutdown cycle

What documentation are you referencing for your expectations for how shutdown should work?

The docs for systemd-shutdown says it will kill all remaining processes.

The systemd.kill man page explains some of the shutdown logic.

But Firefox would not be a systemd managed service. At best, it's going to receive a TERM signal, and then if it hasn't finished shutting down shortly, it would receive a KILL signal.

If you want Firefox to cleanly exit before you shutdown, you should close it yourself.


Disk Utility in 12.04 LTS will not let me check the file system partition for errors

The device/partition may be mounted or being used by some process. Also, please don't try to run a check on a mounted file-system; can result in severe data loss.

I'd suggest booting from a Live CD/USB (ensure that your drives are not mounted) and then trying to run ``fsck".


No network connectivity with Realtek 8111d

Try this (from http://ubuntuforums.org/showthread.php?t=538448)

If your ethernet cable is connected at boot time and you are experiencing the no link problem, try this:

Shutdown, power down.
Unplug your host (this cuts power to the card if wake-on-lan power is maintained).
Wait 15 seconds.
Plug in.
Boot ubuntu.


When to expect the results of the Ubuntu App Showdown Community Vote?

We will announce the winners as soon as they are ready to be published in the Software Center.

Vote was closed on the 29th and the votes have been counted already. It just takes some time to do the technical review, fixes (if necessary) and developer communication to get the winner's apps into the Software Center.

We are aware that this process causes unwanted delays, and we're actively working towards improving it. If you are interested, we're also soon going to announce a proposal for a more streamlined process for 3rd party apps to be published.

Note: Essentially, @Tom Brossman's answer is correct, as we're going to announce them as soon as possible. But note that as mentioned in the community vote start blog post, we decided to start the vote without blocking on all apps having gotten into the Software Center. This means that we're not using the public ratings and reviews Software Center API (but the results will be equally public).


Broken/corrupt image thumbnails in Chromium, 16.04

This problem (and another one where chromium fails to repaint its window after I switch virtual consoles) appeared for me when I upgraded from nvidia-384 to nvidia-390.  I suspect it has to do with an interaction between chromium's GPU compositing and nVidia's proprietary driver.

Does it go away if you downgrade to nvidia-384?

Does it go away if you run chrome with the --disable-gpu-compositing command line option?

Note: You might have to exit chrome and remove the "Top Sites" and "Top Sites-journal" files from ~/.config/chrome/Default/ in order for the home screen thumbnails to be regenerated.


How to tell when the Operating System was installed?

I would check the creation date of the /boot folder.


sudo apt-get install python-gtk2

should fix this. These are the python bindings for GTK, which is a graphical package used to build the GUI for software-center.

axi is something else entirely, try typing

sudo apt-get install afnix

into a terminal and see if that fixes it.


How can I make an alias for a long ls command?

To quote the Bash reference:

  Aliases allow a string to be substituted for a word when it is used as the first word of a simple command

So this is meant for rather simple cases. You can define this as a function in .bashrc:

function showdir {
    ls -pltrh --color=always --time-style="+%d-%b-%Y $newline%H:%M" | grep --color=never -v / | cut -d ' ' -f6- ;
    echo -e -n '\033[1;5;36m'"Diretório §⮕ " ;
    echo -e -n '\033[1;5;33m';
    pwd;
    echo -e '\033[00m'
}


Cannot connect to VirtualBox VM from Kubuntu Host using NAT

Ports < 1024 are privileged, only root can bind to them. As VirtualBox runs under an unprivileged user (the user you logged in with) it simply can't open a privileged port.

References:

Why are ports below 1024 privileged?
Is there a way for non-root processes to bind to “privileged” ports (<1024) on Linux?


Setting up SFTP-only users breaks SSH connections

It turns out that the Match Group block of code must be inserted at the end of the sshd_config file. Many guides don't explicitly state this and so I overlooked it and thought the code belonged together with the Subsystem line. SSH works fine again; SFTP, however, still isn't connecting (giving a "broken pipe" error).

SFTP issue resolution: The external drive is mounted to /mnt/DATA/ with 777 permissions so that everyone can read/write to it. I created a sub-directory /mnt/DATA/sftp/ for the sftp user with 750 permissions and root-ownership which I thought would be sufficient. Unfortunately, sftp requires the entire directory structure to have root/750, including the /mnt/DATA/ directory. So sftp works, but I can't let physical users create new folders inside the base /mnt/DATA/ directory now. Not 100% what I want, but at least it's a step in the right direction.

Answer posted by OP in comments


How to install on a MacBook with a broken optical drive?

Extract the Hard disk drive, put it on a different computer, begin the installation and finish it... After that, simply put the hard disk drive back into your computer and try to boot.

Both computers should be the closest to "twin" in order to avoid issues but this trick worked for me in several installs for different OS.

If you wish to try this please inform if you succeed. People who WON'T TRY IT will downvote this.

Good luck.


How to bind a character device in /dev directory as the keyboard?

If you've written the character device driver yourself, and it is intended to be used as an input device, then you might be best off altering your driver to work as an input device instead of a generic character device.

Fortunately, there is some good documentation in the kernel tree, at:

Documentation/input/input-programming.txt

For an online version, take a look at the input-programming.txt file in the linux tree on kernel.org.

Basically, you'll create a struct input_dev, and register it with the input subsystem with input_register_device. Input events can then be sent to the input layer with input_event, or one of the helper functions like input_report_key.


I have a similar issue. My workaround right now is to launch Firefox and enter rtsp://(ip):(port)/test. This allows me to launch either VLC or the built-in Videos application in Ubuntu. Both work fine when launched from Firefox.


Or you could try these steps and see if they improve the performence of your Operating System :
http://www.techdrivein.com/2013/03/4-simple-tweaks-to-improve-unity-performance-ubuntu.html


How can I hibernate/suspend from the command line and do so at a specific time

You can use the at command to schedule any action, including running the commands detailed in that question.

For example, if you want to hibernate in 30 minutes:

echo 'pmi action hibernate' | at now + 30 min

Or if you want to suspend at 11:00 pm:

echo 'pmi action suspend' | at 11pm

If you need to run a command as root, run at with sudo rather than the command itself with sudo (since sudo should only be run interactively, unless you've configured it not to ask for your password). For example, the equivalents of the above commands using pm-hibernate and pm-suspend are:

echo pm-hibernate | sudo at now + 30 min

echo pm-suspend | sudo at 11pm


Why can't Windows 10 see HDD image on KVM?

Using graphical tool called virt-manager there no such problem.

sudo apt-get install virt-manager -y
sudo usermod -a -G libvirtd <username>
systemctl start libvirtd
sudo chmod 777 /var/run/libvirt/libvirt-sock


To do it the safe way, i.e. without directly altering your system files, copy the .desktop file represented by the icon that you do not want to see to your local .local/share/applications folder as indicated in this related question. Add, or edit the existing line if present, to read
Hidden=true

This causes the launcher to be fully ignored, as if it did not exist.


Creating internal Network among VMs and Internet from Host Machine Virtual Box

Your solution should be bridging.

This article of virtualbox has all the information needed.

Browse to 6.5 for Bridged networking

  With bridged networking, VirtualBox uses a device driver on your host system that filters data from your physical network adapter. This driver is therefore called a "net filter" driver. This allows VirtualBox to intercept data from the physical network and inject data into it, effectively creating a new network interface in software. When a guest is using such a new software interface, it looks to the host system as though the guest were physically connected to the interface using a network cable: the host can send data to the guest through that interface and receive data from it. This means that you can set up routing or bridging between the guest and the rest of your network.


How to install ibus-avro in Ubuntu 17.04

This happens because of a bug in avro. I don't know what causes the bug, but to fix this, open your terminal and follow these steps:

cd /usr/share/X11/xkb/symbols

sudo mv bn bn.bak

So, the first command will change your direcory to "/usr/share/X11/xkb/symbols". And the second command will rename the file named "bn".

Thanks!!!


According to tox wiki page, the profiles are stored in ~/.config/tox/ , specifically the file is profile_toxic.tox.  Exporting simply is a matter of copying that file and saving it. To import profile on another machine, simply copy over that file into the ~/.config/tox directory, or use toxic -f /path/to/saved/profile_toxic.tox


How to add /usr/bin to path after I mistakenly removed it (sudo and nano are no longer in path)

You can prefix the commands with the path:

/usr/bin/sudo /bin/nano ~/.bashrc


If I understand it correctly you need to do this in command line:

sudo cp ~/Downloads/rasterosplc /usr/lib/cups/filter/


A possible cause is that you are running out of available RAM. When that happens, contents of the computers RAM are "swapped" to the HDD, which is orders of magnitude slower than RAM, leading to generally very bad performance.

There are many possible reasons for filled up memory. The two most probable ones:

The most probable one is that the Ubuntu desktop is too heavy for your computer.

If you have less than 4 GB of RAM, Ubuntu 12.04 64bit is hardly usable (Been there, done that...). Since 32bit is supposed to use less memory, you could instead use the 32bit edition of Ubuntu.
You can try to use RAM saving apps instead of memory eaters. Use Claws-Mail instead of Evolution for E-Mail, xpdf or ePDFviewer instead of evince, Gnome Browser (aka epiphany-browser) instead of Firefox, mousepad, leafpad or even emacs or vim instead of gedit,...
Another option is to use a more lightweight desktop. Xfce and Lxde are good candidates, because they work well without desktop effects (which use easily more than 200 MB RAM). If you are also looking for a selection of RAM saving apps, you can install the lubuntu-desktop or xubuntu-desktop packages or start with Xubuntu/Lubuntu directly. (There are also other Distributions designed to be even more lightweight.)
This problem can also be simply "solved" by adding more RAM to your PC ;-)

Another possible cause is a bug in a running program, a so called "memory leak".

You can check the memory usage for instance by running top in terminal. To sort for real (residual) RAM usage, press upper case O and then select the RES field (probably by pressing q). There are of course many other options to check memory usage. If there is a single program using lots and lots of RES, you can be almost certain that something is not OK with that software. In such a case, please write a bug report and if possible, avoid using that program until a fix is released.
If on the other hand a driver is having a memory leak, it will not be shown in top. If you are lucky, you can use slabtop to identify which kernel data structure is using RAM (maybe slabtop has to be run with sudo). Especially the proprietary nVidia driver has has an extremely bad memory leak in Ubuntu 9.? causing it to make a computer unusable within hours, no matter how much RAM a system had. If it's the graphics driver, you can switch between proprietary and open source. For drivers that come with the kernel, changing the kernel is probably the only option.


To Upload Directory to ownCloud 8.25 in Ubuntu 16.04?

The user cannot upload a folder through the web browser based Upload option.

This is not a bug. This is how file upload function works under browsers (they accept files only).

Solution:

Use the desktop client and share the particular folder you want to upload. All subfolders and files will be synced subsequently, thus reducing burden of making folders.

Installing owncloud-client in ubuntu 16.04

Here is the Official page > Official page for Owncloud Client installation

Adding the repository.

sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list"

Update package.

sudo apt-get update

Install the owncloud client.

sudo apt-get install owncloud-client

After installation you have to login to the server, and sync with the server. By default this will make a sync folder as,

/home/$user_name/owncloud

Now, the user can simply place their folder which they want to sync inside this owncloud folder, and it will be synced to the server.

After sync to server the user can stop to sync  the with local client if they wish. First make a copy of folder elsewhere. Then, just goto to Owncloud icon on the top bar,

Right click > Settings > uncheck folder you do not want to be synced. (Unchecked folders will be removed from the Local file system !)


Here are a few options to avoid or recover from the issue.

Temporary fix

In the main bug ticket there's now a fix which involves adding a PPA:

Add the Xubuntu Developers PPA to get the new packages:

 sudo add-apt-repository ppa:xubuntu-dev/ppa

Update package information and update the two crucial packages:

sudo apt-get update && sudo apt-get install xfce4-power-manager light-locker-settings

xfce4-power-manager-data will get upgraded at the same time

Restart your machine.

To remove the upgrades and return your machine to it's state prior to testing

sudo ppa-purge ppa:xubuntu-dev/ppa

Temporary workaround

The easiest way to work around this bug is to disable lock on suspend in the light locker settings. Of course, this means that your machine will resume from suspend without a password.

Quick fix

If you end up in this situation you can get back to a working state (note that you'll lose your current session and a new one will be started) by:

Switch to a virtual terminal: CtrlAltF1

Restart lightdm: sudo service lightdm restart

This is a known Bug and has been reported, click here to see the source of the info


Moving a partition using GParted in Ubuntu

When you move a partition, the data is not removed if everything goes well. There is always some risk though. It is recommended to make backups.

Also if you move a partition that is used to boot a system, it is possible that it won't boot, because the system may try to use a fixed sector to boot from.

Generally it is a correct way to organize free space by moving partitions and should be safe enough.


Excuse me if my question is stupid, but did you connect your HDDs to motherboard via SATA cables, not USB, right?
The next question is why you have 'sync' in /etc/fstab? I dont have one in mine. Please try without this.


Problem installing Ubuntu 14.04.1 on ASUS X551MA-SX153D

First I would recommend checking the MD5 hash here on the Ubuntu help page to see if the ISO has been corrupted during the download

Second it can also depend on the software used to put the installer onto, personally I've used UNetbootin with the best results (If I don't know the software, it makes it a bit harder to research)

There may also be something to do with the BIOS settings, if you go into your BIOS settings there might be an option for a boot mode (Normally Windows 8 or Windows 7/other are the options) which should be set to Windows7/other to boot Ubuntu


Hi Need some information for ubuntu installation

You have to use a 32-bit version of Ubuntu, regardless of version.
This would be the i386 version as described by downloads.

I would also use Lubuntu. You have very low-end specs, and Lubuntu is very light.


ACPI Package problem on boot Ubuntu 14.04.02

What are the problems that you are facing with acpi=off ? Have you tried acpi=force -- that has been also noted to have been helpful to some (but was causing some other problems to me)? Also, have you tried setting the acpi= parameter (either off or force) to BOTH /etc/default/grub's
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line AND GRUB_CMDLINE_LINUX= line (but to only one at a time, of course!)?

Your problem doesn't seem exactly like what I've had and have. But similar enough that you might want to see if this would be the same issue.

As things are I have gotten Ubuntu installed ok with the details linked below and am having problems with powering down and the internal keyboard/trackpad. I can live with these, however -- until I've solved them.

The solution that allowed me to install Ubuntu together + details of the two (new) problems I have have -- is here. I'll be looking next into the shutdown/reboot problem, probably using this thread as the first step.

Hope this helps!


Error in function createSettingsDocument (elements.cxx) when using a libreoffice command

I solved my issue by adding this:

export HOME=/tmp &&

at the beginning, e.g:

export HOME=/tmp && libreoffice --headless --invisible --convert-to pdf ./general.pptx 2>&1

That worked for me on Ubuntu 16.04, and as shell_exec() in PHP


At install time I allocated 80 GB for Ubuntu. What happened to my 80GB? How was that space used?

There are two kind ofpartition in our legacy partition table.
 - Primary
 - Extended

  A primary partition is generally used for installation of operating
  system. A partition table contain at least one and at most 4 primary
  partition.

  An extended partition is a special type of primary partition that can
  hold many logical partition.Extended drive is very popular as in time of re installation you need not worry about drives in extended partition and therefore  data is safe. (except you choose to reformat entire hard disk.)

However ubuntu can be installed in extended partition too.

  SWAP space is used by a Linux operating system for faster access.It's
  used for swapping chunk of data with RAM when RAM is full with
  temporary data and CPU need some other data that is not present in
  RAM.

SWAP is automatically created (if not edited manually) at rate of 1.5xRAM_SIZE.
So your Linux partition is of = (4.6 + 56)GB ~ 60GB

If you have disk layout like this

 |→ SWAP
 |→ EXT4
 |→ EXTENDED

It is possible to merge, but not wise. As any formatting in ext4 will cause all data loss. Also you need to convert extended to primary before merging but I am unsure whether deletion of extended partition is possible or not.Probably need some third party tool.

What I recommend:

Create one logical disk in the extended partition. Format it with ntfs (if later want to access via windows) or ext4. Use it for storing data.

If you have disk layout like this

  → EXTENDED
      |→ SWAP
      |→ EXT4

Then merging is not possible and everything is fine. BTW What is your total hard disk space?? :P


Providing alias for eclipse does not work

Remove 'bash' and make direct call:

alias eclipse='/usr/local/softy/eclipse/eclipse'

If there are other tools in that folder, You may want to add that folder directly to system PATH:

PATH=$PATH:/usr/local/softy/eclipse


Is there a way to automatically update installed programs?

The system checks for updates by searching on all the servers that are listed in /etc/apt/sources.list and on all the servers that have been added by other software installers or manually, in the /etc/apt/sources.list.d/ folder in the form of software-name.list files.

If the software you've installed has added entries in the places mentioned above, then yes, the system will check for updates for that software too.

For example, Google Chrome and Spotify do add update servers when you install them normally.


How to automatically connect to VPN in Ubuntu 17.10?

Wait wait wait. THIS worked. All you have to do is go

VPN->VPN Settings->connection_name->Identity->Password->"Store for all users"

and bingo problem solved.

If nm-connection-editor says that you can't save the connection (the save box is grayed out), then...just forget the network and set up the connection again (worked for me at least). Once you have checked said auto-connect box with nm-connection-editor and ensured that the VPN password is set to "Store for all users," both the primary connection AND the VPN will start successfully at the same time. Otherwise I keep getting this message in my syslog about

vpn-connection[...]: Failed to request VPN secrets #3: No agents were available for this request.

Literally just toggling that one option fixes the problem entirely. Use sudo service network-manager restart and it connects flawlessly the first time. To avoid the error loop on bootup specifically, just uncheck the box "Make available to other users" on the primary connection.

Also to prevent DNS leaks over your vpn when systemd-resolved is used, type

sudo nmcli connection modify <vpn-connection-name> ipv4.dns-priority -42

See the bug whose fix I personally backported to Ubuntu 17.04 at https://bugs.launchpad.net/network-manager/+bug/1624317

After restarting your network manager, you should check the output of systemd-resolve --status and make sure that ONLY the DNS servers of your VPN are listed. Use the 'Extended' test on the dnsleaktest site to confirm you aren't leaking DNS queries.


Character encoding problem with filenames - find broken filenames

Assuming you are using utf-8 encoding (the default in Ubuntu), this script should hopefully identify the filenames and rename them for you.

It works by using find with C-encoding (ascii) to locate files with unprintable characters in them. It then tries to determine if these unprintable characters are utf-8 characters or not. If not, it shows you the filenames decoded with each of the encodings listed in the enc array, allowing you to select the one that looks right in order to rename it.

latin1 was commonly used on older linux systems, and windows-1252 is commonly used by windows now adays (I think). iconv -l will show you a list of possible encodings.

#!/bin/bash

# list of encodings to try. (max 10)
enc=( latin1 windows-1252 )

while IFS= read -rd '' file <&3; do
    base=${file##*/} dir=${file%/*}

    # if converting from utf8 to utf8 succeeds, we'll assume the filename is ok.
    iconv -f utf8 <<< "$base" >/dev/null 2>&1 && continue

    # display the filename converted from each enc to utf8
    printf 'In %s:\n' "$dir/"
    for i in "${!enc[@]}"; do
        name=$(iconv -f "${enc[i]}" <<< "$base")
        printf '%2d - %-12s: %s\n' "$i" "${enc[i]}" "$name"
    done
    printf ' s - Skip\n'

    while true; do
        read -p "? " -n1 ans
        printf '\n'
        if [[ $ans = [0-9] && ${enc[ans]} ]]; then
            name=$(iconv -f "${enc[ans]}" <<< "$base")
            mv -iv "$file" "$dir/$name"
            break
        elif [[ $ans = [Ss] ]]; then
            break
        fi
    done
done 3< <(LC_ALL=C find . -depth -name "*[![:print:][:space:]]*" -print0)


WiFi issues with HP Pavilion g6 2312ax running Ubuntu 14.10

Your wifi seems to be blocked, tru unblocking your device:
rfkill unblock (identifier)
It have to be unblocked to work.


What happens with changed config files when unattended-upgrades runs

"To override the configuration it is recommended to create an other APT configuration file fragment which overrides the shipped default value because updates to to shipped configuration file may conflict with the local changes blocking updating unattended-upgrades itself. The new file should sort later than 50unattended-upgrades to be parsed later than the one shipping the default values, it can be e.g. 52unattended-upgrades-local."
Reference: https://github.com/mvo5/unattended-upgrades/blob/master/README.md


You need to switch desktop environment at login. Logout (or reboot) to change it.

If the above doesn't work (i.e. Unity is broken), reinstall Unity. Press Ctrl+Alt+F1 and execute:

$ sudo apt-get remove compizconfig-settings-manager compiz-fusion-plugins-extra compiz-plugins-extra
$ sudo apt-get purge compiz*
$ sudo apt-get install unity-2d ubuntu-desktop ubuntu-desktop-2d compizconfig-settings-manager xserver-xgl emerald compiz-fusion-plugins-extra git compiz-plugins-extra compiz-plugins-extra install unity
$ sudo reboot

(Source for Unity reinstall)

You can remove Gnome as:

$ sudo apt-get remove gnome-shell ubuntu-gnome-desktop

If you don't reboot, press Ctrl+Alt+F7 to go back.


How to modify multiple images in terminal?

Why gimp? Try imagemagick package. It's a great command line image processor.
In your case you can use it like:

convert -negate src.png dst.png

To modify multiple files at once, e.g.

img_path=./path/to/imgs
img_results=./path/to/imgs/results
mkdir -p $img_results
for img in ${img_path}/*;
    do
    convert -negate $img ${img_results}/${img#./*};
done

The exact method may depend on how you source your paths.

Here's an actual example...

$ for img in ./png-64/*; do echo convert -negate $img results/${img#./*}; done
convert -negate ./png-64/arrow-block.png results/png-64/arrow-block.png
convert -negate ./png-64/arrow-block-rotated.png results/png-64/arrow-block-rotated.png
convert -negate ./png-64/arrow-shrink.png results/png-64/arrow-shrink.png


Is my laptop battery dead? Should I get a replacement, It is an HP laptop and I know the BIOS may not be up to date, would that effect the battery?

Is this laptops battery dead and needing to be replaced?

I would say: yes.

  Or could this be a result of BIOS not being up to date?

Unlikely. The BIOS itself has not a lot to do with the battery. The battery is charged from the power supply, it is discharged through supplying electricity to the system. It basically is a chemical process.

I have yet to see one that shows "3.0Wh" under "Energy (design)" and "0.00%" under "Percentage". I would expect "Capacity" to go down (one of my notebooks has that on "33.2%" but it never leaves the charger :D).  If anything is wrong it could be wrongly read data from the battery but that is proven by the time you have on your battery when it is charged as full. If that is under 60 minutes ... get a new one. If it is 2 hour-ish I would say a problem with reading the data.

I would put the battery in the refrigerator (in a sealed bag) (yes, I am serious) for a bit.


How do I add a network printer in Ubuntu 12.04?

Type this in your terminal

system-config-printer


let utransmission run even after lid closed?

Sleep state may be set by the BIOS. It is advised to check there for power management settings.

When you reboot your PC, try hitting F10. One of these keys will enter BIOS settings. Then, try to navigate to the power management tab. Make sure all settings are disabled.

You also need to go into the power management control panel and disable screen timeout and all button actions.

If this doesn't work, your BIOS is simply not allowing this to happen. It also might be the kernel or your ACPI power management module.


Open terminal and execute these commands:

sudo apt-get autoremove
sudo apt-get --purge remove && sudo apt-get autoclean
sudo apt-get -f install
sudo dpkg-reconfigure -a

Last command would take some time depends upon packages installed in your system. So please be patient. If you don't have any broken/residual packages it would execute silently without any message.

sudo apt-get update
sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo dpkg-reconfigure -a
sudo dpkg --configure -a
sudo update-initramfs -u

Then restart your system.


Trying to install Wordpress with LEMP on Ubuntu 17.10 (VM)

Check your nginx configuration for the 502 error.
For the php file download check whether the correct php is installed on your system. With php --version you should be able to check your php version.

To check your php in your browser, create a html page on your server with following content:

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

The page you created should display php information page. If you get a 502 error - it is nginx, if the php is being downloaded, then the php execution on your server is not working.


If you have absolutely no control over the server, I don't see a way of doing this, as you don't control server settings, which is where this would have to be.

What you'd need to do is add this to the /etc/ssh/sshd_config file:

PasswordAuthentication no

Now, this would effectively disable password authentication for all users, which may be undesirable. What you could do then, is put this configuration directive in a Match block, so it only applies to your user, in the same config file:

Match user yourusername
PasswordAuthentication no

If you could get the server's admin to do this for you, it might be the way to go.

One other way is to set a really long, random and complicated password for your user, that way you're reasonably protected from random brute-force break-in attempts. Most attackers would likely be using some dictionary-based technique so as long as your password is long and random enough, it should be quite safe.

See "man sshd_config" for more details. Also, the solution I propose was suggested here.


Want To Install Windows 10 and Ubuntu 15.04 from Scratch In UEFI Mode

The best way to dual boot windows and Ubuntu in UEFI mode is to

First Install Windows so that While installing Ubuntu, grub can recognize windows.
The other thing to keep in consideration is that the GPT partition is UEFI in bootable usb.(The easy way to make bootable usb is to use rufus).


Try the method given here to install Google earth

The problem with Google Earth is that the 32bit package doesn't support multiarch so it doesn't install all the 32bit dependencies it needs to run on Ubuntu 64bit.

I recommend you just copy paste the following command:

sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386; cd /tmp && wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb; sudo dpkg -i google-earth-stable_current_i386.deb; sudo apt-get install -f

Then download and install 32 bit software package on 64 bit system.


Mongodb shell is giving an error while connecting?

Your log files show the server starting up and then immediately shutting down with the error:

Fri Mar  8 09:14:22 [initandlisten] exception in initAndListen std::exception: boost::filesystem::file_size: No such file or directory: "/mongodb_data/database/$tmp_repairDatabase_0/METRICS.12", terminating

Your client won't be able to connect until you have successfully started up the server.


How to install rpm package in ubuntu when Alien fails?

You can always convert RPM files into DEBs with alien command:

$ sudo apt-get install alien
$ sudo alien my_package.rpm
$ sudo dpkg -i my_package.deb

but chances are you'll fail installing the DEB package, mostly because of the name difference of libraries in RHEL and Debian family.

to extract files from a RPM package, rpm2cpio is the tool to use.

$ sudo apt-get install rpm2cpio
$ rpm2cpio /path/to/file.rpm | cpio -i --make-directories

alternatively, some users confirmed file-roller can open rpm files


Ubuntu writes the number 5 without beeing pressed

Ubuntu is probably not the cause (unless you misconfigured the keyboard layout, however do to auto setup it's highly unlikely) most likely that key is broken. See about going to a local repair shop. If your worried you can always remove the hard drive before giving them the computer.


Can not save PDF file with inputs, error message "Document is encrypted"

There is a bug report for Envince. Have a look for further information and status update, the bug is still open.

There is a possible workaround that seems to work for some users, you might try and let us know.

Run these steps on a terminal:

Install the tool
sudo apt-get update && sudo apt-get install qpdf
Run this command, input.pdf is the source file and the output.pdf
is the saved file after running the tool.
qpdf --decrypt input.pdf output.pdf

Try opening the output.pdffile and doing your changes there.


No keyboard after suspend, even after hard reset

If the keyboard isn't working in your BIOS menu, unfortunately it is very, very likely a hardware issue.  You can try to use a USB keyboard, or you may need to get yours fixed (or it may have become unplugged somehow, although that's quite unlikely)


No longer running a gnome-session; how do I get the nice GTK theme back?

I'm not sure about if this is an efficient way to achieve this.

using crontab, there is a way to run commands on startup

crontab -e
    @reboot gnome-settings-daemon

crontab how to


Need to rescue Encrypted Hard disk, ubuntu not booting

(Sorry everyone for not using comments - I still lack rep)

Your "last line" Sound like a hardware error
try if your hard drive works in different computer

To me it seems like you should stick with cryptsetup because ecryptfs is normally used to decrypt home folders (at user login - not before system booted - and if you didn't do fancy stuff which you should remember)


It shows the size of the file in blocks. I guess, it is in KBs. If you use -h option along with -s, like ls -sh you could see the size in human readable format. For more info check the man page.


Ubuntu 12.10 not working with Samsung ME40B/CY-TM40

It turns out there is a firmware update needed to get the touch screen to work.  Samsung directed me to a set of files which needed to be run under Windows to upgrade the firmware.  The touch screen is now working with Ubuntu 12.10 for single touch operations.

The update is from Nexio - the touch screen overlay manufacturer. The updater application is called nxHIDcon and it is a Windows only application. You need to install the updater on a Windows machine and use that to push the firmware update to the touch screen. The updater application can be obtained here:

NexioDownload Site

You will also need a firmware file specific to your screen.

I have some of the driver updates including those for

ATI0320
ATI0400
ATI0460
ATI0550

These were provided by a Samsung integration engineer.


Can simple scripts use GUI file manager to select file?

Zenity can be used to make a GUI file picker, using the --file-selection option. For a single file, this is sufficient:

#! /bin/bash

file="$(zenity --title "Pick a file" --file-selection)"
do something with "$file"

Where it gets tricky is handling multiple files. There are only two characters not allowed in filenames: the ASCII NULL and /. /, of course, appears in paths. Therefore the only character you can safely pick to separate two filenames is NUL.
You can't use NUL since the character has to be passed as a command line parameter.

You have two options:

Pick one file at a time using repeated selection dialogs.
Verify that each path returned by zenity is an absolute path and the file exists.

Something like:

#! /bin/bash

OLDIFS="$IFS"
IFS='-'
FILES=($(zenity --file-selection --multiple --separator='-' --title "Pick a file"))
IFS="$OLDIFS"

for file in "${FILES[@]}"
do
    if [[ $file == /* && -f $file ]]
    then
        echo $file
    fi
done

Of course, even this does not save us from a filename like /foo/bar-/etc/passwd. So be careful if your script runs with higher privileges than the user.


Is there a way to install OpenJDK 15 in Ubuntu bionic?

Yes, you can get Java 15 from AdoptOpenJDK PPA.
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

Then you can install Java 15 with:
sudo apt-get install adoptopenjdk-15-hotspot

For more information / options / troubleshooting : https://adoptopenjdk.net/index.html


Your best bet is to boot into Windows like Organic Marble said.

1. Use Windows Disk Manager to resize your Windows partition (most likely labeled as C:). This will ensure you don't inadvertently lose any data in the Windows partition when you resize it.

2. Once you have resized this to your liking, live boot back into Ubuntu (or whatever OS you used to access gparted in your screenshot) and remove your swap partition.

3. Once the swap partition has been removed, you should be able to extend SDA6 to encompass the unallocated "free" space you created when you were in Windows.

4. Once you have done this resize your SDA6 partition one more time to free up about 4-8 GiB of free space.

5. Once that has been completed recreate your swap partition using the free space you created in the previous step.

By manipulating your disk in this manner you will keep your root partition within a contiguous partition on your disk. You really don't need to worry too much about manipulating your swap partition. This is used for additional "RAM" space so to speak. It functions the same way as a page file in Windows.


Two mountpoints created in /media for one partition

Nautilus automount to /media/$label, when partition has a label and /media/$label do not exist. If it exsists, Nautilus choose the alternative /media/$label_ . Then the mount point is removed when you unmount.

The fact that you have both is due probably to a /media/$label not removed for some reasons. Solution:

unmount the partition
remove the path /media/$label

Now when you mount the partition again, the correct path should be used.


How to determine if a restart is needed on my Ubuntu server?

Check this answer to a previous and very similar question:

How can I tell, from the command line, whether the machine requires a reboot?

In essence, you just need to check if this file has been created after updates, configuration changes or security updates:  /var/run/reboot-required.
If you need to check which installed packages need the reboot then open the file /var/run/reboot-required.dpkgs


Chromium broken - reduced to snail's pace rendering multiple images?

Problem solved. Just goes to show how complex de-bugging can be sometimes. The problem arises when and only when Chrome/Chromium has to produce two scaled thumbnails of the same image on the same page. It totally cripples the page. Obviously it's a bug, but one I can work around, now that I have finally worked out what was causing it.


Using MAAS to deploy ubuntu 14.04 on HP DL380 gen9

I think you may be missing some steps. To install a server via MAAS, there are (broadly speaking) three steps:

Enlist -- You manually power on the sever (via a button press, ipmitool command, or whatnot). It starts up, PXE-boots from the MAAS server, and is registered with the MAAS server so that it shows up in the menu. At this point, the MAAS server has only very basic information on the node, such as its MAC address and IPMI credentials.
Commission -- To commission, you select the "Commission" option from the node's Web UI page. (It's a sub-menu, and I don't recall the menu name, offhand.) During commissioning, the MAAS server tells the node to start up (via IPMI, typically), the node PXE-boots, and MAAS collects more detailed information on the node, such as its available RAM and disk space. When commissioning is done, the node shuts down again.
Deploy -- To deploy, you select the "Deploy" option from the same submenu where "Commission" had been. You may also have a chance to choose which Ubuntu version (or custom OS) to deploy, depending on how you've set up the MAAS server. Again, MAAS tells the node to start up, it PXE-boots, and MAAS install Ubuntu on the node. After deployment is finished, the system should stay up and you should be able to log in via SSH from the MAAS server.

From your description, I suspect that you enlisted the node, but have neither commissioned nor deployed it. Neither enlistment nor commissioning permanently installs Ubuntu on the server; that happens only during deployment. You must do those two additional steps before you can begin using the node. Once this is done, you should be able to log in from the MAAS server via SSH, or conceivably from other systems, if you've added SSH public keys to the MAAS server. Nodes deployed via a "stock" MAAS do not support console logins. If you need that feature, you'll need to either adjust your MAAS preseeds or set it up manually after deploying, by changing the password on the ubuntu account or by creating a new account.


libGL.so.1: cannot open shared object file: No such file or directory

The same problem for me. And I solved it using two steps.
first, I try to find where is the libGL. Using locate libGL.so, find that:
/snap/gnome-3-28-1804/128/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/gnome-3-28-1804/128/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/gnome-3-28-1804/145/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/gnome-3-28-1804/145/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/gnome-3-34-1804/60/usr/lib/x86_64-linux-gnu/libGL.so
/snap/gnome-3-34-1804/60/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/gnome-3-34-1804/60/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libGL.so
/snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/scrcpy/269/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/scrcpy/269/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/scrcpy/274/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/scrcpy/274/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/wine-platform-runtime/212/usr/lib/i386-linux-gnu/libGL.so.1
/snap/wine-platform-runtime/212/usr/lib/i386-linux-gnu/libGL.so.1.0.0
/snap/wine-platform-runtime/212/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/wine-platform-runtime/212/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGL.so.1
/snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGL.so.1.0.0
/snap/wine-platform-runtime/216/usr/lib/x86_64-linux-gnu/libGL.so.1
/snap/wine-platform-runtime/216/usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
/usr/lib/x86_64-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/libGL.so.1.7.0

And I link the libGL.so and other opengl libraries from /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/ to /usr/lib/i386-linux-gnu/. Maybe you should install wine-platform-runtime by snap.
do this:
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so.1
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGL.so.1.0.0 /usr/lib/i386-linux-gnu/libGL.so.1.0.0
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGLX.so.0 /usr/lib/i386-linux-gnu/libGLX.so.0
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGLX.so.0.0.0 /usr/lib/i386-linux-gnu/libGLX.so.0.0.0
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGLdispatch.so.0 /usr/lib/i386-linux-gnu/libGLdispatch.so.0
sudo ln -s /snap/wine-platform-runtime/216/usr/lib/i386-linux-gnu/libGLdispatch.so.0.0.0 /usr/lib/i386-linux-gnu/libGLdispatch.so.0.0.0

It still not worked, and a new problem happened. (but the step is necessary for me.)
err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems

And then, the second step:
My nvidia driver version is 460. take 460 for example.
sudo apt install libnvidia-gl-460:i386

And when installing it, if it tells you nvidia-driver-460 will be removed, it is not good, and you should make nvidia-driver-460 and libnvidia-gl-460:i386 exist at the same time. And I solved it by removing cuda repo and reinstall libnvidia-gl-460:i386 and nvidia-driver-460.(details? see: NVIDIA 440.64 32-bit libraries package breaks 64-bit driver package, and thanks for it.)
And my dpkg -l|grep nvidia:
ii  libnvidia-cfg1-460:amd64                      460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-460                          460.73.01-0ubuntu0.18.04.2                       all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-460:amd64                   460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA libcompute package
ii  libnvidia-compute-460:i386                    460.73.01-0ubuntu0.18.04.2                       i386         NVIDIA libcompute package
ii  libnvidia-decode-460:amd64                    460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-460:i386                     460.73.01-0ubuntu0.18.04.2                       i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-460:amd64                    460.73.01-0ubuntu0.18.04.2                       amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-460:i386                     460.73.01-0ubuntu0.18.04.2                       i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-460:amd64                     460.73.01-0ubuntu0.18.04.2                       amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-460:amd64                      460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-460:amd64                        460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-460:i386                         460.73.01-0ubuntu0.18.04.2                       i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-460:amd64                      460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-460                      460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA compute utilities
ii  nvidia-dkms-460                               460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA DKMS package
ii  nvidia-driver-460                             460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-460                      460.73.01-0ubuntu0.18.04.2                       amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-460                      460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA kernel source package
ii  nvidia-prime                                  0.8.16~0.18.04.1                                 all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                               450.51.05-0ubuntu1                               amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-460                              460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-460                 460.73.01-0ubuntu0.18.04.2                       amd64        NVIDIA binary Xorg driver

Hope it will help you.


Is there any way to use QWERTY's keyboard shortcut position while the Dvorak layout is active?

My first attempt was to make the control keys act simultaneously as Control and as a third-level chooser, then define a keyboard layout with Dvorak on levels 1 and 2, and Qwerty on levels 3 and 4. This doesn't seem possible in XKB, however. In addition, the comments in the source of the dvorak-qwerty program you've linked state that

  Although it is possible to define an XKB layout which implements Dvorak-Qwerty, doing so exposes a depressing number of bugs across the board in X apps.  Since it is the responsibility of each X app to interpret the keyboard layout itself, rather than having the X server do the work, different GUI frameworks actually tend to have different bugs that kick in when using such a layout. Fixing them all would be infeasible.

Your best bet is probably to get the dvorak-qwerty hack working. Most of what I'm about to write you probably know. The source says to compile it with

gcc xdq.c -o xdq -std=c99 -O2 -lX11

then run it with

./xdq

or give the absolute path so you can put it in your startup items.

When I ran the program it gave me the following warning:

  Failed to grab 35 key combinations.
  This is probably because some hotkeys are already grabbed by the system.
  Unfortunately, these system-wide hotkeys cannot be automatically remapped by
  this tool.  However, you can usually configure them manually.

However, I tested it with ^W, ^Q, ^C, ^X, and ^V, and it worked as expected. If you want it to grab other modifiers (ALt+Ctrl and Super) the combinations the system is already using for other things, add -DXQD_GREEDY (not -DXDQ_GREEDY as the source says) to the compilation command.

If it failed to compile with the error

  xdq.c:87:22: fatal error: X11/Xlib.h: No such file or directory
  compilation terminated.

then you should install the package libx11-dev with

sudo apt-get install libx11-dev

If this doesn't get the program working, let me know and we can try to work it out.


Hardware enablement stack install is giving dependency issues

I got the same error messages when I tried to update my 12.04 with kernel 3.5.0-48-generic. Since the dependency that was not being met was libglapi-mesa-lts-trusty I tried to install it manually and got this error:

libglapi-mesa-lts-trusty:
Conflicts: libglapi-mesa
Conflicts: libglapi-mesa

So I used synaptic to remove libglapi-mesa and then entered the following on a terminal window:

sudo apt-get install libgl1-mesa-glx-lts-trusty xserver-xorg-lts-trusty

And that successfully updated my system to kernel 3.13.0-30-generic. After rebooting got a message that said that my hardware enablement stack was now supported till 2017.

Hope this helps.


How to replace some specific content (of various lines) of a file with the command sed?

The following Perl script matches everything between the .otros{ line and the top: line and replaces the top: line by top: 70%;:

perl -pe 's/(?!\.otros\{[\w\d\s:;\-%]*)top:.*/top: 70%;/' estilos.css

If the lines between the .otros{ line and the top: line contain anything else than:

lowercase letters, uppercase letters, underscores (\w)
numbers (\d)
whitespace (\s)
colon (:)
semicolon (;)
dash (\-)
percent symbol (%)

just add it between the square brackets ([]).

The result is:

.social a:not(:hover){
    width: 70px;
    -webkit-transition: 600ms;
    -o-transition: 600ms;
    -ms-transition: 600ms;
}
.social div a:not(:hover){
    width:200%;
}
.otros{
    position: fixed;
    top: 70%;
    z-index: 100;
    left: 0;
}

Note: This script does not replace top: 116px; only, but everything after top: (top:.*) inside .otros. For example, it would also replace top: 55px; or top: 90%;.

If you just need to replace top: 116px;, then the command would be this:

perl -pe 's/(?!\.otros\{[a-zA-Z0-9\s:;\-%]*)top: 116px;/top: 70%;/' estilos.css


Cannot install package `libxerces27-dev` when installing `phc` php compiler

sudo aptitude install ~nlibxerces

or

apt-cache search --names-only xerces

Those instructions are out-of-date.  It's not libxerces27 anymore.


How to set nemo as default instead of nautilus?

Before changing defaults system-wide, you should thoroughly test something like a new file manager in one of your users first by adding nemo as the default file manager in the start-up applications...

One user:

Go to the dash, then type startup applications and add: by using nemo -n in the command.

Then disable Nautilus from drawing the desktop icons by executing:

gsettings set org.gnome.desktop.background show-desktop-icons false

Log out and log back in and you'll see two identical "files" icons in the unity launcher.  Unlock the top one and lock the bottom one and move it to the top below the icon for the dash.  Then allow nemo to draw the desktop icons for you:

gsettings set org.nemo.desktop show-desktop-icons true

All users:

Execute the following command:

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

and then edit /etc/mime.types and carefully review if nothing is left of nautilus.  If it is, replace it by nemo.

reboot afterwards.


Problem removing 3G mobile broadband dongle on 12.04

It tries to synchronize its cache after the device has already been removed. It is a known bug and safe to ignore.


Add the module to /etc/modules, in this case, add the following two lines:

wmi
nuc_led


Please, take a look at this script to create a LXC container that runs steam with sound and video acceleration:

http://bazaar.launchpad.net/~ubuntu-lxc/lxc/steam-lxc/view/head:/steam-lxc

The magic comes here:

Outside LXC:

    # Add the bind mounts to the container's fstab
    self.container.set_config_item("lxc.mount.entry",
                                   "/tmp/.X11-unix tmp/.X11-unix "
                                   "none bind,ro")
    self.container.set_config_item("lxc.mount.entry",
                                   "/dev/dri dev/dri none bind,ro")
    self.container.set_config_item("lxc.mount.entry",
                                   "%s/pulse.socket home/%s/.pulse_socket "
                                   "none bind,ro" % (self.config_path,
                                                     self.user.pw_name))

We export X11 with a bind mount the /tmp/.X11-unix directory to allow container to use host X11. Do the same with /dev/dri directory and audio socket.

Inside LXC:

    # Get pulseaudio to listen on the socket
    with self.user_privileges():
        subprocess.call(['pactl', 'load-module',
                        'module-native-protocol-unix',
                        'socket=%s' % self.pulse_socket,
                        'auth-cookie-enabled=0'])

    # Start steam
    self.run_command(
        ["steam"], {'DISPLAY': os.environ['DISPLAY'],
                    'PULSE_SERVER': "/home/%s/.pulse_socket" %
                                    self.user.pw_name})

Uses pactl to use a unix socket to communicate with host pulse audio server and later export the socket and DISPLAY environment variable to allow steam to use local X11 server and socket to audio server.

Take a look at the script and enjoy it :)

With that environment variables inside LXC you could play (theoretically) almost all games.

Best regards!


How to configure iBall airway 3G usb modem in Ubuntu 14.04

Below mentioned methode will only work with iBall Airway 7.2 18 (lsusb will show it as a huwawei modem)

iBall Airway or similar Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem 3G data cards connecting in Ubuntu.

Using WvDial as backend and Gnome-PPP as frontend

WvDial is a Point-to-Point Protocol dialer: it dials a modem and starts pppd in order to connect to the Internet.

First install WvDial

sudo apt-get install wvdial

Then Gnome-ppp

sudo apt-get install gnome-ppp

Finally we need to add add WvDial to give regular users the ability to use wvdial to dial a ppp connection.

Using a dialout group

Set up a group called dialout (call the group as prefered) and give members of this group permission to run wvdial as root.

First create the group and add the users to it:

sudo groupadd dialout

sudo gpasswd -a username dialout

Note: You need to logout and log back in for the current user's group list to be updated.

Then set the group and adjust the permissions on wvdial:

sudo chgrp dialout /usr/bin/wvdial

sudo chmod u+s,o= /usr/bin/wvdial

The files should have the following permissions:

$ ls -l /usr/bin/wvdial

-rwsr-x---  1 root dialout 114368 2005-12-07 19:21 /usr/bin/wvdial

Now plugin your iball Airway device and wait for 15 seconds, then open gnome-ppp from unity dash board

and click setup.

Follow the screen shots to configure Gnome-ppp.

System tray icon of Gnome PPP, after success full connection.

Disclosure : http://angamaly.lug.org.in member

References : https://wiki.archlinux.org/index.php/Wvdial


Eclipse content-assist popup is unreadable on Ambiance/Radiance theme

After little research:

gedit ~/.gtkrc-2.0

paste and save:

style "eclipse_fix"
{
    base[ACTIVE] = shade(0.7, "#F2F1F0")
}

class "GtkTreeView" style "eclipse_fix"

Then you must logout or change your style in order to reload new settings.


Ansible: dpkg-reconfigure -plow unattended-upgrades stopped while running

Here's how I set up unattended-upgrades using Ansible.
  - name: echo "unattended-upgrades unattended-upgrades/enable_auto_updates boolean true" | sudo debconf-set-selections  - auto install security updates
    debconf: name=unattended-upgrades question=unattended-upgrades/enable_auto_updates vtype=boolean value='true'
  - name: apt install unattended-upgrades
    apt: name=unattended-upgrades
  - name: dpkg-reconfigure -f noninteractive unattended-upgrades
    command:
      cmd: dpkg-reconfigure -f noninteractive unattended-upgrades
      creates: /etc/apt/apt.conf.d/20auto-upgrades


apt-get returns Not Found when using Amazon's AWS repositories

There could be two possible causes, given the information given. You are trying to install packages that are not on the repository (because they were deleted, moved, upgraded, or the specific version of Ubuntu isn't available anymore) or you haven't updated the package list in a while.

The first can be a temporal issue (try again later) or a permanent one. I recommend running apt-get update to make sure. If after you updated your package list the issue continues, it's probable that the repository is broken or that you need other repositories.

If it's the later you only need to remove us-east-1.ec2. from the url. That will return archive.ubuntu.com:

sudo sed -i 's/us-east-1\.ec2\.//g' /etc/apt/sources.list

That will leave you with only archives.ubuntu.com entries. With the former you can only wait.


Try using file-roller.

You'll still need to have the package rar installed.

sudo apt install rar

Once it's installed, launch the app called "file-roller".

Then create a new archive using the menu and choose type "rar". Adding files to your archive is done using + icon.


Can't boot Ubuntu from CD/DVD or Flash Drive

you need to enter the bios and select the deviceto boot. you can enter the bios on most computers by pressing f2 at the post screen.

The post screen is the screen displayed when you turn the computer on, it displays the manufaturer name, computer model, and in most cases the key used to enter the bios...

for my asus k55a the process for booting a cd is as follows

press f2 at post to enter the bios
navigate to the boot menu
set the cd/dvd drive as the first boot option (at least before the internal hard drive)
navigate to the menu that includes the option "save changes"
reboot

if all worked out, then the pc should automatically boot the device you put at the top of the list. if no device is found to be bootable there, it will move to the next in the list. keep in mind that to boot from the hard drive, you must change this setting once you no longer need it configured as such, or you must remove any bootable media that is placed in the list before your hard drive

you may also press f12 on most PCs to get a menu of available devices and select what to boot from. this will override the settings in the bios and boot from the selected device.

Here is a youtube video demonstrating how to do so...

https://www.youtube.com/watch?v=k0Hkr2sNZ8k

keep in mind that your PC may have a different key that must be pressed to enter the boot menu / BIOS... This is USUALLY displayed at post but you can try the following keys if f2 and f12 dont work (f1, f2, f11, f12, del)

if it still doesnt work find a manual for your model of PC... the manual will tell you which key to press

if it STILL doesnt work, you most likley have not prepared your bootable media properly. please follow the steps provided by the ubuntu website exactly:

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows

Notice

Ubuntu IS NOT WINDOWS... windows programs such as Word, Photoshop, and internet explorer will not work with ubuntu. Alternatives are provided and some programs such as firefox are compatible, but bear in mind that you WILL need to re-learn nearly everything you think you know about computers before Ubuntu can be an effective alternative to windows


"Package operation failed" when trying to install Canon printer driver

Looks like you are trying to install an i386 package on an amd64 system. And the package wasn't designed to be installable on amd64.

I suggest trying to convert one of the 64-bit RPMS to a deb with alien.


How to install Ubuntu dual boot with MacBook Pro refind?

This gives a good example of how to install Ubuntu on a mac: http://www.howtogeek.com/187410/how-to-install-and-dual-boot-linux-on-a-mac/

Mac boot camp, only works for windows, it will refuse to go forward without a usable windows disk. Do not fret though because there are easy work arounds to get Ubuntu or any linux distro on your mac. The above URL is a pretty good step by step instruction on how to install Ubuntu without having to worry about bootcamp.


Actually you know if you wi-fi target is supported?
If you have dual-boot with windows try to enable the wi-fi connection and go back to ubuntu, sometimes it works. You can also push super(windows) and look "drivers" you iniciate -Additional drivers and via ethernet get what you need.


How do I install League of Legends on Ubuntu 16.04?

What work for me as patch 6.22 was changing settings of LoL launcher through PlayonLinux.

Install the most recent version of PlayonLinux and install the League of Legends. (Do not start game after installation)
Using PlayonLinux access the LoL game settings.
In PlayonLinux change the default wine version using the "General" tab.From
1.9.2 LeagueofLegends5 to the latest stagging version. When i wrote this answer it was "1.9.22stagging" i install both x86 and x64 wine versions. (again this all done through the playonlinux settings)
Through playonLinux settings now access the "wine" tab and click on "configure wine" icon. There you will change the default windows version from Windows XP to Windows Vista. (all other don't seem to work at least not on my PC)
Now using PlayonLinux start the LoL launcher (the screen will look weird, however, you should be able to see the League of legends logo on the top left, the percentage and download speed bar on  the middle and the settings and minimize icons on the right.
This installation takes longer than when using windows.For me using Windows LoL installs in about 2.5 hrs. However, using Ubuntu it took 5 to 6 hours to install. During the installation it might seem like if the installation freezes or your installation stops and your download speed might even reduce to cero for a while but "PLEASE BE PATIENT"
Today is November 15, 2016 and i install LoL 6.22 and play.
if there is any new patch i would try waiting for the new playonlinux stagging version of wine before removing or changing anything else.


Ubuntu and Grub won't install to RAID0 partition

I remember /boot can not use raid0 , but can use raid1.
You use raid0 from bios. I donot know how to do it at that condition.

In general, I set /boot in raid1 or ordinary partition, and others in raid0, bootloader installed on /boot.(This is for softraid. )


USB does not work, but does sometimes in XUBUNTU

It seems updating the kernel solved that problem and then some.
Kernel update from 3.13->4.2-0-22

It solved the USB ports loading at each start and in addition the power management settings started to work which it did not do under the 3.13 kernel. What was actual and placebo we will never know.


Issues while booting Ubuntu 20.04 LTS after installation on Asus Tuf A15 (FA506IH) "PPM init fail"

I have an Asus tuf a15 (ryzen 9 4900h + nvidia rtx 2060)
I installed Linux Mint 20.04
When you see the GRUB menu, press e to edit boot options, append modeset=0 after splash and then press F10 to boot. For me the trackpad was not working thus used wireless mouse for installation, but after installation the trackpad started working
I installed the latest kernel (5.7.15) and installed nvidia-driver-450 for nvidia graphics.
Now my system is working well with both gpu (amd remior +m nvidia rtx 2060)


Issues configuring oracle java 6 plugin in chromium

I used to link the libnpjp2.so as /usr/lib/mozilla/plugins/libnpjp2.so and ~/.mozilla/plugins/

EDIT:
Where to download and how to install the sun java plugin


Result and output are different concepts. As are argument and input.

command1 | command2

Takes the output of command1 and feeds it to input of command2.

command2 command1

Runs command2 with one argument, the string "command1". It's definitely not the same thing.

The pipe can be replaced by Process Substitution and Redirection, though. That's probably what you imagined:

command2 < <(command1)

< means "read the input from here", and <(...)  runs the enclosed command(s) and creates a "filename" that can be read from.


Unity uses a toolkit called Nux. Nux is an opengl toolkit designed to be run as both a standalone widget system, or embedded into existing opengl applications. In compiz we run nux in embedded mode.

While nux is a toolkit, it is designed to be very thin, allowing us still to make direct opengl calls when we need to. Nux contains most widgets a developer would wish to use and is being developed alongside unity as a toolkit.

Unity does NOT use GTK internally. Some external stuff is rendered with GTK (global menus are out of process), however GTK has no involvement in Unity other than that.

GNOME Applications of course still use GTK.


Something wicked happened resolving medibuntu repository, what happens?

Medibuntu has now been shut down, the packagers were either obsolete, unnecessary or moved to the official Ubuntu archive.
-- https://help.ubuntu.com/community/Medibuntu

What this means? That you should remove the repositories from your sources.list to prevent errors and look for the packages you needed somewhere else or stick with the old ones that you have installed.
Related

I can't install libdvdcss - script not finding medibuntu, How to get DVD playback?
The Medibuntu Project has come to an end - what do I do now?

How to remove the repository:

Open "Software Sources";
Locate the Medibuntu repository;
Select and remove it:


How to Hide files and folder for Windows from Ubuntu

To hide files and/or folders in Ubuntu you have two ways:

add a '.' (without quotes, obviously) at the beginning of
file's/folder's name
List item if you don't want to rename the file/folder do this: in the same folder as the one in which are saved the files/folders you want to
hide, create a new text file, and edit it writing the names of the
files/folders you want to hide. Then save it and rename it as
".hidden" (without " too)

To see hidden files press CTRL+H.


Can I run multiple desktop environments at once (via CTRL+ALT+F1/F2/etc.) and if so, how?

I think that this guy has you covered, https://journalxtra.com/linux/desktop/multiple-desktops-on-one-linux-pc-now-thats-greedy/.


It sounds like the ISO is corrupted. Does the CRC match? It might be possible the ISO didn't finish either like Tony suggested.

I would redownload it or perhaps try the mini.iso network installer and then install Ubuntu Desktop post install with sudo apt install -y ubuntu-desktop.


I had the same problem. It seems that this isn't possible with LXDM (yet - a feature request has been submitted so it may be possible in the future).

The workaround I employed was to install GDM as the login manager, which does accept responses from PAM (e.g. prompt for a new password when the current one has expired).

You can install GDM by type the following at a command prompt (LXTerminal):

sudo apt-get install gdm

This should give you a blue config screen. If you get any errors you may first need to run sudo apt-get update

You will then be prompted to choose your default display manager - select GDM. If you change your mind you can always go back and update this settings by typing

sudo dpkg-reconfigure gdm

Reboot, and GDM will now be your display manager.

By default GDM gives a list of all the users on the system. I preferred to just have a text box rather than a list, which can be achieved with the command

sudo -u gdm gconftool-2 --type bool --set /apps/gdm/simple-greeter/disable_user_list 'true'

which just gives a 'Log In' button, and then a username box (similar to LXDM).

Hope this helps,

Gav


After updating the kernel I can't log into the desktop. Only see the wallpaper

I fixed it! I tried to reset unity from a text terminal (ctrl+alt+f1). It didn't work. Threw a dbus error. Couldn't open a terminal even with the shortcut after login.

But later found that the guest account is working! So, I created a new admin user, logged in successfully and then reset unity. It worked!


FreeCad and ODA file converter stopped working on Ubuntu 18.04

Confirmed: If running standalone in a terminal there is a QT library problem
firstuser@claire2:~$ ODAFileConverter
/usr/bin/ODAFileConverter_21.7.0.0/ODAFileConverter: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by /usr/bin/ODAFileConverter_21.7.0.0/ODAFileConverter)
robert@claire2:~$ qmake --version
QMake version 3.1
Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu
robert@claire2:~$
Looks like a version mismatch. One solution would be to build a newer version of QT which is a bit of work. With few exceptions, distros only update packages with bug fixes of existing versions of SW (like Qt 5.9.5) and do not build packages from new upstream versions (like Qt 5.14).
In a better world, I would have expected dependency checking to have failed and installation or update of ODA converter being prevented.


You would use a Makefile with the build dependencies declared, for example as follows:

default: A.deb B.deb C.deb

C.deb: B.deb C.dsc C.tar.gz
        <command(s) to build C.deb>

B.deb: A.deb B.dsc B.tar.gz
        <command(s) to build B.deb>

A.deb: A.dsc A.tar.gz
        <command(s) to build A.deb>

Note that the command indentation is a TAB.

With that Makefile, you would use the command

make

and this would work out which packages to build and in which order, and then build them, all depending on the timestamps of the files. E.g., if say B.tar.gz has a timestamp later than B.deb (i.e. package B has new source), then that'd cause firstly B.deb to be rebuilt, and as that would make it be stamped later than C.deb, it would cause C.deb to be rebuilt as well.


What is the default theme name in Ubuntu 16.04?

The default theme is called Ambiance.

To find this out, press Super to open the Dash and search for "Appearance". Click on the "Theme" dropdown box and you will see an entry called "Ambiance (default)".

If you're filing bug reports, you might need to know the package name containing the theme. The package name of Ambiance (and its light counterpart Radiance) theme is light-themes.


What to do if Disk Utility shows bad sectors pending in SMART?

At this point in time I wouldn't.  Hard Drive manufacturers, normally pack spare sectors in the drive just for situations like this.  Keep an eye on it, and always have a backup of your data handy.  Also I would suggest that you run the manufacturers diagnostic tool, and that can be acquired form the drive manufacturers website. Once you do that, and it gives you an error code, and providing htat the drive is still under warranty, then call the manufacturer,and get it replaced.

Important note to keep: Disks that start with 1 bad sector, will probably get worse.  I can't stress enough the importance of a backup.


you need to allow the following commands in the sudoers file:

systemctl start <your-systemd-service>

systemctl stop <your-systemd-service>

systemctl restart <your-systemd-service>

systemctl enable <your-systemd-service>

dont use the service command.

Remember to replace the service name with your systemd service.
For example if your service file is with name:

/etc/systemd/system/controller.service

then it should be:

systemctl start controller.service

systemctl stop controller.service

systemctl restart controller.service

systemctl enable controller.service

also , you will need to do:

systemctl daemon-reload

after you place you service file in systemd

Adding commonads in sudoers:

https://www.atrixnet.com/allow-an-unprivileged-user-to-run-a-certain-command-with-sudo/

example command:

<your-user> ALL=(ALL) NOPASSWD: /usr/bin/systemctl start controller.service


Mouse & Touchpad buttons change function after suspend/hibernate

While trying everything again, I seem to have found a combination of kernel instructions that works.  I had tried all 6 or 7 together, and each one individually, but not this particular combination of three arguments.

I added just these three:

i8042.noloop i8042.nopnp i8042.reset

to the line

GRUB_CMDLINE_LINUX_DEFAULT=""

in the file: /etc/default/grub

And then ran sudo update-grub to update grub2's configuration file.

I've suspended and re-awoke the computer several times, and it's worked every time so far.  If it fails again in the future, I'll edit this question and answer.


Juju not recognizing MAAS defined spaces

I found the solution, the issue in my case was, juju put all subnets in the default space (space-0) though i had spaces defined in MAAS.
So, I created required spaces using Juju and associated relevant networks to each.

To see available spaces to juju

juju spaces

To create a space and add existing networks, run

juju add-space <space-name> <network-cidr-to-add-to-this-space>


It looks like your zookeeper process is already running.  Or (much less likely), something else is already listening on port 2181 or 2888.  Did you install a separate zookeeper package and start it?

If so, you'll need to tell HBase not to start zookeeper automatically.  Edit the conf/hbase-env.sh file and add the line:

export HBASE_MANAGES_ZK=false

On the other hand, if you want HBase to start zookeeper automatically, then change that setting to "true", make sure any current zookeeper process is stopped and try again.

FYI, if you run into more problems, subscribe to the HBase user mailing list at user-subscribe@hbase.apache.org and we can help you further there.


How to execute command every 10 seconds (without cron)?

To access your personal cron configuration you should use the command crontab -e (to edit your cron table).

Alternative is the watch command:

watch -n10 command args

Finally, to monitor filesystem events more effectively, you could use inotifywait, from inotify-tools package.


Xampp: cannot connect to mysql from terminal

You have two versions of mysql installed - one from Ubuntu repositories and one from some third party location. When you use the Ubuntu version, located in /usr/bin/mysql it attempt to connect trough a socket in the default location, /var/run/mysqld/mysqld.sock, which does not work, because the server running is not the Ubuntu stock mysql-server.

It works when you run /opt/lampp/bin/mysql -uroot (no reason to run that as root, by the way), because this mysql binary has default path set to where the actual socket is.

You have three alternatives:

Modify your path so that /opt/lampp/bin/ is before/usr/bin/` in path. This will execute the lampp version of mysql before the Ubuntu version.
Uninstall Ubuntu mysql client with sudo apt-get remove mysql-client. This may break other packages.
Uninstall lampp and install the required packages from Ubuntu.

#3 would be my preferred solution. Getting all the software from the repositories ensures that it will be kept up to date, be (mostly) compatible, and have a clear, well defined upgrade path to the next Ubuntu Release.

Apache, PHP, Mysql/MariaDB and a lot of apache modules are available in the Ubuntu repositories.


Why do I have two instances of the same partition in Nautilus?

I had a similar problem with fstab entries using UUID.

I solved it by replacing it with my equivalent to /dev/md127p1.

Try changing your fstab accordingly, reboot and see if the problem goes away like mine did.


How to scan if Ubuntu is infected? server attack

You could start with the following:

clamav
aide - it's not a malware scanner but an integrity tool, meaning you can check what files were changed since say yesterday.
check open ports:

sudo netstat -lpntu | less

If you have some wide open one, restrict them by IP for instance.

also check the running services to make sure you don't have anything suspicious:

pstree | less

ps axu | less

check cron tasks


I finally managed to get Evolution working with my CalDAV service. This answer refers exclusively to version 3.18.5.2, with previous versions this procedure fails.

The trickiest bit is the e-mail configuration. You are forced to do so in order to use the calendar (go figure). Install Evolution from the Software Centre and start it up. A configuration menu appears; follow on with all options by default up to the Identify menu.

Enter your name and use the dummy address. If this address is not already there just use something like dummy@mail.com. Uncheck the Look up mail server... box, otherwise the process fails. Click Next.

In the Identity menu, you must choose the None option from the Server Type in order to follow on:

In the Sending Email menu select Sendmail as the Server Type and leave all other boxes empty or unchecked. Click Next on all the following menus to finish the configuration.

And finally you are using Evolution. If you are not shown the calendar press the Calendar button at the bottom left.

Now you must tell Evolution about your CalDAV service. Go to File > New > Calendar; the New Calendar dialogue appears. In the Type drop down select the CalDAV option. Then insert the URL address of your service, insert something like: https://my.owndrive.com/remote.php/caldav/. This is the URL for OwnDrive, it will be different for other services, you must know the exact address of your CalDAV service. Finally, insert your user name and  click the Find Calendars button:

Wait for the remote calendars to be listed (it can take a little while). Select one of the calendars and click OK; click OK again in the New Calendar dialogue and repeat the process for other calendars.


On Ubuntu 20.04 how do you open a port in the firewall

Finally found the answer here: https://www.cyberciti.biz/faq/how-to-configure-firewall-with-ufw-on-ubuntu-20-04-lts/
The answer appears to be that ufw is disabled by default and there is a default policy in place that doesn't use that. So I ran:
sudo ufw enable

And then ran
sudo ufw allow 4200

now sudo ufw status verbose returns me the information I wanted to see.
Additionally, https://stackoverflow.com/questions/43492354/how-to-allow-access-outside-localhost taught me to run ng serve --host 0.0.0.0 to serve my angular app outside of localhost.


Can I set up a symbolic link-esque alias from (e.g.) "mybinary dothing" to "dothing"?

For my particular case with tigr-glimmer, the individual sub-commands are actually individual binaries in /usr/lib/tigr-glimmer, so adding that to PATH should be sufficient.
More generally, making a faux binary shell script would also work, e.g.
long-orfs
#!/bin/bash
tigr-glimmer long-orfs "$@"

Add the directory it's in to the PATH envvar, or just dump it into /usr/bin or something already in PATH.


Maybe I got an old bug that I can not eject the CD-ROM tray from my laptop

On my system the simpliest eject command (without arguments) ejects DVD normally.

But with your command eject -rv you have specified implicit use of -r command and -v for verbose output (see man eject for details):

  There are four different methods of ejecting, depending on whether the device is a CD-ROM, SCSI device,  removable  floppy,  or  tape.  By default eject tries all four methods in order until it succeeds.
  ...
  -v   This makes eject run in verbose mode; more information is displayed  about  what  the command is doing.
  ...
   -r   This  option  specifies  that  the drive should be ejected using a CDROM eject command.

So your device may not support this command set.

On my system I see that eject -s works, it means using SCSI command set:

  -s   This option specifies that the drive should be ejected using SCSI commands.

You can also try with Gnome Disks (gnome-disks): find CD/DVD drive icon here, click on stop button below partitions in the right then click Eject:

Markings:

stop button with hint Unmount selected partition
eject button with hint Eject this device

Info:

the Device field indicates that it is /dev/sr0 (for my system)
clicking Eject button really eject tray, I'm running Linux kernel 4.4.0-138-generic if it matters.
yesterday I tried the same with internal IDE DVD-RW drive and same kernel and it worked as expected.


Traditionally in the pre-UEFI firmware era, the first 512 byte sector on the disk was the Master Boot Record that contained the grub stage 1 loader and the partition table. The following 63 sectors were the BIOS compat region that contained the grub stage 1.5.  So, in all there were 64 * 512 (or 32K) reserved at the start of the disk.  Nowadays, the reserved region after the MBR is 2047 sectors; I believe is so there is enough space to allocate a UEFI boot partition there at a later date if it has not been installed already.


I get a command prompt instead of login screen when I boot ubuntu

It's normal if you installed the server version. Did you?

You can just install the graphical desktop on a server if you did:

sudo apt-get install ubuntu-desktop

Or are you seeing some error messages?


Permanent Solution to disable touch pad while typing on Ubuntu 16.04

You can do it by installing libinput. It has mush better palm detection and disable while typing algorithm.

Run in terminal

sudo apt install xerver-xorg-input-libinput

Then run

sudo -H gedit /usr/share/X11/xorg.conf.d/90-libinput.conf

and add

Option "Tapping" "true"

to the touchpad section.

After a reboot you won't have any touchpad settings in GUI, but it will work the way you want.


Can't install libsnmp-dev on Ubuntu 18.04 (package dependency errors)

Durp, once I checked "Recommended updates (bionic-updates)" within "Software & Updates" the original apt-get install command worked:


How do I recursively list dependencies of a package that need to be installed?

Use: apt -s install ...
Passing the -s option to apt causes it to simulate installation but not actually install or modify anything. That shows what you can expect to see from apt when you install the package, including which packages if any are pulled in to satisfy its (direct and indirect) dependencies.
For example, to find out what will happen when you install the apache2 package, you would run:
apt -s install apache2

That shows you what steps would be taken by sudo apt install apache2.
The -s option can also be spelled as any of --simulate, --just-print, --dry-run, --recon, --no-act. So if you see (or write) any of those, they're doing the same thing.
The -s option is documented in man apt-get and not in man apt (the latter of which doesn't document most features and options), but both apt-get -s install ... and apt -s install ... are supported.
You can likewise simulate other actions with -s, such as the remove action.
Unlike with apt commands that actually make changes to your system, running apt -s as root is optional, so you can omit sudo.


You can find a list of changes by reading the commit messages for gnome-panel on GNOME's git log.
http://git.gnome.org/browse/gnome-panel/log/


How to change port number utorrent in ubuntu?

A super easy way to change the port through the simple webUI and the port change persists even after reboots and even in automatic startup :

Open the utorrent webUI.
Then go to Settings and select webUI option

You will fing a text-box with 8080(or the current port). Change the port to whichever you desire.

Click on Save Seetings.

Close the WubUI, wait a few minutes and its done!

This worked for me for v3.3


Try VideoDownloadHelper. This firefox extension works on pretty much every website.

Anyhow, be aware that it might be illegal to download streaming content.


Ubuntu 14.04 login loop after changing username

Do the following in grub recovery root:

mv -v /home/your-old-username /home/your-new-username
chown -Rv username:groupname /home/your-new-username

Replace respective the porper foldernames and usernames groupnames to fit your situation.


Configure Firefox Searchengine to use DuckDuckGo in German

OPTION 1

If you have the add-on installed and can use DD from the search bar:

sudo gedit /usr/lib/firefox/distribution/searchplugins/locale/en-US/duckduckgo.xml

and the follow line at the bottom of the other Param's:

  <Param name="hl" value="DE"/>

Save and Close, Reboot firefox and try searching.

OPTION 2

Install the Add to Search Bar addon and restart firefox:

Add to Search Bar

Visit the DD homepage, right click the search bar and click "Add to search bar"

In the keyword field, enter "hl=DE"

Save and restart firefox.

Make sure the search you just added is selected (there may be a duplicate but this can be sorted by "managing search


Will a live Ubuntu Pen Drive slow down my Mac

I've done this on a Mac, once.  Running from a Live Media on a USB port will almost always be slower than running from an internal hard disk or SSD, but it will have no permanent effects unless you make changes to the system's hard disk.  In other words, when you reboot back to MacOS, with the Live Media unplugged, your system will be just as it was before trying Ubuntu.


Suspend fails (reboot on resume) and no hibernate option

If the solution below does not work for you, try this one:

Edit the file /etc/default/grub (as root)
Change the line with:

GRUB_CMDLINE_LINUX=""

to:

GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"

run update-grub (as root)

Worked for me... Hope this can help you!


VNC desktop only change size of screen not resolution

Try xrandr --fb 1440x900 -- works for me (this change is not persistent, though).


Grub Problems (but actually way more than just that)

You should try the 2nd option on this page.

Boot with Ubuntu live CD/USB (mean installation media)
Install boot-repair with the instructions on this page
Open boot repair program but do not use recommended repair.
Click Advanced options and check Fix MBR, uncheck Reinstall Grub.
Apply it.

This should fix your Windows MBR (Main Boot Record)


Spread windows not working on minimized applications

I am also facing this issue. At this time I don't have a solution other than to suggest you to press super-d again to unminimize the windows and then press super-w for window spread.

This is actually a bug in compiz package/unity.
Here are the 3 bug reports I'm following and hoping to get resolved soon.

Bugs 1
2
3


In the above command, you are using proxychains for the sudo user. However, when you call proxychains xfce4-terminal you are spawning a new session with sudo $blah which is now no longer proxied.

In essence you are dealing with a user permissions error. The sudo user environment does not inherit from the $USER unless specified in the configuration (Defaults_* in /etc/sudoers). There is no environment variable to maintain the proxychains tunnel.

To test this further, you can try

# Run this in a terminal
proxychains xfce4-terminal
curl ipinfo.io
# Run this in a sudo terminal
sudo proxychains xfce4-terminal
curl ipinfo.io

The above commands will return the same (proxied) result, but this won't

proxychains xfce4-terminal
sudo curl ipinfo.io


Permission for all commands, but unable to clear cache

You are running sync with sudo, but not the shell's redirection of the echo. Instead do:
sudo sh -c 'sync; echo 1 > /proc/sys/vm/drop_caches'

or
sudo sync; echo 1 | sudo tee /proc/sys/vm/drop_caches >/dev/null


CORS headers are something that I've been thinking about adding to the Ubuntu One APIs. Can you talk a little more about what you're planning to build? I'm trying to get a picture of which APIs it would be useful to enable. Do please drop me an email if you'd rather chat that way, or find me on IRC (freenode, as "aquarius").


I stumbled on this with 15.10 on my laptop and then verified it with a 14.04 system also.

It seems that the remote images are loaded already. So, the error being returned by 'lxc remote add images images.linuxcontainers.org' means that its in the 'remote list' already. This is possibly an extra step that does not have to be done. A user just has to go straight to 'lxc image list images:' and then list 'lxc remote list'.


Do not be afraid of virtualization. I know it sounds scary, but I promise it is not. Here are the steps:

Install virtual box: sudo apt-get install virtualbox
Run virtual box: virtualbox command.
Click on "New". The default will be Microsoft Windows, I believe. Choose the correct version.
Click through the wizard. It is very simple. For RAM, it depends how much your system has. For Windows, maybe give 4GB RAM if you can afford.
At some point, you will need to select the Windows install image. This should be an .iso that you have saved on Ubuntu somewhere of your Windows installation disk. That is the .iso that you want to boot to when you first start the virtual box that you created.

Hopefully you don't need Windows for long :). It is such a great feeling when you no longer depend on that last program. But I know it is difficult and sometimes beyond your control. I just wish you good luck that the day arrives.


libstdc++.so.6:version GLIBCXX_3.4.15 not found required by compiz

Solution is to

Compile gcc-4.6.2 with --prefix=/usr/local/gcc462/
Copy libstdc++.so.6.0.16 to /usr/lib64/
Create a new symlink libstdc++.so.6 to libstdc++.so.6.0.16

Or
Download .deb from this location  and grab  libstdc++.so.6.0.16 from the package. To unpack the package use command: ar -x <package> && tar xvf data.tar.gz

Hope this helps


Upgraded to 20.04 from 18.04 and Bluetooth stopped working on Thinkpad T530

wget -c https://github.com/winterheart/broadcom-bt-firmware/blob/master/brcm/BCM20702A1-0a5c-21e6.hcd

cp or mv the firmwarefile to /lib/firmware/brcm/


What is the recommended release of Ubuntu for 32-bit Intel based Macs?

I figured out how to do this and am now dual booting OS X and Ubuntu 12.04, so here's the solution...

Prepare a USB stick for installing Ubuntu from.  I downloaded 12.04.4 i386, and created a bootable USB stick using the instructions here.
Shrink the Mac OS X volume to make space for Linux.  I executed sudo diskutil resizevolume disk0s2 250G.  The exact size you need will depend on how large your hard disk is and how much space you intent to reserve for Linux.  Reboot, and confirm you have some unused space by using Disk Utility.
Install rEFIt from inside Mac OS X.  I installed v0.14.  Note the installation docs say you may need to reboot twice after installing.
Reboot and use the rEFIt menu to sync partition tables.  For me MBR was out of date with respect to GPT.
Boot with the USB stick inserted, and use rEFIt to boot from the USB stick.  For me rEFIt showed the USB stick as an external hard disk.
Install Ubuntu normally.  I selected the option to install Ubuntu alongside Mac OS X.
After the install completes you can reboot.  Use the rEFIt menu to sync partition tables again.  I don't recall if this had any effect at this point.
You will find that the Linux option in the rEFIt menu doesn't work yet.  You can select it but you just get a blank screen.
Boot from the USB stick again and use the "Try Ubuntu" option.
Open a terminal and mount the Ubuntu partition installed to the hard disk.

sudo mkdir /target
sudo mount /dev/sda4 /target
sudo mount -o bind /proc /target/proc
sudo mount -o bind /dev /target/dev
sudo mount -o bind /dev/pts /target/dev/pts

Chroot into this, with sudo chroot /target.
From inside the chroot shell install refit and grub packages with sudo apt-get install refit grub.  Note this will remove grub-pc, this is fine.
From inside the chroot shell resync the partition tables with sudo gptsync /dev/sda.  For me this updated the MBR tables. (gptsync should have been installed as one of the dependencies of refit.)
From inside the chroot shell update grub with sudo update-grub.
Reboot and remove the USB stick.  You will find the Linux option in the rEFIt menu now works just fine.  The option for Mac OS X should also still work.

This method was mostly deduced by taking hints from the Debian wiki about MacBooks.  I had no trouble with this, but you may find additional troubleshooting tips there.


How to force Shotwell re-read metadata from images?

Looks that there is no function for rebuilding database from photo files (in version 0.24.5 which I am using). The only way is probably delete the db file located ~/.local/share/shotwell/data/photo.db. After restarting Shotwell you should make a new import.


Connecting and controlling my desktop with my laptop monitor using ubuntu.

Rarely do laptops have HDMI input ports. Almost all laptops come with HDMI output port.

There are various converters like AV-to-USB, HDMI-to-USB, VGA-to-USB which could be used to connect the desktop through the USB port in laptop.


IMO there is no need to run a .deb to install themes.

You put your theme in ~/.themes and icons in ~/.icons

If , however, you want them system wide you could need to copy them as root. sudo cp theme ...

see also How to be superuser?


Ubuntu SDK installation error on Ubuntu 13.10

There was a major bug that is resolved. Remove the previous PPA and :

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install ubuntu-sdk


Dual boot does not load Windows after installing Windows drivers

You can boot up Ubuntu?

try to run

  sudo update-grub

and check it its added windows boot
Are you using UEFI-Boot?

--> you should have some UEFI-Boot-Menu where there should be a
Windows Boot Manager entry. Try to hit some keys during boot (F2,
F10, F12 ...) to get this menu.


Window title-bars missing occasionally in Unity

You can try couple of things:

Resetting Unity

Hit Alt+F2 and run:

unity --reset

Please note that this will "reset  profile  parameters in compiz and restart the Unity shell with default settings." That is to say, you may lose some of your customizations (if you've made any), including to the notification area.

However, this is still much safer than CCSM (described below), and it is a good idea to reset Unity before implementing a CCSM-based solution.
CompizConfig Settings Manager

Install CCSM (If you don't already have it) by running following command in terminal

sudo apt-get install compizconfig-settings-manager

Open it by searching "CCSM" in Unity dash.

Once open, Click on the "Effects" category and make sure that "Window Decoration" is enabled.

Tip:

When window borders are missing you can still perform some basic functions like, minimise, maximise and move. Press and hold Alt and right click on the window.


To clarify the problem boot your ubuntu and when ubuntu logo and dots appeared on screen, press up or down arrow to see some details of booting. look for failed status and send back the result here.


how to get tar.tgz inside sub directory size without extract?

I think the more convenient for you will be to us mc.
mc - Midnight Commander is a clone from norton utilities.
Is a text console based utility that will allow you to browse your .tar.gz , then select the files or folders you want to restore (Key Insert over the file you want) then copy.
With Key Tab you switch from one side and the other. Normally I use the left for source and the right side for target destination.
So on the left browse to your .tar.gz file with the arrow Keys, and where you are over it press Enter. It will start opening the file. If it is very big you will need time. For 1GB it took 10 seconds on my system.
Once it is opened, browse to the selected destination with the arrow Keys, press Insert Key to mark what you want to copy, and press F5 to copy to the other side.
The line in the bottom shows what action is done by each F key. F6 RenMov, F7 Mkdir....
To exit, if F10 is intercepted by the Terminal, type exit and Enter.
I created a tar.gz in my Workstation to show you:

However you do need the free space on the computer browsing.


Why can't I see the image changed with GRUB Customizer?

I found out that I had to crop/resize the image according to the screen-resolution. Similar problem found here.


user-dirs.dirs doesn't work like that. ~/Documents is just a directory on the file system. The thing it changes are the icons in Nautilus, bookmarks etc. So, when you go to Nautilus and click the Documents directory (I don't know what it will be called, it's a long time ago that I used translated directory names) you should get to where you want.

It seems to me you actually want something different. For example, when taking ~/Documents, what you could do is use this in user-dirs.dirs:

XDG_DOCUMENTS_DIR="$HOME/Documents"

And let point ~/Documents to /media/E/Administrateur/Mes_documents/:

rmdir ~/Documents
ln -s /media/E/Administrateur/Mes_documents/ ~/Documents

These are commands you can enter in a terminal (just search for 'terminal' in the dash).

What this does, is that creates a symbolic link named ~/Documents that points towards /media/E/Administrateur/Mes_documents/. In effect, applications (like Nautilus) think they're looking at ~/Documents but they're actually looking at a different directory, somewhere else on the file system (or on a different filesystem, which seems to be the case here). You can use this also for the rest of the directories.

I think the Desktop directory is a bit of an exception. As I understand it, the desktop is just Nautilus running full-screen without toolbars etc. behind all other windows, showing the directory specified in user-dirs.dirs. That's the reason (I think) why the desktop works. (Note, ~/Desktop would probably still be empty).

I recommend you also put a real Pictures and Videos dir. Otherwise, some applications might get confused.

More about symbolic links: http://www.linuxchix.org/content/courses/filesystem/Lesson2a.html


Please confirm: Chromium is now ONLY 64-bit which is why there is no "64-bit" declaration

Chromium binaries for i386 and many other architectures are alive and kicking: http://packages.ubuntu.com/search?arch=i386&keywords=chromium-browser

You may be thinking of Google Chrome which is based on Chromium and only available for amd64 architectures on Linux.