Please try the following steps :

1 - First, install the iptables extension  package called 'ipset' to block a set of IP addresses :

sudo aptitude install ipset

2 - Create  a set identified with 'setname' and 'specified type' :

sudo ipset create bogons nethash

Here, "bogon" is a setname and "nethash" is type.

3 - Add an entry to the set :

Eg. sudo ipset --add bogons x.x.x.x/24

4 - Next, drop outgoing and incoming packets to and from these ipsets using iptables rules :

sudo iptables -A INPUT -m set --match-set bogons src -j DROP
sudo iptables -A INPUT -m set --match-set bogons dst -j DROP

5 - Then add the iptables rule to drop forwarding the packets from these ipsets ( if using your machine as a router) :

sudo iptables -A FORWARD -m set --match-set bogons src -j DROP
sudo iptables -A FORWARD -m set --match-set bogons dst -j DROP

6 - Check your current iptables rules :

sudo iptables -L

7 - Check your ipset list :

sudo ipset list

8 - Check man page for more info on "iptables" and "ipset".


How to format a USB or external drive in Kubuntu 12.04.01?

Try Disk Utility.

This is capable to formatting drives and manage partitions.


Can't run application/x-executable files in Ubuntu 14.04 LTS (linaxepad)

First of all, when you run from terminal, the command is case sensitive. So run LinAXEpad with capital L.

LinAXEPad is not starting because some dependencies are missing. Here are the libraries needed (found using ldd):

    ldd LinAXEpad
linux-gate.so.1 =>  (0xf777f000)
libgtk-x11-2.0.so.0 => not found
libgdk-x11-2.0.so.0 => not found
libgmodule-2.0.so.0 => not found
libglib-2.0.so.0 => not found
libgthread-2.0.so.0 => not found
libgobject-2.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libpango-1.0.so.0 => not found
libpangocairo-1.0.so.0 => not found
libpangoft2-1.0.so.0 => not found
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7740000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf773b000)
libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xf7729000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf7716000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf75e2000)
libstdc++.so.6 => not found
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf759c000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf757e000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf73ce000)
/lib/ld-linux.so.2 (0xf7780000)
libcairo.so.2 => not found
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf73ac000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf73a8000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf73a0000)

It requires GTK 2. Note that if you have a 64 bit Ubuntu, 32 bit versions of those libraries will be required.

Try to install:

sudo apt-get install libgtk2.0-0:i386 libcairo2:i386 libpango1.0-0:i386 libgdk-pixbuf2.0-0:i386 libstdc++6:i386


How to generate automatically all *.desktop files?

Try running update-menus. If this doesn't work, this may do the trick:

sudo apt-get remove --purge xubuntu-default-settings
sudo apt-get install xubuntu-default-settings


Recommendation for custom keyboard shortcut combinations?

After experimentation, I found that the combination less likely to be used by any program is the following:

Ctrl+Super+Alt+Key


How to completely uninstall 12.04 and revert to 11.04?

I had an issue similar to this one. If you have a graphics card installed on your system then you will need to remove it completely and run the installation without the Graphics Card in there. Then you can put it back in after the installation. It is important to note that if you used WUBI to install your 12.04 then you shouldn't do a revert to 11.04 without first making a partition with your existing memory. Installing 11.04 alongside 12.04 and then  use a partition manager to format the 12.04 partition. After that then you can use that partition manager to expand the volume on the 11.04 partition. I suggest that you use a boot able USB also as it seems to function better than a CD. Again the Graphics Card is likely the best route as it happened to me like that. It can't hurt anything so try it.


How to add mount options when SD card is auto-mounted in GNOME?

Read the /etc/fstab file, man 5 fstab and man blkid and the community help on UUIDs. You will end up adding something like this to /etc/fstab (note the use of the noauto option to silence boot-time complaints) YMMV:

UUID=24D5-05A4 /home/w3/mnt/Jellybeans/Green    vfat nodev,nosuid,noexec,user,noauto,rw 0 0


Is there a modern tutorial for setting up SSL on apache2?

The Ubuntu Server Guide is pretty current.  Check out the section on 'HTTPS Configuration' and what it links to which talks about making your own certificate


Ubuntu 16.04 - Force the use of AMD graphics

You might be able to force it to use AMD with open source drivers, but you're probably going to have worse performance than you will just using Intel.

The AMD open source drivers have no support for newer OpenGL (or CL, can't remember) versions, which cripples some video playback and kills many graphically intense applications. It also puts Minecraft out of the question.

Even though in normal cases, integrated graphics are less powerful than discrete (even AMD), the lack of an adequate driver for AMD cards in Linux means AMD cards will probably have worse performance than Intel in most cases.


Huwawei E220 broadband dongle not working

I was experiencing this problem for my E220 on Ubuntu 11.10 and 12.04 as well. It works sometimes and sometimes the "just keeps on and on for a long time and then say I'm offline" thing happens. So to connect I have to do things like unplugging and re plugging the dongle, restarting the machine etc.

But now Huawei offers a Linux version of its Mobile Partner software. I found this software with a new E303 which I bought from Mobitel. I installed this software on my computer and this Mobile Partner detects the E220 dongle as well. It works fine and even allows SMS and all the data monitoring facilities.

So, my suggestion to you is to install the Linux version of Mobile Partner which comes with new dongles. Please be careful about the Linux versions of the Mobile Partner which are available online. Some people have complained that the installation changed their configuration files and couldn't connect to internet afterwords.  So use the software which comes in a new dongle.


How can I let Unity WebApps always run in Chromium?

If you go to chrome://plugins/ You'll find the Unity WebApps plugin, under it you can check "Always allowed?" so you won't see that dialog anymore. I was having the same problem and this fixed it.


Can't build gcc anymore since upgrade to 11.10

Apply this patch, and configure with --enable-multiarch (not to be confused with multilib):

http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01674.html

(That supersedes this earlier patch.)


Can't start VM in Virtual Box after upgrade

Installing virtualbox-dkms and running /etc/init.d/vboxdrv setup again resolved the issue!


16.04: lightdm(lockscreen) can't connect to wifi. (1) Insufficient privileges

I think the problem is in the permissions= line in the configuration files in /etc/NetworkManager/system-connections/* after the change I describe below, all went to work as before.

I have four computers with Ubuntu 16.04, two have been updated from 15.10 to 16.04 and two were installed from scratch.

On machines that have been updated, you can select an already configured connection (LightDM user can not create, change or remove connections) before you log in. In the updated machine, an available connection is automatically selected and so it is possible to ssh to the machine.

On machines that received the 16:04 version, LightDM user can not select one of the connections previously created displaying the error insufficient privileges.

After checking the logs and the differences in the configuration files between the machines I realized that the files in /etc/NetworkManager/system-connections/* had small differences!

Installed machines from scratch:

[Connection]
id=corona
uuid=4ce20be5-d5a0-41c5-820c-852136fade99
type=wifi
permissions=user:modolo:;
secondaries=

Updated machines:

[Connection]
id=corona
uuid=9bbd3c2b-295b-45e0-b1da-5c6b72e3734d
type=wifi
permissions=
secondaries=

What has changed, in my view, with the new NetworkManager is that even when the connection is created and saved to ALL, permissions are created only for the user who is editing the connection (permissions=user:modolo:;).

After updating the permissions from "line=user:modolo:;" to "permissions=" in all connections files you can select the same before authentication and in addition, if any of the connections is active, it is automatically selected.

I hope this helps and works for everyone.

Hugs,
Marcelo Modolo


I have installed mysql on ubuntu 13.10, but don't seem to have rights to do anything?

It should just be a matter of:

sudo apt-get install mysql-server

Follow the prompts to enter a root password during installation.

Then connect:

mysql -u root -p

Enter the password set during installation.


Now i found out the problem wasnt at ubuntu. It only happens in xournal++.
In order to "force" the problem i made the zoom gesture with a finger and the stylus.
In order to fix it, under "edit -> preferences -> touchscreen -> hand recognition" check the box, i put it to 0,5s and now it works like a charm.
The thing i still dont get, is why the touchscreen stopped working outside of xournal++.


Half downloaded. You can start all over again.


Top bar graphics issues after switching to GNOME Flashback

In first screenshoot you are using Adwaita theme. In second screenshoot Ambiance theme is used.

Install gnome-tweak-tool, there will be option to change theme.


Swapfile does not load when hibernating in Ubuntu 18.04

I had the same situation here. I've just tried with UUID and it worked like a charm:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=d2175d30-aee3-418b-8c3f-d4ae61d13b3f resume_offset=2367488"

Hope it helps,
Br,
Martin


No, but you can press super+a to open the Applications lense directly, super+f to open Files and Folders and super+m for Music.


Finally got it working. Relevant code is:

for i in "$wav_path"/*.wav;
do
    filename="${i##*/}"
    filename="${filename%.*}"
    lame -h -b 192 "$i" "$mp3_path"/"$filename".mp3
done


Nvidia on Windows and Intel on Ubuntu (dual boot system)

Answer to question 1: Try connecting an outside monitor via HDMI when getting the black screen. Sometimes(not always) the case is that the main desktop image goes on the outside monitor leaving the main one blank which is why it is black. If this helps then you can go to display settings an choose your main screen as your primary screen again.


Firefox NOT WORKING after Synaptic installed 67.0

I have solved this issue by using the refresh feature.

Please note that it will revert Firefox to its original state: configurations and customizations, including extensions, extension data, and about:config preference configurations are removed.

Go the Troubleshooting Information page, that can be accessed by the following ways:

Menu: Help > Troubleshooting Information.
Type about:support in your address bar.

Click the Refresh Firefox button.

For more information, visit:
https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings


Configuration can be done per-user through ~/.fonts.conf, and globally with /etc/fonts/local.conf. The settings in the per-user configuration have precedence over the global configuration. Both these files use the same syntax.

Just scroll down and change the DPI value in the conf file. You may have to restart x or logout/login to KDE to get the change to apply.

This applies to most DEs, I don't know of any GUI method to do it other than what you have tried already.

font config man page!


what is the difference between stopping and killing process?

As is found on Wikipedia
SIGKILL

The SIGKILL signal is sent to a process to cause it to terminate immediately. In contrast to SIGTERM and SIGINT, this signal cannot be caught or ignored, and the receiving process cannot perform any clean-up upon receiving this signal.

SIGSTOP

The SIGSTOP signal instructs the operating system to stop a process for later resumption.

Ref. https://superuser.com/questions/594508/whats-the-difference-between-sigkill-and-sigstop
Ref. https://bash.cyberciti.biz/guide/Sending_signal_to_Processes


Complete data transfer with dd - Is that possible?

Boot from another drive

I would suggest that you work from another drive, for example an Ubuntu live drive or a Clonezilla drive.

