How to install an isolated or sandboxed debian package?

You might want to take a look at Firejail:
https://firejail.wordpress.com/

You can create sandbox environments with it. There are many preconfigured profiles for different applications, but in your case you probably will have to create a custom one or try to use the restricted default profile.


Maximize, minimize and close buttons are either not present or not working in Lubuntu

From LXMenu, run the Openbox Configuration Manager. On the left side, go to Appearence, and make sure that Button Order says NLIMC.


Change users while logged to ssh server with nautilus

Launch nautilus with root access with gksu nautilus. In terminal, you can elevate your access to root using sudo su and it will prompt you for the root password.


First check the resolution of KUbuntu Desktop .

Get output:

 xrandr -q

Set Resolutions:

 xrandr --output LVDS --mode 1024x768

If you are still getting issue try to update driver.


What blog editor software are available?

Blogilo isn't that bad, you should give it a try.


Automatically end each command in terminal with a different message or sound

Create a script and save it somewhere which contains your lines and the logic to choose a random line from your array and calling speech command on that line:

array[0]="Shields at 90%"
array[1]="Engaging proton overdrive"
array[2]="Autopilot disengaged"
array[3]="Targetting solution available"
array[4]="Alert. Incoming missile."
array[5]="Deploying countermeasures."
array[6]="Firing torpedoes."
array[7]="Engaging auto-cannon."
array[8]="Severe damage on deck 17. Sealing off."
array[9]="Deploying repair droids to deck 17."

line=${array[$RANDOM % ${#array[@]}]}
speech "$line"

Then in your .bashrc or .profile set PROMPT_COMMAND:

PROMPT_COMMAND="bash $HOME/PATH/TO/myscript.sh"

Just replace the speech with echo to get a messge instead of the voice.


The gpg command you're trying to run is to verify that you downloaded a legitimate copy and that it downloaded to completion. You don't have gpg installed on Windows for that command to work. If you know your download is legit, go ahead and use it. Otherwise download it from a machine with GPG installed.


Check that you are using the new Greybird theme:

From the menu choose Settings - Settings Manager.
Double click the Appearances Icon
Choose the 'greybird' style
icons should be "elementary xubuntu dark"
Fonts should be "droid sans"


struct kernel_stat has no member named cpustat

It seems a bug with version you are using, check the solution here http://ubuntuforums.org/showthread.php?p=12200453


How can I connect to smb share after connecting to VPN?

Which virtualization product are you using, Virtualbox?
If so, I'm guessing you're using the "NAT" networking type which sets up a mini-LAN on your local computer in the 192.168.56.0/24 range (by default).  Your NAS is probably on your "real" LAN which has a different IP range.  This becomes an issue because the VPN puts a default route rule that basically says "send anything not in my local LAN (192.168.56.0/24) over the VPN" which then routes your NAS-destined traffic over the VPN.
There are two solutions, assuming my guesses above are correct:

Switch the Virtualbox NIC type to "bridged" which assigns your VM an IP directly on your "real" LAN.  This is fine for most use-cases but may not be what you want.
Create a a custom route in your VM that sends your "real" LAN traffic to the mini-LAN gateway (192.168.56.1 by default in Virtualbox)


Is it possible to "trick" PPA's to think you have installed 12.10 while actually running 12.04?

I would try adding the PPA the "normal" way (sudo add-apt-repository). Before running sudo apt-get update, I would open the /etc/apt/sources.list.d, and look for a file who's title resembles the ppa you added. As a root user, open the file with your favorite text editor, and replace all instances of the word precise, with quantal. Then, run sudo apt-get update, and install your desired packages. From there, change your ppa back, (or re-add with add-apt-repository), and run sudo apt-get update, to prevent other potentially problematic packages from installing.


Need to bundle a bunch of .service files in deb package

Found the solution here :)

I posted the method in the comment over there, but I'll repeat here

Name the .service files as follows under the debian directory

<package1>.<service1>.service
<package1>.<service2>.service
<package2>.<service3>.service
... and so on

Then in override section

override_dh_installinit:
    dh_installinit -p<package1> --name=<service1>
    dh_installinit -p<package1> --name=<service2>
    dh_installinit -p<package2> --name=<service3>

The key is to not specify the .service extension in the --name parameter, provide the package name under which the file should be bundled as -p<package-name>, and name the .service as <package-name>.<service-name>.service


There is a license issue

It is difficult to make Windows work from an external drive, I think because Microsoft wants to keep people from using the same instance of Windows in more than one computer.

I have read that it is possible, at least with the enterprise version, but think it is beyond the scope of AskUbuntu to describe how to do it. Searching the internet for install windows in external drive I found for example this link,

www.pcworld.com/article/3185777/windows/how-to-install-windows-on-an-external-drive.html

Virtual machine

It is possible to run Windows in VirtualBox (or another tool to run a virtual machine) from an Ubuntu host, and the host or the virtual hard disk drive can reside in an external drive. I have an Ubuntu 16.04.1 LTS host with VirtualBox and a Windows 10 guest, and it resides in an SSD in an external box with USB 3 and eSATA connections.

Swap the location

If you move Ubuntu to the external drive, you can install Windows in the internal drive. It is rather small for Windows, but if you are very careful, and keep it clean, you might get along without getting a full hard disk drive.

Ubuntu is free and has no licensing issues, so it is happy running from external drives.


SATA Drive is not detected when hotswapping

SATA hot plugging needs to be allowed with a setting in some BIOSes. The names of this may differ, ranging from allow hot-plug to eSATA.

For the ASUS M5A97 the relevant BIOS setting is in Advanced > SATA Configuration > SB SATA Configuration:

  SATA Hot Plug on Port1~6 [Disabled]
  These items appear only when you set SATA Port1 - Port6 to [AHCI] and allow you to enable or disable the SATA port hot-plug support.

This entry needs to be set to "Enabled" to allow SATA hot-plugging.


This is some ownership issue. Depending on with which user you have installed xampp/lampp, you should try starting it with the same user.

You can check your permissions with ls -l /opt/lampp/ and ls -l /opt/lampp/var/mysql/.

Furthermore, you can change the ownership of specific files so that this issue gets resolved, which I would not recommend because when xampp/lampp gets installed properly there is no need for changing permissions of specific files.

Alternatively, you can run it as root, where no error should persist.

I commonly install and start it with a sudo user.

Read the XAMPP documentation to find out what is recommended.

Additionally, in case you haven't done so, I recommend you starting xampp/lampp from terminal by executing cd /opt/lampp && ./lampp start for the purpose of debugging. This will also show you the state of the MySql server after it was trying to start it. So it will show you whether the MySql server could be started properly.


OpenVPN -> SSL Bypass VPN on specific PORT

I finally found it! It was hidden in the kernel parameters.

Mark packets was just not working, but with a new Kernel option in the kernel 3.16+ make it works:
sysctl -w net.ipv4.tcp_fwmark_accept=1

http://themediaserver.com/bypass-vpn-connections-via-specifics-ports/

Thanks!


All the operations performed by Apt are recorded in /var/log/apt/history.log. In the case of package upgrades, the recorded information includes the date and time the upgrade was made, the name of the user who performed it, the actual command line run, and the name of upgraded packages together with the version numbers before and after the upgrade. A example entry looks like this:

Start-Date: 2016-04-26  15:32:49
Commandline: apt-get upgrade
Requested-By: firas (1000)
Upgrade: language-selector-common:amd64 (0.165, 0.165.1), python3-distupgrade:amd64 (1:16.04.13, 1:16.04.14), ubuntu-release-upgrader-core:amd64 (1:16.04.13, 1:16.04.14)
End-Date: 2016-04-26  15:33:01

In addition, the actual terminal output is recorded in /var/log/apt/term.log.


How to fix NX server after upgrading to Maverick

Yes, I have the same problem... There is 2 "solutions" I have found on google for the moment :
- Downgrade the metacity package to metacity_2.30.1-0ubuntu1... (from packages.ubuntu.com)
- http://ubuntuforums.org/showthread.php?goto=newpost&t=1590440

Anyway... I found that NX performances are not as good as on lucid... :(


How to log and export CPU Usage over time?

Just to name 3:

atop
package sysstat and the command sar
mpstat


where can I buy a Lenovo X220 with ubuntu preinstalled?

I looked around and there isn't a lot of info on that.  It does appear that Canonical's collaboration with Lenovo is very recent, with the press announcement dated May 9, 2011, so hopefully Lenovo systems with Ubuntu will start appearing soon.

That said, I did find one vendor that will preinstall Ubuntu on the X220 HERE.


Lightread is a totally awesome offline Google Reader. With beautiful design and incredible Ubuntu integration, Lightread is the best RSS reader for Linux.

Install Lightread in ubuntu

ppa:cooperjona/lightread  (Click here for instructions on using PPAs.)

Open the terminal and run the following commands (for ubuntu 12.04 , 12.10 , 13.04)

sudo add-apt-repository ppa:cooperjona/lightread
sudo apt-get update
sudo apt-get install lightread


Dolphin accesses smb share, mount doesn't

The problem was fixed, when I added the sec=ntlm option


No wifi Ubuntu 12.04 Toshiba satellite P775-S7100

I figured it out. I had to press a button on the top of the laptop to turn the wifi adapter on. Thanks for all the replies.


Wifi not working on Dell Inspiron 14 5000

It is just a hunch, but I think you miss the right firmware for your Wifi card. You could try to choose appropriate and download firmware and install it as instructed:

  Copy the files into the distribution-specific firmware directory, /lib/firmware.


Rename files by adding their parent folder name

Simply remove the option -n. From man prename*:

-n, --no-act
        No Action: show what files would have been renamed.

* There are multiple commands called rename; I assume you're using prename on Ubuntu 16.04 or earlier, though option -n does the same thing for most other versions. For details see What's the difference between the different "rename" commands?


How do I switch the audio outputs of an audio device from CLI?

Thanks to the discussion with @Thomas I realised the proper therms (key words) are profile and card. In the terms of the question profiles are the inputs and outputs. The cards are the audio devices. And the sink numbers are not so important, but we need them.

We can find all available profiles for each card name by the command pacmd list-cards or pactl list cards that outputs the same information:

$ pactl list cards

Card #0
    Name: alsa_card.pci-0000_00_1b.0
    ...
    Profiles:
        input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
        output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
        output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
        output:analog-surround-21: Analog Surround 2.1 Output (sinks: 1, sources: 0, priority: 800, available: yes)
        ...
    Active Profile: output:iec958-stereo+input:analog-stereo
    ...

Card #1
    Name: alsa_card.pci-0000_03_00.1
    ...
    Profiles:
        output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: yes)
        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: yes)
        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: yes)
        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: yes)
        ...
    Active Profile: output:hdmi-stereo
    ...

A certain profile can be set by command with format as this:

pactl set-card-profile output:hdmi-stereo <card name|number> <profile name>

According to the question for the four mentioned outputs the commands are:

pactl set-card-profile alsa_card.pci-0000_03_00.1 output:hdmi-stereo # LG ULTRAWIDE
pactl set-card-profile alsa_card.pci-0000_03_00.1 output:hdmi-stereo-extra1 # LG TV
pactl set-card-profile alsa_card.pci-0000_00_1b.0 output:iec958-stereo # Digital Output
pactl set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo # Headphones

As it is shown in this answer, when the new profile is set next things to do are:

 pacmd set-default-sink <sink number of the target profile>
 pacmd move-sink-input "$i" <sink number of the target profile>
 # where $i is the index number of any active input: pacmd list-sink-inputs

According to my needs, described in the question, I've created the following script:

#!/bin/bash

# Name: /usr/local/bin/audioswitch
# Usage: audioswitch; audioswitch 1; audioswitch 2;  audioswitch 3; audioswitch 4

CARD_1="pci-0000_03_00.1"             ### HDMI Audio Controller of NVidia GTX 660
CARD_1_PROFILE_1="hdmi-stereo"          # LG ULTRAWIDE
CARD_1_PROFILE_2="hdmi-stereo-extra1"   # LG TV
CARD_0="pci-0000_00_1b.0"             ### Built-in Audio
CARD_0_PROFILE_1="iec958-stereo"        # Digital Output
CARD_0_PROFILE_2="analog-stereo"        # Headphones

# Read the user's input
CHOICE="${@}"
choice() {
    if   [ "$CHOICE" == 1 ]; then CARD="$CARD_1"; PROF="$CARD_1_PROFILE_1" # LG ULTRAWIDE
    elif [ "$CHOICE" == 2 ]; then CARD="$CARD_1"; PROF="$CARD_1_PROFILE_2" # LG TV
    elif [ "$CHOICE" == 3 ]; then CARD="$CARD_0"; PROF="$CARD_0_PROFILE_1" # Digital Output
    elif [ "$CHOICE" == 4 ]; then CARD="$CARD_0"; PROF="$CARD_0_PROFILE_2" # Headphones
    else
        echo -e "\nYou should choice between:"
        echo -e "\n\t[1] LG ULTRAWIDE\n\t[2] LG TV\n\t[3] Digital Output\n\t[4] Headphones\n"
        echo -n "Your choice: "; read CHOICE; echo; choice; # call the function again
    fi
}; choice # call the function

# Set the choosen card profile as sink
pactl set-card-profile "alsa_card.${CARD}" "output:${PROF}";

# Set the default sink to the new one
pacmd set-default-sink "alsa_output.${CARD}.${PROF}" &> /dev/null

# Redirect the existing inputs to the new sink
for i in $(pacmd list-sink-inputs | grep index | awk '{print $2}'); do
    pacmd move-sink-input "$i" "alsa_output.${CARD}.${PROF}" &> /dev/null
done

The script is ready to be used with custom keyboard shortcuts, because it can handle the value (1-4) of the first positional parameter. When it is called without additional paraneter it will ask for your choice:

$ audioswitch

You should choice between:

    [1] LG ULTRAWIDE
    [2] LG TV
    [3] Digital Output
    [4] Headphones

Your choice: 1


If you are a fan of GUIs, press Alt-F2 and type:

gksu nautilus

You will have complete control over everything; you can delete, add, copy, paste, etc. with complete control and complete permission.


Trust controller in X mode, seen but gives no input

The same issue was reported about xpad driver:
https://github.com/paroj/xpad/issues/119
The python srcipt (fixcontroller.py) mentioned in the description solved the problem. Here is a copy of the script:
#!/usr/bin/env python3

import os
import sys

try:
    import usb.core
    import usb.util
except ImportError:
    print("First, install the pyusb module with PIP or your package manager.")
else:
    if os.geteuid() != 0:
        print("You need to run this script with sudo")
        sys.exit()

    dev = usb.core.find(find_all=True)

    for d in dev:
        if d.idVendor == 0x045e and d.idProduct == 0x028e:
            d.ctrl_transfer(0xc1, 0x01, 0x0100, 0x00, 0x14)
finally:
    sys.exit()


How to connect with a Qualcomm/Huawei 3g modem

Network Manager and Sakis3G don't really work well together. Sometimes you need to run Sakis3g twice or remove and plug the device back in to get it to work. This is because ModemManager can be quite forceful by locking device ports. Alternatively, you can switch the device using Sakis3G (at which point Network Manager should pick it up) and then connecting using Network Manager.

As for the pin - either remove the required pin from the sim card by putting it in a normal mobile phone or provide your pin for switching in /etc/sakis3g.conf using the SIM_PIN="" variable.

Reference: http://web.archive.org/web/20120908202215/http://wiki.sakis3g.org/wiki/index.php?title=Sakis3G_configuration#SIM_PIN


How do I join two CSV files but only where 2nd file matches?

Provided you have sqlite3 and python installed on your system, you could use this http://www.sqlet.com/.

The relevant sql command would be:

./sqlet.py -d',' -A file1.txt -B file2.txt 'select A3,B2,B3,A1,A2 from A LEFT JOIN B ON A3=B1;' | sqlite3

This requires that you remove the headers from the two files. The sqlet script must be extracted in the same folder where those two files are or modified accordingly.

I tried it on your example extract. It works:

bruni@bruni-Inspiron-5547:~/Downloads$ cat file1.txt
10.10.3.94,255.255.255.255,Rob
10.10.3.95,255.255.255.255,Mark
10.10.3.96,255.255.255.255,John
bruni@bruni-Inspiron-5547:~/Downloads$ cat file2.txt
Rob,1.1.1.1,Purple
John,2.2.2.2,Green
Mark,3.3.3.3,Yellow
bruni@bruni-Inspiron-5547:~/Downloads$ ./sqlet.py -d',' -A file1.txt -B file2.txt 'select A3,B2,B3,A1,A2 from A LEFT JOIN B ON A3=B1;' | sqlite3
Rob,1.1.1.1,Purple,10.10.3.94,255.255.255.255
Mark,3.3.3.3,Yellow,10.10.3.95,255.255.255.255
John,2.2.2.2,Green,10.10.3.96,255.255.255.255


Why apache is unable to write with permission set as 2775?

you need to add "www-data" user into your newly created group "www" using (gpasswd -a www-data www)


Instead of manually "enable touchpad", you can add the command in startup application.

xinput list

You can access any element by its ID.

Enable Touch pad device by setting to "1"

xinput set-prop 12 "Device Enabled" 1

You can add this command in startup applications

This is not a recommended solution, if you find any better solutions prefer them.


I think the best thing to do is to use mplayer or smplayer (assuming you have the restricted extras installed as Damien mentioned.)

You can use mplayer direct from the terminal, but for it to work you must use the -playlist option so it knows to check the local .ram file for the url and connect to it.

mplayer -playlist /location/of/ram.file

Then the cache will fill (it takes a few moments) and the output will be:

AO: [pulse] 16000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  28.6 (28.5) of 1550.0 (25:50.0)  0.3% 19%

If you want to use a gui, smplayer would be the best option. Just load it up and open the .ram file and it will play automatically without any problems in the current version as in the screenshot below.


You have two issues. You're not connecting to the Windows PC. The Windows firewall needs to allow ssh tcp/22 open. Try using '-v' to get more information about the connection and authentication status.
Also the path needs to be in a different format. You cannot use backslashes. A non-quoted backslash, , is used as an escape character in Bash.
Try this command.

scp -v test.txt Student@192.168.179.4:C:/Users/Student/Desktop

Rather than using 192.168.179.4, use the correct ip address.
Also, the keys need to be setup correctly.
Also, check out:
http://woshub.com/using-ssh-key-based-authentication-on-windows/
Good Luck!


Why isn't tilde expansion performed on the input to read?

That’s simply because read doesn’t perform tilde expansion before saving the string, neither is it performed on a variable content later. You can use $HOME instead and enter

$HOME/Music

or let the script test for ~/ and replace it (taken from this answer):

case "$fname" in "~/"*)
  fname="${HOME}/${x#"~/"}"
esac

You can also use bash Parameter Expansion to replace ~/ with $HOME at the beginning of the string:

if [[ -d ${fname/#~\//$HOME\/} ]]

This variable is expanded before the substitution is performed.


Ubuntu freezes after using keyboard or mouse

As I feel confident you will continue to use Ubuntu in the future, even if  you can never make it work on that one computer, I am offering you this one valuable piece of advice;  "Prior to installing ubuntu on ANY pc, always put it through its paces using a live CD or flashdrive".  I tell that to everyone.  It is never safe to assume Ubuntu will work correctly on one computer because you've used it successfully on another.

Many times people wipe out dying Windows installations expecting Ubuntu to be the panacea, only to discover that the real reason windows appeared to be dying is that the hard drive or other hardware components were failing.  In so much as you are using an eMachines, it seems extremely likely.

Now, if you'll allow me, I'll offer you the REAL solution, and one which even eMachines haters will approve of.  It is the solution I was forced to use with the last two eMachines brought to me.  REPLACE THE MOTHERBOARD.  If yours is one which will accept a standard mini-ATX such as a Gigabyte 78LMT, or a similar ASUS such as the M5A78L-M, you might be much happier with the result than buying an entirely new pc.

I kid you not when I tell you I have yet to encounter an emachines which lasted more than about one year and didn't die emitting burnt insulation odors from chips on its motherboard.  They seem designed to fail, but replace the motherboard and you can experience gaming performance at a budget price.


kubuntu for usb, where to find this iso-file?

You have to download kubuntu iso from the internet(or if you have the cd, just insert it)

  Universal USB Installer is a Live Linux USB Creator that allows you to
  choose from a selection of Linux Distributions to put on your USB
  Flash Drive

more info here

You can download Kubuntu.iso from here


MySQL Workbench 8.0.20 EER Diagram Editor Display Problem in Ubuntu 20.04

I had my display settings in Ubuntu set to Scale 150%.
Changing to 100% solved the problem.


Eclipse won't let me select a Windows share as Workspace

It will help to use CIFS. Does this link help? Ubuntu Wiki?
You'll need the smbfs package to start.

sudo apt-get install smbfs

Replicated from the Wiki

Ubuntu 10.10 Maverick Meercat

Using the text editor of your choice, create a file with your remote servers logon credential. Replace the  with the local username. The following will open up the GEdit application:

sudo gedit /home/<LOCALUSERNAME>/.smbcredentials

Place your username and password into the file. Replace the  and  with the appropriate information:

username=<REMOTEUSERNAME>
password=<REMOTEPASSWORD>

Save and exit.

Change the permissions on the file to prevent unwanted eyes from viewing your remote share's logon information:

sudo chmod 600 /home/<LOCALUSERNAME>/.smbcredentials

Open the file system table file for editing. The following will use GEdit to edit it:

sudo gedit /etc/fstab

Add the remote share to the table on a line by itself. The following line when replaced with appropriate data will mount the share for reading and writing:

//<SERVERNAME>/<REMOTEPATH> /<LOCALMOUNTPOINT>/<LOCALPATH> cifs credentials=/home/<LOCALUSERNAME>/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

Save and exit.

Finally, test the fstab entry by issuing:

sudo mount -a

If no errors are output, it is likely safe to test with a reboot.
Your remote share should now mount automatically every boot.

UPDATE

It may be that you need be to "map" your username and group to the remote file system's username and group, using uid=x,gid=y in /etc/fstab, where x=your_uid and y=your_gid (on the remote server).

//<SERVERNAME>/<REMOTEPATH> /<LOCALMOUNTPOINT>/<LOCALPATH> cifs credentials=/home/<LOCALUSERNAME>/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=YOUR_USERID,gid=YOUR_GROUP_ID 0 0


Try reducing the input volume in the sound settings. By normal the volume shouldn't be that high. Mine is shown in the picture.


How to find harddisk access usage as a percentage like in Windows Task Manager

You can use the iotop tool to help you find what you are looking for.

Type the following command in your terminal:

sudo iotop -o

and look in to IO> and COMMAND sections.

If you don't have the iotop tool, type:

sudo apt-get update && sudo apt-get install iotop

to install it.


Adding and using a Keyboard Layout:
Click the keyboard icon at the panel and select keyboard layout settings or select System Settings -> Keyboard Layout:

Click the add (+) icon, search for the preferred language layout like hindi, nepali, or others input, select and hit Add button.

Click the keyboard icon at the top panel select the layout you want to use. You can toggle the layout with the keyboard shortcut: Shift + Caps Lock

Snapshot of Hindi (Bolnagari) keyboard layout:

Useful link:

How to assign shortcut keys to quickly switch between keyboard layouts?


There's an option where you can define to start the Seafile client minimized.
You can find the Seafile settings dialog by right clicking the tray icon and choose »settings«.


Ubuntu Cannot Assign Static on IP Multiple Interface (RTNETLINK answers: File exists)

I found the solution by chance. Interestingly I changed the indentation to below, the service started immediately without any errors..

# The primary network interface
auto eno1
iface eno1 inet static
    address 10.***.***.174
    netmask 255.255.255.0
    gateway 10.***.***.1
    dns-nameservers 208.67.220.220 208.67.222.222

# The secondary network interface
auto eno2
iface eno2 inet static
    address 10.***.***.175
    netmask 255.255.255.0
    dns-nameservers 208.67.220.220 208.67.222.222

# The tertiary network interface
auto eno3
iface eno3 inet static
    address 10.***.***.176
    netmask 255.255.255.0
    dns-nameservers 208.67.220.220 208.67.222.222

# The quaternary network interface
auto eno4
iface eno4 inet static
    address 10.***.***.177
    netmask 255.255.255.0
    dns-nameservers 208.67.220.220 208.67.222.222


What Ubuntu system should I download to usb flash drive

Lubuntu and Xubuntu both work on lower spec devices than Ubuntu.
Check out these pages to see if your computer meet their minimum specs:

https://wiki.ubuntu.com/Lubuntu

http://xubuntu.org/getxubuntu/requirements/


How do I add new locations to right-click menu of “Files” launcher in Ubuntu dock?

In principle, one can add items to the right-click menu of a Dash launcher in Gnome-Shell by defining extra "Desktop Actions" in the .desktop file. To see this working, copy the .desktop file of Files (Nautilus), /usr/share/application/org.gnome.Nautilus.desktop to your hidden folder .local/share/applications. After that, you can  edit the local desktop file without the need to be root and without affecting other users of your system. This local copy will replace the system wide version on your launcher.

If you open your local .local/share/application/org.gnome.Nautilus.desktop file in a text editor, you will already see an example of such action at the end of the file:

[Desktop Action new-window]
Name=New Window
Exec=nautilus --new-window

This action represents the "New Window" item in the right-click menu of the launcher. Note that this action is declared earlier in the file, on the line Actions=.

Thus, you easily can add your custom action:

[Desktop Action places-documents]
Name=Documents
Exec=nautilus /home/yourlogin/Documents

Name the action like you want. I choose places-documents.
The 'Name=' item is what appears in the menu.
You need to specify the full pathname: this mechanism apparently does not support shell variables ($HOME) or shell expansion (~). Thus, substitute your actual login instead of yourlogin.

Add your action to the Actions= line:

Actions=new-window;places-documents

We would be ready if it were not that apparently, the command to open a folder will not work. At least it did not for me. This is apparently due to nautilus communicating through dbus. After changing the line DBusActivatable to false, it works for me:

DBusActivatable=false

I do not know potential side effects of disabling the communication of Gnome Shell with nautilus through dbus. As long as you do not encounter side effects that are unacceptable to you, you will be good to go.


Where are the user friendly Wi-Fi names in Ubuntu 17.10?

The default GUI network manager does't provide any option to change the name. But there's another tool you can use.

Open Terminal and run

nm-connection-editor

A connection editor will appear which allows you to change the connection name.


Transfer Ubuntu to new, smaller disk with different partition number

So I took the plunge since nobody answered and decided to give it a shot, and it worked, in the end.  Here's what I did;

I plugged my new SSD in via USB.
Opened gparted and went to my 1TB, right-clicked the Ubuntu install I wanted to copy, and clicked on "Copy".  Went to the new SSD, right-clicked the empty drive and "Paste".  It took a while but it copied over the entire partition and preserved the UUID.  I did the same thing for the swap partition so that the new one would have the same UUID and I wouldn't even have to make any changes in my /etc/fstab since it uses UUIDs.  I then created a blank NTFS partition that I can share between Ubuntu and Windows.

Once that was done I physically swapped the new SSD and the 1TB drive.  Upon booting, I got a device doesn't exist error.

I booted into a LiveUSB and selected "Try Ubuntu".

Then I opened a terminal and typed out this:

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /dev/sdb1

With sdb1 being the new partition that I copied over from my old 1TB, and sda is my Windows drive, which always had grub installed on it.

Running the grub-install command above detected Ubuntu's new home on the SSD, and also detected Windows 10.  I didn't even have to do an update-grub command.

I rebooted the laptop and grub came up with my 2 options of Ubuntu Gnome or Windows 10, and both options work great!

My 1TB is now in the USB case that I used for the SSD originally, just to copy the partition.  It will be used now for long-term storage.  I prefer the speed over the size.

Side note; Running Ubuntu Gnome 14.04 on the SSD is blazing fast and boots in about 5 seconds to desktop.  Suffice to say I'm quite happy!


Print size of directory content with tree command, but exclude files from report

This is definetely a shortcoming of tree. It only summarize sizes of "what it sees". If you ignore files with -d or -I or if you limit the depth, tree will report a "wrong" dir size.

If you don't need to restrict levels, this works fine:
tree --du -shaC | sed -n '/\[01;34m/p'

Wiht 01;34 being the color value for directories from LS_COLORS env variable (...di=01;34...).
If you want to restrict levels though, the deepest level will still report wrong dir size with this method.

Consider using a more advanced tool such as ncdu.
See also this very similar question at U&L SE.


unable to locate package error when installing Matlab 2013a

apt-get downloads and installs packages from a package repository, and Matlab as commercial software is of course not included in those (standard) repositories.

If you have downloaded Matlab as a Debian package file (MATHWORKS_R2013A.deb), then you can use

sudo dpkg -i MATHWORKS_R2013A.deb

If the downloaded file is not a deb, you cannot install it using Ubuntu package management tools. In that case it is probably a binary installer (e.g. MATHWORKS_R2013A.sh) that has to be started as an executable. My guess:

sudo ./MATHWORKS_R2013A.sh

If none of this applies, you have to give more detailed information on what exactly you downloaded.


What's the difference between the NVIDIA v304.xx and the v173.xx driver branches?

The 173.xx branch is, as far as I know, the old legacy driver branch. It is a driver specifically for older hardware (below the GeForce 8000 series video cards). The 300 series drivers are the current stable drivers and are the recommended choice for the GeForce 8000 and higher cards. These drivers normally provide the best performance, optimization and support.


How to use refresh command with freedesktop services?

Here it is:

dbus-send --print-reply \
  --system \
  --dest=org.freedesktop.UPower \
  /org/freedesktop/UPower/devices/battery_BAT0 \
  org.freedesktop.UPower.Device.Refresh

Output example:

method return time=1453211890.054932 sender=:1.55 -> destination=:1.209 serial=318 reply_serial=2

It is good to read little about DBus:

How to read dbus-monitor output?
D-Bus Tutorial

You can take a venture using d-feet tool :).


How to upgrade a remote server from 8.10 to newer version?

Update from 'Ubuntu Server 9.04' (Jaunty) to 'Ubuntu Server 10.04 LTS' (Lucid).

based on:

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

http://echenh.blogspot.com/2010/04/how-to-upgrade-ubuntu-server-904-to-910.html

Step 1: install update-manager-core

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install update-manager-core

Step 2: Update from 9.04 (Jaunty) to 9.10 (Karmic)

edit /etc/apt/sources.list to replace "jaunty" with "karmic"

sudo apt-get update
sudo do-release-upgrade

Step 3: Update 9.10 (Karmic) to 10.04 LTS (Lucid)

edit /etc/update-manager/release-upgrades and set Prompt=lts

file should (at minimum) contain:

[DEFAULT]
Prompt=lts

edit /etc/apt/sources.list to replace "karmic" with "lucid"

sudo apt-get update
sudo do-release-upgrade

ADDITIONAL NOTES:

To check your server version: (at each stage)

lsb_release -a


Sample config for Logitech Touchpad T650 Ubuntu 15.10

Changing the MaxTapTime from 180 to 80 really changed the behavior of the touchpad for me. Two finger scrolling is not triggering right click anymore and the single tap is working pretty well.

According to the synaptics configuration page http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html the MaxTapTime property matches the maximum time your finger is touching the touchpad to detect the tap. Reducing it allows the system not to detect a two finger click when you're doing a two finger scroll

There is also a MaxTapMove property which I think have a role in this behavior but I could not find how to change this value for now as the first one has resolve a big part of the problem.


ALPS touchpad stops working after reboot

I sometimes face similar problem. Generally running the Synaptiks application once or twice fixes my problem. You can open the dashboard by pressing the Super key and then search for application and select it using arrow keys and run it by hitting enter.


Remap right up arrow to shift does not work as expected

Assigning a modifier requires extra steps,
as ArchWiki's xmodmap page
documents.
To remap the Up arrow to a Shift, create the file mymapfile with contents:
clear Shift
add Shift = Shift_L Shift_R Up
keycode 111 = Shift_R NoSymbol Shift_R

Now issue
xmodmap mymapfile


Most probably it is due to missing driver for your graphics card.
You could install bumblebee to solve this issue.


Can I use a Crikit Broadband 3G moden through virtualbox?

I have the cricket a600 what i had to do was install the usb_modeswitch.But first install and set up on a windows machine just so that your card will be activated,then plug it in,you see up in your network manager a something called "new mobile device" or some thing smiler. click on it and just fallow the steps,and give it a password,or mark it for all users,and auto connect if you want it to do so.


Weird menu display on top-left on Ubuntu 18.04

I don't know how to fix it but I found a way to prevent it.
Open Setting > Devices > Keyboard and disable the Activate the window menu shortcut.


bash- Control-C behavior (^C) / gksudo vs sudo

That's the normal behaviour of a normal gksudo/gksu, at least on Xubuntu & Linux Mint XFCE. Killing (CTRL+C) gksu gedit (gksudo is a link to gksu) leaves gedit still running.

man gksu has this potentially useful info:

  Also
         notice that the library will decide if it should use su or sudo as backend using
         the  /apps/gksu/sudo-mode gconf key, if you call the gksu command. You can force
         the backend by using the  gksudo  command,  or  by  using  the  --sudo-mode  and
         --su-mode options.

But testing with either option results in the same behaviour.

This test might be enlightening:

$ gksu gedit

[then in another terminal]

$ ps -ef|grep [g]edit
UID        PID  PPID  C STIME TTY          TIME CMD
mint      6878  6701  0 23:04 pts/0    00:00:00 gksu gedit
root      6879  6878  0 23:04 ?        00:00:00 /usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u root -- gedit
root      6880  6879  0 23:04 ?        00:00:00 gedit

[After killing (CTRL+C) the gksu gedit in the first terminal, it doesn't stop sudo or gedit]

$ ps -ef|grep [g]edit
root      6879     1  0 23:04 ?        00:00:00 /usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u root -- gedit
root      6880  6879  0 23:04 ?        00:00:00 gedit

[Killing the first sudo (with another sudo) does kill gedit]

$ sudo kill 6879
$ ps -ef|grep [g]edit

Just like running sudo gedit in a terminal will start gedit, and CTRL+C sudo will kill gedit. But also, if I close the terminal, sudo and gedit still keep running.

So, sudo doesn't care if the program that called it (gksu or a terminal) gets killed, it and whatever it's started keeps running too.

And these excerpts from man sudo might be helpful too:

    Process model
         When sudo runs a command, it calls fork(2), sets up the execution environment as described above, and calls the execve system call in the child
         process.  The main sudo process waits until the command has completed,
         then passes the command's exit status to the security policy's close
         function and exits.

    Signal handling
         When the command is run as a child of the sudo process, sudo will relay
         signals it receives to the command.  Unless the command is being run in a
         new pty, the SIGHUP, SIGINT and SIGQUIT signals are not relayed unless
         they are sent by a user process, not the kernel.  Otherwise, the command
         would receive SIGINT twice every time the user entered control-C.  Some
         signals, such as SIGSTOP and SIGKILL, cannot be caught and thus will not
         be relayed to the command.  As a general rule, SIGTSTP should be used
         instead of SIGSTOP when you wish to suspend a command being run by sudo.


Ubuntu 17.04 fails to connect to wifi on startup in Virtualbox

I'm experiencing the same issue with 17.04.  My wifi connects automatically under 16.04 LTS.  As a workaround, I connect manually as a "Hidden Wifi Network".


How do you get gnome-shell to show the full name?

I played around with the gnome-shell.css (/usr/share/themes/[your-current-theme]), after I copied that folder to /home/user/.themes. In the gnome-shell.css is a section called Apps where you can change the grid size of the grid on which the icons are aligned - if you make that bigger (change contact grid entry accordingly) you will see more.

I also tried to find how the pop-ups, like on the overview sidebar, work - however I could not find that. Seems like that has nothing to do with CSS.


create new filetype with existing extension

From Archlinux default applications:

Create your xml file in ~/.local/share/mime/packages (I guess that /usr/share/mime/packages is also fine, but didn't test it)

mkdir -p ~/.local/share/mime/packages
touch ~/.local/share/mime/packages/application-alpha.xml

Edit application-alpha.xml:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/alpha">
        <comment>alpha file</comment>
        <glob-deleteall/>
        <glob pattern="*.alpha"/>
    </mime-type>
</mime-info>

Now create the desktop file ~/.local/share/applications/alpha.desktop:

[Desktop Entry]
Name=Alpha
Exec=/PATH/TO/YOUR/alpha
MimeType=application/alpha
Terminal=false
Type=Application

add the right exec path to your alpha application, and if this a console app change Terminal to true.
Now update the applications and mime database with:

update-desktop-database ~/.local/share/applications
update-mime-database    ~/.local/share/mime

Now if you double click your abc.alpha file /PATH/TO/YOUR/alpha app should open your file.


nvidia-346 driver works, but UI shows "nouveau"

I figured out what was going on. The nouveau driver uses the 346 proprietary driver binary. So essentially everytime the newer driver is released the Nouveau "driver" uses whatever the most recent one and repackages itself.


17.10 DNS Requires root.servers response

You can configure your DNS in /etc/resolv.conf.
The format is simple:

nameserver n.s.i.p


I faced the same issue. Please try commenting out the below line in /etc/vsftpd.conf

listen_ipv6=yes

Place a # at the start of this line so it looks like this

#listen_ipv6=yes

Save the file, then run

sudo systemctl restart vsftpd

Hope this helps!


How do I add a launcher to unity for "gksudo "gnome-open %u""?

Have you tried something like this (I'm at mobile, I can't make it more specific until I get home but I think you will understand):

1) Right click at the Desktop and choose "Create a Launcher".

2) Paste the name and the command you want, choose the icon you want and hit "OK".

3) Drag the launcher you just create to the Unity Launcher.

4) Congratulations, you have your launcher done!


