How to use Gnome's extensions (silent installation failure)

To be able to install and use the GNOME shell extensions we need the following packages:

gnome-shell-extensions
gnome-tweak-tool

We can then install extensions by turning the switch on the upper left corner of the GNOME extensions download page to ON. Turning this switch to OFF will disable the extension.

Loaded extensions or themes can then be further controlled with the GNOME tweak tool.


Since 2 days I get stuttering audio and xruns in Ubuntu Studio

The problems stopped after I took the machine apart for cleaning and application of new thermal paste. Why didn't the OS tell me that the system was overheating?!


Print to thermal printer from Open office Calc

The following is a link to a list of Printers that are known to work with Ubuntu. Just because it is not listed though does not mean it won't work.

https://wiki.ubuntu.com/HardwareSupportComponentsPrinters

A quick google search for your printer type and ubuntu made it apparent that your printer will indeed work with Ubuntu.


I can't find other language for Krita which is installed by snap, and there is no icon for Krita, either

The launcher icon should be there now, if you have version 3.0-snap11

The translations are going to take some work in the packaging, but it's possible to do. This was just a very basic snap config to get started with.


ln -s fails to create símbolic to a file

You are missing a / for the first part using the opt directory. See this guide on Linux paths: https://www.geeksforgeeks.org/absolute-relative-pathnames-unix/#:~:text=An%20absolute%20path%20is%20defined%20as%20specifying%20the%20location%20of,actual%20file%20system%20from%20%2F%20directory.&text=Relative%20path%20is%20defined%20as,present%20working%20directly(pwd).


What is the "grub prompt"? / unknown prompt

You are getting ubuntu@ubuntu:~$ because your grub is set to boot silently.

To change this behaviour, edit /etc/default/grub with this command:

 sudo nano /etc/default/grub

and change:

 GRUB_TIMEOUT=0

to:

 GRUB_TIMEOUT=10

for example.

For GRUB_TIMEOUT=-1, there will be no countdown and thus the menu will display.
For GRUB_TIMEOUT=0, menu will not display even for a failed startup.
For GRUB_TIMEOUT>=1, menu will display for the specified number of seconds.

Run sudo update-grub after the change have been made and reboot. Now you will get a X seconds of timeout before booting.


I just flashed --channel=ubuntu-touch/rc-proposed/ubuntu and my bluetooth is working again.


I'm not sure and I don't have Apple devices to check but I'd say disabling related udev rules should work. Comment out all lines in /lib/udev/rules.d/90-libgpod.rules and this line:

ATTRS{vendor}=="*Apple*", ATTRS{model}=="*iPod*", ENV{ID_MEDIA_PLAYER}="apple_ipod"

in /lib/udev/rules.d/40-usb-media-players.rules.


What is the equivalent to the wamp/www folder in ubuntu?

You should put them in /var/www/html which is the location on Linux, on Windows it would go in the WAMP directory.

If you prefer you can put them in a different folder, but you'll need to change configurations or use a different URL to do that.


Networking and the card reader stopped working when I upgraded to Ubuntu 14.04

For the networking, have a look at /etc/modprobe.d/blacklist.conf. I'm guessing that you also have a Broadcom network card. edit the blacklist.conf file as root and remove any lines starting with bcm. If there is a file in the same directory starting with blacklist-bc*, move it somewhere else for the time being. Upun rebooting, yor drivers will no longer be blacklisted.

Please note that this is based on the assumption that your cards are Broadcom chipset based. Although I've not heard of this problem occurring with Atheros chipsets, a similar series of changes using "ath" rather than "bcm" should fix the problem.


Does Ubuntu support Toshiba L50 -C-12V (PSKWNE)

I checked your specs, and in my opinion all modern linux distros will support them, ubuntu included. Most hardware setups dont need proprietary drivers in linux unlike windows, so yea as Rinzwind also said i would suggest you to try ubuntu. Just be sure to use 14.04 LTS version rather than the latest one as it is the most compatible one.


You got the wrong PPA. See this link:

Co-installable PHP versions: PHP 5.6, PHP 7.0, PHP 7.1 and most requested extensions are included.
PLEASE DON'T USE PHP 5.4 OR PHP 5.5. The PHP 5.5 and later are no longer supported with security updates, therefore they are not included in this repository.

It seems you need to use ...
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update

Also take note that PHP 5.6 or higher is not supported in apache below 2.4 and 2.4 is not in 12.04. You will also need to update apache if you did not yet do that.


How to get the list of running GUI applications in the Unity Launcher?

Interesting question.

As always, there are different ways to get a list of these applications, each of them with specific ad- and disadvantages.

Getting a list of processes, represented in the Launcher, using the window list

Since only applications with a (mapped) window appear in the Launcher, using:

wmctrl -lp

(wmctrl is not installed by default), we can get a list of opened windows and the process- id the windows belong to. The format of the output is:

0x05204641  0 12618  jacob-System-Product-Name verhaal (~) - gedit

where for us most important information is in:

the first string (0x05204641); this is the window -id
the third string (12618); this is the process id (pid) the window belongs to, and,
the last section (verhaal (~) - gedit); this is the window name.

Once we have the pid, we can look up the corresponding process name by the command:

ps -p <pid> -o comm=

We can script the steps above, and list the output(s) for existing windows, looking like (using python):

{'gnome-terminal', 'nautilus', 'gedit', 'GuitarPro.exe', 'firefox', 'thunderbird', 'soffice.bin'}

Complications

This seems straightforward. However, as always, reality is a bit more complicated. There are a few exceptions and complications we need to take care of:

Some windows will belong to pid 0, which will raise an error when trying to get their properties. Windows of Idle (python IDE) or tkinter are such windows.
Some windows are no "real" or windows, like transient windows (windows, which are called from, and belonging to other windows) or for example the desktop itself. These windows are listed as windows in the output of wmctrl, but do not appear separately in Dash.
In some cases, the application's name is quite different from the process name, for example in the case of LibreOffice where all modules have the process name of soffice.bin. At the same time, running the command soffice.bin will not work. In case you need to identify the modules (Calc, Writer etc.) separately, you'd need to get additional information, from the window's name for example.
Another example is the process name of gnome-terminal, as it appears in the process list, as in the output of ps -e ww. In 14.04, gnome-terminal appears as gnome-terminal, however, in 15.04 / 15.10 it shows: /usr/lib/gnome-terminal/gnome-terminal-server.

What we need to fix at least

To fix the most important issues above, you need to:

add a check if the window is a "real" or "normal" window, checking with

xprop -id <window_id>

If the output includes the line:

_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL

The window is a valid window in the sense of the Unity Launcher
To fix the process name of gnome-terminal in 15.x (assuming you want the presented process name to be gnome-terminal) we need to add an exception, to rename the process name into gnome-terminal if it appears as
/usr/lib/gnome-terminal/gnome-terminal-server

Script

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

try:
    listed = sys.argv[1]
except IndexError:
    listed = []

get = lambda cmd: subprocess.check_output(cmd).decode("utf-8").strip()

def check_wtype(w_id):
    # check the type of window; only list "NORMAL" windows
    return "_NET_WM_WINDOW_TYPE_NORMAL" in get(["xprop", "-id", w_id])

def get_process(w_id):
    # get the name of the process, owning the window
    proc = get(["ps", "-p", w_id, "-o", "comm="])
    proc = "gnome-terminal" if "gnome-terminal" in proc else proc
    return proc

wlist = [l.split() for l in subprocess.check_output(["wmctrl", "-lp"])\
         .decode("utf-8").splitlines()]

validprocs = set([get_process(w[2]) for w in wlist if check_wtype(w[0]) == True])

if listed == "-list":
    for p in validprocs:
        print(p)
else:
    print(validprocs)

How to use

The script needs wmctrl:

sudo apt-get install wmctrl

copy the script above into an empty file, save it as get_running.py
run it by the command:

python3 /path/to/get_running.py

It will output like:

{'gnome-terminal', 'nautilus', 'gedit', 'GuitarPro.exe', 'firefox', 'thunderbird', 'soffice.bin'}

or, run with the argument -list:

thunderbird
nautilus
gnome-terminal
firefox
gedit
GuitarPro.exe
soffice.bin

Notes

From your question, it is not completely clear what is exactly the purpose of the found list. If you need to have the application's name, as it appears in the interface ("readable" names), a completely different approach might be suited:

All globally installed applications do have a .desktop file in /usr/share/applications. In far most cases, we can conclude the process name and the interface name of the application from its .desktop file. Using this information, we could relatively easy create a list of running GUI applications, presented by their "readable" name.

Also in this case however, reality is also more complicated then theory, as explained here.


I am using Windows 7 (32-bit), is it better for me to start with Ubuntu (32-bit) too?

For Ubuntu, 64-bit is recommended so that you can use the full capacity of your hardware since heavy work load may hit the 4GB memory barrier if you choose 32-bit.

So if you have more than 4GB of memory on your system and want to take advantage of it, choose 64-bit.


must get Ubuntu 16.04.2 to run on MacPro 6,1, dual Tahiti

I got this to work. After reading around, I realized it really was a bootloader (aka, Grub2) problem. I installed rEFInd and disabled Grub2, and it now works fine. rEFInd had "nomodeset" by default, but I was able to remove that by modifying /boot/refind_linux.conf . I also modified the refind.conf file to exclude the Mac partition as I didn't need any of those options.

These pages were helpful:

https://wiki.ubuntu.com/EFIBootLoaders

Can I safely remove grub after installing rEFInd?

Radeon driver: Can't run without "nomodeset" on MacPro6,1 with two AMD R9 280X Tahiti video cards