backup at least all files, that you cannot afford to lose, to another drive before you start shrinking the Lubuntu partition or even better, that you

clone the whole current Lubuntu partition with dd or Clonezilla or
make two tarballs (preserving properties) with

cd /path-to-lubuntu-root-file-system/home
sudo tar                   -cvzf /path-to-external-drive/home.tar.gz .
cd /path-to-lubuntu-root-file-system
sudo tar --exclude="/home" -cvzf /path-to-external-drive/root.tar.gz .

when booted from a live drive.

Edit partitions

Use gparted to edit the partition table to what you want. If you let the head end of the new root partition be at the same position as the old one, the bootloader will might find it, so that you need not re-install the bootloader (grub), if not, it is rather easy to re-install, 'repair', the bootloader.
If you rely on the tarballs, you can wipe the root partition and the swap partition, and the editing process will be very fast
Otherwise you can shrink it by moving the tail end and remove the swap partition
Create a partition for the root file system at the head end of the unallocated drive space (and leave some unallocated drive space for the other partitions)
Create an extended partition (using all unallocated drive space)
Create a partition for /home and for swap as logical partitions.

Now you can start restoring data from the cloned image file or the tarballs

cd /path-to-lubuntu-home-file-system
sudo tar -xvzf /path-to-external-drive/home.tar.gz
cd /path-to-lubuntu-root-file-system
sudo tar -xvzf /path-to-external-drive/root.tar.gz

Make the UUIDs of the root file system and the swap partition match the lines in /etc/fstab
Create a new line in /etc/fstab for the 'home' partition

Reboot into your revamped system, and if necessary re-install, 'repair', the bootloader.

Screenshot with an extended partition and two logical partitions in it,

In this case I reduced the size of the casper-rw partition of a persistent live drive and added a home-rw partition.


How to install JDK 7u25 & NetBeans IDE 7.3.1 on Ubuntu 13.04?

[Desktop Entry]
Encoding=UTF-8
Name=NetBeans IDE 7.3
Comment=The Smarter Way to Code
Exec=/bin/sh "path to your netbeans installation"  e.g(/opt/netbeans-7.3/bin/netbeans)
Icon=/opt/netbeans-7.3/nb/netbeans.png
Categories=Application;Development;Java;IDE;Programming;DeveloperTools;
Version=1.0
Type=Application
Terminal=0
TargetEnvironment=Unity

Save this file as netbean<version code>.desktop. Then save to /home/user/.local/share/applications directory


Linux terminal: Keyboard shortcut for moving across tabs

Got the solution :

For CentOS Ctrl + Page Up / Page Down will work. It is working fine.


As with umask, fmask and dmask are subtracted from 777 to get you the effective permitions. So you are actually mounting your share as 000, meaning "no one can read, write or execute"

Also, do you really need that many custom configuration options? If this is your home computer, I suggest this:

//IomegaStorCenter/public/Server /home/jmm/Iomega cifs defaults,uid=jmm,gid=plugdev,umask=022

jmm, I presume, is your username. If not, change accordingly. Also, I strongly suggest you not to mount drives in your home directory. As root, create /mnt/iomega directory and then mount there. If you want, create a symlink in your home folder pointing there. The command in terminal would be:

sudo mkdir -p /mnt/iomega

And the fstab entry would then be:

//IomegaStorCenter/public/Server /mnt/iomega cifs defaults,rw

Troubleshoot

If this didn't work, let's try from the very beggining, just to check if there are any loose ends:

1 - Delete all lines from fstab concerning the IomegaStorCenter. Reboot

2 - Use Nautilus > Network > Windows Network > Workgroup (or whatever your workgroup is called), and see if the drive shows. Double-click it.

3 - Does it ask for username/password? Do you know them? Do they work and nautilis show the shared folders? (note: this is not your Ubuntu username/password.It's the share login/password, which you might have previously configuted in IomegaStorCenter

4 - Stil using nautilus, can you drag and drop and create files there? Edit them, rename, delete, etc?

If yes, then fstab is your only issue. If not, then you must configure IomegaStorCenter before going on, until you can properly access it via Nautilus.

5 - Unmount the drive in Nautilus (use the "Eject" button)

Now in terminal (it can be done via GUI/Nautilus, but copy-and-paste command in terminal is faster and less error-prone):

6 - delete the old mountpoint. MAKE SURE IT IS EMPTY BEFORE YOU DO THAT

rmdir /home/jmm/Iomega

7 - create the new mountpoint and a symlink from old location to the new one

sudo mkdir -p /mnt/iomega
ln -s /mnt/iomega /home/jmm/Iomega

8 - Add one (but not both) of these lines to fstab, depending on whether your share needs password or not:

//IomegaStorCenter/public/Server /mnt/iomega cifs defaults,rw,username=YOURSHAREUSER,password=YOURPASSWORD 0 0
//IomegaStorCenter/public/Server /mnt/iomega cifs defaults,rw 0 0

9 - Mount it, to test if enty is ok:

sudo mount /mnt/iomega

10 - Open nautilus, got to /mnt/iomega and try to copy some files. Edit, delete, etc.

If it works, great. If not, try to copy files using terminal and paste here the error message. also type ls -la /mnt/iomega, sudo mount and paste results.

11 - Now go to Wine config and make sure D: points to the new, correct location, /mnt/iomega. Also use nautilus to browse to /home/jmm/.wine/dosdevices/d: and see if it the correct location.

12 - Test you VB app and be happy :)


Simply open Software & Updates via your Dash and you will see this

Activate the first checkbox and you will see this

Now, your sources.list is back.

The output of sudo apt-get update lists only the informations of your PPAs. The list-files are stored in the folder /etc/apt/sources.list.d


How do I print the contents of a directory folder as an ordered list?

One quick way to do what you are suggesting is to:

Open up nautilus (the ordinary file browser)
Navigate to the folder whose content file names you want to print
Select everything (Ctrl-a) or Edit->Select all.
Copy it to the clipboards with (Ctrl-c) or Edit->Copy
Open Gedit (the default text editing software)
Paste (Ctrl-v) or Edit->Paste
Print the text with gedit's print function

The only downside to this is that it will be absolute paths, but you should be able to do some search and replace to get rid of the prefix.

As always, there is probably a command line way to do it much easier, something like piping ls into lp. If you need this solution as well and cannot figure out the commands, let me know and I'll look into it.

Regards TLE


Grub menu not showing after ubuntu installation

I have used boot-repair before to successfully fix these sorts of dual-boot issues, see here:

How can I repair grub? (How to get Ubuntu back after installing Windows?)


is there a way to install 'python-setuptools' without installing all the requirements?

Run
sudo apt install python-setuptools

and all will be installed as you want.


Juju has a concept of "Subordinate Charms" where you can deploy charms on top of existing deployed services. One such example of this is the Nagios/NRPE charm. Where you deploy the nrpe charm on existing services and relate it to a regular Nagios charm. NRPE sits on top of whatever service it's deployed on and monitors the machine. In this case you can create a subordinate charm to deploy additional services on top of a regular charm.

However, if the charm you're deploying requires these dependencies to work properly it is probably better to fork the charm, add your modifications, then deploy from your forked version.


Ok, so this is what I did. I removed and --purged snapd. Reinstall snapd, then installed the Inkscape snap... And it launched. However, this came up when I installed Inkscape:

macdonald@maclaptop:~$ sudo snap install inkscape
2017-02-16T19:20:08-06:00 INFO snap "core" has bad plugs or slots: core-support (unknown interface)

inkscape 0.92.1 from 'inkscape' installed
Going to try install a bunch of other snaps now,and it works!


How can I compile full project C language

Is there any way to compile these files in ubuntu and generally linux ??

No. It's not intended to be built or ran under Linux, only under Windows 7-10.
The file readme.md says:

UACMe

Defeating Windows User Account Control by abusing built-in Windows AutoElevate backdoor.

System Requirements

x86-32/x64 Windows 7/8/8.1/10 (client, some methods however works on server version too).
Admin account with UAC set on default settings required.

...
Build

UACMe comes with full source code, written in C with some parts written in C#;
In order to build from source you need Microsoft Visual Studio 2013/2015 U2 and later versions.

We presume that you don't want to: "Cross Compile to Windows From Linux", which is quite complicated and due to the nature of the executables not guaranteed to work; besides, where would you run the resulting programs.


Indexed mode

The Indexed command converts your image to indexed mode. See indexed colors in the Glossary for more information about Indexed Color Mode.

You can access this command from the image menubar through Image → Mode → Indexed, and in my case, set it to RGB.


One of the computers on my home network does not get a local IP

It seems like your second Ubuntu box has received an external IP address for some (uncertain to me) reasons. And in this case it's not surprising that ssh to your other PCs doesn't work - without port forwarding set up on the router it can't reach the machines which are in the local subnet.

Unfortunately, some important details are missing, especially this: did it work previously in the same configuration?

If no, try to plug your "second box" into another port on your router and then reboot the box.
If yes: first try to reboot the router and the "second box"; if this doesn't help, try to remember any changes that were made since the last time it worked.

Hope this helps.


I'm not sure, but I dont't think this is possible at the moment. But for a quick and dirty hack you could just ssh into your phone and then send sms using the cli:

/usr/share/ofono/scripts/send-sms /ril_0 <target phone number> "your Text" 0

If you have multiple sim cards installed:

ril_0

represents your first sim and

ril_1

represents the second sim.

But while Mir and Unity 8 are getting more and more mature, we might see a GUI that can do this in the future.


To control a GUI application from terminal commands, you may use tools like xdotool and xsel.

xdotool simulates key presses and mouse actions. You can thus write a script that will send keys and mouse clicks in sequence to the application, which will interact on these just as if you would have been using the keyboard and mouse yourself.

xsel or xclip are tools allowing you to retrieve or set the clipboard from the command line.

Just as an illustration and give a very first idea on how it works, following command would select a word before the cursor and cut it to the clipboard.

xdotool key ctrl+shift+Left ctrl+x

Your script could then retrieve the clipboard selection to do something with it:

SELECTION=$(xsel -b)

Some remarks:

These tools will work reliably only on X, not, or less reiably, on the new display server Wayland
You will need to include sufficient delays. The system may discard keystrokes if provided too fast. It takes time tuning a script in this respect. Yet, if you succeed, you will be able to repeat a same task significantly faster and without errors.


Steps to follow for the complete solution of this annoying problem:

From the terminal run:

sudo nano /etc/xdg/autostart/hplip-systray.desktop

Add one # character at the beginning of the line: Exec=hp-systray -x
(If you have HPLIP continue reading.)
Save the document and then open the "startup options" (one click in the Ubuntu wheel and search for the specific line).
Edit the HP System Tray Service.
Change that command with hp-toolbox.
Save changes and restart the computer.