Check out this link, it looks like the appropriate extension for what you are trying to accomplish.

http://www.ubuntugeek.com/chromeflow-steadyflow-chromium-integration-extension-released.html


How to use pressure sensitive drawing in a Linux-based browser?

Short answer is no.

In order to provide pressure sensitivity, the browser (or a plugin) would have to hook into the same code (XInput) that drawing applications like Inkscape or the GIMP use. Browsers, like most desktop applications, generally leave input details to the operating system so they only see mouse or keyboard events.

I see that the Muro plugin is a proprietary Wacom application, so I wouldn't expect to see it ported any time soon. However you could open bugs requesting pressure sensitivity in conjunction with HTML5 canvas for the various browsers. As multitouch screens are becoming more important it is increasingly likely someone has been working on at least a plugin that might provide such information.


How to do the windows equivalent of "format C:"?

Boot from a LiveCD
Use gparted to re-partition the drive; delete Ubuntu partition and create a FAT/NTFS partition leaving some space un-partitioned
boot from Windows install CD; install windows onto that partition
boot from Ubuntu LiveCD; install Ubuntu.

The point is - Ubuntu is aware of Windows and takes care not to break things (i.e. it'll add Windows entry to the boot menu etc.), while Windows installer does not behave nice to other OSes. So it makes sense to install Windows first.

Alternatively, if you only need Windows to run just a few applications, you can run Windows inside a VirtualBox. This is much better as it doesn't require rebooting your machine each time.


You could attempt boot repair, but it might not fix your problem

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

Do those 3 and select recommended repair, then reboot.
Open a terminal and

  sudo apt-get purge build-essential
  sudo apt-get update

Reboot. Terminal Again

 sudo apt-get install build-essential


Mark, let's trouble shoot. Will Ubuntu 12.10 run as a live cd? Try that to narrow it down to possibly a hardware incompatibility. If not have you checked if all of your hardware (graphics cards, etc) are supported by Ubuntu? (most are..you can check here )

Also, it would be helpful if you could tell us make and model number of laptop, does it have an ATI graphics card and/or a uefi bios? If so, one of those may be the culprit.


There exists something known as POSIX standard. It's created by Open Group to have a certain standard of what commands should exist on a Unix-like system, certain system calls which system should implement, and basic devices and interfaces which should be present. In that sense, a POSIX-compliant system should be able to have utilities ( and those utilities should agree with standard behavior ) which another POSIX-compliant system has. In that sense, GNU utilities and Ubuntu are POSIX-compliant - they do have things outlined by the standard, although they have options ( such as -p in cp command ) which extend functionality.

"Inheritance" as such depends on whether or not Linux distribution is POSIX-compliant, which Ubuntu does comply with. Other distributions are outside of Ubuntu's control, even if they are based on Ubuntu, and Ubuntu is not necessarily responsible for how they implement commands on their side. Even compiling GNU coreutils can be done differently. So a different distribution may have GNU utilities, though they may be compiled differently.

However, don't focus so much on utilities, as on following POSIX and portable scripting and coding ways. That includes writing scripts for #!/bin/sh if you expect them to work on different OS, follow standard /bin/sh syntax ( which may lack certain /bin/bash features such as arrays ), and avoid GNU-specific flags when executing commands. You can't go wrong if you make your applications and scripts portable. Where you do need advanced features, be sure to check if the script is running on Ubuntu ( and it is stated in /etc/os-release file ) or someplace else.

Additional reading on topic:

What is the point of sh being linked to dash? - discussion on history and implementations of the portable /bin/sh across Unix-like systems including Ubuntu
Is macOS an Unix distribution? - discussion of what makes a system POSIX compliant and what is considered UNIX nowadays
How is Ubuntu based on Debian?


Architecture diagram explaining the Ubuntu Cloud Infrastructure with MAAS / Openstack architecture?

if someone deploys maas+juju for openstack, please run juju status --format=png > architecture.png


Folder color extension... doesn't change color

tl;dr do sudo chown $USER:$USER /home/$USER/.local/share/gvfs-metadata/*

I have finally found an answer to this question!

I ended up reinstalling Ubuntu, then, when that didn't work, deleting configuration files from my home directory. Eventually, folder-color started working...

Until three days ago, when it stopped for no apparent reason.

This time, I read the source code. folder-color uses gio metadata to store folder custom icons, so I ran the gio info command on ~/Documents, and got this:

(gio info:15425): GVFS-WARNING **: 19:45:44.340: can't init metadata tree /home/$USER/.local/share/gvfs-metadata/home: open: Permission denied

I then did ll ~/.local/share/gvfs-metadata/home, and sure enough, it and two other files were owned by root.

Doing sudo chown $USER:$USER /home/$USER/.local/share/gvfs-metadata/* fixed all of those, and folder-color immediately began working again.

I can only guess that this happens when Nautilus is run as root (you shouldn't do that anyway :P).


Xubuntu 16.04 ctrl + a shortcut not working (to mark all text)

Thanks for the tip about the wrong mapping, Charles Green. I had mapped right ctrl + alt + a to enter keepass password, which worked, but seems to have messed up the ctrl + a shortcut somehow. It was saved as ctrl + ae ('a' and 'e' were pictured as a combined symbol). Removing the keepass mapping has restored the old mark all functionality.


How do I finish the installation of a program from source?

Try editing ~/.bashrc to include this line:

export PATH=$PATH:/usr/bin/sqlite3/bin/

Another way of doing without modifying the path is to create a symlink:

sudo ln -s /usr/bin/sqlite3/bin/sqlite3 /usr/local/bin/sqlite3

Be aware that if you've installed sqlite3's package, its executable file will conflict with your newly compiled version. You're going to have to run /usr/bin/sqlite3/bin/sqlite3 explicitly.

BTW, using --prefix=/usr/bin as a compiling option is not a very good idea, I would recommend --prefix=/usr/local instead.


Does “forked into the background, PID xxxx” means that i executed a malware?

Short answer: yes.
Longer answer: The "Forked into background, PID XXXX" message is unique to your malware.  I'm taking an educated guess that it probably double forked so that it can continue running even if the parent PID exits.


Wireguard connected but no internet acces

Maybe it would be missing
We enable forwarding:
sysctl -w net.ipv4.ip_forward=1

We add the rules of the firewall, essential to have Internet access from the server:
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp -m udp --dport 51820 -m conntrack --ctstate NEW -j ACCEPT
iptables -A INPUT -s 192.168.0.102/32 -p tcp -m tcp --dport 53 -m conntrack --ctstate NEW -j ACCEPT
iptables -A INPUT -s 192.168.0.102/32 -p udp -m udp --dport 53 -m conntrack --ctstate NEW -j ACCEPT


Ruined my ~/.local and .config/ Tips for restoring?

All of these files are under your user's home folder.  If you don't have working backups, the easiest way to resolve the problem is to create a new user and these files and folders will be regenerated for the new user.
It's possible that you could then copy these new files to your current user, but it would probably be most successful if you just migrate to the new user.
If you want to keep the same username, you'll need to migrate twice.  First make a new user, then remove the old one along with the home directory.  Then create another new user with your old username and delete the user and home directory for the interim user.
Don't forget to add the new user to sudoers.


what does this output of nvidia-smi mean

G means Graphics use, this is the usual. Software that uses OpenGL will likely be using the GPUs, often needing not much memory, so it generally can be left as it is.

C means compute. You have some Python scripts that are using the code for compute, with OpenCL or CUDA. You can stop them simply by closing the process, either normally, or you can kill it with root access (such as from htop)


Using a hard drive duplicator with Ubuntu

I was able to get a response from Aleratec, and they told me to enable copying HPA which is not set by default. Once I did that the copies worked, although the image still took much longer than what I am used to to copy.


The accepted existing answers are at least partially incorrect. /dev/null is a "black hole" but you can't move directories to it. The whole mv ~ /dev/null thing appears to be some sort of hoax. It looks really dangerous but it shouldn't actually work.

Still, I wouldn't recommend testing it on a home directory with irreplaceable data. Here's a quick test harness with a new user called test. We'll ask them to move their home into the ether.

$ sudo adduser test
$ sudo usermod -aG sudo test

$ sudo su test  # we are now running as test but let's check
$ cd ~; pwd
/home/test

$ sudo mv ~ /dev/null
mv: cannot overwrite non-directory ‘/dev/null’ with directory ‘/home/test’

If something you wanted does end up in /dev/null, the recovery procedure is the same as any other data loss (as if you typed rm). Ideally stop using that disk as quickly as possible and start using something like TestDisk to recover. Ourdata-recovery tag can be really helpful here.

Just to clarify that you can sudo mv file /dev/null where file is a single file but this will not delete the file, it will replace /dev/null with that file. This has all sorts of fairly important ramifications because things rely on being able to redirect to /dev/null. Anyway, here's a simple proof of this as well as a fix in case you do end up moving a file over the top:

$ echo "this is my file" > test
$ cat test
this is my file

$ sudo mv test /dev/null
$ cat /dev/null
this is my file

# Fix this!
$ sudo rm /dev/null
$ sudo mknod -m 0666 /dev/null c 1 3

Obviously if you want to rescue your file be quick and cp /dev/null ~/Desktop/file (or somesuch) before you replace it with the system definition of /dev/null.


Don't do it
Since many important programs are written in python changing default python may crash your system, so set python for individual apps.
You can locate python3 at /usr/bin/python3
. If you want python3 by default try Ubuntu 12.10


Unable to install & access & login mysql after upgrade 18.04 to 20.04

The problem is with the NO_AUTO_CREATE_USER mode setting, as it was completely removed from MySQL 8.0. You will need to find where this is defined in your configuration files (either my.cnf, mysql.cnf, or something similar depending on how you've configured your MySQL installation) and remove it. You can also remove the other modes from being explicitly declared as the documentation makes clear:

A.3.7.
What is the default server SQL mode when MySQL 8.0 is installed?

The default SQL mode in MySQL 8.0 includes these modes: ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, and NO_ENGINE_SUBSTITUTION.

For information about all available modes and default MySQL behavior, see Section 5.1.11, “Server SQL Modes”.

Once these mode flags are removed, you should be able to start MySQL. The system will likely complain about the tables being of the wrong version the first time it starts, then the engine will immediately upgrade the 5.7 databases to the newer 8.0 system. If you have any databases that make use of MyISAM, you will want to seriously look at getting them updated to use InnoDB in the near future, as MySQL 8.0 will send messages that the older MyISAM tables are being deprecated in the future.
Hope this gives you a working database installation again


Go to your startup applications by typing startup applications in dash.

In the list of applications. choose dropbox and select edit among the buttons on the right.

Change the 'Command' part to dropbox start -i and save.

See image below:


Is this Cinnamon Panel item also available in Xfce? (or alternative)

I know this is old, but check out DockBarX, which is available for Xfce.  Here's some more details: http://www.webupd8.org/2013/03/dockbarx-available-as-xfce-panel-plugin.html


Unable to connect to wired connection using ubuntu 14.04 LTS

Can you attach the screenshots for ifconfig command (in ubuntu), can you also attach a screenshot of your windows 8 LAN details?

just go to Network and sharing centre > Local area Connection > Details

Your network connection is not getting connected automatically because it is a broadband connection. You need to manually set it up

Take a look at -
How to set up broadband connection in Ubuntu 14.04 Desktop version
, it might be a possible duplicate to your question and respond if that method works


It can easily be done in perl:

perl -ne 'print $_ x 3' file

the above oneliner output:

$ perl -ne 'print $_ x 3' file
888
888
888
924
924
924
873
873
873
1374
1374
1374

Just change the sample value for your needs.

An awk solution:

awk '{for (i = 1; i <= 3; i++) print $1}' file

To fix your bash script I would use the following snippet instead:

#!/bin/bash

while read line
do
    for i in {1..3}; do echo $line; done
done < ./file


How to connect my Ubuntu server to VirtualBox Ubuntu guest installation

You have a few different options open to you.  A 'default' connection in a VM will be set to "NAT".

What NAT essentially does is it makes your computer act a little like a router, routing traffic between the VMs and the connection that the computer is on.  Essentially, the VMs 'masquerade' to other things on your network or to the internet as your computer (or the router your computer is behind, if it's behind a router).

You have to edit the NAT settings in VirtualBox to forward traffic to the VM.  This does not include, unfortunately, ICMP Pings, such as those generated by the 'ping' command.  It operates on the same basis of port forwarding that Routers use.  (Except it's a much simpler thing than what routers can do.)

You may also want to consider using Bridged Networking instead, which makes the VM utilize the host's network card, but gives it its own IP on the network.  While this is 'okay' to some extent, it's not the most useful option available to you, as Bridged Networking doesn't work well with 'secured' networks.  And if you're on a wireless adapter, Bridged Networking won't give your VM 'wireless' powers.


Is the root user supposed to have access to this?

What you want. As an Ubuntu user I would myself never use "root". It is too obvious. I would also not use my username for the system for the same reason and always use a completly new name. And also a different password than any other procedure that requires a password.

  What is the default?

The user you created during installation of MySQL.

  How did that get there?

You probably created them. debian-sys-main is created by the system. root is not but I am not 100% sure if "root" is offered as a default.

  How can there even be 2 users with matching user names?

Why can't there be? There is a username root with hosts localhost and 127.0.0.1. You can grant access per host to a user. Granted... localhost and 127.0.0.1 are the same (your /etc/hosts should have a line connecting them together).

You also have 2 "butler" and 2 "wordpres" and 2 "redmine".

  And how do I resolve this issue?

What issue? ;)


How can I create a launcher and also have it in the apps toolbar

Just move the .desktop file you have created to ~/.local/share/applications.

After that the application should appear in the dash search results when you search for an associated keyword (name, comment, etc.). From there just drag and drop it to the launcher like you would do with any other application.

In the future you might want to consider editing the main menu directly. You can do so with a menu editor like alacarte or menulibre:

sudo apt-get install menulibre

or

sudo apt-get install alacarte

Alternatively you can configure the create a launcher dialogue to directly save the new   launchers in the right directory:

gnome-desktop-item-edit ~/.local/share/applications --create-new


what is technical difference between daemon, service and process?

Daemons - Daemon does not stand for Disk and Execution Monitor (http://www.takeourword.com/TOW146/page4.html). They are the processes which run in the background and are not interactive. They have no controlling terminal.

They perform certain actions at predefined times or in response to certain events. In *NIX, the names of daemons end in d.

Services - In Windows, daemons are called services.

If you're wondering why *NIX has a command named service, it is just used to run init scripts (shorthand for initialization scriptrunlevel).

Process - Process is a running program. At a particular instant of time, it can be either running, sleeping, or zombie (completed process, but waiting for it's parent process to pick up the return value).

Sources and further information:

http://www.linfo.org/daemon.html
http://kb.iu.edu/data/aiau.html
http://www.webopedia.com/TERM/D/daemon.html
http://en.wikipedia.org/wiki/Daemon_%28computing%29
http://www.linux-tutorial.info/modules.php?name=MContent&pageid=84


Getting Xbox Live via a wired network with my laptop that has internet access wirelessly

AFAIK, Network Manager can't do network bridging.  To do that, I think your best bet is editing /etc/network/interfaces.  I'm afraid that's where my knowledge ends; never had to bridge wireless to wired, just wired to KVM virtual network.

Oh, and you'll need the bridge-utils package.


Permanently STOP wpa_supplicant on Ubuntu 18.04

sudo systemctl stop wpa_supplicant
sudo systemctl disable wpa_supplicant


The basic syntax to get values is:

$ lxc profile get default somekey

However, to get something, you need to set it first. It appears you can only set known key values, i.e. those that actively mean something to lxd:

$ lxc profile set default rubbish 1
error: Bad key: rubbish

$ lxc profile set default limits.cpu 1

... and then you can retrieve it:

$ lxc profile get default limits.cpu
1

$ lxc profile show default
name: default
config:
  limits.cpu: "1"
description: Default LXD profile
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic

Devices appear to be special; the regular get/set access the "config" sub-field of the profile, but you need to use special commands to manipulate devices:

$ lxc profile device get default eth0 nictype
bridged


It's very hard to give a good example application, because it might do completely different things than your app. So to name just anything: you could look at jokosher, exaile, or the ubuntu one client.

If you want to learn to python however, I would recommend something more tutorial/reference like. You might want to look into diveintopython.

As for pygtk and gobjects: pygtk is the way to go, if you want something that works and is documented (now). If you want to learn and develop slowly and have something ready in a year or two, you should definitley focus on gobjects. quickly, which is a good way to go is currently also using pygtk. For more on these topics, please visit the ubuntu developer site.


I have changed the root folder/files permission what should I do?

In this case, there is only one answer:

Reinstall your system. You have changed your system irreparable. There is no way to restore the permissions reliable.


Ubuntu 20.10 dbs_work_handler/tick_sched_timer too much power (bluetooth?)

tick_sched_timer is most likely audio playback (pulse).
dbs_work_handler is the ondemand governor, it samples work to be done and modifies the clock speed accordingly.
I do not think there is anything wrong with that, the "extra" power used by ondemand is offset by the gains.
I could be completely wrong and there is something wrong with the ondemand governor!


SSH Connection Permission Denied (publickey)

Maybe your ssh agent is stopped, try the following:
eval $(ssh-agent)
ssh-add /path/to/your/key

No more authentication methods to try. root@192.168.1.10: Permission denied (publickey).
Seems that the ssh-agent does not have the correct ssh keys for authenticate the connection.


The package install rule of the Makefile is creating the Debian package using xz compression.

Now, this kind of compression is supported by versions of dpkg equal or higher than 1.15.6.

So, in order to solve your problem, you should update dpkg to a newer version.

Or install gdebi, and install with that application.

I download the package and install it gdebi. In Xubuntu 15.04 package daemon is required


Kernel-modules missing after uninstalling old kernel versions in Ubuntu 20.04

Having 20.04 and same kernel version, i checked it for you.
Here is the exact package version : linux-generic 5.4.0.60.63
But this may not be what is missing on your system as it is not installed on mine...
Your system is probably missing linux-modules-xxxxxxxx
user@host:~$ dpkg -l | grep linux-modules
ii  linux-modules-5.4.0-42-generic             5.4.0-42.46                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii  linux-modules-5.8.0-36-generic             5.8.0-36.40~20.04.1                 amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii  linux-modules-extra-5.8.0-36-generic       5.8.0-36.40~20.04.1                 amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP

Find the official download links:
https://packages.ubuntu.com/focal/linux-modules-5.4.0-42-generic
https://packages.ubuntu.com/focal/linux-modules-5.8.0-36-generic
https://packages.ubuntu.com/focal/linux-modules-extra-5.8.0-36-generic
For the last one, you should also get the dependencies : crda and linux-image-5.8.0-36-generic
Also find how to install packages from Ubuntu installation media offline :
https://askubuntu.com/a/1048260/77093

About my system :
user@host:~$ uname -a
Linux T410 5.8.0-36-generic #40~20.04.1-Ubuntu SMP Wed Jan 6 10:15:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

user@host:~$ apt-cache policy linux-generic
linux-generic:
  Installed: (none)
  Candidate: 5.4.0.60.63
  Version table:
     5.4.0.60.63 500
        500 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     5.4.0.26.32 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/main amd64

And, here is how i remove old kernels:
dpkg --list | grep 'linux-image' | awk '{ print $2 }' | sort -V | sed -n '/'"$(uname -r | sed "s/\([0-9.-]*\)-\([^0-9]\+\)/\1/")"'/q;p' | xargs apt-get -y purge
dpkg --list | grep 'linux-headers' | awk '{ print $2 }' | sort -V | sed -n '/'"$(uname -r | sed "s/\([0-9.-]*\)-\([^0-9]\+\)/\1/")"'/q;p' | xargs apt-get -y purge

Hope this would help, please let me know :)


"404 Not Found" means that the system can't find a particular resource on a web server. So the issue is with the server. So, try again tomorrow.


For the wireless card, you need to install a proprietary driver. Connect a cable to your computer (just needed once, to install the driver). Then do this from sofware-center:

Open Ubuntu Software Center
Go to Edit -> Software Sources
Select the last tab (Additional Drivers)
Under "Broadcom Corporation BCM 4313", select a driver other than "Do not use the device".
Click "Apply changes" to install the driver.


I tried Glipper and Parcellite, because they were on the repos. I ended using Diodon because neither of them worked well for me. One of them (I don't remember know which) had a bug that made it copy every single letter from a selection to the clipboard:

If I selected "foo bar" from left to right, I would get
"f"
"fo"
"foo"
"foo "
"foo b"
etc

in the clipboard.

I was using Diodon in 11.04 and I got back to it, even via a third PPA, in 11.10. It works great.


Cannot run google chrome installed by one user by another user

There are several ways to install chrome browser:

using .deb packages, or via
Ubuntu ppa repository

In the first case where you actually install it to make it accessible by all users will be determined by you, and in the second case Ubuntu packaging system will install for all users by default.

Multi-user applications are placed in the /usr directory with system wide config files in /etc, while personal or user specific apps are placed in the /home directory of the particular user. User specific configurations will be in the /home/username/.config folder.


X will not start while installing Ubuntu 13.10 on an ASUS N550JV

It's not a real answer or a solution, but I could install in OEM mode with nomodeset. Afterwards, I used this xorg.conf to force my resolution:

Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "intel"
EndSection


Open a terminal (Ctrl+Alt+T) and run:

cd Desktop

and then:

rm abc.desktop

This will remove the icon

Now go to the app and drag and drop it to desktop or create a symbolic link of that particular program

This is how you create a symbolic link

How to create a soft or symbolic link?


LibreOffice: See reason for broken images

In the current version of LibreOffice (I used Writer) I inserted a linked image, then renamed the image file.

After that Writer shows an empty frame instead of the image. Right clicking the frame and choosing the properties I get the following in the Image tab where in the Link field I can see the name of the file I linked:


Ubuntu 16.04.4 LTS wont load in the Boot Manager after being installed on to a SSD of a Yoga 11E

Edit: While some of the solutions suggested here were not correct. I am keeping them in case they help others solve their boot related issues.
Changing Boot Flag with GParted
Based on the output from sudo fdisk -l, it appears that no boot flag is set on your primary drive. To make /dev/sda bootable, open up GParted and right click on /dev/sda1. Then select Manage Flags and check the box that says boot.

After that is done, reboot your computer and attempt to boot into your primary installation. Hopefully you'll be successful.
Note: Really quick, I just want to explain how I know that /dev/sda1 is where your system should boot from. The first clue is that it's of type /EFI system. The second is the size of the partition being 512 MB. That size corresponds to that of a standard MBR/GPT boot partition.
If the  above process fails, you can try reinstalling GRUB manually by chrooting into your installation. However, being that you said you tried the procedure mentioned in the thread included in your question, I'm assuming you already tried a GRUB reinstallation with no success. If you're curious about the process of chrooting in greater detail, you can find more information at this post on SuperUser.
Edit: Below are a series of edits to my original answer that contain possible solutions.
First, when booting from your SSD, try holding down the shift key, or escape key in some cases, to bring up the GRUB boot menu. Here you can select an operating system or boot into recovery mode. If this is successful, try the latter. This will also help determine if GRUB is the culprit.
If you still have a black screen, try pressing and holding ctrl + alt and then pressing F2 to open up a TTY console. From here, you can login.
Possibly not a boot issue and could be a fault with the graphics driver
If the ctrl + alt + F2 worked then the issue isn't GRUB. Else, skip this section.
What you're experiencing reminds me of a similar problem I faced a couple of years ago. I had used Feliz Arch Installer (live CD that contains a script that simplifies the Arch Linux installation process) and the installation went perfectly fine. But when I booted, my screen was completely black (there might be a few other details that I don't remember though). It turned out that the installer had misidentified my video card and installed the wrong driver.

Type startx. This will start X server. If you see a bunch of errors and X server crashes, then that's a good sign.
lspci | grep VGA. This fetches the VGA compatible card your computer is using. In most cases, this is your video card. Take note of the manufacturer (e.g. Intel, AMD, etc.).
dpkg -l | grep "xserver-xorg-video*". This will return the current video driver installed on the system. If the manufacturer does not match that of step 2, try installing the Intel or AMD drivers.
The open source drivers can be installed with sudo apt install xserver-xorg-video-intel, sudo apt install xserver-xorg-video-ati. Make sure this corresponds to the manufacturer from step 2.

NOTE: The xserver-xorg-video-ati driver is for older AMD/ATI cards. For newer cards, you should do sudo apt install xserver-xorg-video-amdgpu. There is also an AMD radeon driver for AMD cards, but this is pre-installed with Ubuntu. It covers other AMD cards.

Reboot your system.

Chrooting and GRUB update/reinstall (method 1 to update/reinstall GRUB)
I noticed in the thread you followed for reinstalling GRUB that the top answer did not create hard links to system directories. Personally, I've never seen chrooting done as described in that post. Just to be safe, try updating/reinstalling GRUB again using these steps:

From the live CD/USB type sudo -i to change to root. Then type fdisk -l.
mount /dev/sda2 /mnt (replace sdax with your respective root partition). In your case, it appears to be /dev/sda2.
mount /dev/sda1 /mnt/boot/efi (the EFI partition). In your case /dev/sda1 is the EFI partition, but for others it may be different.
mount --bind /sys/ /mnt/sys (--bind creates a bind mount. Bind mounts are different from typical mounts in that they create an exact replica of all contents that are being mounted within the mountpoint. So /mnt/sys/ will have the same folders and structure as that of /sys/, which is the system directory in your installation).
mount --bind /dev/ /mnt/dev
mount --bind /proc/ /mnt/proc
mount --bind /run/ /mnt/run
Now type chroot /mnt/ (Perhaps the above process is why you got the error when trying to recover earlier?)
First try updating GRUB with update-grub
(may be optional) If the above errors out perform the following:

grub-install /dev/sda (where /dev/sda is the drive that has Linux installed. It can vary, but in your case it is /dev/sda).
update-grub
exit to leave the chroot environment.

Now unmount the bounded folders:

umount /mnt/dev
umount /mnt/sys
umount /mnt/proc
umount /mnt/run
umount /mnt/boot/efi
umount /mnt

Now reboot and see if you still cannot boot into Ubuntu.

Using Startup Boot Repair Disk (method 2 to reinstall GRUB)
There exists are repair tool that can be installed called Boot Repair. Someone was kind enough to create a live CD/USB version to help systems that are in an unbootable state.
Note: You will need another USB/CD/DVD for this task. Also, all data on that USB/CD/DVD will be lost!

Download the Startup Boot Repair disk from the project's SourceForge page. Your system is most likely 64-bit, so download the respective .iso. If you're unsure, download the 32-bit one.
Use Rufus (if in Windows) or another disk utility. If you only have access to a live CD/USB, you can create a bootable CD/DVD by opening Brassero and burning the .iso file you downloaded. If you would like to make a bootable USB, use the dd command as follows:

Using the dd command (can skip if not using USB as boot medium)

First reformat the USB you're going to be using (note: you do not need a large USB drive for this. 1GB is fine). To reformat, you USB from the terminal as a FAT partition do the following:

Type lsblk. Typically, the USB will mount under /media. Being that your USB drive is the third device, it will likely be /dev/sdc. If you would like to see the full name of the device to confirm that it is indeed correct you can type lsblk -l to see the full mountpoint. It should end in the name of your USB. You can crosscheck this name with the one that shows up in Nautilus (i.e. Files).
Next, if you see a digit after /dev/sdx, type sudo umount /dev/sdx#. Where x is b, c, d, etc. and # is the number beside it.
To reformat the flash drive with an FAT filesystem type mkfs.vfat /dev/sdx (replace x with the respective drive letter).

Once the drive is formatted, double check to make sure it hasn't remounted by typing lsblk. If it is still unmounted type dd -bs=4M if=/path/to/iso of=/dev/sdx && sync.

Caution!!!: dd is extremely dangerous. You can wipe out your primary partition if you make a mistake. In the above command, /path/to/iso is the absolute path to your .iso file. To make this easier, after typing if= don't add anything. Instead, open Nautilus (Files) and navigate to your .iso file. Once you find it, click and drag it into the terminal. This will allow the path to auto generate. /dev/sdx is the USB you want to write to. Be absolutely sure that this is correct, or you could lose critical data.

The dd command will take awhile. You'll just have to wait while it copies the data.

---------- (End of section on dd command)

Reboot your system from the CD/DVD/USB you burned the boot repair disk to. If all went well, it should boot up and beginning scanning your drives and boot configuration.
You should see this if it successfully detected everything:

Generally speaking, the default option is fine. However, you can click the Advanced drop down arrow to see a plethora of options to configure GRUB. Some of these may help fix your issue. However, being that you cannot boot at all and have not shared any error messages, I'm assuming that you're simply being greeted with a black screen at boot (if you are receiving errors of some kind, edit your question to contain them). Click the default option.
At the end of the repair, you should be presented with a pastbin URL. Please write down that URL and edit your answer to include it, as it contains log information and may be useful.

Using Super Grub2 Disk
Note: This will not solve your issue. But it might at least get your system to boot once.
Super Grub2 Disk is a live utility that probes all OS's and allows you to boot them from a GRUB-like environment. You can configure GRUB from here as well. You can download the latest stable version here, and it should be compatible with numerous architectures as well as UEFI and BIOS.
As Super Grub2 Disk is a live environment, you'll have to create a bootable USB/CD/DVD. Once successfully booted select Everything > Linux [...] (hdx, msdosx), or something along those lines. Do not choose the version with (single) in the name. This process may not work depending on your issue.
Reinstallation
If all else fails, you could try a clean installation.


Can I use gparted to resize a Truecrypt-encrypted partition?

Gparted only knows about physical disks - a Truecrypt parition won't even show up in Gparted, unless perhaps the whole partition has been specified as a Truecrypt partition.  Certainly containers don't appear.

There is no way to resize an exisiting truecrypt parition (there was a convoluted method that worked prior to version 6.3, but it no longer works in recent versions).

I think your only option is to move your data to another volume, format your drive and Truecrypt it, then copy your data on to the newly created Truecrypt drive.


Touchpad scroll is slow in VMware for ThinkPad

I found this answer for my question:

https://superuser.com/questions/131297/use-synaptics-touchpad-scroll-in-vmware-guest

according to it, I used the instruction in this article http://blog.alexou.net/scrolling-in-gtk-apps-with-synaptics-driver to add a DWORD to my touchpad driver on windows, and now it was fixed!


Hp Deskjet 1510 - Printer Alignment Utility Ubuntu 16.04

The HPLIP package should be enough for managing HP printers.
If not installed already you can find and install it from the software center or in terminal sudo apt install hplip


System hangs installing 13.10 with AMD R9 290X graphics card

I resolved this by plugging my monitor into the onboard graphics of my motherboard, installing Ubuntu and then following the manual instructions for the catalyst driver (section 3) here: https://help.ubuntu.com/community/BinaryDriverHowto/ATI

Note: replace references to raring with saucy.

Once everything was installed I was able to reboot and switch the display over to my R9 290X card.


You could try

sudo cpupower frequency-set -g powersave

Or

sudo cpupower frequency-set -f 1000MHz

for whatever your low cpu speed might be.
I do not own a laptop so I do not know if that will do the trick.


I recently encountered this problem after removing compiz. It solved by re-installing compiz via:
 sudo apt-get install compiz


Why doesn't Skype appear in the upper panel?

Skype does not use the standard indicator-applet functionality in Natty to show its Icon.

Instead it requires the old Notification-Area-Applet (right click the Panel and "Add To Panel") for it to work correctly.

You can double check that this applet is running by running the following command in a terminal window:

killall -9 "notification-area-applet"

If it responds with a "notification-area-applet: no process found" error message then the applet is not running (i.e. has not been added to the gnome-panel)


Clean Ubuntu Install with Nvidia stuck on login screen, login loop

If you have Nvidia graphics, you might need to install the drivers.

First, you will need to set up an internet connection through the login screen before you begin.

Next, press CTRL+ALT+F3 and sign in with your username and password.

Then, run the following commands to install the drivers:

sudo apt update
sudo ubuntu-drivers autoinstall

You should be able to get back to the original login screen using CTRL+ALT+F2 but it may be CTRL+ALT+F1 or CTRL+ALT+F7.

If all else fails, you can automatically restart the login screen by running the following command:

sudo systemctl restart gdm


There is not a lot to do since the software we used to use for this (laptop mode, tlp) all got incorporated into the kernel.

Ubuntu comes with software and drivers for nVidia and that is installed by default. At the top panel it will have the nVidia software where you can switch between Intel for power saving and nVidia for performance. Example where you can pick from the panel:

(from  the OMG Ubuntu article on this)

And from within "NVIDIA settings" you also have the "on demand" option:

(from a Forbes article on this).

Personal experience: my HP Omen on nVidia with a Geforce GTX 1050 I can watch video using performance mode for about 4 hours so a couple of releases ago I stopped bothering using power save mode :) If I really need more than 4 hours of travelling (I commute a lot) I will pick power saving but will also bring my charger along.

1 downside: you need to log back it for the change to take effect.

Mind though that there is more to it.

turning off bluetooth
turning off WIFI. That is if you do not use it on the road
dismount (/eject) external media: usb, sd, connections to phones.

will help a lot too.

One thing I used to do when the power saving option where even more bad was to install more than 1 desktop where I picked one that has a very low foot print by itself and use that for on the road. But nowadays that is not needed either anymore for me personally.

Had to wait for Ubuntu to refresh the battery calculation: 5h30 on Ubuntu 20.04 at 99% battery life with power performance, browsing the web so but not watching video.


How Can I Install Dragon Ball Fighter Z using wine?

Simple answer you cannot.
Check the site for details has this can change with time.
Winehq

There are some people playing it with Proton, but even they are getting several issues.
Check the link: protondb.

Hope it helps.


I believe you can only preseed one late command. And you must specify in-target before your commands.

So put your commands on one line, separate them with a ; before each command and add in-target.


How to type in Kannada language in LibreOffice?

First remove all the said scim pacakages, im-config.
Install the "ibus" ,"Adjust methods for keyboard input"tools.

Make sure to install the following pakages

ibus-m17n
ibus-table-extraphrase
ibus-gtk
ibus-gtk3
ibus-qt4
ibus-table
ibus-clutter

Choose the input method switch and make ibus as the choice.
A dialalogue box to restart X session appears choose ok.
Log out and login back to restart X session.
Go to ibus system tray icon choose preferences
click input method tab and  kannada option which has kgp(nudi) ,inscript(nudi),itrans(baraha format)
choose them to the add to list .---done---
------Usage------
Open gedit  writer the press control space  and write in kannada
For Libreoffice
Click on Tools → Options → Language settings → Languages
Check Enabled for Complex Text Layout(CTL) and Choose Kannada in Default
languages for Documents (CTL)
Enjoy kannada typing!


How do I connect my server to a WEP encrypted wireless network?

The error you are receiving ( "No DHCPOFFERS received" ) seems to suggest that there is no DHCP server in your network. So I do not think is a WEP problem...

I assume that your are trying to connect to a "normal" router ( so you do not have separate DHCP server, firewalls or other stuff between your server and the router ).

disable wep and try to connect again to the network. If this works, probably there was an error in the WEP password you entered.
try to connect to the network by cable. This way you can check if through ethernet the DHCP works and an IP address is given to your server. If you receive an IP address the problem could be wireless card drivers or misconfiguration.
check DHCP setting for the router. Maybe something is messed up on the router side, access it's configuration page and try to understand if settings are correct. You can also try to connect to the wifi connection through another computer ( just to be sure that the problem is the server! )
config your server to use a static IP address ( this way you won't be using DHCP ):
http://usefulubuntu.blogspot.com/2009/01/create-static-ip-from-command-line.html
Please remember to check the IP address you will insert ( could be taken by someone else in the network ) and be sure to put the correct gateway address!


Ubuntu 11.10 Home folder places bar missing

Open your file manager, press F9
 or
go through menu View--->Sidebar--->Show Sidebar and check to enable it.


CPU Load is 100% non-stop after installing 500 new fonts

It's an unsolved bug related to dbus-deamon.The only known solutions are either killing the software that started the bug or few restarts.
I have written about it here, but it went unnoticed.


How do I get LibreOffice with Presenter Console to display notes and next slide?

espertus,
I had exactly your problem. on exactly the same software you have. This is how I solved it:

get rid of everything that wasn't ubuntu-provided (including the Sun Presenter Console)
install the ubuntu-provided console with sudo apt-get install libreoffice-presenter-console
reboot

Note that bullet 3. is essential. I don't know why, but if you don't reboot it will never work (just restarting LO won't work).


It's a bug:

https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1647458

If this affects you, you should report it there.


Not able to boot mac osx 64 bit from GRUB version 2.02

Adding something like

  menuentry "OS X" {
      insmod hfsplus
      set root='(hd0,gpt3)'
      chainloader /System/Library/CoreServices/boot.efi }

to your grub config might help.

  Note that you may need to change the partition number from "gpt3" to something else, such as "gpt2" or "gpt4". You want to identify the partition on which OS X is installed and use its partition number. To use this example, copy it to your /etc/grub.d/40_custom file in Linux and then type sudo grub-mkconfig -o /boot/grub/grub.cfg

I pasted most of this answer from here: Mac OS X won't boot from grub menu in Ubuntu Precise on Apple MBA(5,2)


We need to know if the bug is in the X11 configuration or the display manager (the login screen).  Currently, in my system, I note that if I have any xorg.conf file--anything whatsoever--the nvidia driver will not start X itself. Moving xorg.conf allows nvidia-390 or nvidia-410 to start.  Same problem does not seem to affect X when I turn off the nvidia drivers.

Putting X aside, consider the display manager. For me (and many others, if you check), there is a bug in gdm3, it won't start for either.  I'm still digging into all of the reasons, but best suggestion now is to install the lightdm display manager. It will start.  You can make sure which is selected if you run

dpkg-reconfigure lightdm

If the login display manager still fails to start, I suggest you turn off the graphical login and let the system boot up and come to a CLI login prompt. Here's how to turn off the graphical login:

systemctl set-default multi-user.target

I learned that at  https://wiki.debian.org/GDM#Removing_autologin_in_gdm3_and_getting_more_verbose_output_in_GDM

From there, you have more freedom to test both the raw X session with

startx

The important there is to see if X itself starts.

And you can also you can test with display managers. Launch with these with systemctl. For example, right now

sudo systemctl start lightdm

or if you want to see the black screen again, put gdm3 instead of lightdm.

When you ask more questions, please remember to tell us output from

uname -a

and the video part of the output from

lshw


Acer Aspire V5-431 Webcam not working with Ubuntu 14.04

You usually don't have to install driver software for things like cameras in Ubuntu and linux. Just install a camera app like cheese or guvcview. Open a terminal and type the following commands to install guvcview:

sudo apt-get update
sudo apt-get install guvcview

The application will install as "GTK UVC video viewer".


External monitor horizontal lines problem

I have an Acer TravelMate 5730 with an ATI Mobility 4570 with resolution of 1920x1080 doing the same. Reducing resolution removes the ínterference but of course, aspect ratio gets affected.

I am still looking for solution.


You can set access rule for that,

Go to Settings -> Security -> Record Rules

Model = hr.holidays, Read = True, Write = True

['|',('employee_id.department_id','=',False),('employee_id.department_id','=',user.department_id.id)]

And set groups for which you want to set this rule. It will allows groups member to set leave request of an employees which are belongs to his department or does not belongs to any departments.


You need to edit your /etc/apache2/apache2.conf file

Add:

    Alias /squidreport /var/www/html/squidanalyzer
    <Directory /var/www/html/squidanalyzer>
        Options +FollowSymLinks +MultiViews -Indexes
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
        Allow from all
    </Directory>

My web directory is /var/www/html,  I guess yours is /var/www/

Then you need to generate the reports by running:
/usr/local/bin/squid-analyzer

That will generate your index.html page.
Without that, squidanalyzer won't work

You can add the above command to a daily cronjob.
Good luck!


Lubuntu boot logo still showing after removing Lubuntu flavour

Command:

sudo update-alternatives --config default.plymouth

and select ubuntu-logo.plymouth

Then run ...
Code:

sudo update-initramfs -u

Check /usr/share/plymouth/themes

and remove unwanted themes by running (replace X-Y-logo with the name of logo you wany to remove.

sudo apt remove plymouth-theme-X-Y-logo

example sudo apt remove plymouth-theme-ubuntu-gnome-logo

Don't remove the default "ubuntu-logo"


How to make FN keys working on Asus G75 laptop

I have the same problem and looked for a solution. Couldn't find anything that made a difference. The kernel simply doesn't produce any scancodes for most of the Fn key combinations. I guess we'll have to wait for a newer kernel with updated drivers.

This command shows scancodes:

sudo /lib/udev/keymap -i input/event3

Some combinations do work:

Fn+F1 - sleep
Fn+F2 - toggle wifi
Fn+F7 - toggle screen on/off
Fn+Del - Ins


It's working fine with code below:

event.type  = EV_LED;
event.code  = LED_CAPSL; /* or any other LEDs */
event.value = 0; /* or 1 */

if (write (kb, &event, sizeof (struct input_event)) < 0)


I can get the Apple Magic Mouse to pair, but the mouse stays in discover mode

Installed blueman and opened it.
Right click on listed device and select input device.
Enter pass phrase as 0000.

Now it works fine.


Gedit's LaTeX plugin opens a dialog called "Choose Master Document" each time a .tex file is opened

The LaTeX plugin creates a hidden file .NAME.properties.xml (where NAME ist replaced by your .tex file's name) in the same folder as your .tex file. This file contains the settings for the master document, and if it's found the plugin doesn't ask for a master document.

A sample file looks like this:

<?xml version="1.0" ?><properties><property key="MasterFilename" value="my_master_document.tex"/></properties>

There doesn't seem to be a way to switch of this behaviour.


System does not fully support snapd: The "fuse" filesystem is required on this system but not available

Found a solution:

You just need to install the fuse package... as it says.

sudo apt-get install fuse

Source: https://packages.ubuntu.com/xenial/fuse


Try installing Dark Background and Light Text. This is what the current page looks like with the entension enabled:

Note that this extension only affects the contents of the web page. Depending on your gtk theme, the tabs and address bar may have dark text on a light background. To reverse that, simply click on the ☰ button at the right top corner of the browser and select Customize. In the Customize tab, click on Themes in the bottom row and choose Dark. Then click Done and now you'll have even the tabs and address bar with light text on a dark background as in the image above.


Ubuntu 16.04 freezes when I use libreoffice writer

One alternative to launching a full blown word processor to edit a "simple text file" would be to use a lightweight simple text editor. There are several of these and examples are included with every Ubuntu release.

Notable GUI members of this class include gedit and leafpad and for the CLI include vi(vim) emacs(e3) and pico(nano)

Depending on what you are actually doing in the background it can make good sense to save resources by using more lightweight alternatives. I had an issue once where nautilus wouldn't start under a heavy system load using a slightly lighter weight file manager solved the problem for me.


Since you're using a WUBI-method, I'm not so sure this Ubuntu-installation survived the upgrade from W7 to W8/

I supose it's better to re-install with the WUBI-method a fresh installation of Ubuntu.


Clean install with home folder and multiple users

You have to setup the partitions to have home set to /dev/sdb1 (for example) during setup. There is an option for "Something else" during install at the hard drive section. As long as you create the users in the same order, it should do permissions correctly (no promises, of course).

I am not 100% on just copy and pasting the files and permissions in say nautilus, but you can always run sudo chown <user>:<user> -R /home/<user> after you copy it to set the folder to the correct owner. That should set everything correctly.


The most simple steps are:

Download VMWare and install it. This is the program that will allow you to create and run virtual machines.
Download Ubuntu 13.10 by clicking the orange button. This is a large file (883Mb) and will take some time, like you mentioned. You definitely need this file. It's often called an "ISO" or a "disc image", as it can be copied onto a CD. You aren't putting it on a CD, though, just downloading it.
Run VMWare and follow the instructions to create a new Virtual Machine. You will normally keep all of the default settings, but under "Guest" you should choose "Ubuntu" and "64-bit". It will ask for "installation media" or a "disk image" - this is where you select the Ubuntu 13.10 ISO file that you downloaded in the second step.


Error "shockwave flash has crashed " google chrome ubuntu 14.04.1

Your answer indicates that you may have upgraded from 12.10 to 14.04. If this is the case, upgrading from 12.10 to 14.04 is not supported, because 12.10 was a short term release.

I have 14.04, I am running google chrome, and I can watch youtube and twitchTV without a problem. What you should do is this:

Backup the files on your computer to an external harddrive, or to a cloud provider such as Dropbox or Google Drive.
Download the latest Ubuntu Version
Place the latest version on an installation medium such as a DVD or USB thumb drive.
Restart computer, and boot up the DVD/USB installation image of ubuntu.
Assuming this is not a dual boot setup; do a clean install of Ubuntu, wiping the entire harddrive.

After this is done; you should have a clean and fresh setup where you should not have any issues watching twitch or youtube. You should be able to do this in both Chrome or Firefox.


configure GRE tunnel to start on reboot?

use crontab

sudo crontab -e

insted of setting the time of miniute hour ect
* * * * *command>`

you will use

@reboot <command>


How to change notification area icons only

If you examine the icon set in /usr/share/icons you'll find that within each icon set folder there are folders with the same names and within those folders are icon groups by size and within those folders icons for the same purpose have the same name. That means you can substitute icons from other themes that you prefer. I believe the icons your interested in are in the status folder. Some icon sets are more complete than others and some icons are used under multiple names by using links to point to a single image. Within folders like status the sub folders are by size with the svg folder containing scale-able icons. Once you've made changes to these icons you'll need to restart. I'm unsure if logging out and in is enough or if restarting unity will do so I just restart the system.


System logs me off after I close laptop's screen

Run this in a terminal:

gksudo gedit /etc/systemd/logind.conf

or

sudo nano /etc/systemd/logind.conf

Then look for the value #HandleLidSwitch=suspend and remove the "#" at the beginning and change it to:

  HandleLidSwitch=ignore

To apply the changes  run:

sudo restart systemd-logind

More info you can find here:
http://www.freedesktop.org/software/systemd/man/logind.conf.html


zstd wasn't available until 4.19 and 18.04 has 4.15.
to be able to use zstd you may want to try hwe kernels.

sudo apt-get install --install-recommends linux-generic-hwe-18.04

(add xserver-xorg-hwe-18.04 if using a desktop)

this will install kernel of the newest released ubuntu. As of 2020/02/28, it 19.10 and 5.3 kernel series.

for more info : LTSEnablementStack


How can I execute a command through a browser?

Generally, you can run a command with cgi.

CGI-Scripts have to be in a specific folder that has to be defined in the apache configuration. like

  ScriptAlias /cgi-bin/
  /usr/lib/cgi-bin/

then you can just create a bash script, put it there an execute it by calling in your browser.
eg. echo "Hello World" would write the output to your browser.

I'm not shure what you mean by "open an ebook", so if you give me more information about that I might be able to help you with this.