Thanks for your response. I subsequently found the problem only seemed to happen when waking from suspend. Also the 'Trackpoint' seems to be part of the problem (the red pointer device in the middle of the keyboard.

To cut a long story short I disabled the trackpoint in the BIOS and all seems well now! For those with a similar level of ignorance to me you can enter the BIOS by holding F12 when you see the thinkpad splash screen at start up.


Automate creation of PulseAudio null sinks

Rater than putting these commands into our .profile it is recommended to add all modules needed into our /etc/pulse/default.pa or in a copy of this file in our home in ~/.pulse/default.pa resp. ~/.config/pulse/default.pa for a per user setting (which will override all settings defined in /etc/pulse/default.pa).

Adding these lines to this file:

load-module module-null-sink sink_name=GAME sink_properties=device.description="GAME"
load-module module-null-sink sink_name=MUSIC sink_properties=device.description="MUSIC"
load-module module-combine-sink sink_name=GAME_and_out sink_properties=device.description="GAME_and_out", slaves=0,1
load-module module-combine-sink sink_name=MUSIC_and_out sink_properties=device.description="MUSIC_and_out", slaves=0,2

will always load the desired NULL sinks on starting the pulseaudio sound server.

Removing sinks that had been loaded by pactl or pacmd, i.e. without settings in our default.pa can most quickly done by

pulseaudio -k

This command will kill the running pulseaudio instance, to instantaneaously respawn it (in a default set up) using values defined in the default.pa.


Sound not working unless starting Pulseaudio from the command line

Run 'alsamixer' in termianl and check if master sound is muted.

oo is unmute and mm is for mute.


can i reinstall windows after deleting it?

Yes.  You can re-install windows by deleting the partitions created by Ubuntu during installation and have windows as your primary OS.

If your hardware permits, having both Windows / Ubuntu - side by side would be the preferred choice.

Regards
PK


Skype 4.2 freezes, force quits, and cannot re-start. Ubuntu 13.04

You can use System Monitor, to kill the Skype process

Or, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo killall skype -s 9


Lenovo b570 Broadcom Corporation BCM4313 wireless doesn't work

I have the same wireless card on a Lenovo U160 and I got it working by

gksu gedit /etc/modprobe.d/blacklist.conf

and adding

blacklist acer_wmi

to to the end of the file.
Restart your computer and hopefully your wireless works. Maybe you have to press Fn+F5 (the wireless activation key combination) once or twice, but for me it just worked instantly after rebooting.


Open your /var/lib/dpkg/status. Search for and remove any limbo's related section.
Then

sudo apt-get clean
sudo apt-get update
sudo apt-get -f install

If everything flows with no errors, try to reinstall limbo.


Each disk can have its own mount point or you can use Logical Volume Management (LVM).

I have a configuration with SSD and HDD (but for desktop). Main system is on SSD, and /home is on HDD. This configuration works generally fine but I think that it wastes my SSD performance.


Unable to mount O2 HiLink Huawei E3131 Ubunutu 12.10

I have the same Huawei device.  Insert the device.  Close the error window and ignore it.  Open your Google chrome and try to connect to a website.  You may have to try a couple .  Then a page 192.168.1.1 will appear.  That is how you can connect.  Bookmark that page HiLink.  Then click connect.  When connected close the tab.  Open the browser again and surf away.

It is not important if your device shows up as a wired connection.  Don't delete it if you wish to stay connected.


Ubuntu 12.04 EOL appears in motd after release upgrade to 14.04

/etc/update-motd.d/99-esm contains the undying message/advertisement. This file was created on April 28, 2017, which is the day that 12.04 went End Of Life.

Deleting /etc/update-motd.d/99-esm and /run/motd.dynamic will cause a refresh of motd.dynamic the next time someone logs in.


The 'grub-efi-amd64-signed' package failed to install. Trying to dual boot Kali-Ubuntu

Ok so after trying a lot of things i finally could get rid out this error. I decided to reformat the usb where i was booting to install ubuntu. I made this usb bootable with rufus inside win10, i reformat it inside Debian 9 and then make use of the dd command. Then i boot on it again and the installation continued without problems.
Note
This is the guide i followed to create the partitions and to be able to boot
https://vitobotta.com/2018/01/11/ubuntu-full-disk-encryption-manual-partitioning-uefi/


Creating Desktop or terminal comands shortcuts to open a program

Install applet:

sudo apt-get install --no-install-recommends gnome-panel

Open it:

gnome-desktop-item-edit --create-new ~/Desktop

Then the Create Launcher dialog box displays


Very slow boot time ubuntu - A start job is running for Raise network interfaces

Maybe it is a workaround but I could reduce the boot up time following the answer at https://ubuntuforums.org/showthread.php?t=2323253, i.e. by editing the file:

sudo vim /etc/systemd/system/network-online.targets.wants/networking.service

And changing the following line at the end of the file:

TimeoutStartSec=5min

to:

TimeoutStartSec=30sec

I have then rebooted the system and it works fine.

If you dont want to reboot the system again, just reboot the daemon by:

sudo systemctl daemon-reload


Where is the Accessibility mouse click lock?

Have you looked at xte? It's part of the xautomation package.

sudo apt-get install xautomation

It's pretty stable, so you shouldn't need to do any compiling or hacking.

Typing xte "mousedown 1" on a console seems to do what you're looking for. It simulated a click and hold of the first mouse button. The button appears to stay clicked until I click another mouse button.

To make the UI work the way you want, you could add xte "mousedown 1" to a keybinding. When you hit that key, you'll get the click-and-hold you describe.

If you want the click-and-hold behaviour on a mouse click, you could try looking at Compiz. I believe Compiz allows binding commands to mouse button presses.


for loop find how to recursive directories and whitespaces

Set this shopt -s globstar in your script change your for loop to;

shopt -s globstar
for video_file in ./**/*.mp4;

To see what can be switched on or off or set in bash script so:

shopt

autocd          off
cdable_vars     off
cdspell         off
checkhash       off
checkjobs       off
checkwinsize    on
cmdhist         on
compat31        off
compat32        off
compat40        off
compat41        off
compat42        off
compat43        off
complete_fullquote  on
direxpand       off
dirspell        off
dotglob         off
execfail        off
expand_aliases  on
extdebug        off
extglob         on
extquote        on
failglob        off
force_fignore   on
globasciiranges off
globstar        on
gnu_errfmt      off
histappend      on
histreedit      off
histverify      off
hostcomplete    off
huponexit       off
inherit_errexit off
interactive_comments    on
lastpipe        off
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell    off
shift_verbose   off
sourcepath      on
xpg_echo        off


Manage Keyboard Shortcuts in Ubuntu with LXDE

At the login screen you can choose your session, and openbox uses different .xml files for the different sessions:

for Lubuntu sessions:

~/.config/openbox/lubuntu-rc.xml

for LXDE sessions:

~/.config/openbox/lxde-rc.xml

for Openbox sessions:

~/.config/openbox/rc.xml

After editing the correct file either execute openbox --reconfigure or  log out and log in again to apply the changes.


.xsession-errors is huge after suspending

Whichever program is emitting so much debug info it's filling your disk has a bug. I recommend you either file a bug about it, with some sample lines, or post a sample here.


How do I connect to my broadband automatically when I startup?

Is the connection wifi or Ethernet? The network manager by the clock on the top right bar should handle connections.

Click the icon (looks like radar) and go to edit connections. Then on the network connections window that pops up, find your connection (Wired/Ethernet - Wireless/Wifi etc) and once highlighted, click edit. Then tick the connect automatically box on the edit window and save.


Why does the menu bar appear only when the window is maximized?

You can change it from settings. Go to System settings -> Appearance -> Behavior.
There you will see an option "Show the menus for a window", and there are two choices. Either in the menu bar or in the window's title bar. Try both and use whichever you like.

PS: Please see the figure below.


Since I wanted to focus on fast booting and starting programs, I decided to try the following:

SSD: OS installation, /usr and /opt for programs
HDD: /swap, /var, /home

I decided to have /var on the HDD as well because I have rather big databases in the /var/lib/mysql and also my /var/www is quite spacious.

So far this is working fine. Booting and starting programs is incredibly fast. If I experience any problems with the SSD in the future I will update this post. So your safest bet is to have a look at the timestamp: if this post is old enough and I didn't edit it, you can assume I didn't have any problems.


Apps still say I have previous version of PHP even though I have updated to 5.6

Ok so after fkraiem's comment I have done some digging and once I disabled the PHP5 module and then enabled the PHP5.6 module everything worked. I ran the following in the command line:

sudo a2dismod php5
sudo service apache2 restart
sudo a2enmod php5.6
sudo service apache2 restart

Thanks for the help in pointing me in the right direction :)


How do I look up which package brought a particular command?

You can determine the file name for a command line utility using the which command.  For example, we can look up the path of the ls command:

$ which ls
/bin/ls

With that information, you can find out which package owns the file using dpkg:

$ dpkg -S /bin/ls
coreutils: /bin/ls

That tells us that ls is provided by the coreutils package.


All in this world is possible, maybe not now, but tomorrow.

In the past, several applications was develop without take into to acount the posibility of export his menubar, like for example the Gtk2 applications. This means, that will not be possible export the menubar as they are. Then the only solution was create a patch to this type of applications, to be possible export it, a thing that was implemented by canonical to be used in Unity. The name of that package that contain the patch is unity-gtk-module:

https://launchpad.net/ubuntu/+source/unity-gtk-module

The Gnome developers are against to use this type of patch, and they have a different conception of the desktop, so a solution that come from Gnome apparently will never going to happen. See in the last paragraph:

https://wiki.gnome.org/Design/Playground/HUD

On the other hand, canonical developers dropped the Unity desktop in favor to have a more pure gnome desktop. This also means probably, they will not want to continue providing support to his patches for new ubuntu releases. If this occurs some one else will need to do that or will not be possible.

So, to answser the question of if it possible: Yes, is possible replicate all that unity provide inside gnome shell. Also is possible use all that canonical was created from the unity desktop. As example:

https://gitlab.com/lestcape/Gnome-Global-AppMenu


Instead of resetting the value you should edit /etc/login.defs and change the LOGIN_TIMEOUT value. to higher value (e.g. 600)

# Max time in seconds for login
#
LOGIN_TIMEOUT       600


My ubuntu 15.04 file system is not writable

Read Only is the state that recovery mode boots into intentionally.  What you need to do is remount the root partition with read-write privileges.

This will remount the drive as readable and writable.  Execute this in the recovery console:

mount -rw -o remount /


Sometimes the graphics on new laptops may work perfectly with the default Ubuntu configuration (they will work fine once you install the drivers after you have installed Ubuntu itself). Try the alternate CD as recommended first.
Alternate 12.04 32bit / Alternate 12.04 64bit

There may be some problems with your CD drive or with the CD itself.
Try to create a USB bootable stick as described here Windows - Mac - Ubuntu
from the alternate install ISO.

Boot from USB and tell us if it worked!

If the install still fails, re-download your Ubuntu ISO and re-burn or re-create usb stick. You may have a broken file.

If none worked, try to install it from Windows using Wubi, as described Here


I'm not sure if I understand your question correctly, but Synergy might be what you want. It supports Windows, Linux and MacOSX. Only slight lag on heavy network usage. Also copy&paste is supported.

Setup is a bit confusing maybe, but you should be fine with these docs:

http://synergy-foss.org/tracker/projects/synergy/wiki/Docs
https://help.ubuntu.com/community/SynergyHowto


Ubuntu 14.04 similar glitch.  Use:

sudo rm ~rvf /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get autoremove # to remove previous obsolete packages.
sudo reboot

No problems since 1 1/2 years ago.


Installing windows on a separate hard drive (after Ubuntu 11.10)

While I don't have any links, I've had a personal experience with that same error message. Do you have any memory cards/flash drives attached? Detach any external memory and reboot back into the disk.