Found this gist on github which seems to achieve exactly what you want to do:

Feeding multple instances of fcrackzip using xargs:

logfile=$(date +%Y%m%d%H%M).log
targetfile=test.zip

# Start 1 processes for cracking mixalpha-numeric maximum 5 digits
fcrackzip -c Aa1 -b -l 1-5 --verbose -u $targetfile & >> $logfile &

# Start 62 processes for cracking mixalpha-numeric equal to 6 digits
eval echo\ {A..Z}AAAAA\; | xargs -I % -P 26 fcrackzip -c Aa1 -b -p % --verbose -u
$targetfile >> $logfile &
eval echo\ {a..z}AAAAA\; | xargs -I % -P 26 fcrackzip -c Aa1 -b -p % --verbose -u
$targetfile >> $logfile &
eval echo\ {0..9}AAAAA\; | xargs -I % -P 10 fcrackzip -c Aa1 -b -p % --verbose -u
$targetfile >> $logfile &

tail -F $logfile | grep FOUND


18.04 on MSI GE63 - boot hangs at 'Loading initial ramdisk' without `acpi=off`

I ended up doing a bios update. I had to disable fastboot and secureboot again after that, and now it works like a charm!


Performance of Chrome Hangouts extension

I found that my gmail tab was causing >100% cpu usage most of the time after I enabled Google Hangouts. I don't see the same issue in Firefox and have tried disabling all extensions/other tabs in Chrome to no avail.

Reverting to the old style chat fixed the problem.

(I know that's not really a solution as I don't know how much longer the old style chat will be available, but it will help until the problem is really fixed.)


What is the required IntelliJ environment for Ubuntu?

You will need to install the following to get IntelliJ working:

IntelliJ itself (Best way is the JetBrains toolbox, as it makes updates easier)
A JDK (Easiest way is to install openjdk-8-jdk with apt-get, although Oracle java works just as well)

After installing these you may need to set your JDK inside IntelliJ, you should use the path /usr/lib/jvm/openjdk-8/


Can I make the Gnome 3 overlay show the current wallpaper rather than the wallpaper on login?

Easier than thought :

a) right-click with your mouse on your desktop then you find the location of where wallpapers can be set-into-your desktop

b) go to the directory of gnome for wallpapers and put there your favourite images into (usually in /etc/gnome or in /usr/share/gnome there is somewhere a directory for wallpapers + or you simply define an own script as *.lst - file for to allow certain images suiting to your profile of your user-in-your-mind only + ???? + )

c) back to desktop right-click on your desktop again and you pick then your over-lordian-image

;o)


Use a live USB and boot your system.

Make sure you can mount your main partition in which your Ubuntu is installed. Lets assume it is /dev/sda1

Unmount that partition (NECESSARY). Now run this command which will fix errors in partition:

sudo fsck -a /dev/sda1

Make sure you you can mount the partition. Restart your system. it should work now.

(I faced with this problem today, I did exactly same thing and problem solved)


If you want the official way , you must upgrade to 12.10 or higher.

But the indirect way is  Percona Server with XtraDB providing libmysqlclient-dev 5.6 version. So if you ADD their PPA then it will give you a way to install libmysqlclient-dev 5.6.

To add it , do this in your terminal

gpg --keyserver  hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
gpg -a --export CD2EFD2A | apt-key add -
sudo sh -c 'echo "deb http://repo.percona.com/apt precise main" >> /etc/apt/sources.list.d/percona.list'

Then      sudo apt-get update

then try again.


You'll need to install proprietary hp plugin with hp-plugin to use some of the advanced options, e.g. duplex printing.

Once the binary plugin installed as described on hplip page, Printers > HP_Color_LaserJet_MFP_M477fdw > Properties > Installed Options will show new "Duplex Unit" option with a checkbox. Under Properties > Printer Options > Two-Sided now allows to select "Long-Edge Binding".


sudo rmmod ite_cir should fix the issue.

You can also create the file /etc/modprobe.d/blacklist-mceusb.conf and add

#Blacklist mce usb
blacklist ite_cir

to the file. Then restart.


How to remove the old Installation of Ubuntu

Download the new system as an .iso file. Add this file to the list of Storage devices for this machine in Virtualbox.

Then, with the virtual machine powered off, adjust the boot order under Settings, so the machine will boot off the .iso instead of the hard disk. Then start the machine. It will ask you if you want to install the new Ubuntu over the old one. You want the "use the whole disk" option (unless there is some data on it that you want to keep).


Running a local website without localhost

Yes, exactly: add the following line to /etc/hosts:

127.0.0.1 meso.dev.cc

and your address will work.


discoloration with external monitor connected via mini displayport converter to htmi, ubuntu 16.04

I changed cables and it seems to be working without discoloration now. I went from using a minidisplayport to hdmi adapter and hdmi cord, to using a cord with a minidisplayport connector on one end and an hdmi connector at the other.


where to find the location of an installed package?

Let's take a look at the package description:

$ apt show opencl-headers
...  This metapackage depends on packages providing the C and C++
headers files  for the OpenCL API as published by The Khronos Group
Inc.  The corresponding  specification and documentation can be found
on the Khronos website.  ...

A metapackage doesn't provide ANY files itself. Instead, dependencies provide the files. We must look up the dependencies of this metapackage:
$ apt depends opencl-headers

opencl-headers
  Depends: opencl-c-headers (= 2.2~2019.01.17-g49f07d3-1)
  Depends: opencl-clhpp-headers (>= 2.0.10)

So you must look at those packages for the files provided.
After you know which package(s) to look at, dpkg has a convenient feature to list the files provided any installed package.
From man dpkg:
      -L, --listfiles package-name...
          List files installed to your system from package-name.

For example, here are the files installed by the hello package:
$ dpkg -L hello

/.
/usr
/usr/bin
/usr/bin/hello
/usr/share
/usr/share/doc
/usr/share/doc/hello
/usr/share/doc/hello/NEWS.gz
/usr/share/doc/hello/changelog.Debian.gz
/usr/share/doc/hello/copyright
/usr/share/info
/usr/share/info/hello.info.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/hello.1.gz

For fun, let's also work backwards and determine whoch package provides a specific file:
      -S, --search filename-search-pattern...
          Search for a filename from installed packages.

In this example, you can see that the file is provided by the hello package:
$ dpkg -S /usr/share/doc/hello/NEWS.gz

hello: /usr/share/doc/hello/NEWS.gz


xrandr command to configure monitors only works once logged in

My guess is that during login process, Unity tries to set up the screen by itself, so that might be one of the things that breaks. If your login screen doesn't require configuration, and only needed for Unity session, would you consider adding that command to startup applications so that it runs automatically after you login. That way unity applies its changes, but then you override them with your own command.

What I also would recommend is to use a modified version of your command:

bash -c 'sleep 3 && xrandr --fb 7040x2160 --output DP1 --mode 1920x1080 --pos 0x0 --scale 2x2 --output eDP1 --mode 3200x1800 --pos 3840x180 --scale 1x1'

That way there's sufficient delay for Unity to apply its changes, and then you run  your own


Cannot edit /etc/initramfs-tools/conf.d/mdadm and /etc/udev/rules.d/RULE on 16.04 Server

Hello again Ubuntu users.

My networking problem is solved by creating a 70-persistent-net.rules file in /etc/udev/conf.d/.

I still experience the problem with the software raid1.
When I remove one of the disks it does not work out.
What I have done is to add BOOT_DEGRADED=true in /etc/mdadm/mdadm.conf.


The package for software source is the "software-properties-gtk"

Go to "Ubuntu Software Center" and search for the package "software-properties-gtk", if the package is not installed , please install it.

Regards.


Ubuntu 14.10 can list Wi-Fi but won't connect

I suspect there is a problem with the driver ath9k which has been fixed in later kernel versions. I suggest we install the ath9k driver suite from kernel version 3.19. With a working temporary internet connection, open a terminal and do:

sudo apt-get install build-essential linux-headers-generic
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-1.tar.gz
tar -zxvf backports-3.19-rc1.tar.gz
cd backports-3.19-rc1
make defconfig-ath9k
make
sudo make install
sudo depmod -a

Reboot and tell us if there is any improvement.

If Update Manager installs a later linux-image, after the requested reboot, you must recompile:

cd backports-3.19-rc1
make clean
make defconfig-ath9k
make
sudo make install
sudo depmod -a

Then reboot to load the newer driver.

You might also try a driver parameter:

sudo -i
echo "options ath9k nohwcrypt=1"  >  /etc/modprobe.d/ath9k.conf
exit

Also, make sure your router is set to WPA2-AES and not TKIP. Reboot.


I tried rebooting after waiting 15 minutes for the loading to end, but the same thing occurred again.
Since I have my machine on dual boot, I tried booting first to Windows, and then reboot to Ubuntu. That seemed to work.
PS: I don't know why booting to Windows, then restart and boot to Ubuntu worked. Maybe someone else can elaborate on that.
Edit: This solution doesnt work anymore.


How can i block updates for specific application?

Yes but you will need synaptic installed

sudo apt-get install synaptic

Then open synaptic and search for the package you want to lock and go 'Package>Lock Version'


Command to get list of all media playing

That feature s implemented with MPRIS (Media Player Remote Interfacing Specification), a standard D-Bus interface.
You can control it with DBUS commands manually, but I find it "a little bit" complicated for every day use:
# Get current Status
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
  /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get \
  string:'org.mpris.MediaPlayer2.Player' \
  string:'PlaybackStatus'

# Get Metadata of currently playing song (if Playing)
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify \
  /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get \
  string:'org.mpris.MediaPlayer2.Player' \
  string:'Metadata'

(spotify is the player, change that accordingly)
or simply use playerctl:
playerctl status
playerctl metadata

Install with apt:
sudo apt install playerctl

You can also control players with python's dbus module:
#!/usr/bin/env python3
import dbus
bus = dbus.SessionBus()
for service in bus.list_names():
    if service.startswith('org.mpris.MediaPlayer2.'):
        player = dbus.SessionBus().get_object(service, '/org/mpris/MediaPlayer2')

        status=player.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus', dbus_interface='org.freedesktop.DBus.Properties')
        print(status)

        metadata = player.Get('org.mpris.MediaPlayer2.Player', 'Metadata', dbus_interface='org.freedesktop.DBus.Properties')
        print(metadata)


Can I install a PC-MAC DVD Rom application on Ubuntu 12.04LTS?

Try to install it with wine:
https://help.ubuntu.com/community/Wine

It can run Windows software on linux, but it doesen't work with all software.
Give it a try and report any problems, maybe someone can help.