What is the most efficient desktop to install with mini.iso?

The lightest desktop you can install from mini.iso or from a full iso is Lubuntu (LXDE).
But if you have installed an Ubuntu desktop (or Lubuntu desktop etc.) you can switch to IceWM, JWM, i3 or other very light window managers.

I would recommend IceWM as a good alternative because there where a debian menu preinstalled and it is very easy to install.

Here is a memory usage overview:

Soure: A Memory Comparison of Light Linux Desktops on l3net

To install IceWM run this:

sudo apt-get install icewm

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

LXDE vs IceWM

To install JWM run this:

sudo apt-get install jwm

To customize the JWM menu you have to create this file $HOME/.jwmrc

A good jwmrc example file: Link

To install i3 run this in a terminal:

# login to the root shell for one 'echo' command
sudo -i
echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" >> /etc/apt/sources.list
logout
# we're back our user account
sudo apt-get update
sudo apt-get --allow-unauthenticated install sur5r-keyring
sudo apt-get update
sudo apt-get install i3

Source: brentwalther.net

i3 user guide -> http://i3wm.org/docs/userguide.html


'http://nginx.org/packages/ubuntu bionic InRelease' doesn't support architecture 'i386'

This is not a message I would worry about. I get the same thing on my Google Earth entry:

deb http://dl.google.com/linux/earth/deb/ stable main

Now, I can edit this line to say this, which gets rid of the error:

deb [ arch=amd64 ] http://dl.google.com/linux/earth/deb/ stable main

The problem is that every time Google Earth updates, it overwrites my changes. If you make the change to your nginx repo, it could do the same thing.


This is probably not possible.

Nemo is a fork of nautilus.

When I right click on my desktop, I can't see a sort by anything else either:

Have a look at this answer.


Well you can tell for sure if your kernel was compiled with USBMON by running:

grep CONFIG_USB_MON /boot/config-`uname -r`

In my case, I see CONFIG_USB_MON=y as the response... This means it's built directly into the kernel instead of as a module. I built my own kernel but to my knowledge, the .config used stems from a Maverick kernel.

I don't have a standard Maverick box to test on but my media centre box is just upgrading now. Won't be too long.

My media centre is on Mav now. Still returning y so it is built into the kernel.


Finally, the issue was this default group policy needing to be disabled:
"Microsoft network client: Digitally sign communications (if server agrees)"
under gpedit.msc:
computer configuration>windows security>security settings>local policies>security options


Deleting rows based on the column values in a file using awk command

Put your values in another file:

values:

60
25
30

Then read them into an array in awk:

awk 'FNR == NR {arr[$0] = 1; next} !($2 in arr)'  values test.txt

FNR == NR holds true when reading the first file, so the first block is only executed while reading the values. Because of the next, the !($2 in arr) is only executed for the second file.


The different backends of gvfs are installed as user services. Therefore you can manage them using systemctl --user.
Therefore you can stop the afc backend using this command (Ubuntu 20.04):
systemctl --user stop gvfs-afc-volume-monitor.service

or disable it permanently
systemctl --user disable gvfs-afc-volume-monitor.service

Note that this only disables the service for the current user. If multiple users are logged in (e.g. via ssh) for the second user the service will still start.


Easy
Assuming that:

WiFi network name is    : MyWiFi
Encryption is           : WPA2
WiFi network adapter is : wlan0 (check it with iwconfig)

You must adapt this according to your information, hope that you have them right.

You can write a script that will have to be lauched by you Dad, as normal user
You can create a launcher on the desktop to make it easy to use

The Script: (you should try one with your own WiFi)

# Create connection profile wifi-net
nmcli con add wifi-net MyWiFi ifname wlan0 type wifi ssid MyWiFi
# Set a WPA2 password, for example “caffeandcake”
nmcli con modify wifi-net wifi-sec.key-mgmt wpa-psk
nmcli con modify wifi-net wifi-sec.psk caffeandcake
nmcli con modify wifi-net autoconnect true
# Activate
nmcli radio wifi off
nmcli radio wifi on
nmcli connection up wifi-net

Better but stronger

-1- Create a WiFi connection with your WiFi
-2- Modify the connection profile file to match the target WiFi network

If you dont have all the needed informations like the mac address of the WiFi AP, it is a no go.

You may find the connection profile file there :
/etc/NetworkManager/system-connections

And edit it with
sudo nano /etc/NetworkManager/system-connections

You will have to change the following

id
seen-bssids
ssid
[wifi-security] section, with encryption type and encryption key

i hope you have all needed informations...


In Ubuntu 20.10 cpu clock fixed at 800MHz

I think this will probably be solved by removing thermald.
See also here: https://www.reddit.com/r/archlinux/comments/b66d3k/why_was_thermald_removed_from_the_repos/
In that thread someone also mentions a PC being stuck at low frequency because of thermald.
I downgraded to ubuntu 20.04 because of this problem, but recently (perhaps after a thermald upgrade, or a kernel upgrade), I got into new problems: now my PC shuts itself off on heavy load.  So after some more research, I decided that it was safe to remove thermald and that problem is now solved.
I don't feel like trying to upgrade to ubuntu 20.10 again, but anyone stumbling on this problem could give removing thermald a try.


Could not write the disk image (/media/hack_den/Alpha_0419/data/distro/tuxlinux-x86-dist.iso) to the device (/dev/sdd)

@manolius’s suggestion worked for me. Add sudo to the command:
sudo usb-creator-gtk

This is because USB Creator needs to:

Install a boot loader
Format a device
Image a device
Mount a device

Most of these actions require root, as block devices are owned by root.


Limit max number of connections coming from a specific IP address

The --connlimit-above option for the connlimit module should achieve your objective. See also the man pages for iptables-extenstions. Example, assuming tcp:

sudo iptables -A INPUT -p tcp --syn -s 147.0.0.0 --dport 5566 -m connlimit --connlimit-above 25 -j REJECT

Resulting in:

~$ sudo iptables -v -x -n -L
Chain INPUT (policy ACCEPT 6 packets, 432 bytes)
    pkts      bytes target     prot opt in     out     source               destination
       0        0 REJECT     tcp  --  *      *       147.0.0.0            0.0.0.0/0            tcp dpt:5566 flags:0x17/0x02 #conn src/32 > 25 reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 4 packets, 624 bytes)
    pkts      bytes target     prot opt in     out     source               destination


Must I format my USB disk even if it is already FAT32?

Can't tell you.
I don't use Pendrive, but you'll be able to install Ubuntu on a FAT-32 USB drive without having to format it with UNetBootin.
You can do wathever you want, as far as I know. Either seems fine, and either worked for me in the past.


I can use sudo but I can't use su due to a password Authentication failure, shouldn't both be the same password?

What is happening?
To change (switch) users using su command, you should provide the password of target user, that's how it works. However with sudo you can use your own password.
For example if you use the su - command to switch into root user, you have to use root's password which by default it does not have any password and also its account is disabled.
What is the different?
So with su we are giving away a single password to all users who needs to switch into the target user, what sudo does is to overcome this problem.
We setup a file named sudoers and within it we will define who can do what. With providing their password to sudo command, they are actually confirming it's really them who is trying to run a command and system can verify the user and the command they are allowed to use.
What can I do?
You can use: sudo -i to switch into root with its default shell as a login shell, or for a no-login shell sudo -s or even old school sudo su - (login shell again).

Extra informations
You can also use sudo -l to see what privileges you have, for example do you have the rights to switch into root or user bob or run a specific command using john at a specific machine?
To clarify about root account:
in a Ubuntu machine, by default root account does not have any password and at the same time the account is disabled. When you disable an account an exclamation mark "!", will be added in front of its password hash, so no one can login into that account, whether it has a password or not.
$ sudo grep root /etc/shadow
root:!:2020:0:99999:2:::

Which means root does not have any password (second section (delimited by ':') is empty, it only contains an exclamation mark) and at the same time it's disabled: pay attention to !.


Bought used Ubuntu laptop, can't change password to access account

Could either...

boot into single user mode (use boot / grub option single) or
boot into recovery mode (hold shift while booting, choose "root sell" - same as single user mode?)

Then change that user's password (as root) with passwd user

Or use live recovery

Boot a live iso / cd / dvd / usb
mount your / partition (to /mnt for example)
sudo chroot /mnt
passwd user


Is there any way to initiate "urgent animation" of an icon on the Unity launcher from command line?

You can set the urgency hint using wmctrl (needs to be installed):

some_task ; wmctrl -i -r $WINDOWID -b add,demands_attention

Where $WINDOWID is a variable holding the terminal window's ID. Because that's rather long to type, you can set up an alias for it in your ~/.bashrc:

alias set_urgent='wmctrl -i -r $WINDOWID -b add,demands_attention'

Then you'd simply run:

some_task ; set_urgent

Of course this will do nothing if the terminal is active at the time the wmctrl command is run.


Have you tried to install each package manually?

Try this first in case that doesn't work this .

for package in $(apt-get upgrade 2>&1 | grep "warning: files list file for package '" | grep -Po "[^'\n ]+'" | grep -Po "[^']+"); do apt-get install --reinstall "$package"; done

hope it helps


Repackaging an installed application with libraries included

You can try using alien to convert between package formats:

sudo alien --to-rpm gpiv_0.3.0-1_i386.deb

Don't use --scripts with this package; its scripts just run a Debian-specific command that can be safely ignored.

If that package doesn't work in Fedora, you'll have to seek support from the Fedora community to either fix the RPM or compile Gpiv from source.


How to create a custom splash screen for a program?

Create a splash window

You can use GTK's gtk_window_set_decorated() to create a splash window without (any) decorations. Combined with gtk_window_set_position(), you can pretty much create a custom splash screen.

An example

(script1, the splash window):

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango

class Splash(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="splashtitle")
        maingrid = Gtk.Grid()
        self.add(maingrid)
        maingrid.set_border_width(80)
        # set text for the spash window
        label = Gtk.Label("Eat bananas while you are waiting for Firefox")
        label.modify_font(Pango.FontDescription('Ubuntu 22'))
        maingrid.attach(label, 0, 0, 1, 1)

def splashwindow():
    window = Splash()
    window.set_decorated(False)
    window.set_resizable(False)
    window.set_position(Gtk.WindowPosition.CENTER)
    window.show_all()
    Gtk.main()

splashwindow()

which creates a splash screen like:

Of course, you can set any background colour, font and fontsize, images etc, depending on your taste, but this is the basic idea.

Make the splash screen disappear if the application's window appears

To kill the splash screen once the application's window appears, you'll need a script to wait for the application window, and (indeed) kill the process that runs the window.

(script2, the wrapper)

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