"Authentication service is not available" when installing IDLE (using python 2.7)

A temporary workaround to this is:

sudo software-center


How to check the md5sum and sha256sum of a directory (an entire folder)?

This little script will make sha512sums of a folder and all its subfolders and save it to a file called sha512checksums:

#!/bin/bash
rm -f sha512checksums
find -type f ! -iname "sha512checksums" -exec sha512sum "{}" + > sha512checksums

And this following scrip lets you check the sums based on the before created file:

#!/bin/bash
rm -f sha512errors
sha512sum -c sha512checksums 2> sha512errors 1>/dev/null
if [ -s sha512errors ]
then
  echo The following errors where found while checking:
  more sha512errors
  rm -f sha512errors
else
  echo All files are ok.
  rm -f sha512errors
fi

Same will work as well for every other sum making algorithm, you only would have to alter the scripts.


How to change the location of Viber downloads folder

This is a complimentary answer to AliNa's.

If you want to move your previously downloaded files to the new location follow below steps:

Backup your downloaded files
Backup .ViberPC folder
Open ~/.ViberPC/{your-phone-number}/viber.db with sqliteman
Paste below query to query edit area:

Update messages set PayloadPath = replace(PayloadPath, "Documents/ViberDownloads", ".viberdownloads") where PayloadPath is not null and PayloadPath <> '';

What this does is; replaces text Documents/ViberDownloads with .viberdownloads in PayloadPath field of messages table. I typed ".viberdownloads" because I wanted my downloads in /home/user/.viberdownloads folder. Change these strings according to your use.

Click Run(F9)

Make sure you carefully backup .ViberPC folder, if something goes wrong you will lose all your message history on this machine.


deleted EFI partition by mistake, cant boot to ubuntu

It sounds like Arch hasn't set up its GRUB to handle Ubuntu properly. In a sense, that's an Arch problem, not an Ubuntu problem; but I do have a suggestion for how to repair the problem using Ubuntu:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Prepare a boot medium from the downloaded files.
Boot to your rEFInd medium.
Test rEFInd's ability to boot both Arch and Ubuntu. Ubuntu is the priority. Depending on how you installed, you might be able to boot by selecting a kernel and hitting the Enter key; or you might need to hit F2 or Insert twice and add a root={whatever} option, where {whatever} is a partition device filename, LVM device filename, or UUID number. Entering boot options is most likely to be required if you used a separate /boot partition, but Arch is weird in its kernel naming and so it may require adding an explicit initrd={initrd-file} option to work, too.
If you can boot either OS, back up your EFI System Partition (ESP). A file-level backup (using cp or tar) to a USB flash drive should be sufficient.
At this point:

If Ubuntu boots from rEFInd but Arch doesn't, try re-installing GRUB from Ubuntu. Note that you'll need to adjust /etc/fstab to mount your new ESP at /boot/efi and then run sudo grub-install.
If Ubuntu and Arch both boot from rEFInd, you can do as above; or you can install rEFInd from its PPA or Debian package and use it as your primary boot manager instead of GRUB.
If Arch boots from rEFInd but Ubuntu doesn't, or if neither OS boots from rEFInd, then you've got a bigger problem. I recommend running Boot Info Script, posting its RESULTS.txt file to a pastebin site, and posting the URL to your file here.

Note that re-installing GRUB from Ubuntu is something of a gamble, particularly with respect to its ability to boot Arch. The worst likely scenario is that re-installing GRUB in this way will reverse your problem -- you'll be able to boot Ubuntu but not Arch. It's conceivable it will make everything much worse, though. That's where the ESP backup comes in handy; if you make things work, you can restore your ESP to its current state using an emergency system, and with any luck it will begin to work as it does now and you'll be able to try something else.


Does systemd have a specifier for the Working Directory

You do not need to specify specifically the Working Directory in the ExecStart, since all commands will be launched as if you have already specified it. Thats the point of it.
You should NOT use ~, since this will use the $HOME of the $USER as which the service is running as. Instead, use relative paths.
If your WorkingDirectory is pointing to /home/foo/scripts/, then you just need to use ExecStart=./somescript.sh
If you have subdirectories, its the same thing - ExecStart=subdir1/subdir2/somescript.sh.
WorkingDirectory is basically a cd for the services.


Click the Dash, and looking for additional Drivers, if it is available, then just pluged from cable then click active, then unplug, and reboot, let me know if it work.


Hmm then you may:

Create a new keyboard model file to replace pc105 default model (or any other model uses pc file) with the custom mapping.
I don't remember if it should be added somewhere in indexes found in /usr/share/X11/xkb/rules/ like custom keyboard layouts.
Set the new model in /etc/default/keyboard

Warning: Reboot is required, verify configuration well before doing it. Or at least prepare plan-b (on-screen keyboard, SSH login,..). If there is a mistake in syntax, it is possible you end up with non-functional keyboard input.


Deleted Xubuntu Partition, Windows Will now not boot

I think that you should repair the master boot record. Insert your windows dvd and follow instractions from http://www.howtogeek.com/howto/32523/how-to-manually-repair-windows-7-boot-loader-problems/


fstrim does not work (Ubuntu 14.04, ext4, Intel SSD 520)

The controller certainly makes a difference:  Putting a trimable SSD into an external USB3 enclosure will result in the same error you are getting.


Is it possible to put application shortcuts in a folder on desktop and launch them from that folder?

As such, indeed, this is not anymore supported, probably in the context of security. Also running script by double clicking them in the file manager is not anymore directly supported.

To run a .desktop file, place it in the folder .local/share/applications. Any (valid) .desktop file that resides there will appear in your application overview (or menu on other desktops). You can run it from there and optionally pin it to the Ubuntu Dock for quick access.

Ubuntu also supports running them directly from your desktop. Put them on the desktop. Do that by moving them in the file manager to your Desktop folder under your home folder. Direct drag and drop from the file manager to the desktop does not work currently. Right-click the .desktop file and select "Allow lauching" to turn the .desktop file into a regular application icon that you can launch.


How to correctly install LibreOffice using FlatPak to have libreoffice command in $PATH environment variable?

Thank to @vanadium for his idea.
I have created a "smart" snippet for the ~/.bashrc file:
# hack for libreoffice
if  [[ ! -f /usr/bin/libreoffice ]] && [[ ! -f /snap/bin/libreoffice ]]
then
    flatpak info org.libreoffice.LibreOffice > /dev/null && \
         alias libreoffice='/usr/bin/flatpak run org.libreoffice.LibreOffice "$@"'
fi

It check the existence of deb- and snap-installed LibreOffice and then define an alias for libreoffice command if FlatPak-installed LibreOffice exists.
The above snippet is not universal, as in some of my scripts I also directly call lowriter, localc, loimpress.
So I will need to continue using LibreOffice 6.2.8 from the PPA to keep things simple for scripting.

But all this along with Snap-fstab related problem is really weird. I understand that it is impossible to natively build LibreOffice 7 for 16.04 LTS in the PPA. So I upgraded to 18.04 LTS. Currently I see that this Snap and FlatPak stuff is not viable.


How to move hibernarnation file, separating it from swap partition/file?

What you're asking for is impossible using your current setup:

You have a swap partition and that's where the hibernation goes.  Ubuntu is not Windows with a separate Hibernation file that takes up additional space on your hard disk.

However, if you change your set-up and start using 2 swap files instead of just one swap partition, you can fool the system to swap to HDD instead of SSD just prior to hibernation by activating the HDD swap and deactivating the SSD swap file.

Is this a good idea? No, because using the swap file on your SSD will wear out the SSD much more then the simple fact of hibernation...

But anyway, that's what you asked for and that's what you'll get:

Create 2 new swap files. Have a look here for the size if you've got more then 1GB of RAM. In the below example sda is the SSD and sdb the HDD.

dd if=/dev/zero of=/dev/sda/szMountPoint/SSDSwapFile bs=1024 count=iSizeInKBytes
dd if=/dev/zero of=/dev/sdb/szMountPoint/HDDSwapFile bs=1024 count=iSizeInKBytes

where szMountPoint is the string denominating the mount point you want the file to be and iSizeInKBytes is the size.
Now activate both swaps:

mkswap --check --label SSDSwap /dev/sda/szMountPoint/SSDSwapFile
mkswap --check --label HDDSwap /dev/sdb/szMountPoint/HDDSwapFile

Remove your existing swap partition from fstab
Reboot.

Now you have 2 swap files that you can activate/deactivate with the commands swapon and swapoff and you can control everything you want including hibernating to the HDD!

Freebie

Have a look here on how to optimise your SSD to have it wear out less (example is for a USB stick, but the parameters are good for an SSD as well)


Touchpad reverse scroll settings resets upon reboot

Do you wrote a script or simply added the "functions" ?

script example

#!/bin/bash
synclient HorizTwoFingerScroll=1

The ubuntu user forum says (since Version 13.10)

You have to go to

Startmenu -> Settings -> Default applications for LXSession -> Autostart

and add your script here. (By typing your path to the script in the textbox and click add ("Hinzufügen") )

Alternative:

Add your script here

 ~/.config/lxsession/Lubuntu/autostart

Source: https://wiki.ubuntuusers.de/autostart#Lubuntu-LXDE (in german)


cannot use only external LCD monitor with laptop

Upgrading my Linux kernel to 2.6.39 fixed the problem.

I describe an easy way to do this in Wireless on an Atheros AR9285 is slow and disconnects (another issue I had with the kernel that came with Natty).


Bluetooth not discovering any devices - Dell XPS 13 (16.04)

I was able to finally fix this issue thanks to this answer:
https://askubuntu.com/a/920803/701563

Step 1 - List your usb devices

lsusb

(Displayed this for Bluetooth for me)

Bus 002 Device 002: ID 0a5c:216f Broadcom Corp. BCM20702A0 Bluetooth

Step 2 - Go to https://github.com/winterheart/broadcom-bt-firmware/tree/master/brcm to download the converted driver that matches your ID from above. For me this was BCM20702A1-0a5c-216f.hcd (Click on the file to download it)

Step 3 - Copy the downloaded file to /lib/firmware/brcm

cd ~/Downloads
sudo cp BCM20702A1-0a5c-216f.hcd /lib/firmware/brcm

Step 4 - Reboot. Bluetooth should be working now.

If you get this error while connecting your Bluetooth Audio device:

Connection Failed: blueman.bluez.errors.DBusFailedError: Protocol Not available

Solution: https://askubuntu.com/a/801669/701563

sudo apt-get install pulseaudio-module-bluetooth
pactl load-module module-bluetooth-discover

And then, delete the device from bluetooth devices and pair it again.

Hopefully this helps you connect your Bluetooth audio devices.


How to Get Native Notifications with Firefox 4?

Try to check the "GNotifier" extension: https://addons.mozilla.org/firefox/addon/gnotifier


how can i solve this error: no rule to make target 'Button icon.qml' needed by 'all-am'.stop

Try running sudo apt-get build-dep navit, then run ./configure && make again.


How to deploy multiple juju services on the same server with MaaS

I got juju deploy --to working. I had to update to the latest stable version of juju.

It would be helpful to add that to the MaaS documentation for juju quick start.


Apache web server - FTP host connection issue in LAN

It seems there is no FTP server running on the web server machine. Dreamweaver assumes there is one, because it is used in many commercial hosting environments, where a FTP server is usually provided. On your local server, however, there isn't one running yet.

Install vsftpd (https://help.ubuntu.com/lts/serverguide/ftp-server.html) on the Apache machine. There are many other FTP servers, but this one is fairly easy to configure.


How can a function/script tell Xterm from Terminology?

I don't know if this is the 'right' way to do it, but you could find what command the parent terminal was invoked with by calling ps with parent process ID obtained via the shell builtin $PPID e.g.

# get the shell's parent command from the PPID via ps
pcomm=$(ps -ocomm= $PPID)

You can then test the value of the command string - for example using a case statement

# now do something based on the value of the parent terminal command
case "$pcomm" in
  "gnome-terminal")
  echo "parent is gnome-terminal"
  ;;
  "xterm")
  echo "parent is xterm"
  ;;
  "terminator")
  echo "parent is terminator"
  ;;
  *)
  echo "unknown parent terminal"
  ;;
esac


How do I use all available hardware resource in my Intel® Core™ i7-3517U?

The easy way to get information about the number of CPU threads in your system (and lots of other useful information) is to install Sysinfo from the Ubuntu Software Center in Ubuntu 18.04 and earlier. Sysinfo is a graphical tool that is able to display some hardware and software information about the computer it is run on. In the CPU category, Sysinfo displays vendor identification, model name, frequency, number of cores, number of threads, level2 cache, bogomips, model numbers and flags.
You can view real time information about what each one of your CPU threads is doing in the System Monitor application in the Resources tab under the CPU History heading. If your computer is idle, your CPU usage should normally be very low.
In Ubuntu 20.04 and later install System Profiler ( sudo apt install hardinfo ) instead of Sysinfo.


First you should make sure that you've make a bootable USB and then install from the root.

Follow the steps below:[Backup Important data before you try!]

Plugin the USB and then click try Ubuntu
On the desktop click Install Ubuntu
Then select the necessary steps on creating or resizing your partitions for Ubuntu. I would recommend atleast 30 GB of space for Ubuntu.
Make sure that you have formatted the selected partition in "ext4" format since Linux doesn't support NTFS format.
Then Click Install
Verify that the installation is asking for Date, Time and then Username and Password.If not,you've done something wrong!


Ctrl + e will Center align the cursor for you.

You can also use the menu: Format -> Align

Or click the "Center Text" button in the formatting toolbar:


Ubuntu GNOME 20.04 screen/mouse keeps freezing/stuttering

https://dragoshmocrii.com/ubuntu-20-04-stuttering-animations-video/

Stuttering for my system was caused by the indicator-multiload extension.

Enter this command on terminal:

sudo apt-get remove --auto-remove indicator-multiload


Why Google Chrome will not be supported?

Google Chrome is not Ubuntu.

Your 14.04 Ubuntu release and all software from the official repositories will be fully supported until April 2019.

The problem is that Google Chrome is not part of the official repositories and not maintained by Canonical or the Ubuntu community. Therefore we are not responsible for updates, but Google. And they decided to stop supporting all 32 bit versions of Chrome.

You should switch to another browser and leave Google Chrome. Alternatives are for example

Firefox
Chromium (an open source variant of Chrome)
Opera
Epiphany
...

There is absolutely no need to switch your operating system. You could update to 15.10 (supported until July 2016 only), or simply wait for the next LTS (Long Term Support = 5 years) release 16.04 which comes out in April 2016, if you want. This would not bring you Google Chrome support back though, as long as you stay with the 32 bit version.


Is firewire still supported by Ubuntu 19.10?

FireWire devices work plug and play on all currently available versions of Ubuntu. To list the available FireWire packages run apt search firewire and filter the search results by IEEE 1394 and IEEE1394.

Here is a list of a few FireWire packages that are in the default repositories of all currently supported versions of Ubuntu and also Ubuntu 20.04.

libavc1394-0
libavc1394-dev
libavc1394-tools
libdc1394-22
libdc1394-22-dbg
libdc1394-22-dev
libdc1394-utils
libraw1394-11
libraw1394-tools


ubuntu 18.04 LTS bluetooth [0cf3:3004] discovery not working

A brilliant developer named Takashi Iwai came up with a solution that I incorporated into the 4.15 kernel
sudo apt install git build-essential dkms
git clone https://github.com/jeremyb31/newbtfix-4.15.git
sudo dkms add ./newbtfix-4.15
sudo dkms install btusb/4.0
Reboot

For anyone that tried this before June 13, you may need to
sudo -H gedit /usr/src/btusb-4.0/Makefile
Change the contents to be
KVER ?= $(shell uname -r)
obj-m += btusb.o

all:
    make -C /lib/modules/$(KVER)/build M=$(PWD) modules

clean:
    make -C /lib/modules/$(KVER)/build M=$(PWD) clean
For it to build correctly with new kernels

Edit: this bug is fixed in kernel 4.15.0-31, so people that have installed this fix can remove if they wish with
sudo dkms remove btusb/4.0 -k $(uname -r)
sudo dkms remove btusb/4.0 --all


Why does lsb_release -a list all those modules?

from lsb_release man page, it seems like that's the normal thing, look at the description for -v and -a, -v says ...The version is expressed as a colon separated list of LSB module descriptions. that's what your seeing, a colon separated list of LSB modules

-a is Display all of the above information., which includes -v


Suspend/Wake Up not working - black screen

I recently had the same experience and by switching to the proprietary drivers for my video card (In my case nvidia) I was able to solve these problems.

The way I did this was quite simple.
Ubuntu Software Center > Edit > Software Sources > Additional Drivers (switch to proprietary)


I had installed gnome-clocks from Ubuntu software center. Removed it and reinstalled using

sudo apt install gnome-clocks

That solved the problem.


Disable power-off button on NVidia Shield controller (joystick) in Unity

Here is something that should work for you, just be sure to credit them if it works. (but send me a note or something!) remapping in newer versions


Running a script at start up in a specific directory

Your App is started in the directory in which "you are" in this moment.

Add a  line before you start the App: cd <according path>

This should solve it


VCE init error (-22) with Slow Boot & Driver Problem on 16.04

I have the problem too,i spend much time to solve the problem,I'm sure that the graphic having no driver. there have somebody give some answer:

I can not find /sys/kernel/debug/vgaswitcheroo/switch

vgaswitcheroo doesn't work on 14.04 - discrete Radeon always on, Dell Vostro 3350

Above answer in BIOS Switchable Graphics mode,I can't slove my problem.i guess if you want solve the problem,you must install the graphic driver or off the Discrete Graphics.I almost don't use discrete graphics, So i change the BIOS graphic mode as UMA Graphics to off the Discrete Graphics.and then the error about radeon 0000:03:00.0: VCE init error (-22) disappeared.

and the error with usb, there have the same question:
USB device not accepting address


How can I uninstall Ubuntu without Dual booting

When you first turn on your PC, the Hard Disk spins up as the Computer finds out that it is something other than a lump of metal and plastic, the information for this is stored in the BIOS, there is usually a screen which flashes up for a couple of seconds or so. The following instructions only work if they are carried out whilst this screen is showing.

Depending on your PC and how much you have played with it in the past, depends whether you will receive a message on boot at the bottom of the screen or not, however, if no message is shown, press the following keys, one at a time F2, F12 and Del, it is usually one of these keys to access the BIOS Screen.

Once in the BIOS, use the arrow keys to navigate. Press the > key until you get to the Boot tab. Next use the V key to highlight the CD/DVD player, then make sure that it appears above the other disks by pressing (usually) + key.

Once the CD/DVD player is at the top of the list, Click on the >, highlight the Save and Exit option and hit Enter. This will save the new configuration and reboot the system. If your Windows CD is in the CD drive, it will (should) boot that rather than Ubuntu.


You can use pavucontrol or pulsemixer to increase the volume up to 150% and pactl set-sink-volume @DEFAULT_SINK@ <volume>% to set it to whatever you want


Packages are removed when I use "apt-get install" with a hyphen after the package name

The problem is the following (from man apt-get):

  install

  install is followed by one or more packages desired for
         installation or upgrading. Each package is a package name, not
         a fully qualified filename (for instance, in a Debian system,
         apt-utils would be the argument provided, not
         apt-utils_0.9.12.1_amd64.deb). All packages required by the
         package(s) specified for installation will also be retrieved
         and installed. The /etc/apt/sources.list file is used to locate
         the desired packages. If a hyphen is appended to the package
         name (with no intervening space), the identified package will
         be removed if it is installed. Similarly a plus sign can be
         used to designate a package to install. These latter features
         may be used to override decisions made by apt-get's conflict resolution system.

So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:

Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'

In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.

So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.


Problem with installing Ubuntu 18.04.1 LTS on my second HDD

Have you tried to enter
sudo update-grub?
The update-grub often solves the problems related to booting.  Of course, you need to check BIOS to see that that the boot key is disabled. The boot key prevemts booting of "unknown" operating systems, including ubuntu. In fact, any linux os...
OldAl


Tex-common troubleshooting on Ubuntu 14.04 LTS

I had a similar problem after the upgrade, but a simple remove, reinstall, and then reinstall all the other tex packages seemed to fix things.

sudo apt-get remove tex-common
sudo apt-get install tex-common
sudo apt-get install texlive-*


Cannot download quagga from repository on internet

The correct package name is quagga. It begins with Q, not G.

Try it:

apt-get install quagga


How to add frames to images (in shotwell)?

I am a keen photographer and can confirm that. Shotwell doesn't currently have this capability.

There is an application available in the Ubuntu Software Centre that does with the simplicity you require. It's called Showfoto with Kipi plug ins. It also has cropping and spot editing capability.

When installed simply go to Decorate on the main menu bar to add frames.

All you need to do is to setup up the size of your outer and inner border and that will be your default for all your images until you decide to change it.  Very intuitive


How can I get a Nexus 4 running 15.04 OTA-12 to connect to a particular wi-fi network when it won't accept the password

Still researching the what, how, and why of this problem but I came across a bug that suggested copying and pasting the password https://bugs.launchpad.net/canonical-devices-system-image/+bug/1445630 which even though my password was far less complex than the one suggested, the answer worked.
So to be clear, I just copied the password from a note taking app and everything connected fine.