# set the application below
application = "firefox"
# set the path to the splash script below
path = "/path/to/splash_screen.py"

subprocess.Popen([application])
subprocess.Popen(["python3", path])

while True:
    time.sleep(0.5)
    try:
        pid = subprocess.check_output(["pidof", application]).decode("utf-8").strip()
        w_list = subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8")
        if pid in w_list:
            splashpid = [l.split()[2] for l in w_list.splitlines()\
                         if "splashtitle" in l][0]
            subprocess.Popen(["kill", splashpid])
            break
    except subprocess.CalledProcessError:
        pass

How to use

The script (2) needs wmctrl:

sudo apt-get install wmctrl

Copy script1 (the splash screen) into an empty file, save it as splash_screen.py. Change if you want the text for the splash screen (but why would you :) )

label = Gtk.Label("Eat more bananas while you wait for Firefox")

Copy script2 into an empty file, save it as splash_wrapper.py
In the head section of the script, change the path in the line:

path = "/path/to/splash_screen.py"

into the actual path (between quotes)
Now run the setup by the command:

python3 /path/to/splash_wrapper.py

and your splash screen will appear if you run the wrapper, it will disappear once Firefox actually starts.

Notes

As mentioned the example above is quite straightforward. Of course you can make it much smoother, pimp the splash screen in all possible ways, or even make it semi- transparent:

(code:)

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango

class Splash(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="splashtitle")
        maingrid = Gtk.Grid()
        self.add(maingrid)
        maingrid.set_border_width(80)
        # set text for the spash window
        label = Gtk.Label("Eat bananas while you are waiting for Firefox")
        label.modify_font(Pango.FontDescription('Ubuntu 22'))
        maingrid.attach(label, 0, 0, 1, 1)

def splashwindow():
    window = Splash()
    window.set_decorated(False)
    window.set_resizable(False)
    window.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(0,0,0,1))
    window.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse("grey"))
    window.set_opacity(0.8)
    window.set_position(Gtk.WindowPosition.CENTER)
    window.show_all()
    Gtk.main()

splashwindow()

or include an image:

(code:)

#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango

class Splash(Gtk.Window):

    def __init__(self):
        Gtk.Window.__init__(self, title="splashtitle")
        maingrid = Gtk.Grid()
        self.add(maingrid)

        image = Gtk.Image()
        # set the path to the image below
        image.set_from_file("/path/to/image.png")
        maingrid.attach(image, 1, 0, 1, 1)

        maingrid.set_border_width(40)
        # set text for the spash window
        label = Gtk.Label("Eat bananas while you are waiting for Firefox")
        label.modify_font(Pango.FontDescription('Ubuntu 15'))
        maingrid.attach(label, 0, 0, 1, 1)

def splashwindow():
    window = Splash()
    window.set_decorated(False)
    window.set_resizable(False)
    window.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(0,0,0,1))
    window.modify_fg(Gtk.StateFlags.NORMAL, Gdk.color_parse("grey"))
    window.set_opacity(0.8)
    window.set_position(Gtk.WindowPosition.CENTER)
    window.show_all()
    Gtk.main()

splashwindow()

and so on...

Furthermore, you can make the application and the text arguments of both scripts etc, but this is the basic idea.

No icon in Unity / tasklist?

If you do not want an icon to appear in Unity (or any other task manager, like Plank), you can simply add a line to the __init__ section:

self.set_skip_taskbar_hint(True)


How to get Google Drive working in Kubuntu 16.04 LTS?

KIO seemed to solve the problem - https://community.kde.org/KIO_GDrive
Not sure why this step is needed in addition to the Settings though.


What happens if I simply change a mount point from /usr/local to /usr?

If you just changed the mount point in your fstab, without copying files over, then the contents that were in /usr/local/ will appear in /usr/. The original contents of /usr/ would be hidden from the OS.

Because /usr/ contains many of your system settings, libraries, binaries, and other important files, I am sure that your system would not work properly after remapping the drive's mount point.

In effect, the OS would not be able to find anything it would be looking for in /usr/ or its subdirectories (including /usr/local). The /usr/ directory is full of libraries which include symbolic links, and some of it's files have very specific ownership and permissions requirements.

I would not suggest changing the mount points, copying, or moving these files unless you have to.


Why is there no lightweight desktop environment specialized for free developers?

The answer to why there is no such desktop is very simple:

Developers can do stuff like this (creating directories) extremely fast, probably faster than doing sudo apt-get install developer-desktop
Very few developers want all their project files in the same folder, but prever a per-project structure, based on the kind of project they are working on
Most developement tools create those structures for you in a per-project way: quickly create ubuntu-application helloworld, django-admin create-project helloworld, ...
The number of developers is much smaller than the number of users for nearly all public projects. And even this small number is highly opinionated about what tools they want to use: try asking on stackoverflow if emacs, vi, eclipse or mono.develop is the best IDE and you will see what I mean... also note that those questions are off-topic now, so don't try it.

So, even this small number of developers will probably not want to use that developer-desktop


ClamAV shows 3 infected files - what to do?

You run clamscan in verbose mode. That causes it to warn you that there are three symbolic links in your root directory, just that. It doesn't actually say that these files are infected. In fact a symbolic link is just a small entry in the file table; it can't contain a virus, but the file that the link points to could contain one. To see that they aren't in fact infected, run clamscan on the files itself.

ls -l /

will show a list of directories, as well as three symbolic links: initrd.img, initrd.img.old, and vmlinuz. These point to three large files in /boot. If you run

sudo clamscan -v /boot/initrd.img-[VERSION_ID]

(change VERSION_ID to whatever you have there) you will see that the file is not actually infected.

jos@zyrrup:/boot$ sudo clamscan -v initrd.img-3.19.0-25-generic
[sudo] password for jos:
Scanning initrd.img-3.19.0-25-generic
initrd.img-3.19.0-25-generic: OK

----------- SCAN SUMMARY -----------
Known viruses: 3930644
Engine version: 0.98.7
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 20.05 MB
Data read: 19.86 MB (ratio 1.01:1)
Time: 18.721 sec (0 m 18 s)

Repeat for the other two files.


After the 2 commands I went to USC and it is there (mind you: I SEARCHED for thwab and it shows thawab!!):

So you probably need to do:
sudo apt-get install thawab

No thwab in the USC ....
Looking at the contents of the PPA: https://launchpad.net/~sabily.team/+archive/ppa/+index?batch=75&memo=75&start=75
Found a DEB Installer for thwab here: https://launchpad.net/~sabily.team/+archive/ppa/+sourcepub/1415835/+listing-archive-extra
So download that and install the DEB by clicking it and have USC handle it.


Re-installing Grub2, getting error on grub-probe

I rebooted and the issue wasn't any more.


This is not a real hardware RAID card in that it still needs OS support and is at least partly closed source software.
You would be better off using the software RAID capabilities of Linux itself, as made available to you in the Ubuntu installer or the OS after install, or else just expose them as separate devices.


Try pressing Shift+Alt+1.

This can be achieved also choosing the option from menu:

View >> Layout >> Single

This will set Sublime Text to display a single column layout.


How to remove your installation .iso from the virtual optical disk drive in virtualbox?

Go to "Devices>CD/DVD Devices>Remove disk from virtual drive" from the top bar on your screen.

If you accidentally remove it while the VM is still running off of it, you can press the host key (usually the Windows flag on the left of your keyboard) and R to reboot it.


Install Ubuntu from Ubuntu without reboot

You can clone the drive you are using onto the other one.  It takes a long time possibly a day or two if you have a large drive but it is very simple to do.  The procedure assumes the hardware is very similar or in the best case the same.

You most likely have two drives listed in your /dev directory.  This can change depending on hardware but /dev/sda is the most common.  If you look there is probably a /dev/sda1 and /dev/sda2 or more /dev/sda# devices.  These are your partitions on the drive.  Then if the other drive is empty you will have a /dev/sdb but no /dev/sdb# devices.  It's critical that you understand which drive is which since this procedure will copy one drive to the other and doing it backwards will destroy all your data.  With all changes to file systems I suggest you backup your data before you start.

For this example I'm going to assume /dev/sda is your primary drive and /dev/sdb is the second drive you want Ubuntu on.   You can use a tool called dd to copy the drive byte for byte.

Basic format is this: dd if=/dev/sda of=/dev/sdb bs=2M

"if" is your input file
"of" is your output file and what you will over write
"bs" is block size.  Default is 512 but you can speed it up by increasing it.  I usually use 2M.

The command will have no output till it's done but your hard drive will start spinning at near max until it's done.   After wards you should be able to swap the secondary drive into the primary drive's place and boot.  If you want a dual boot system this is not the solution for you.


Using mv & cp on a headless server (SSH timeout interferring?)

Don't log in as such. Instead, from your local machine, run

ssh user@server mv /path/to/source /path/to/dest

That should let you get around the problem.

On a more general note, I do believe you are being a bit paranoid here. Setting the idle time to 5 minutes and then facing this kind of issue seems silly. Just set it to something longer and avoid the problem.

As for your 1st question, mv will only delete the source files if the copy succeeded. As explained in info mv (emphasis mine):

  It first uses some of the same code that's used by `cp -a'
  to copy the requested directories and files, then (assuming the copy
  succeeded) it removes the originals.  If the copy fails, then the part
  that was copied to the destination partition is removed.  If you were
  to copy three directories from one partition to another and the copy of
  the first directory succeeded, but the second didn't, the first would
  be left on the destination partition and the second and third would be
  left on the original partition.


Ubuntu doesn't recognize headphone on startup or restart

Try running "alsamixer" in terminal. There's a manual mute button, possibly an auto-detect toggle.

Either way if you can find the unmute: that might be more helpful.
As for solving the autodetect... Frankly ive never solved that.

It works automatically for some, and not for others. I searched for a while and gave up.

Dunno if its a "good answer"
but if it helps, there you go.

If someones got a better answer... ok.


How do I execute command from history without printing it again in the terminal?

Create the following function that is loaded with your bash config (for instance in .bashrc):
rpt() {
  IFS=';' read -r -a array <<< "$(fc -ln -1)"
  for element in "${array[@]}"
  do
    $element
  done
}

Run the command rpt to execute the function.
This reads the last command string into an array, and splits it at the ; signs, and each element in the array (each command) is run separately.
For this to work, the ; is a reserved character, that can not under any circumstance be used in printed strings etc.
This is a limitation you have to accept for this solution, but I consider it "good enough" to work.


USB drive just keeps auto suspending/disconnecting, even after disabling it

I did a Google on "WD Caviar Green 2TB disable energy saving" and found a number of hits. It probably has to do with the WD's attempt at saving energy by parking the heads, or spinning down the drive. You might look at:

http://forums.whirlpool.net.au/archive/1367904

https://serverfault.com/questions/242891/disable-caviar-green-drives-spinning-down

which describes the use of some WD utils under Windows to set parameters in the drive, or the use of hdparm in Linux/Ubuntu to do the same...

hdparm -S 0 /dev/sda

Please do your own homework BEFORE applying ANY of these "fixes".

Cheers, Al


PC System Status Bios visible through shell?

Afternoon, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:
sudo dmidecode | less

This should show you BIOS settings although I have no idea if it will show the specifics you require.


Unable to delete read only file system in ubuntu 18.04

This is a snap based on its location. Snaps are sandboxed and the proper way to remove them is to do a sudo snap remove mysql


how to fix Error: Port conflict: another instance is already running

In this case, there are postgresql that already running. You need to switch if off:

sudo service postgresql stop

Then:

sudo apt-get update
sudo apt-get upgrade

To make sure nothing is bound on port 5432, do netstat -ntulp|grep 5432.


How to move file into trash from a mounted diretory with symlink?

I've had the same problem, and then I made it worse!! (I'm sharing the big folders from home with a Suse gecko!

Alas the problem lies with the file ownership and rights!
It seems that on Unix compliant drives, all the rights to the files and folders belong to root. Root created the .Trash-Xxxx when we evoked a Trash operation.
So we need to chown it to our-self and our main group (that normally is our name too (except in Suse and the like where it is users!).
Now we need to set the rights, all folder-operations are ruled by the guid not the uuid so we need to append those rights, so go into the folder containing the .Trash-uuid, and run:

  chmod g+wx -R .Trash-1000

g+wx sets the write and execute rights for your group.
-R do it recursively
Beware your uuid could be different so change it to match yours.
Now set the execute bit for your user, sometime (mostly) they are missing!

  chmod u+x -R .Trash-1000

Now you need to log out and back in (or reboot) to introduce the changes to the OS.

Now it should work, but there will be a lot of cleaning up (after our-self).
Most of the trash folders in the shared folders can be removed (BUT wait a week so you are positive they are no longer in use!

So Symbolic links works with Trash, bind-links do not!

I had to use the T flag when creating the symlinks:

  ln -sT /mnt/(Disk/Partition)/Pictures/ /home/UUID/Pictures

All of this is elsewhere on this site, I just found these helpfull bits!


You have just corrupted the permission settings of important system files. You won't be able to use the system normally.

By using 666 as permission settings, you successfully removed the execution bit from the /usr/ directory, so no files in it can be accessed. And as far as I know, the unity program resides in /usr/bin directory which is of course failing to execute.

The only option is reinstalling Ubuntu again. And please don't chmod system files without knowing exactly what you were doing.

Check these links:

Linux permissions - Wikipedia Article
Why do directories need the executable (X) permission to be opened?
Which Filesystem Hierarchy Standard is in Ubuntu?

The last link will give you information about the system files and folders


Restoring an Ubuntu Server using ZFS RAIDZ for data

Found my answer at http://docs.oracle.com/cd/E19082-01/817-2271/gazru/index.html

# zpool import

Implication is that config data must be stored in and across RAIDZ devices.

Apparently, if the data is complete, the import results in ONLINE (e.g. in my case, 3 of my 3 RAIDZ disks), if the data is partially but sufficiently complete the result is DEGRADED (e.g. 2/3); and if the data is insufficiently complete the result is FAULTED (e.g. 1/3).


Install package along with all the dependencies offline

Cube

  Cube is an offline package management system that enables Linux distribution users (Ubuntu, Linux Mint and other APT-based systems) to have applications installed to their system even without internet connection. Just run the cube in your Linux system, create your project in it, paste your project together with cube in a flashdrive and fly away to any computer with internet connection, open the cube and select your project, update your applications and download any applications you want, go back to your Linux system and install it directly. And that’s it! You can now use your new application :).

You can download cube at its launchpad page : https://launchpad.net/camicricube


All you have done is asked a few services to stop ... and they have responded by telling you "ok we have stopped".

You have ONLY asked them to stop while they were running, you have not changed their configuration start-up mode.

Try this:

How to enable or disable services?


Nautilus: File description tooltip occludes file info when viewing bottom file

You can move the mouse over the tooltip for it to disappear temporarily.

As an alternative you could replace Nautilus with Nemo, which has the old-style status bar instead.


How to Stabilize iwlwifi in 15.04 of Asus Zenbook ux305?

Use sudo and add the following line to /etc/modprobe.d/iwlwifi.conf using your preferred text editor:

options iwlwifi 11n_disable=0

Then reboot your computer to effect the change.


How can I run a command and copy its output?

Hopefully you will have access to a graphical desktop. That's what the first part of this answer deals with. If you do not, skip the first three steps and read the bottom of the answer.
Step 1: Load a terminal...
The first step is opening a terminal. There are a multitude of different terminal options out there but most Ubuntu users will have gnome-terminal, KDE users tend to have konsole, and XFCE users should have xfce4-terminal.
Once you have identified which command you want to run, it's just a case of running it.

Press Ctrl+Alt+T.
Unity and Gnome Shell users can search for Terminal.
KDE users can find Konsole under Applications → System.
All desktops can press Alt+F2 and type in the terminal binary name (as above) manually.

Step 2: Running your command
This is the simple bit. You should be looking at something like the following:

You can either type the command, or you can copy it (select the text, right click, "Copy", then right click the terminal, "Paste"). Copy & Paste is recommended for long commands. We want to avoid errors in transcription!
When you have typed or pasted the command into this window, press Return. Output should now appear on the screen as below:

Step 3: Copying the content
Copying is similar to most other applications apart from most consoles only know how to copy "blocks". To copy, simply use your mouse to drag around the output until it is highlighted, like so:

Right click on the terminal (to go to the Edit menu) and select "Copy". Then you can go back to your browser or editor and paste. We're done.
Step 3.5: Alternative for copying:
Seeing as you're getting the hang of the command line now, you can also use a command called xclip to directly insert things into X's clipboard. This will only work if a GUI is running.
lspci -nnk | grep VGA -A1 | xclip -selection clip

Note: you can omit -selection clip but the data will be in your middle-click clipboard - yes, there are two clipboards... A story for another day, perhaps :)

Addendum: Extracting command line data without Copy & Paste
If you need to get the output from a computer that, for example, the display settings are so broken you can't get into a usable desktop, we have to find another method for extracting the output. You could do it by hand but often (in case of logs) this is impractical.
At the very least we need to get into a terminal which you can do by pressing: Control+Alt+F1.
You may need to log in.
From here we can run our command but the output will only show on the display. Now we have two options:
I have an internet connection
If you have access to the internet, you can simply "pipe" the output into a command called pastebinit. This uploads the content to http://paste.ubuntu.com and returns a short, easy to transcribe URL that you can access from another computer or just give to people.
pastebinit is not installed by default so the first thing we run is:
sudo apt-get install pastebinit

Then we run our command, followed by | pastebinit:
lspci -nnk | grep VGA -A1 | pastebinit

And you'll see something like the following (though obviously not in a window):

Write down the URL and you can share that with whomever you like.
I don't have an internet connection
This is more problematic but not unsurpassable. We will need some form of external storage. A USB stick is a popular example. Plug it in. In a non-graphical setting, USB drives are not automatically mounted. As I said, problematic.
Run lsblk and you should see something like this:
NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                 8:16   0 111,8G  0 disk
├─sda1              8:17   0   100M  0 part  /boot
├─sda2              8:18   0     1G  0 part  /
├─sda3              8:19   0    20G  0 part  /usr
├─sda4              8:20   0     1K  0 part
├─sda5              8:21   0  58,7G  0 part
└─sda6              8:22   0    32G  0 part  [SWAP]
sdb                 8:96   1  14,5G  0 disk
└─sdb1              8:97   1  14,4G  0 part
sr0                11:0    1   4,4G  0 rom
sr1                11:1    1  1024M  0 rom

In my case, the new disk I've plugged in is that second one (sdb) and it has one partition (sdb1). We need to mount this so we can write to it. Simply:
sudo mount -o umask=0000 /dev/sdb1 /mnt

Then we can funnel our commands into new files on the external disk:
lspci -nnk | grep VGA -A1 > /mnt/lspci
cat /var/log/Xorg.0.log >/mnt/xorg.log

That will create two new files on the external drive. You can also copy things to it with cp. When you're done you want to unmount the drive:
cd /  # just in case you cd'd into /mnt
sudo umount /mnt

Then you can unplug your drive and take it to another computer and upload the information as requested.


Will Ubuntu TV be offered in different desktop environments?

No
Simply based on the interface and goal of the Ubuntu TV.

Ubuntu is the only open-source OS designed to provide consistent user experiences across multiple diverse different form factors, from the PC to the smartphone and the television.

Source
The Ubuntu TV interface is a Desktop Environment designed to emulate (and built on top of a fork of) the Unity-2D. Since the Unity interface is Canonical's consistent user experience in the computing world the thought of re-designing Ubuntu TV to mimic other Desktop Environments will likely not be on the short list of goals for Ubuntu TV.

Only time will tell, but other DE maintainers such as KDE, XFCE, etc may develop and modify the Ubuntu TV to mimic their style Destkop Environment.


From your brief description of videos playing slowly in Firefox, it's possible that you no longer have a genuine (proprietary) version of the Adobe Flash Player installed.

This is a really easy way to do that:

sudo apt-get install ubuntu-restricted-extras

This installs Adobe Flash Player along with a bunch of other things that are not open source, but you're likely to benefit from such as non-free codecs for Ubuntu's built-in video players.

If you find an error installing this package, it's possible that you don't have the non-free repositories enabled.  You'll want the top four of these checked under Software Sources in your system configuration.


The problem comes from the modified base Window class that quickly has in _lib/Window.py:

Traceback (most recent call last):
  File "bin/testapp", line 33, in <module>
    testapp.main()
  File "/home/ian/pythontesting/testapp/testapp/__init__.py", line 33, in main
    window = TestappWindow.TestappWindow()
  File "/home/ian/pythontesting/testapp/testapp_lib/Window.py", line 35, in __new__
    new_object.finish_initializing(builder)
  File "/home/ian/pythontesting/testapp/testapp/TestappWindow.py", line 24, in finish_initializing
    super(TestappWindow, self).finish_initializing(builder)
  File "/home/ian/pythontesting/testapp/testapp_lib/Window.py", line 61, in finish_initializing
    LaunchpadIntegration.add_items(self.ui.helpMenu, 1, True, True)
AttributeError: UiFactory instance has no attribute 'helpMenu'

The builder no longer has a menu.  It's in a try/except block so should fail nicely but doesn't because it won't handle attribute errors. Modify the Window.py file so that line 63 reads:

except (ImportError, AttributeError):

Now it should work and does for me. I submitted a bug report to launchpad: https://bugs.launchpad.net/quickly/+bug/1051686


Can Tutorial "Dual Boot Windows 7 & Ubuntu 12.04" Used for Dual Booting Windows 8 & Ubuntu 12.10?

I'm not familiar with Windows 8 but the principle should be the same.

But since you already had Ubuntu on this machine, it might be that the partitioning is still there, unless you installed Windows 8 on the entire disc.

However, upgrading Windows would have erased Grub (the bootloader) from the MBR.

If this is the case, then you can recover your present Ubuntu 12.04 by booting from an Ubuntu live DVD, install boot-repair, and fix Grub.

Then you can upgrade Ubuntu instead of installing from scratch.

In the case you repartitioned your disc during Windows 8 upgrade then the lin you mentioned should be the way to go.


Get a list of all files in folder and sub-folder in a file

You can do this on command line, using the -R switch (recursive) and then piping the output to a file thus:

ls -R > filename1

this will make a file called filename1 in the current directory, containing a full directory listing of the current directory and all of the sub-directories under it.

You can list directories other than the current one by specifying the full path eg:

ls -R /var > filename2

will list everything in and under /var and put the results in a file in the current directory called filename2.  This works on directories owned by another user including root as long as you have read access for the directories.

You can also list directories you don't have access to such as /root with the use of the sudo command.  eg:

sudo ls -R /root > filename3

Would list everything in /root, putting the results in a file called filename3 in the current directory.  Since most Ubuntu systems have nothing in this directory filename3 will not contain anything, but it would work if it did.


Change of Ownership Causes Nautilus to crash how can I change it back?

The reason for the crash is probably a bug. You should report it. If you want to change ownership you can use:

sudo chown -R someuser:somegroup /usr/share/solr-4.5.1/example/solr/

Be careful that you don't mess up something else.

  What have I done

You can't change ownership of files that are not longer yours, that's most likely the cause why Nautilus crash.


iSCSI + br0 bridge + 14.04.1 Server = does not work

I think the p3p1 interface stanza should read

auto p3p1
iface p3p1 inet manual

I've just set up a server like this and that is the only difference between your config and mine.

My working config is

# The primary network interface
auto p1p1
iface p1p1 inet manual

auto br0
iface br0 inet static
        address 192.168.0.67
        netmask 255.255.255.0
        gateway 192.168.0.1
        bridge_ports p1p1
        bridge_stp off
        bridge_maxwait  0
        bridge_fd       0

Hope that helps.


Pogo.com games won't work, says outdated java

There are detailed instructions on java.com covering Chrome and Firefox with Java 6 and Java 7.

To summarize:

Install Oracle JRE or JVM as 'usual' and locate the file libnpjp2.so(for example, under $JRE_HOME/lib/amd64.
Change directory to either /opt/google/chrome/plugins (for Chrome) or /usr/lib/mozilla/plugins (for Firefox) -- if this does not exist you need to create it (as root using su or sudo)
Become root using either su or sudo and create a symbolic link in the current directory to the file you located in Step 1. For example:

ln -s /usr/local/java/jre1.7.0/lib/amd64/libnpjp2.so

Restart your browser


Why am I stuck with a version of GNOME Shell unlike KDE or other desktop environments?

There's a few reasons for this, and it probably comes down to packaging and 'stability'. On a mainstream distribution, its more important to have a system that works reliably than to have the latest packages - as such they often freeze on a major version and add updates gradually.

These days kubuntu is maintained by one of the organisations that develops KDE and they can spend the resources integrating more recent versions. On the other hand, Ubuntu uses unity, and gnome 3 isn't really one of the mainline DEs supported by various derivative teams.

You could, however, at your own risk, upgrade to a newer version of gnome shell though a PPA. Gnome3's Website mentions these risks - regressions, and links to a staging repo with newer packages. Things can break


Try Unetbootin to write the ISO. I had the same issue with SUSE not recognizing network cards, but Ubuntu works great in that regard. Good luck.


This depends on the way you created the USB flashdrive. If you used "Startup disk creator" it gives you the option to store the changes "in reserved extra space".

So:

get a USB stick that is big enough to store your changes,
then use "Startup disk creator"

load the Ubuntu ISO file that you downloaded from the Ubuntu site
the use the slider on the bottom of the window to allocate  space of the USB stick for storing settings

next time you boot with the USB stick, the changes and installations will remain there, provided that there is enough space


How do I have different wallpapers for different sessions?

Using this bash script, you can achieve what you want.

#!/bin/bash

if [ "$XDG_CURRENT_DESKTOP" = "Unity" ]
then
  gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/warty-final-ubuntu.png'
else
  gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/The_Grass_aint_Greener_by_fix_pena.jpg'
fi

Add this script to Startup Applications (Add → Command sh path/to/script).

And replace the file path to the background image you want.


How to start a program at a scheduled time if I am logged in?

Look at this command called at
http://manpages.ubuntu.com/manpages/gutsy/man1/at.1posix.html
you can execute commands at a specific time
Use this to launch your application at a specific time


What is the best directory to use for my C program?

If every user needs access to it, use /usr/bin.

If it's needed for boot (default shell, for instance) or for single user mode to repair a system, then you should consider /bin.

Use man hier for a description of each directory and what it's meant to be used for.

Also, consider going through the Ubuntu packaging guide for better integration.


Dual Booting Ubuntu / Windows 10 - WiFi on Ubuntu is extremely slow

From https://dfspspirit.wordpress.com/2015/06/08/wifi-connection-slow-and-unstable-on-intel-wireless-7260-and-linux/

  The solution is the usual way of passing options to drivers in linux,
  you edit the config file and add the option you want. The driver for
  the Intel 7260 is called iwlwifi, and the config file is at
  /etc/modprobe.d/iwlwifi.conf under debian-based distros.

  To disable 11n, append the following line to that file:

  options iwlwifi 11n_disable=1

  Then reboot your laptop, and you should have way better wifi.


Two years and no answer? Sad to say, the only solution I've come up with is this script. I've tested it on Ubuntu 14. Note that there is no error handling if you give it bad input.

chage_update.sh:

#!/bin/bash
usage() {
    cat <<EOF
Usage: $0 [ YYYY-MM-DD ]

Update chage information for all regular users to the values present in
/etc/login.defs, and set the date of the last password change to YYYY-MM-DD
(defaults to current date). Must be run as root.
EOF
    exit;
}
get_val() {
    ARR=(`grep ^$1 /etc/login.defs`)
    echo ${ARR[1]}
}
UID_MIN=`get_val UID_MIN`
PASS_MAX_DAYS=`get_val PASS_MAX_DAYS`
PASS_WARN_AGE=`get_val PASS_WARN_AGE`
if [ "$1" = "-h" -o "$1" = "--help" ]; then
    usage
elif [ -z "$1" ]; then
    DATE=`date +%Y-%m-%d`
else
    DATE=$1
fi
cat /etc/passwd | while read line; do
    ARR=($(echo "$line" | cut -d\: -f1-3 | tr : \ ))
    USER=${ARR[0]}
    USERID=${ARR[2]}
    if [ -z "$USERID" ]; then
        continue
    elif [ "$USERID" -ge $UID_MIN ]; then
        chage -d $DATE -M $PASS_MAX_DAYS -W $PASS_WARN_AGE $USER
    fi
done


How to easily tell which PPAs need to be purged

That string containing ppa-purge does not mean anything special.

It is recommended to disable all PPA before you upgrade a release.
It is even better to purge all PPA.

Otherwise some dependency problems may occur and the system will not be upgraded properly.

Ubuntu developers do not test compatibility of PPA and system upgrades. You install software from PPA at your own risk.

It is possible to write a script that will check descriptions for ppa-purge, but it makes no sense.


Sharing home partition across multiple Ubuntu OSes?

You can do this in fact. But before that go through this answer described use of common home partition for multiple linux distributions.

If you wish you can use same swap also for multiple linux distributions.

Hope it would help.


Can't enter GRUB after Ubuntu 19.10 installation on Dell Inspiron 15 2-in-1

After some time, I finally have a functional installation of Ubuntu 18.04 on my new Dell Inspiron 15 7000 2-in-1 with Wi-Fi and touch screen drivers working.

After the BIOS update that I described above, I realized that I could install not only Ubuntu 19.10 but also Ubuntu 18.04 which I prefer for being a LTS. However, after a successful installation I could not dual boot(could not see the GRUB). I'm not 100% sure what the problem was, but it seems that in my previous attempts of installing Ubuntu something went wrong and the partitions were all over the place. I reinstalled Windows 10 using the original Dell recovery partition (backing up all data first) and tried installing Ubuntu again and this time it worked perfectly.

The only problem after this was that Ubuntu did not recognize Wi-Fi controller. I used a wired mobile shared-connection and updated the Linux Kernel version to v5.3.1 using the instructions here. It works perfectly so far.


What is the official package for postgresql 11 on the ubuntu apt? The ones in the wiki don't work

Your 1st 3 stops should be Ubuntu packages, Launchpad and the official website.

Version 11 is only available in 19.04 and the package name and installation command is:

sudo apt install postgresql-11

Result:

$ sudo apt install postgresql-11
[sudo] password for rinzwind:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libllvm7 libpq5 postgresql-client-11 postgresql-client-common
  postgresql-common sysstat
Suggested packages:
  postgresql-doc-11 libjson-perl isag
The following NEW packages will be installed:
  libllvm7 libpq5 postgresql-11 postgresql-client-11 postgresql-client-common
  postgresql-common sysstat
0 upgraded, 7 newly installed, 0 to remove and 31 not upgraded.
Need to get 27,4 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n]

if you want it in 18.04 you can also download it from the 4th link above but you will need to check all the dependencies.


Have you formatted dm-0 (LVM?) with mke2fs? Maybe this could be useful for you.


The problem is about some extension inside the browser.
Launching with command chromium-browser --disable-extensions works well for me.

Navigate to chrome://flags and search for "media router" and set it to Disabled.


why are these warnings showing up at installation time?

That's what these are: they are just warnings, not errors and in this case, they can be safely ignored...  :-)
Disclaimer: The above statement about ignoring warnings is not meant to make you disregard all warnings!  If you see a road sign that says:
Warning! Bridge closed!
Please do not disregard that kind of warning!
;-)


Ubuntu 20.04: install both 32 bit and 64 bit libraries

I was using a newer version of libodbc1 by Microsoft which was not compatible with libodbc1:i386. I disabled Microsoft packages URL, and downgraded libodbc1 to version 2.3.6-0.1build1, and libodbc1:i386 installed just fine. Everything seems to be working now. I just hope Microsoft products don't break in the future.