Having installed the necessary components, issue

sudo service lightdm start

to start your graphical desktop environment.


What start up scripts are executed when a terminal is opened in Ubuntu?

As suggested by aquaherd, I would move the arm utils to a different directory so they are not in your path:

mkdir ~/armdev/
mv ~/bin ~/armdev/

Then you will have to add ~/armdev/bin/ to the path of your arm development tools, but that shouldn't be too hard (and is probably a separate question where you should specify what tools you are using for the arm development).


Install it using pip

sudo pip install colorama

If you don't have pip read How to install pip for python 3 in ubuntu 12.04 LTS

Another way is to download colorama module from here.

Now extract the package

cd colorama*

Then run

python setup.py install


udev rules to allow only one vendor and model USB drive but no others

I've faced before same problem with non effective ignore_device. I couldn't figure out why then I always go with other solutions.

Well, ignore_device removed with udev release 148. See release note or changelog

If you noticed, all topics suggesting the use of it are old (~ 2009).
A quick alternative is to use: ENV{UDISKS_PRESENTATION_HIDE}="1" (Ubuntu 12.04). For releases (>=12.10) which include udisks2 use: ENV{UDISKS_IGNORE}="1".

Reference: Archlinux Wiki: Udisks

The other solutions are using SYSFS. Either device/authorized (as solsTiCe mentioned), device/remove or driver/unbind. See Only use Mass Storage devices on a selected USB port - how?

Difficulty comes in how to deny all storage except only one brand/model. So the rule match condition should filter a single device node, no more no less (no child or parent devices). That's why I added KERNELS=="[1-9]*-[0-9]*"

KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}!="0951", ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}=="0951", ATTRS{idProduct}!="1665", ENV{UDISKS_PRESENTATION_HIDE}="1"

Well, UDisks hides only mounting hook. These may be better using SYSFS driver unbind.

KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}!="125f", ENV{IF_STORAGE_REMOVE_ME}="1"
KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}=="125f", ATTRS{idProduct}!="c96a", ENV{IF_STORAGE_REMOVE_ME}="1"
ENV{IF_STORAGE_REMOVE_ME}=="1", DRIVERS=="usb-storage", DRIVER=="sd", RUN+="/bin/sh -c 'echo -n %k >/sys%p/driver/unbind'"

Reference: udev rule with few parent device attributes


New pc, decent specifications and it doesn't work up to par. What's wrong?

Re-installed ubuntu and everything was fine.


How to subtract float values in shell script

Change the line

   r=$(echo "($p-$m)"| bc -l)

to

   r=$(echo "($c-$m)"| bc -l)

as it isn't $p but $c that is changed by the loop.


It's only and it will only be available for OEM's. Each Ubuntu Light image is specifically adapted to the device it's gonna run in. So the best way to get Ubuntu Light, now, is waiting. Waiting for Light devices in the market, and from what I've read that should happen still this year.


I found a solution:

1) I Uses static ip for IPMI and I updated the BIOS of servers.

2) After adding nodes again, everything worked!


Cannot swap on /dev/xvda9 (always busy?)

swap does not have a mount point.
edit /etc/fstab to read:

#UUID=3b47a57b-7e3a-47ac-81b9-a08af46d1a31
/dev/xvda9 none      swap    sw        0 0

then reboot

Note: if the uuid is correct, it is better to use it instead of drive letter, because the drive assignment might change.


Intel Wifi is not working and is unclaimed on hp au114tx

Thank you for giving time to me...

My Wireless started working on UPGRADING the kernel to 4.8
and running the command:

sudo apt dist-upgrade


Take a look at the /var/log directory.

Kernel messages can be found in /var/log/kern.log

You are welcome to take a look at the manuals or wikis:

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

As @Redbob stated, the location of the saved log files can be found in the /etc/rsyslog.d/50-default.conf file:

cat /etc/rsyslog.d/50-default.conf


Good to share /home with guest Windows in VirtualBox?

You can go ahead and do this.  It won't (meaning shouldn't!) hurt anything, but to be on the safe side, you might want to make a dedicated directory for Windows sharing:

In Terminal:

sudo mkdir /home/WIN
sudo chown [username]:[username]

Then share /home/WIN instead of /home.  That would be safer, and if needed, you can put symbolic links in /home/WIN/ that point to other directories in Ubuntu.


How can I fix a broken desktop due to compiz?

I suggest before you play with compiz you open your dash and type "terminal".When you see the first terminal drag it to your desktop.That way when you lose your bars you can still get to a terminal.When you lose your bars open the terminal up and type in "unity  --reset" ,without the quotation marks though and hit enter.That worked for me everytime.Also I started noticing that when playing with compiz that if I unchecked unity plugin before I checked any other box,then checked unity plugin back when I was was done I had no problems.If your going for desktop cube do this,agree to resolve conflicts,disable left flip and desktop wall


Since systemd came in, many old tools are now deprecated. bootchart is one of those. To have a graphic representation of your boot you can use the internal tools without needing to install anything else.

Use

systemd-analyze plot > ~/plot.svg

and you will have the file plot.svg ready in your home.

Please be sure to always follow guides and instructions for the correct version of Ubuntu that you have!


Yeti USB Microphone not recognized in Audacity or Skype 14.10

gksu gvim /etc/modprobe.d/alsa-base.conf

Then comment out the line:

# options snd-usb-audio index=-2

  sudo alsa force-reload

After doing this the yeti microphone shows up in Audacity and Skype.


My Ubuntu 15.04 won't boot, wrong magic number

My guess is that in a couple of weeks and regular updates this problem will fix itself.  I've seen this before a couple of times.  Something else you could try booting to this Boot Repair CD.


Is it safe to install Linux kernel 3.12?

Anything you install outside of Ubuntu oficial repositories you are on your own.

If it works for you, good.

According to the Ubuntu wiki on mainline builds

  The mainline kernels builds are produced for debugging purposes and therefore come with no support. Use them at your own risk.

They don't include the extra patches/drivers included in Ubuntu kernels, so you may experience some issues.


Memory Leak? Firefox / Chromium both fill RAM

There is no issue as far as I can see. The “available” memory behaves as expected. As applications claim more memory, the available memory decreases; once they quit, the available memory jumps up again.

It's also normal for the system to become sluggish or the user interface to stall entirely while the system accesses the swap space, especially if the device backing it is slow. Hard disk drives are typically worse than flash storage because of their high access latency.

Both Chromium/Chrome and Firefox are known to use lots of memory with lots of tabs open. Either add more RAM to your system or reduce the number of open tabs severely. You may be able to mitigate the issue with a faster swap space backing device.

You can query the virtual memory manager for current memory statistics with free -h (-h is for human-readable number formatting). You can list the (N-1) processes taking up the most memory with ps aux --sort -rss | head -n N or with top and adjusted sorting.

You may also be interested in How do you find out which program is using too much memory?


Calibre Startup Error : Bus Name already exists

Did you install it via apt-get?  I've found Calibre to be fairly finicky and fragile.

I've once before remedied the error pasted above by manually reinstalling the python-dbus package, but that same fix did not work on a subsequent re-appearance of that error.

I finally followed the developers' advice and installed it directly:

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

This has led to [mostly] trouble-free installations (on Ubuntu and OpenSUSE).

There are alternate installation options on the official install page (in addition to the one listed above):

Calibre for Download for Linux

This page states:

  Please do not use your distribution provided calibre package, as those
  are often buggy/outdated. Instead use the Binary install described
  below.

I initially ignored this advice, since I typically prefer to install packages from the default package managers.  But in the case of Calibre, I've burned a great deal of time troubleshooting and fixing issues that were ultimately avoided by following the official installation directions.

If you did install via apt, make sure to remove (uninstall) before attempting the above.


Update killed lightdm and xfce4 (Ubuntu 16.04. 4)

After four days I finally found the solution to this, so here it is just in case anybody else runs into this problem.

It turns out I was right about the video driver problem. When I dug around in the output of journalctl I noticed that there was a problem with the gpu-manager service.

update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf

Which was leading to this error:

Failed to start Detect the available GPUs and deal with any system changes.

And this was causing the error I originally found in lightdm as well as the GUI problems.

I found the solution in this thread. What I had to do was install the HWE package for the Xserver:

apt-get install xserver-xorg-hwe-16.04

Once that upgraded I was able to reboot and lightdm started up into the GUI as normal.

Hope that'll help someone else out.


How to wake my PC with any packet, not just a magic packet?

I created a question this week,
when solving I unwantedly enabled more than just magic packets to wake the PC
My solution might help for someone finding this
ethtool -s enp3s0 wol g will only allow magic packets, whereas
ethtool -s enp3s0 wol pumbg will accept ping, arp, broadcast,...

  if you want the setting to persisst you also need to make a service:
  etc/systemd/system/wol.service looks like this:

[Unit]
Description=Configure Wake-up on LAN