Can't access windows 10 after ubuntu dual boot

Install Synaptic packet manager

sudo apt-get install synaptic

search and check if all needed Grub 2 packages are selected/updated.


Is it possible to use IRC Chat on new Empathy?

You need to install the irc plugin account-plugin-irc

sudo apt-get install account-plugin-irc

After that you should be able to use empathy as irc client but beware empathy has a very limited function as an IRC cliente. I would recomend to use a dedicated IRC client.

https://help.ubuntu.com/community/InternetRelayChat#IRC_Clients


What helped me
sudo systemctl disable mysql

then afterwards remove/purge or whatever.
sudo apt autoremove

did its job.... done


try umount it first.
Use the new utility that comes with ubuntu , its name is disk utility or something like this.

or try open a terminal and do

sudo mkfs /dev/mmcblk0 -t ext3

or -t vfat
if you want to use it on windows


No and yes. Kind of. Which is to say, it supports compression (zlib or zlib-ish, as I recall), but a stock copy of OpenSSH does not have it enabled by default, though some distributions may enable it by default (I don't think Ubuntu does).

See man ssh_config for details. You're looking for the Compression and CompressionLevel options, which you can then set in /etc/ssh/ssh_config.

Note that there's also a Compression option for the server side in sshd_config which determines if compression is allowed (it is by default). Again, see man sshd_config for details.

You can also turn compression on on a per-session basis by using the command line option -C.

Note that compression can actually have a slightly negative performance impact if the connection between you and the server is fast (e.g. on the same LAN or just on really good internet connections) or one or both sides has a slow CPU (compression eats a fair bit of CPU time).

These days, for most people, I'd suggest using it only as needed. Typically for links of less than 5-10mbps and only when passing a lot of bulk data (transfers of not-already-compressed files, X11 or VNC forwarding, things like that).


How to make apt-get known the imported deb package in apt-cacher

Apt-cacher (and it's cousin Apt-cacher-NG) are just proxies to normal repositories. What you are looking for is a full-blown repository server. This answers have already methods how you can accomplish this:

https://askubuntu.com/a/89698/169736


how to access my windows xp files after installing ubuntu

this might helps you... BOOT-REPAIR helps alot .
you can follow these steps

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair


The *.desktop file you are looking for is
/usr/share/applications/display-im6.q16.desktop


How do I get rid of the drive mount confirmation question for sshFS on boot?

Since you've set up the ifup/ifdown scripts to bring SSHFS up/down with your network interface, there is no need for the system to attempt to mount it at boot via /etc/fstab; the drive still mounts because the ifup script is called after plain mount fails but before you get to your desktop.

The solution is simply to replace the auto option for SSHFS in /etc/fstab with noauto.


LanguageTool on LibreOffice installing error

Install this package openoffice.org-java-common package. Just search for it in the software center


gridengine-qmon package missing context help

In the gridengine-qmon package I do not find the old SGE help file called qmon_help.ad. There is just the manual page. The manual page lacks the context of the old dialogs, and it seems to be missing specific information I need for configuring the queue instances or the host resources (not sure which).

There is an X11 resource called Qmon*contextHelpFile set by default to qmon_help. I added the old help file to /usr/share/gridengine and set the X11 resource to the full pathname. This worked for me.


Error installing the noobslab Dark Theme in Ubuntu 14.04

Add the lines below to your systems software sources:

deb http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main

deb-src http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main

source: https://launchpad.net/~noobslab/+archive/ubuntu/themes


Upgrade from Ubuntu 17.10 to 18.04 Multiple Display not Detected Nvidia GPU

At this point, I suspected that this could be a driver problem. I tried to check additional drivers, which is now in the software and updates application (see screenshot). I read on Nvidia that rolling back could help the problem. Originally, my driver was set to Nvidia 396, denoted as proprietary but not tested. I chose the Nvidia 390 option listed in the software and updates, as I've had prior problems with xorg with nvidia gpus. This solved my issue.


Ideologically

Mono is supposed by some to be supporting Microsoft and its .Net platform.  Some people believe this is counter to the goals of Ubuntu, or at least their own personal goals, and they want to avoid that.

Sorry for the wiggle words, but I'm staying objective.  The discussion of whether Mono actually does this, and even whether supporting Microsoft is a good or bad thing, belongs elsewhere.

Practically

Programs which use a virtual machine (as those written in Java and C# do), tend to use more memory, in my experience, compared to equivalents that don't.  This generalization doesn't always hold.  While there are users for which this is a valid concern, people often worry about performance more than necessary.

For example, I'm using a laptop with only 1GB of memory: this used to be huge.  The machine is starting to show it's age, but I can still run most things comfortably.  Users with 4GB of memory will not notice "memory hogs" nearly as much and should focus on other concerns.  (And I'll come back here in 5 years and laugh at that 4GB number.)


What scanners are there for Ubuntu 16.04?

I have a Samsung Xpress M2070W. It is a Monochromatic Laser Printer and Scanner. It perfectly works in Linux Mint 18  with the drivers downloaded directly from Samsung website.


Is there a file manager with file search that doesn't break xubuntu desktop

You can install Krusader.  Krusader is an advanced file manager for KDE and other desktops, that has advanced search capabilities. To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install krusader


Remove VLC PPAs and revert it to the version from repository:

sudo apt-get install ppa-purge

sudo ppa-purge ppa:videolan/stable-daily
sudo ppa-purge ppa:videolan/master-daily

These actions are needed because of the fact that PPAs do not have packages for Artful anymore.

Then remove vlc snap

sudo snap remove vlc

And install it again with --classic option:

sudo snap install --classic vlc


How can I deploy my local Juju Charm with Amulet framework?

I believe I see your problem. So, you pulled this charm from github which is fine. However, tests are usually written and run from within the tests directory. So, amulet applies a little bit of magic to deploy using the charm on disk so you don't have to explicitly put charm= in the d.add line. However, since you're running from interactive shell it makes sense for you to do this. The problem is, it's not a Bazaar branch which is what Juju Deployer is expecting.

Typically, what happens, when you just do d.add('cf-nats') in a charm test, the charm tree gets copied to a temporary location, and a bzr repo is created (if one doesn't exist already). Then that new temp location is fed to deployer. However, since you've given it a firm file path that part isn't happening (by design) and it assumes you have a charm that has a bzr repo and it's just going to use that.

The way around this is to either run export JUJU_TEST_CHARM="cf-nats" (and environment variable the juju test plugin sets) prior to launching your Python3 shell from the $CHARM_DIR (/home/ubuntu/cf-charms/charms/trusty/cf-nats)  or after creating d = amulet.Deployment() set d.charm_name = 'cf-nats'. Then just do d.add('cf-nats'), amulet will see that the basename of getcwd is the same as the charm name and transparently perform it's little bit of magic.

That should do it. Ideally, adding support for git based charms to juju deployer will resolve all of this, but try that and let me know if it doesn't work for you.


Trying to install Lubuntu on Windows XP but I need to define a root file system?

For root file system you have to select (/) as your mountpoint. This sets the partition used as the primary drive by the system.

If you still have problems installing Lubuntu, provide us with more information about the errors, so as to help us better understand the problem.


You can install pulseaudio 2.0 from the ubuntu-audio-dev ppa:

sudo add-apt-repository ppa:ubuntu-audio-dev
sudo apt-get update
sudo apt-get upgrade


Assign keyboard shortcut / hotkey to any toggle visibility of any window

In Ubuntu 14.04 it's Alt+Ctrl+S

To change it, go to  System Settings> keyboard > shortcuts window.

From the left menu, press windows search for toggle visibility and assign a new shortcut.


I would not use dlna on a public server. I've tried a lot of tools (darwin server, etc..) and the best and easiest way is using apache (or other) on server side and vlc on client side.

About apache configuration :

Configure apache with directories containing the media
Set up user/password access for specific folders
If you use links do not forget to add Options FollowSymLinks for linked directories/files

About vlc/browser players (or others):

Both are available on PC/Tablet/Smartphone
You can browse and play your files directly from your browser

About media server, check those comparisons :

http://en.wikipedia.org/wiki/List_of_streaming_media_systems
http://en.wikipedia.org/wiki/Comparison_of_UPnP_AV_media_servers

A lot of people is using Plex which organizes all media very well, in this website you'll find explanations about setting up plex on a VPS : https://forums.plexapp.com/index.php/topic/43167-plex-media-server-on-a-vps/


Use the following command in terminal:

sudo apt-get update

sudo apt-get upgrade

and then choose one of these:

Only KDE core, like themes, aero, toolbar and other KDE viewes this recommended
(247 Mb):

sudo apt-get install kde-standard -y

OR
The following will install the full Kubuntu system. Of course, you don't need this, because this is a full operating system (1 Gb):

sudo apt-get install kubuntu-full -y


After tweaking Ubuntu 12.04, desktop only shows default GTK-Theme

As my reputation is too low to add a comment I'll add it here instead.
Have you installed the applications through wine, and not the native ubuntu applications? For example with the .exe files instead of through the package manager or with a deb-file?


Primary user won't run Firefox 4 after upgrade to Natty

Sorry about not adding my solution. I tried several times, but I was fighting with the stupid captcha applet.

Anyway, I discovered that there was an old, manually installed Firefox 3.6 in /opt/firefox. This is what the icon was trying to start. I deleted that folder, then the icon wouldn't start anything.

So, I uninstalled and reinstalled FF 4 using aptitude. Then, I found that I could start FF 4 from the terminal, but the icon was still looking for /opt/firefox.

I could not find out how to fix that in Unity, so I logged into Gnome Classic and changed the Properties of both the icon and the menu item for Firefox. Then, when I logged back into Unity, the icon worked.

Tim


Netgear AC600 (aka A6100) wifi dongle, dkms managed, fails in 4.4.0-47 kernel

The dkms 8812au kernel module has a bug in it, that causes it to be built for the wrong kernel during a Software Update that includes kernel updates.

Specific to your case, do the following:

Download newer source (in zip format) from https://github.com/diederikdehaas/rtl8812AU. Expand the zip and copy the source folder to /usr/src/rtl8812au-4.3.14. Edit the dkms.conf file and change:

MAKE="'make'"

to

MAKE="'make' KVER=${kernelver}"

In terminal (don't bother copy/pasting anything after the #'s, they're just comments for you):

sudo dkms remove rtl8812AU_8821AU_linux/1.0 --all # remove old kernel modules
sudo rm -r /usr/src/rtl8812AU_8821AU_linux-1.0 # delete old source code
sudo dkms add rtl8812au/4.3.14 # add /usr/src source to dkms tree
sudo dkms build rtl8812au/4.3.14 # build the driver
sudo dkms install rtl8812au/4.3.14 # install the driver
dkms status # check to see that the correct version is installed on the current kernel
modinfo 8812au|grep vermagic # check for correct vermagic value


The installer needs to remove operating system files from the install target, but was unable to do so. The install cannot continue

After a discussion with OP, a working solution was found. Just boot into a live system, open a terminal and type:

sudo e2fsck -f -C 0 /dev/sdxy

where sdxy is the corresponding partition. This should solve the issue.

Note : e2fsck works on Linux ext2/ext3/ext4 file systems. If you have a different file system, execute sudo fsck /dev/sdxy -f instead.


QT Creator Doesn't Work as Expected While Following Phone OS Tutorial

payload's comment referenced a solution for another question that worked for this problem too.  Thanks.

  When you say that plug-ins won't load, I believe that there is a error
  message. Reading and copying this message in here would help others to
  understand the issue. But also based on your vague description it
  could be a duplicate of this: askubuntu.com/questions/259561/… –
  payload 9 hours ago

QtCreator error; can't load library; ProjectExplorer(2.6.82)


Two finger scrolling stopped working suddenly

I have this same problem
You can restart the touchpad by:
sudo modprobe -r psmouse
Then,
sudo modprobe psmouse
If you have this problem whenever you wake from suspend, then copy this script:

#!/bin/sh

case $1/$2 in
  pre/*)
    echo "Going to $2..."
    # Place your pre suspend commands here, or `exit 0` if no pre suspend action required
    modprobe -r psmouse
    ;;
  post/*)
    echo "Waking up from $2..."
    # Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
    sleep 2
    modprobe psmouse
    ;;
esac

Now, place it in the /usr/systemd/system-sleep folder, and name it whatever you want.
Now, type sudo chmod +x "whatever you named your script"


Can you try another pen-drive with the same method you applied first in rufus(Assuming you set GPT for UEFI)?
also try to put the pen-drive in another port of your laptop.

Another way is you can use rufus to burn the iso image to your pen-drive in DD Image Mode but before this make sure you set GPT for UEFI Scheme in rufus selection first then start it.

Reboot to your pen-drive and hope it works now.


As a long time user of IrfanView myself, I was also looking for a worthy successor on Linux.

I have not found a single app for all my use cases, but I am happy with combining a couple of tools.

For adding basic info (e.g. arrows or text) or in order to obfuscate parts of an image, I use GIMP.

For other basic manipulation like cropping, rotating or color adjustments I found gThumb.


I had the same issue with a different card and Ubuntu 16.04.

I had luck appending a kernel parameter at boot: vga=791

The vga parameter sets the framebuffer to VESA mode 791 (1024x768 16bit).

To add kernel parameters: this answer or the wiki.

HTH


DEPEND Dependency failed for Hyper-V KVP Protocol Daemon.ices-virtual-misc-vmbus\x21hv_kvp.device

I solved the problem with following steps:

Make a bootable usb for Ubuntu
Select USB as the first boot option in the BIOS menu
While rebooting it goes into GNU GRUB menu
Select recovery mode for the version of Ubuntu in which you get this error
Select 'dpkg' - repair broken packages
Select 'failsafeX'
Once you can open the desktop, you can reboot to exit safe mode.


No audio output from laptop (or headphone jack) if TV connected via HDMI

I've disabled Windows 10 fast startup (Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable > [uncheck] Turn on fast startup) and completely shutdown (not reboot) the computer (from Windows 10) and now the sounds is working properly.


Unable to change permissions for group on USB drives

Ok, I found an article that explained why this wasn't working for me.  I had all usb drives mounting under /media/<myusername>/<drive_name> and this made mandatory permissions on it.  I unmounted the drive and set it to mount under /media/ then it works.


Adding Win7 to Ubuntu through Ubuntu dual booting

if you are trying to put ubuntu and windows 7 on the same hard dis, it's a lot easier to install windows first and leave some free space on the drive. then install ubuntu. if you have already installed ubuntu it can be done if you have free space on the disk. if not you have to resize ubuntu to make some space using gparted. you have to use your ubuntu live disk for that. boot with that and click try ubuntu, then use gparted to make the ubuntu partitions smaller to leave some free space. search for these terms for guides how to do that. then you can install windows on the free space but windows takes over the boot up so you can't choose between them. you then have to load the try ubuntu disc and use firefox for a guide how to reinstall grub. you will have to use the terminal but you can learn how to copy and paste the lines into the terminal. in the terminal paste is ctr-shft-v, not ctr-v. that confused me for a while. then when you boot up from the hard disk ubuntu takes over and lets you choose to boot either ubuntu or windows. if I were you I would backup any personal stuff on the hard drive and format the disk, install windows on half the drive then ubuntu on the other half. then it should boot properly with the choice using grub. it's windows fault for not liking linux.


I had a similar problem with a DVD drive. Once I booted into Windows and played the DVDs, everything worked fine in Ubuntu. It was suggested that Windows set my drive's region, which is required to play DVDs.

I don't know if this is the case for you, but it's easy to set your region.

Insert the DVD into the drive without playing it or accessing it.
Install regionset from the Universe repositories.
Run sudo regionset.

More info here.


This may be a possibility:
http://ubuntuforums.org/archive/index.php/t-827081.html

using rsync.
Another option is making a symbolic link

How to create a soft or symbolic link?

Hope that helps. Eventually, though, the best option is to migrate fully. I know, it's hard to jump ship, but once you can fully live there, you won't want to go back.

Now, that may not answer your question about the filesystems. That could be another kettle of fish to do the filesystems because they are completely different (ntfs/ext4).


Raspberry Pi 4 Ubuntu 19.10 cannot enable cgroup memory at boostrap

Following @kremerol solution, I was able to get my RPI 4 with Ubuntu 20.04 working.

Run sudo nano /boot/firmware/cmdline.txt

Edit the default file to look like below.
 net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc

NOTE: These are the 3 settings to add:

cgroup_enable=cpuset
cgroup_enable=memory
cgroup_memory=1

Save the file and reboot and the node status will change to ready.

You can check the status by running sudo microk8s.kubectl get nodes


If you search for v4l-utils in this website, you will see that it is only available for the following versions of Ubuntu in the universe repository:

14.04 (Trusty Tahr)
16.04 (Xenial Xerus)
17.04 (Zesty Zapus)
17.10 (Artful Aardvark)
18.04 (Bionic)

If you don't know which version of Ubuntu you're using, please execute the following command:

galoget@hackem:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

In the output of this command you can verify if you're using one of the releases mentioned before.

If you have one of them, please execute these commands and tell us if it worked.

sudo apt update
sudo apt install v4l-utils

Or download the .DEB file with its dependencies from here depending on your release.

If this doesn't work, please refer to the following steps to install the package from source:

Download the package from its official website, I tested this with v4l-utils-1.14.1.tar.bz2.
Extract the content with: tar -xvjf v4l-utils-1.14.1.tar.bz2
Check README and INSTALL files to verify dependencies and follow their instructions:

$ ./bootstrap.sh
$ ./configure
$ make
$ sudo make install

And about your 2nd issue, please refer to this guide, good luck.

Hope it helps.


You mention that you installed LXD. Normally, LXD is pre-installed in the Ubuntu images. Which exact images (and versions) did you use?

You mention installing bridge-utils. What network configuration changes did you do?

(could not add a comment above because I do not have enough karma points)


How to stop the bash script when a condition fails?

The problem is that || and && only skip one subsequent stanza of a command chain when the condition fails. If you write out a full block structure it makes perfect sense. What you wrote becomes this:

if ! true ; then
   echo "This shouldn't print"
else
   exit
fi

What you want is this:

if ! true ; then
   echo "This shouldn't print"
   exit
fi

When you are using Bash's shortcut conditional operators it is better to avoid mixing them. The logic is much easier to understand while you're writing it, and your readers will appreciate your good style.

http://mywiki.wooledge.org/BashGuide/TestsAndConditionals#Control_Operators
http://mywiki.wooledge.org/BashPitfalls#cmd1_.26.26_cmd2_.7C.7C_cmd3


touchpad-indicator doesn't disable touchpad

Try the following synclient commands,

From man synaptics

   Option "TouchpadOff" "integer"
          Switch off the touchpad.  Valid values are:

          0   Touchpad is enabled
          1   Touchpad is switched off (physical clicks still work)
          2   Only tapping and scrolling is switched off
          When  the  touchpad  is  switched off, button events caused by a
          physical button press are still interpreted. On a ClickPad, this
          includes  software-emulated  middle and right buttons as defined
          by the SoftButtonAreas setting.

   Property: "Synaptics Off"

Try the following commands to turn the touchpad on and off

synclient touchpadoff=0
synclient touchpadoff=1

They work for me for example in Lubuntu and Xubuntu. If they work for you, create aliases for them to make things convenient.

There is a GUI alternative in standard Ubuntu 16.04 LTS:

Click on the icon with a cog wheel and a wrench
Select Mouse and Touchpad
Click on the switch at the right side of the window to toggle on/off.


Have you considered autohiding the panel and the setting a show delay so that it doesn't pop up AS SOON as you touch the top?

For the autohide just right click and check autohide from the panel properties menu. For the show delay hit ALT+f2 and type gconf-editor. Click EDIT > FIND and check both boxes. Search for "show_delay" and select the first result. Change the value to anything higher than 100. (I use 700, personally)


Is there a way to install MD5 without using apt-get?

You don't have to install anything. The coreutils package is a dependency of the Kernel amongst almost a dozen other very standard packages. You'd have to fight quite hard to remove the package.

You use it through md5sum which by default takes a file as its main argument. It's fairly easy to use it in an interactive setting though:

oli@bert:~$ md5sum - <<<"This is a test hash"
6b7cf77ca6403a2323e5fd98a462538e  -

oli@bert:~$ echo "This is a test hash" | md5sum
6b7cf77ca6403a2323e5fd98a462538e  -

But it has other functions, run man md5sum to see them.

TL;DR: it's installed by default.


Can't install Ubuntu, Windows installs fine, getting: hardlink error on install

Solved with latest BIOS update for some reason the BIOS favored windows until enough people complained.


To downgrade a package you can use the command

sudo dpkg -i <packagenamehere>

Did the auto hide option in the appearance settings just get unchecked?


I upgraded. Really like it so far. It doesn't have any big new features, but it does some awesome under the hood improvements. Especially on the gaming side and looking at your name, you might be interested in that! There have been a lot of performance improvements for 3D applications (like games).

Other notable new features are:

Smart Scopes: You can now search for a lot of other sources than just Amazon. Also you can turn of the scopes you aren't intested in.
Updated packages: All standard applications like LibreOffice, Firefox and Thunderbird are updated to the latest version