[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp3s0 wol g

[Install]
WantedBy=basic.target

this service will only be applied when you edit /etc/netplan/youryamlfile
to contain wakeonlan: true:

      ethernets:
          enp3s0:
                  addresses: [192.168.0.99/24]
                  gateway4: 192.168.0.1
                  wakeonlan: true
                  nameservers:
                    addresses: [192.168.0.1]


ubuntu 14.04 no system preferences in Unity

Click on the "En" icon, then select "Text Entry Settings". There you can use the "+" button to add a Romanian keyboard layout.

You don't have to install a language in order to have the necessary keyboard layout.


Ubuntu 16.04 stuck on boot Nvidia drivers

Boot into recovery using grub menu, select root console and run there:

mount -o remount,rw /
apt purge 'nvidia.*'
reboot

That will remove proprietary Nvidia drivers. There is no need to install nouveau. They have not been removed.


Completely separate full screen OpenGL context on second monitor

OK, I came up with a solution, albeit it is a bit trickery.
I have configured my graphics driver for a multi display setup. This way each "monitor" is represented as a separate X screen. Ubuntu Unity does not play nicely with this, as it currently expects a XrandR setup with a single virtual screen.
However, by erasing the relative screen location information from my xorg.conf, Unity is ignoring the second screen altogether. Now, I can create a fullscreen OpenGL context on the second X screen without any interference from the OS.
The top of my xorg.conf looks like this:

Section "ServerLayout"
    Identifier     "amdcccle Layout"
    Screen      0  "amdcccle-Screen[5]-0" 0 0
    Screen         "amdcccle-Screen[5]-1"
EndSection

In the old-style multi-screen setup, the second screen would have position specifiers (e.g. 1920 0 or "Right of Screen 0"). By removing them, the second screen is ignored.


Why do i get awful network speeds on Ubuntu 20.04 when they were fine on Windows 10? Is it a driver issue?

Not likely a driver issue.
Please check your router before anything else.
WPA2-AES is preferred, not any WPA/WPA2 mixed mode and certainly not TKIP.
Yes, we're aware of the part about other devices working fine, that's not the point. The point is those are the recommended settings and desktop Linux is a lot more picky.


Go to the TeamViewer website and hit the giant Download button.

That'll download a DEB file, which you can double-click to install.


According with Linux Font Equivalents to Popular Web Typefaces, FreeSerif may be what you need (considering that you do not want to install other fonts):


How do I share a folder between two ubuntu 14.04 machine and access it using terminal?

Simplest way is to install openssh-server on both pc. Then you can log fro A to B and vice versa from terminal.

sudo apt-get install openssh-server

Command for logging from A to B wil be:

ssh user_on_B@ip_address_of_B

Also you can user sftp to exchange files between hosts.

From A

sftp user_from_B@ip_address_of_B

then, when you are logged to B

get file_name

and file will be transferred to A

More about sftp you have here

Or you can use mc

 sudo apt install mc

then in terminal open mc

go to menu then richt of left and from menu add sftp

Enter user_of_B@ip_of_B hit enter. Enter password and you will have files
from A in one panel and files of B in second panel.


How to shut down Ubuntu 11.10 host from within a Windows 7 VirtualBox guest?

The way to do this is to write a script to start your VM, wait until it terminates, and then issue the shut-down command.

Create a folder bin in your home folder (if it does not exist already).

Now create a file with the following contents. Let's call it win7vmshutdown, and save it in your bin folder.

#!/bin/bash

VBoxManage startvm 'Win7'                           # Start the VM.

sleep 10s                                           # Give it time to start up.

while pgrep VirtualBox >/dev/null                   # As long as the VM is running...
do
        sleep 5s                                    # Wait a bit before trying again.
done

gnome-session-quit --power-off                      # Issue the command to shut down.

Make the script executable; enter the following in a Terminal.

chmod +x ~/bin/win7vmshutdown

In your Startup Applications, remove the VBoxManage ... command and replace it with win7vmshutdown.

The shutdown command will prompt you for shutdown; if you don't answer, it will shut down in 60 seconds. This gives you time to interrupt the shutdown in case of unexpected problems.

Reboot your computer to test.

You said:

  Also, when virtual box starts up automatically, Ubuntu's desktop should not be visible.

To do that, you want to run your VM in full-screen. Install the Guest Additions in your VM, reboot it, and run it full-screen.


Can I act on the event that a window opens without polling?

I found two ways of solving this problem.

Use the xprop -spy -root _NET_ACTIVE_WINDOW command in combination with grep in a bash script.
Create a C++ (could have been C or python as well my project was in C++ to begin with) application using the Xlib library to listen for events from the X-server.

I ended up using alternative 1 but I'll provide some info on both below.

Using xprop:
The application which creates the sought window always puts the new window on top and in focus. The xprop -spy <window-id>command allows one to listen to changes in the properties of <window-id> and -root is the id of the "root window" (R in the tree in the question above). To listen for changes of specific properties we can provide the property's name in this case _NET_ACTIVE_WINDOW which holds the id of the window currently in focus, see spec. We then get a stream of output like this:

_NET_ACTIVE_WINDOW(WINDOW): window id # 0x3c00010

and can use grep to extract the ID. To check if the active window is the sought window we need to know what makes it unique, this might be different for everyone but most likely the first filter would be the WM_CLASS property, see description. Here is a small example of this:

#!/bin/bash
class_name=$1

# regex for extracting hex id's
grep_id='0[xX][a-zA-Z0-9]\{7\}'

xprop -spy -root _NET_ACTIVE_WINDOW | grep --line-buffered -o $grep_id |
while read -r id; do
    class="`xprop -id $id WM_CLASS | grep $class_name`"
    if [ -n "$class" ]; then
        # Found a window with the correct WM_CLASS now what makes your
        # window unique?
    fi
done

Bash gist:
Here is a gist for the case in the question, where the tree was the identifying factor.

Limitations of xprop -spy: this doesn't specifically listen to a window opening, rather when a window is focused. This means that if the window stays open, goes out of focus and then comes into focus again, this script will still report this event.

Xlib programming:
This is more complicated but also more powerful. Some great resources for getting started are:

A Xlib Manual and short tutorial by Christophe Tronche
Alan's tutorial on Xlib.

For this one has to open a connection and register as a listener to the X-server:

// Open connection to X server
Display *dsp = XOpenDisplay(NIL);
assert(dsp);

// Start listening to root window
XSelectInput(dsp, DefaultRootWindow(dsp), SubstructureNotifyMask);

Depending on which events one is looking for a EventMask should be chosen.

For a continuous application (which want to handle subsequent events) one probably want to set an error handler function which should return 0 (maybe with a warning) so execution continues smoothly, like so:

XSetErrorHandler(bad_window_handler);

In a loop one can then handle events from the X-server

XEvent e;
XNextEvent(dsp, &e); // blocks until next event from X-server

To handle the event in e we can check the type of e

e.type == CreateNotify    // A window was created
e.type == ReparentNotify  // A window got a new parent
e.type == MapNotify       // A window was drawn
e.type == DestroyNotify   // A window was destroyed

The XEvent struct contains information in different types of struct depending on the event type.

The following libraries are needed:

#include <X11/Xlib.h>
#include <X11/Xutil.h>

And applications should be compiled with the -lX11 flag to include the Xlib libraries.

Xlib gists + Gotchas:
I've created two gists that listens to events from X-server. Note that I was interested in the structure of a window's tree for identification. Others might have other properties to uniquely identify windows.

The first listens to the CreateNotify event to determine if a window with the correct WM_CLASS was created, call it W. At this point the window will likely not be in the correct tree structure. For example it might be created as a child to the root rather than windows controlled by the application. We therefore listen to the ReparentNotify event to see if W has a new parent.

Unfortunately we are not guaranteed the correct tree structure here either, as other windows might later be added to W's tree. But if W's tree structure is unique and it's shape is not a sub-tree of another window with the same class we can at least find these window's by checking ReparentNotify (we might not even need to check the CreateNotify as we can check WM_CLASS at any point we have a window-id).

The Second listens to the MapNotify event and checks the structure of the window's tree. It then looks for the correct WM_CLASS in the tree. After this one could go on to determine if the structure is correct.

Again, at the MapNotify we are not guaranteed a "finished" tree structure. However it seems that the structure generally "settles" a short time after this event. To be reasonably sure that the structure won't change I added a short pause before collecting the tree. How long this pause should be in order to not risk other changes to the tree I don't know, 500ms seemed to work well for me.

Misc:
X11 windows can be created in many different languages, so I imagine listening to them would be possible in many different languages as well.

Some tools to investigate windows with:

xprop
xwininfo specifically with options -tree or -children

One can also check the source code of the commands above, xprop and xwininfo, for some guidance and inspiration.


Redshift couldn't be initialized after upgrading from Ubuntu 17.04 to Ubuntu 17.10

Redshift doesn't work in the default Wayland session yet. You can do any of the following.

Switch to an Xorg session from  Wayland.
Use the built-in "Night Light" feature to be found under Settings > Devices > Displays.


You missed the setting higher up in the Homes section to allow it to be writable. Though it does seem strange you can create files in it if it is still set to the yes. When I setup my share using the same settings as you for it except mine is public=no, it refused to allow me to create files in the share until that was set and samba restarted.
[homes]
comment = Home Directories
browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
read only = no


Simply editing /etc/apache2/sites-available/default-ssl and changing the path under the tag <VirtualHost _default_:443> voice DocumentRoot fixed my issue.


What is a Linux equivalent to pkzip or winzip or the GUI version of 7zip?

PeaZip

I can't believe I learn about this program only now, after using ubuntu for a year, reading omgubuntu.co.uk, webupd8.org etc. :) As you can see it has all one would need. It is installed via deb package. For me it installed without errors but I didn't get a Dash shortcut for it. Since the portable version (no installation required) works fine, I won't bother troubleshooting it. Right click > View Image for higher resolutions.


I'm getting the notificaiton to update to 14.04 but it says theres no new release. What gives!

You may have to use sudo do-release-upgrade -d among other things. Here is the extensive guide I based my answer off of: Guide.


How to create a Windows installation USB in Ubuntu?

Following the guide from THIS link

Just download MultiBoot from here: http://liveusb.info/multisystem/install-depot-multisystem.sh.tar.bz2

Decompress it. Run the install-depot-multiboot.sh from the terminal and follow the instructions. You should see the program in Applications -> Accessories -> MultiSystem (And even a MultiSystem for Virtualbox)

Then just run the program and follow the steps in it. Already tested Windows XP, Ubuntu and Windows 7.

For more info read this post: How to create a bootable USB with multiple ISO images in it


Searching for a drawing applet to use in Mediawiki?

Found on the Category:Image_extensions on the MediaWiki official site:

EditImage - provides simple image editing functionality to every users within a browser. (Javascript + ImageMagick)
Painting - allows bitmap collaborative drawing. (Java applet)


Installed xorg on server, no screens found

From the OP, the solution:

  OK, so someone should add this to the ServerGUI page: I had to do: sudo Xorg -configure and sudo cp /root/xorg.conf.new /etc/X11/xorg.conf This should really be spelled out in that servergui page, as mentioned above. Took me 30 minutes of searching. – Matt


What is CVE-2015-1793? Does it affect me?

Please note:

This latest vulnerability (CVE-2015-1793) was introduced in a recent update to OpenSSL package (as maintained by OpenSSL.org).

OpenSSL's latest advisory: https://www.openssl.org/news/secadv_20150709.txt

This should not affect a standard Ubuntu install.

from: ComputerWorld >> OpenSSL fixes serious flaw (Jul 9, 2015)

".. the OpenSSL packages distributed with some Linux distributions -- including Red Hat, Debian and Ubuntu -- are not affected. That's because Linux distributions typically backport security fixes into their packages instead of completely updating them to new versions.".

Note: You may still be affected, if you are using the OpenSSL package (or source) directly from OpenSSL.org.


Is there any easy way in Unity to add shortcuts to the desktop?

The only way thus far is to create a launcher on the desktop.

Example for Google Chrome

1 - Right click on desktop and select Create Launcher

2 - Give the application a name Google Chrome

3 - Enter the application command google-chrome

Now the icon for Google Chrome Appears on your desktop.

There's possibly an even easier way of doing this, but I'm unsure at the moment.


According to this this article you need to install a helpder utility and ensure it runs after logging on:

sudo aptitude install numlockx    # Install numlockx
sudo vim /usr/share/lightdm/lightdm.conf.d/99-numlockx.conf    # Create this a config file for lightdm to start numlock at boot

and enter

[SeatDefaults]
greeter-setup-script=/usr/bin/numlockx on


ALSA installation error: does not match kernel/arch

I think it would be much easier to add the PPA. This will make installing and also updating a breeze.

https://launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily

You can add a PPA in the terminal or check out software sources and edit those.

https://help.ubuntu.com/community/add-apt-repository

Good luck!


I'd like to encrypt all my partitions and drives, but I'm unsure GRUB will handle this nicely

TrueCrypt does not support full system drive encryption on Linux. If you want full drive encryption on Linux you'll want to use something like ecryptfs or dm-crypt. However, full drive encryption on Linux may be a bit too much; you really need to only encrypt the /home, /var and /opt directories.

TrueCrypt system encryption: http://www.truecrypt.org/docs/?s=system-encryption

The Arch docs are the best docs for setting up ecryptfs and/or dm-crypt: https://wiki.archlinux.org/index.php/ECryptfs

Personally, I recommend dm-crypt because you can configure linux to mount encrypted disks upon bootup or prompt for a password.


How to repair Ubuntu installation after interrupted dist-upgrade without losing any custom settings?

Do this:

Switch on your computer.
Press and hold the Shift key, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with (recovery mode)
Press Enter and your computer will begin the boot process.

Your computer should display a menu with a number of options.

One of the options will be Check all file systems:

Press Enter with this option highlighted.
One of the options will be Enable networking.
Press Enter with this option highlighted.

Next, other of the options will be Drop to root shell prompt.

Press Enter with this option highlighted.

Your computer should boot in a terminal enter the following commands there:

mount -o remount,rw /
mount --all
dpkg --configure -a
apt-get update
apt-get -f install
apt-get -m install
apt-get dist-upgrade
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean


There's a much simpler way. Uninstall current youtube-dl(optional) by running

sudo apt-get remove youtube-dl

Install latest youtube-dl by running the following commands:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

sudo chmod a+rx /usr/local/bin/youtube-dl

source


hdparm secure-erase error: "ERASE_PREPARE: Invalid argument"

Well, I might be admitting defeat for now, but have answers for future users.

In my case, the drive is connected to a SATA-USB Cable (12GBP ebay item).  Apparently some of these and even external drive cradles do not pass full ATA commands to the drive.  Mark Lord, the writer of hdparm wrote me a two line description of what to do and line one was:

  The drive should be directly connected to the internal SATA controller of the motherboard

Manual Pages at Ubuntu.com says

  hdparm  provides  a  command  line interface to various kernel interfaces supported by the Linux SATA/PATA/SAS "libata" subsystem and the older IDE  driver  subsystem.   Many  newer (2008   and  later)  USB  drive  enclosures  now  also  support  "SAT"  (SCSI-ATA  Command Translation) and therefore may also work with hdparm.

To quote Linux-Magazine:

  Hdparm accepts any device as mass storage that is connected to an (E)IDE, SATA, or SAS interface, including, therefore, DVD drives and SSDs. USB-to-IDE adapters often cause problems because they do not transmit the (complete) ATA or ATAPI commands to the drive. The information that hdparm delivers is dependent on the device.

I'm using a tiny netbook so direct ribbon connection to the motherboard isn't possible and I have no access to another machine.  Thwarted!


Lost 'System Settings' on Ubuntu Precise Pangolin x86_64

Running

sudo apt-get install ubuntu-desktop

should get you every thing back that is installed by default. Replace ubuntu-desktop with kubuntu-desktop if you are using Kubuntu (KDE).


Indeed there is no specific answer. The answer would bw related to each package unique. The master guidlune to your choice is what you care about.

Installing from Ubuntu main repositories ensure you security, stability but with some versions, since to ensure the policies put by ubuntu packaging system would take some time.

So as a guidline, don't add third party repositories unless you really need it. So if old versions work for you then you shouldn't add that third party repositories. Another major consequence better to choose some known and trusted third party repositories if you need them, so if you don' t the needed third party repositories it's better to download only the .deb if available and not adding that repo


I have same laptop as yours.
I installed Nvidia drivers successfully. If possible check whether your system is 32-bit or 64-bit and after installation don't start the lightdm service.

Open the terminal and run the following commands:

sudo service lightdm stop
sudo init 3
sudo chmod +x <file_name>.run
sudo sh <file_name>.run
sudo apt-get update
sudo apt-get upgrade
sudo service lightdm start
sudo reboot

If it's not working, then try reinstalling your desktop environment.


libncurses.so.5 : Error while loading shared libraries

You need to install the debugging symbols for debugging applications:

sudo apt-get install libncurses5-dbg

The -dbg means debug which is the symbols your are lacking.


How do i boot any ISO from a USB flash drive?

You could always try unetbootin. That usually works for most iso's if i'm not wrong. As for the Emulate device option, i guess that just emulates the usb disk as a sata/scsi or cdrom device.


Looks like this webcam isn't supported on linux: Link.

Even the support from Logitech said so:

"The C920 webcam is not supported on Ubuntu, so we cannot provide a compliant driver nor a patch."


#!/bin/bash

set -o noglob
set -- $@

# Regex to match basic crontab time/date values.
a=('^(\*|([0-9]|[0-5][0-9]))$' \
   '^(\*|([0-9]|[0-1][0-9]|2[0-3]))$' \
   '^(\*|([1-9]|0[1-9]|[1-2][0-9]|3[0-1]))$' \
   '^(\*|([1-9]|0[1-9]|1[0-2]))$' '^(\*|[0-6])$')

# Time/date field names.
b=('minute' 'hour' 'day of the month' 'month' 'day of the week')

if [[ $# -ne 5 ]]; then
    echo "Invalid number of time/date fields."
    exit 1
fi

for c in $@; do
    if [[ ! $c =~ ${a[$d]} ]]; then
        echo "The time/date field '${b[$d]}' does not match."
        exit 1
    fi
    ((d++))
done

echo "Cron ok!"


How do I get a SlingBox/SlingPlayer working?

A VM should certainly work, I've used it for SlingPlayer in the past and there were no problems.

There is also evidence that you can get the player going with Wine on Ubuntu:

See:  http://appdb.winehq.org/objectManager.php?sClass=version&iId=14848&iTestingId=53229

The test results are for 10.04, but you should have similar results with 10.10.

If you're not very comfortable with Wine, you can take a look at the commercial adaptation of Wine, called CrossOver.  Here is their page on SlingPlayer 2.0 compatibility:

http://www.codeweavers.com/compatibility/browse/name/?app_id=5611


Bluetooth does not work with my acer aspire v5 573g

Had the same Problem with my V5-573g

First thing to do is:

sudo lsusb

If you do not see your bluetooth device listed check if it is just turned off with an hotkey. (Example FN + F6)

If you have the same Model you shoud see this:

Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 002: ID 04f2:b3f6 Chicony Electronics Co., Ltd
Bus 002 Device 005: ID 0489:e04e Foxconn / Hon Hai
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

If not a Bios Update helped me

http://www.acer.de/ac/de/DE/content/drivers


Xubuntu 14.04, Power Manager, Screensaver

I think for me, clicking All Settings (quad square in lower right of launcher pull-down menu), launching Light Locker Settings, and switching Enable Light Locker to OFF


from man basename

  NAME
         basename - strip directory and suffix from filenames

  SYNOPSIS
         basename NAME [SUFFIX]
         basename OPTION

  DESCRIPTION
         Print  NAME  with  any leading directory components removed.  If speci‐
         fied, also remove a trailing SUFFIX.

so, the command basename is doing this


Information on input-wacom-0.30.0 for Intuos Art compilaton

The important one is the second one, which is the low-level kernel driver for the tablet --- I suppose that you followed the instructions in the wacom on linux wiki. Remember to reboot after the installation of the kernel driver (not strictly necessary every time, but safer).

I do not know if your tablet is  supported; you can check here and in the mailing list (for example,  the message about the 0.30.0 release).

What you are seeing can be a bug that is lurking around --- if this is the problem, a workaround that works most of the time is executing sudo modprobe wacom before connecting the tablet.


How to add icons with dropdown with actions to Ubuntu Panel

You can create a custom launcher icon to execute your scripts. Open your favourite text editor and copy the snippet below:

[Desktop Entry]
Encoding=UTF-8
Name=My Scripts
Name[de]=Meine Skripte
Exec=myscript_0.sh
Terminal=true
Type=Application
Icon=terminal
StartupNotify=true
Actions=ContextMenu1;ContextMenu2

[Desktop Action ContextMenu1]
Name=Run script 1
Name[de]=Skript 1 starten
Exec=myscript_1.sh

[Desktop Action ContextMenu2]
Name=Run script 2
Name[de]=Skript 2 starten
Exec=myscript_2.sh

Now it's time to modify this stub above, as it will not be useful as it is for you!

[Desktop Entry] section:

Encoding=UTF-8 Better not modify this line, because otherwise you will get problems if you use any non-ASCII characters in this file.
Name=... Enter any string here, it will be the default English name of the launcher item.
Name[de]=... Same as Name=, but for the German (de) translation.
It's just an example, you may remove all these lines with [de] or replace them with another locale code.
Exec=... Enter the command you want to execute if the launcher icon is clicked here.
 If the script is located in a folder listed in the $PATH environment variable, the executable's name only is enough, otherwise you have to specify the full path.
 Make sure that there's no typo and that the script is executable (chmod +x and it starts with a valid "shebang" line)!

Terminal=true If you set it to false instead, no terminal window will be opened and the script will run in background.
Type=Application Do not change this line.
Icon=terminal Specifies the icon of the launcher item. You may use generic names like terminal or enter the full path to an image file.
StartupNotify=true Causes the mouse pointer to perform the "waiting" animation (spinning circle/hourglass) in the time between clicking the icon and when the window opens. You may set it to false if you want.
Actions=... Lists the internal identifier names for the context menu entries. They have to match those used in the context menu section headlines ([Desktop Action ...]) and need to be a semicolon-separated list without spaces.

[Desktop Action ...] sections:

You only need the keys Name (and translations like Name[de], if you want) and Exec here. The same criteria as above apply here as well.

Also make sure again that the identifier (here ContextMenu1 and ContextMenu2) in the section headline appear in the Actions= list above!

The number of such context menu blocks is unlimited.

After you modified the example stub above, save it in the directory ~/.local/share/applications/ with a custom file name, but the extension .desktop.

Then it should appear in your Unity Dash's Application Lens (Super+A). If it does not, log out and back in to update it. Then drag it from the Dash onto the launcher bar with your mouse. A right-click on it will open the context menu where all "Desktop Action" items are listed, like in the example screenshot below: