Connection Information is telling me what?

The difference in the wireless connections speed value is normally based on the capabilities of both the WAP and your adapter card in your computer. It does not necessarily show the strength of your signal, more the connections ability to accurately transmit data at designated speed values ie. 1Mb/s, 54Mb/s. I do not know enough of the Linux world to help with the troubleshooting that I would recommend. But If you can get some help from someone more Linux savvy the go for it.

First thing that I would do is test your computer on a different WAP. If the connection is stable then you would need to go into troubleshooting your WAP which I will cover a little further down the post.

If in the event the connection is still shoddy and bouncing around then I would recommend un-installing your adapters drivers and ensuring that you have the most updated version for your card/OS. Once you have done that then I would use the software available for your adapter and set the link speed to match the link speed of your WAP (Most WAP's will state capable link speed somewhere on a sticky tag or sometimes right on the top of the case).

If you are still having trouble maintaining a stable connection then I would try a USB wireless adapter to see if maybe your on-board is having some issues. I do not recommend using the standard Wall-Mart available adapters, but they do the job in most cases. Install all the software and make sure it is up to date and test you connection again.

Okay, with WAP's first off I would log into the WAP and ensure that all your tx/rx settings set set to their highest levels. Also most WAP's will have a firmware update option built into their configurations page. If not then you can always go to the manufactures web site and see if they have newer firmware and instructions on how to update your WAP.

If you have any questions or need me to walk you through any of the hardware settings just let me know by email. cody.castor@gmail.com

Hope this helps you out!


Installing/Formatting second hard drive- Single Partition

Warning: As this is a new drive, the following steps will delete everything on your drive!!!

Go to the dash and start gparted:

Then select the drive in the upper right corner (where on the picture you can see /dev/sde)

Go to the "Device" menu and choose "create partition table".
(You will get a huge warning that this will delete your entire disk.) Click on the "Select new Partition table type" and take gpt.

And now you can do whatever you want! (including creating one huge partition)


Pip is not working: ImportError: No module named 'pip._internal'

After upgrading pip (or pip3, in this case) if the following occurs:

$ ~ pip3 -V
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip._internal import main
ModuleNotFoundError: No module named 'pip._internal'

Force a reinstall of pip:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall

Verify install:

$ ~ pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

Now pip3 install <package> and pip3 install --user <package> (for user-level installs) will work correctly.

There should never, ever be any reason you need to run pip in elevated mode.

(note: For Python 2.7, just replace python for python3, and pip for pip3)

Had same problem on macOS as well, it's a common issue across platforms.


This might be due to different factors.

The graphic driver you use, might impact the power consumption and thus the temperature.
If you are using a long term support (LTS) version of ubuntu, you are less likely to be running inappropriate drivers simultaneously.
As a precaution, given your situation, please avoid running the macbook air with lid closed (e.g. when connected to an external monitor) until you resolve this.

Have you tried installing the mac fan control daemon?

sudo apt-get install macfanctld

This helps controlling many performance issues interrelated to the CPU, fan, Temp.


Sudo won't accept my password even with Caps Lock off and the right password

Have you tried running passwd yourusername to see if you can change your password to try again with the previous command? You could also once you ran the previous command run sudo passwd to change unix password.


GNU watch without erasing previous outputs

I'd say you've found it in simple loops but you could do a number of things from here:
Write a function to handle that for you

function uberwatch {
    # call: uberwatch <interval> <command>
    while true; do
        "${@:2}";
        sleep $1;
    done
}

You could lodge that somewhere around your ~/.bashrc.
Log the output to file but keep viewing with watch
watch ... "command | tee -a watchlog.log"

You'd still only see the latest run-through but you could dig through a historical log if you needed to.


Can't see mouse icon when returning from suspend

This does not solve the issue, but at least saves you the troubles of having to log out and log in every single time:

Hold Ctrl+Alt and press F6 followed by F7.

The first may be any one from F1 to F6, choose your favorite wisely as the effect will be the exact same.

To automate this with a script you can use chvt:

sudo chvt 6 && sudo chvt 7

Now to automatically execute these commands without having to enter your password every time, follow these steps:

Create a script:

echo -e '#!/bin/sh\n[ $1 = post ] && [ $2 = suspend ] && chvt 6 && chvt 7' > makemouseappear

Make it executable:

chmod a+x makemouseappear

Move it to /lib/systemd/system-sleep/:

sudo mv makemouseappear /lib/systemd/system-sleep/

Try it out and rejoice:

systemctl suspend

NB: It won't wake up automatically.

Instead of or beside suspend you may use different modes like hibernate or hybrid-sleep, those are not covered by the above script unless you change && [ $2 = suspend ] to

&& [ $2 = hibernate ] to execute it after hibernate mode
&& [ $2 = hybrid-sleep ] to execute it after hybrid-sleep mode
nothing (just delete it) to execute it after every return from one of the three mentioned modes

See man systemd-sleep for details.

Please be aware that this is still just a workaround, only that its dirtyness now hides deep down in /lib/systemd/.


302 redirect, Tomcat behind Apache for hybris

1)  Opened Port 443 exclusively in ubuntu

2)  Include redirectPort="8443" in server.xml

3)  Include below tag in apache2 ssl config
    JkMountCopy On

Thanks
G


Did you try to use a LiveCD to read the log files in your computer?  Or did you try to start your computer in single-user mode as mentioned below:

How to boot into Single-User recovery mode?
http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/recover-your-system-with-single-user-mode-in-ubuntu-ubuntu-11-10.html#axzz3TxtnKpGK

If we do not have sufficient information, it is difficult to tell.


How do I replace Windows Boot Manager with Grub2?

Note that this is a non-standard dual-boot installation...

Windows on internal HDD/SSD
Ubuntu on external USB SSD
Pre-req that Windows can boot when the external SSD is not connected

The procedure to make this work is...

Re-enable Windows Boot Manager on the Windows internal HDD/SSD
Install GRUB on the Ubuntu external SSD
Set the UEFI boot order to boot the internal HDD/SSD first
If required, use the F12 BIOS/EFI boot menu to select which OS to boot at power on


What does it mean that python-keyring "suggests" python-kde4?

Another way to find out why this was installed would be to zgrep libknewstuff2 /var/log/apt/* (you may have to use sudo). The hits might give you some hints as to why this got installed...


CLion doesn't pick up environment variables sourced in bashrc

I came back to accept @steeldriver 's comment as an answer.

Modifying /etc/sysctl.d/10-ptrace.conf as in the link in his comment does solve the problem indirectly.

That is, by modifying this file (changing from 1 to 0), I can now run GDB attach to a process within CLion without having to run CLion as root. And as usual, running CLion from terminal does pick up the environment variables.


The standard group is scanner.

References:

Debian: Scanner
Ubuntu Wiki: Scanning HowTo

No, AFAIK there is no group that have all users by default. You have add all users to users group explicitly.

May be it's a good alternative to set the mode instead MODE:="0666"


It's more than likely just a standard bundle the dealer has put together and shouldn't imply it's suitability for the OS supplied with the machine.

McAfee is generally for Windows OS and you probably don't need it for Ubuntu (see numerous other posts about the need for anti virus software on the Linux platform in these forums).

Just pop it in the bin or use the CD as a bird scarer tied to the branch of a tree with some string ;)


What does the 'sudo -s' command do, and how is it used in this example?

The simple answer is it gives you a root shell. That's what it's being used for here. There's a good technical comparison between the su, sudo -i, sudo -s and sudo su methods on Unix.SE but that's really not relevant here. The code could have used any and would have worked.

The help nugget means a few things:

It's looking for a command in the $SHELL environment variable. If you run echo $SHELL you'll probably see /bin/bash. That means you'll get a root instance of Bash. I'm sure if you were in zsh it would mean you get a root instance of zsh.
If $SHELL is empty, it falls back to the default shell defined in /etc/passwd for that user.
If you provide a command (eg sudo -s whoami), it's actually running: sudo /bin/bash -c "whoami"
If you don't pass a command,  it doesn't pass a -c argument over so you just get an interactive shell.

I've used the phrase "root" several times. By default sudo is all about running things as root but sudo (and su) can run things as other users (if you have permission to do so). I'm only stating this for the pedants who will cry out that sudo -s -u $USER doesn't give them a root shell as I promised -s would above.

And in my humblest of opinions, it's really silly to become root for just two commands, not to mention that it could leave a user accidentally running further commands as root. If you want or need to run something as root, just premend the command with sudo:

sudo apt-get update
sudo apt-get install -y build-essential libtool libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf automake screen

I'd be dubious of any tutorial that suggested getting a root shell, except in the cases where you do have bucketloads of commands to run... And even then, there's scripting.


Would this work on Linux?

Why not? The general principle is applicable to Linux, the specific means might be different from common Windows attacks.

  If it can, what could I do to help secure my system against these attacks?

Don't run random executables off the internet. Keep your system updated. The usual.


How can I download Ubuntu onto a mac, then use it on a Windows PC?

use Etcher!

fast and easy software

https://etcher.io


Keyboard "@ "symbol not working . Ubuntu 13.10

You should look at your Keyboard Layout Chart:

If this is, for example, English (UK), you should use the following keys:

Also, if you want, you can change your Keyboard layout if you go to Text Entry Settings...


Unmet Dependencies with Audacity on Xubuntu

Do as GTRONICK says, but also be sure to purge audacity sudo apt purge audacity before you sudo apt upgrade and reinstall via the commandline.
sudo apt install audacity.

If problems persist, you may want to consider an alternative to audacity. Audour and Ocenaudio are decent.


Keyboard shortcut for "open a terminal here" in Nemo

Look around in the file ~/.gnome2/accels/nemo for a line with 'OpenInTerminal'.

Steps:

open a terminal (Ctrl+Alt+T) and type gedit ~/.gnome2/accels/nemo
Find OpenInTerminal and edit this line:

; (gtk_accel_path "<Actions>/DirViewActions/OpenInTerminal" "")

with shorcut (say <Alt>t here) and remove the semicolon ;:

(gtk_accel_path "<Actions>/DirViewActions/OpenInTerminal" "<Alt>t")

This will set Alt+T as shortcut for open in terminal.


Menu Bar and Launcher Missing in Ubuntu 14.04

first run

dpkg -l | grep opengl

This will tell you what opengl accelerators are installed on your system.

To search available packages, the following . . .

apt-cache search openGL | grep plugin

. . . results in a few interesting results.

Notably,

compiz-plugins-default - OpenGL window and compositing manager - default plugins
compiz-plugins - OpenGL window and compositing manager - plugins

Try running

sudo apt-get install --reinstall compiz-plugins-default compiz-plugins compiz-plugins-extra compiz-plugins-main compiz-plugins-main-default compizconfig-settings-manager


Dell Latitude D510 isn't booting Ubuntu from a USB

You have to download USB Installer in this page http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/#button and follow the instructions on this other page http://www.ubuntu.com/download/help/create-a-usb-stick-on-windows to burn the .iso image correctly and install ubuntu. You can't just drag the .iso image to your USB because that's "just another file" in the usb, not and installer. You want to boot from your USB and you can't do it just by dragging the .iso in your USB. Follow the instructions and you'll be fine. It's easy. Have fun!


remap the top number keys to use the symbols and numbers with the shift key

There is a gui tool to remap keys. It is called dconf-tools (install via apt). Under org -> gnome -> desktop -> input-sources there are xkb-options. I used this to switch escape and capslock.

EDIT: go to /usr/share/X11/xkb/symbols . There you'll find abbreviations for different languages. Open your language with sudo nano ... In the file you'll see lines like: '1, exclam, ...' just put the command for the symbol first and the number second and it will be switched around.


Failed to launch, Desktop file didn't specify Exec file

The .desktop file should look like this...

/usr/share/applications$ ls -al uget*
-rw-r--r-- 1 root root 296 Mar 16  2018 uget-gtk.desktop

/usr/share/applications$ more uget-gtk.desktop

[Desktop Entry]
Name=uGet
GenericName=Download Manager
Comment=Download multiple URLs and apply it to one of setting/queue.
Exec=env GDK_BACKEND=x11 uget-gtk %u
Icon=uget-icon
Terminal=false
Type=Application
Categories=Network;FileTransfer;
Keywords=filetransfer;download files;download manager;


How do I use the Unity methods in Quickly's python code?

I suggest you look at this link:

Unity Developer

Just choose the category you're interested in.


How do I install Ubuntu from my flash drive?

to install ubuntu from a pen drive you need to make it bootable:

from windows use rufus

from linux unetbootin
(these are specific softwares made for this reason);

then starting up your pc you should enter the BOOT MENU (usually you should press either F10 or canc button while booting),

choose try ubuntu  and you're done_


Installing edubuntu 13-04 on usb without downloading any other iso's than what I already have

Use the Edubuntu liveCD and install it to your flash drive. You can run the liveCD in VirtualBox without having to burn the disk image.


Frequent GUI pauses in Ubuntu 13.04 / Unity / Intel HD4000

Ok, problem solved for me at least.

I ended up doing a clean install of 13.10 and using the open source MESA driver available from this ppa: https://launchpad.net/~oibaf/+archive/graphics-drivers/

13.10 works perfectly for me so far, compiz settings works great (wobbly windows FTW), and the mouse pad has even started working again.


battery module to control charger to chrge till specific percentage

TLP 1.4 will add charge thresholds for Samsung laptops. You're welcome to participate in the test.


Ubuntu 14.04 Server Install Image. Need to get Internet access

This is a server. Use a static IP.

To do this, open up /etc/network/interfaces and add this:

iface eth0 inet static
        address 192.168.1.25
        netmask 255.255.255.0
        gateway 192.168.1.1

Of course, set the IPs to the proper values.

address --> IP Address you want the server to have
netmask --> Your system's NetMask (usually 255.255.255.0)
gateway --> Your router's IP address

Remove this line if it exists:

iface eth0 inet dynamic

Now, you have IP addresses assigned. You need a DNS server to use hostnames on the Internet. Do this by opening /etc/resolv.conf and removing all nameserver lines. Then, add these:

nameserver 8.8.8.8
nameserver 8.8.4.4

Replace above IPs with whatever nameserver/DNS server you want to use.

Finally, reboot (Will almost always work) or run the below command to apply the changes.

sudo ifdown eth0 && sudo ifup eth0

(Src)


Using a saved EDID so Ubuntu boots to correct resolution when TV is turned off

Its a bit of a hack but I handled a similar situation by using xrandr and firing it up immediately after login

Taken from my SU answer, though you'd need to adjust it to your DE - I leave actually running the script as an exercise to the user.

I created a script as mentioned previously that handled creating a new screen mode. I saved this as xrandr.sh and made sure it was executable. I used gtf to generate the modeline (gtf 1280 800 60.0 - horizontal resolution, vertical resolution and frequency - most folk seem to do it to one decimal point so I did so) and used that to generate the script and a bare xrandr command to work out the output name

That spits out something like

[geek@phoebe ~]$ gtf 1280 800 60

  # 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
  Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831   -HSync +Vsync

The stuff after modeline is what's interesting - you use that to set the mode.

I saved this as xrandr.sh

xrandr --newmode  "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
xrandr --addmode HDMI1 "1280x800_60.00"
xrandr --output HDMI1 --mode 1280x800_60.00

This generates a new mode you can use anywhere, then tells your system to allow you to use that mode for the output HDMI1, and tells you to change the resolution settings to that mode

In your case you can run this as needed, or automate it somehow.


One way of doing it I discovered is to just use xdotool to remotely type in the password via ssh:

#!/bin/bash

sudo apt install xdotool -y
echo -n "Password:"
read -s pass
export DISPLAY=:0
xdotool type $pass
xdotool key Return
pass=""


SSLHandShake Error while porting ubuntuone-client without gnome and nautilus dependencies

Your logs don't tell us enough about the potential dependency problems. My only suggestion (given the log) is to check the version of httplib2 and check to make sure the ssl dependencies are installed. Somehow you might have httplib2 without the extra ssl support.

I can't imagine this has much to do with nautilus and/or gnome and is more likely to do with httplib2.


Yes, you can run a command line manually and you can create bash shellscript files and run them like bat files in MSDOS and a cmd window in Windows. The commands in linux are very powerful.

So start a terminal window from dash or with the hotkey combination ctrl + alt + t

and simply type the commands or copy and paste them into the terminal window. You can create a batch file with a text editor, gedit (graphical) or nano (text) and give it a name.

gedit filename

The name needs no extension (like bat), but you should give it execute permissions to run it easily (text after # is a comment, not used by the shell).

chmod ugo+x filename  # execute permisson u for user g for group and o for others
chmod +x filename     # simplified when execute permisson for everybody

If you want to be sure, that bash runs it (and no other shell), you can write the following into the first line of the shellscript file

#!/bin/bash

Now you can run it (in the current directory . (dot)) with

./filename

If you create the directory bin in your home directory

mkdir ~/bin

and move your shellscript into that directory, it will be in PATH and can be run from any directory with

filename

PATH works in the same way as in Windows.


Touchpad not found after sleep mode/close laptop lid after last update

With root privileges, try to create the file /etc/pm/sleep.d/0000trackpad. From a terminal window:

sudo -i gedit /etc/pm/sleep.d/0000trackpad

enter you password when prompted and copy/paste this code into Gedit or another text editor:

#!/bin/sh
case "$1" in
    resume)
        DISPLAY=:0.0 su USER -c '/usr/bin/synclient TouchpadOff=0' ;;
esac

and change the word USER (in the above code) with your actual username (the one that you use to log in to your computer).

Save the file, log out and back in again and test the trackpad after a suspend/resume cycle.


rEFInd: very slow boot when using EFI Stub Loader

I'm rEFInd's maintainer.

This is a filesystem driver issue. For reasons I don't fully understand, some of rEFInd's filesystem drivers (especially the ext2_x64.efi driver) are slow on some computers. I added a crude readahead cache to the driver code several years ago, and this helped a lot -- under VirtualBox, the speed improved from about a 3-minute load time to a few tens of seconds, IIRC. Some computers continue to have problems even with this cache, though.

The solution is to change to another filesystem. rEFInd's ext4fs driver is much faster than its ext2/3fs driver, and the Btrfs and ReiserFS drivers are faster still. (Note that the ext4fs driver can read ext2fs, but will provide little or no speed improvement that way; it needs to read an actual ext4 filesystem to provide a speed improvement.) In a worst-case scenario, you could use FAT, which requires no special driver (it's built into all EFIs); or on a Mac, you could use HFS+. (There's also an HFS+ driver that comes with rEFInd, so in principal you could use HFS+ even on a non-Mac PC, but there's little or no point to doing so.) Moving outside of a standard Linux filesystem is inadvisable, though. Ubuntu relies on symbolic links for some (but not all) kernel updates, making FAT a poor choice; and although HFS+ should work, it's not officially supported by Ubuntu. Even ReiserFS is not an option in the Ubuntu installer, so I'd steer clear of it for Ubuntu. That leaves ext4fs and Btrfs.

Switching is fairly straightforward, but not risk-free -- if you make a mistake, your system might be rendered unbootable. The bare-bones procedure is:

Copy the new filesystem driver to the rEFInd drivers or drivers_x64 subdirectory (/boot/efi/EFI/refind/drivers or /boot/efi/EFI/refind/drivers_x64, probably). Removing the old ext2_x64.efi file from that location will reduce rEFInd's load time by a second or so.
Unmount the ESP (/boot/efi).
Back up the /boot partition. You can use zip, tar, cp, or some other file-level tool for this.
Unmount /boot.
Create a new filesystem on the /boot partition.
Type sudo blkid /dev/sda{x} (changing /dev/sda{x} to the identifier for your /boot partition) to learn its new UUID value.
Edit /etc/fstab to change the UUID value and filesystem type for the /boot partition.
Type sudo mount -a to mount the new /boot partition. (It will likely complain that there's no /boot/efi mount point. You can ignore this warning.)
Restore the backed-up /boot files to the new /boot filesystem.

At this point, you should be able to reboot and it will work better. A mistake, though, could cause the system to be unbootable. To reduce that risk, you can copy at least one working kernel, initrd file, and refind_linux.conf from /boot to /boot/efi and test your ability to boot the kernel from the ESP before you begin. This will give you a fallback way of booting in case of a problem. If there are no problems, you can of course delete the kernel from the ESP once you're done.

For more on rEFInd's drivers, see its documentation on this subject:

http://www.rodsbooks.com/refind/drivers.html


how to make multimedia keys work on dell studio 1555

Try the troubleshooting steps provided on the Ubuntu Wiki: https://wiki.ubuntu.com/Hotkeys/Troubleshooting


The mounted partition problem occurs usually when you have some memory card or some other memory devices inserted.To install Ubuntu alongside with windows Xp do following:
First you should create a separate partition with the help of disk management tool in windows in which you can install Ubuntu.Then after booting Ubuntu from USB/DVD, you should format the free space ext4 format.
At last install Ubuntu to this ext4 partition.
Use Wubi Installer, to easily install ubuntu alongside with windows.


The answer to your question can be found in this post.

  You'll need to boot a liveCD/USB in order to re-size a system
  partition, and the Ubuntu
  14.04.1 LiveCD/USB image comes with GParted.

  Click on the partition you wish to expand, then click the orange arrow
  to expand it. If another partition exists, you may need to delete it.

  To reformat a partition for windows, right click the partition, then
  choose "Format", and use the NTFS file system.


One of my monitors is detected by X Server but does not display anything on screen. How do I fix TwinView?

why dont you try reseting the display variable ;
this may help you

its good to check Xorg configuration by cat /etc/X11/xorg.conf


113/tcp close ident report when i do port scan a website

3389, tcp, rdp, Port is IANA registered for Microsoft WBT Server, used for Windows Remote Desktop and Remote Assistance connections.

So unless you use Windows Remote Desktop and Remote Assistance connections, you won't be able to use it.

See Ubuntu Networking Configuration Using Command Line.


Remove the first part of a string using sed

You're parsing some text to extract the username from a domain\username string, most likely from Windows. Most of the above answers are only addressing your specific example string.

The best way to do this is using regex in sed to extract whatever comes after \. Here's how you would do it:

sed 's|.*\\\(.*\)|\1|'

That will match everything (.*) until a backslash (here, we're escaping it, so it's \\), then match everything after the backslash (.*), but making it a capture group (i.e. wrap brackets around it, but we also have to escape them, so \(.*\)). Now that we have whatever comes after the \ in the string as a capture group, we print it by referencing it with \1.

You can use the above sed command with any domain name, not necessarily randomcollege-nt.

$ echo "randomcollege-nt\user90" | sed 's|.*\\\(.*\)|\1|'
user90

$ echo "domain\username" | sed 's|.*\\\(.*\)|\1|'
username

$ echo "anydomainname\roboman1723" | sed 's|.*\\\(.*\)|\1|'
roboman1723


My Windows 7 option is not listed in GRUB

have you tried changing the boot options and changing around the boot options? I had and issue a while back where my computer would only boot into windows 7 and the grub was broken and I need to select another boot option to run ubuntu, until I fixed the issue


Installing extension packs to a virtual machine

The VirtualBox expansion pack is opened with VBox in the Windows host.

In Windows Explorer, right click the .exe file and select "Open with" then "VirtualBox Manager".

It should only take a few seconds to run.


Step One—Root Login:

Once you know your IP address and root password, login as the main user, root.

ssh root@123.45.67.890

Step Two—Add Webmin to APT repository:

Edit the /etc/apt/sources.list file on your system and add the following lines.

Open the file with nano:

nano /etc/apt/sources.list

Press [Page Down] button on the keyboard to reach to the end of file. (or press Left ALt+/)
Then paste these two lines below:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Step Three—Install Webmin’s GPG key

You should also fetch and install Webmin’s GPG key in which the repository is signed and with the commands:

 cd /root
 wget http://www.webmin.com/jcameron-key.asc
 apt-key add jcameron-key.asc

Step Four—Install Webmin:

You will now be able to install with the commands:

apt-get update
apt-get install webmin

Step Five—Login to Webmin:

Open your browser and go to http://your_droplet_ip:10000/

You can now login as root with your root password, or as any user who can use sudo to run commands as root.

reference here

Also you are asking for remote login,refer here


Set bitrate for automatic recoding mp3 in Amarok

Apparently I was missing encoding functionality indeed. Particularly the one for QT apps. Is that correct? Below is an extract of my /var/log/apt/history.log saying all the stuff I installed related to transcoding, gstreamer, encoding, qt, and so on.

Start-Date: 2015-11-01  13:50:52
Install: libavresample-ffmpeg2:amd64 (2.7.2-1build1, automatic), kubuntu-restricted-extras:amd64 (64), libunicode-string-perl:amd64 (2.09-5build2, automatic), mp3fs:amd64 (0.91-1build1), libmp3-info-perl:amd64 (1.24-1, automatic), libpgm-5.1-0:amd64 (5.1.118-1~dfsg-2ubuntu1, automatic), libavdevice-ffmpeg56:amd64 (2.7.2-1build1, automatic), libimage-exiftool-perl:amd64 (10.00-1, automatic), libmp3-tag-perl:amd64 (1.13-1, automatic), libterm-readline-gnu-perl:amd64 (1.24-2build1, automatic), libcanberra-gstreamer:amd64 (0.30-2ubuntu2), libzmq3:amd64 (4.0.5+dfsg-3ubuntu1~gcc5.1, automatic), gstreamer0.10-tools:amd64 (0.10.36-1.5ubuntu1), lltag:amd64 (0.14.4-2), ffmpeg:amd64 (2.7.2-1build1), libsodium13:amd64 (1.0.3-1, automatic), easymp3gain-qt:amd64 (0.5.0+svn135-6), flac:amd64 (1.3.1-4), mp3info:amd64 (0.8.5a-1, automatic), libid3tag0:amd64 (0.15.1b-11, automatic), vorbisgain:amd64 (0.37-2, automatic), qtgstreamer-plugins-qt5:amd64 (1.2.0-3), vorbis-tools:amd64 (1.4.0-6ubuntu1, automatic), libavfilter-ffmpeg5:amd64 (2.7.2-1build1, automatic), libqt4pas5:amd64 (2.5-14, automatic), easymp3gain-data:amd64 (0.5.0+svn135-6, automatic), qtgstreamer-plugins:amd64 (1.2.0-3)
End-Date: 2015-11-01  13:51:38

Missing transcoding libraries

Apparently it solved my problem by making the dialog appear in Amarok, but not all packages will be necessary. I think ffmpeg and libqt4pas5, gstreamer0.10-tools where the main ones. This makes it possible as well to change the parameters inside of the .is_audio_player file used by most Audio Collection managers on Ubuntu using a GUI.

Remaining bugs and solutions

Amarok

Still FLAC gets transfered when selecting "if accepted" in the dialog, even if it's not accepted in the config file. So I have to manually select all my non-accepted files in Amarok before transferring. A solution is to set transcoding functionality to "transcode non-mp3's to mp3" in het collection

Sansa View

Connecting the device in mtp causes an error displayed by Ubuntu because "the cache cannot be updated". I should be able to do all this trancoding in mtp mode as well? Now I have to be sure I mounted it in MSC mode (by holding the left-key for 5 seconds in HOLD after connect).

Music on the external sdcard should be stored in a subfolder MUSIC (using MSC mode of course). Otherwise the tags are not recognized.


Pressing Ctrl+Alt+Fn (or just Alt+Fn when not in X11, the GUI) switches to the nth virtual console (ttyn).

Often we talk about a virtual console as a usable text console. So we often say there are six virtual consoles, accessible with Alt+F1 through Alt+F6 (holding down Ctrl too if you're in the GUI when you want to switch). And we often say that then, separately, is the GUI, which can be switched (back) to with Alt+F7.

But in fact, tty7, where the GUI typically runs, is a virtual console too. It's just not usable as a text console, because it doesn't have getty running for it. getty runs for tty1 through tty6 (by default). getty sets a virtual console up to be used like a terminal and runs login to prompt for a username and password.

You can see the getty commands that are running by filtering the output of ps:

ek@Kip:~$ ps ax | grep -v grep | grep getty
 1127 tty4     Ss+    0:00 /sbin/getty -8 38400 tty4
 1150 tty5     Ss+    0:00 /sbin/getty -8 38400 tty5
 1171 tty2     Ss+    0:00 /sbin/getty -8 38400 tty2
 1172 tty3     Ss+    0:00 /sbin/getty -8 38400 tty3
 1175 tty6     Ss+    0:00 /sbin/getty -8 38400 tty6
11231 tty1     Ss+    0:00 /sbin/getty -8 38400 tty1

Since tty7 is the first virtual console that is not set up to behave like a terminal (i.e., no getty is running for it), that's the one X11 (which provides the GUI) uses.

Virtual consoles higher than tty7 exist also. It's just that, ordinarily, they neither have getty running for them, nor do they have X11 using them. The first 12 virtual consoles are accessible with the key combinations described above using function keys (because a keyboard typically has only 12 numbered function keys). They are accessible even if nothing is happening on them.

Thus, when you press Ctrl+Alt+F12, you get a blank screen because you are now on tty12, which has nothing at all running on it.

As an interesting exercise, you might try running:

sudo /sbin/getty -8 38400 tty12

Then press Alt+F12 (or Ctrl+Alt+F12 if you're in the GUI rather than one of the first 6 virtual consoles).

This will bring you to tty12, which now has a login screen and is usable as a terminal.

(If you wanted to permanently create usable text-based consoles on higher-numbered virtual consoles, then you should configure init to run getty for them automatically. When getty is run manually as above, or even if you were to add that line to a startup script, you won't get the ability to login again after logging out on the virtual console, because getty won't automatically run again. Furthermore, there are some other problems running getty in that way for production use--for example, bash job control might not be available in your login shell, after you log in. If you want to make more virtual consoles usable as text-based terminal emulators, I recommend asking a separate question about that.)


Slow internet on Ubuntu while using Firefox but not Windows

I tried Chromium and Opera on my Linux installation and neither of them lagged. It seems it was a recent update to Firefox for Linux that was causing the problem.


Pulseaudio is probably the problem on a slow pc. You can try to disable it, as most audio software can use directly alsa audio layer .
Copy and run these 2 commands in a terminal:

mkdir ~/.pulse
echo autospawn=no > ~/.pulse/client.conf

then reopen session (or reboot) and test.
The sound applet will be disabled but you can install and use gnome-alsamixer to set volume.

If you want to revert to pulseaudio, just run echo autospawn=yes > ~/.pulse/client.conf


HP Deskjet f300 Printer not printing documents

I had the same problem with my Deskjet d2660. The solution was to download and install the latest drivers directly from the HP's site.

The download dialog may tell you that Ubuntu already has the correct driver for your printer, nevertheless, download and install it anyway.


Why does the "lo" interface not have a MAC address

The short answer is that it doesn't need one.
MACs (Machine Address Code)s are used at the lowest level of ethernet traffic, and only within one LAN (Local Area Network) and help direct traffic around within it. It simply isn't needed on a local network interface because packets are are handled internally.


Is there a way to bring the terminal to the front when whatever I launched is done?

You first need to install wmctrl which is a command line tool to interact with an
EWMH/NetWM compatible X Window Manager:

sudo apt-get install wmctrl

In order to focus the right Terminal, you'll need to start it with a given title, like this:

gnome-terminal -t tototiti

Then you can bring it to the front with the following command:

sleep 10; wmctrl -a tototiti

Note: wmctrl -a STRING gives focus to a window containing STRING in its title

Tested with both bash and zsh


Login takes ages after upgrade to XFCE 4.10

Bootchart can be a helpful tool in figuring this out, see:

https://wiki.ubuntu.com/BootCharting

http://ubuntuforums.org/showthread.php?t=868189


Cannot update repository due to 403 error

Edit the current link > http://pt.archive.ubuntu.com/ubuntu/pool/universe/g/gmp4/libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb

To be like this> http://archive.ubuntu.com/ubuntu/pool/universe/g/gmp4/libgmp3c2_4.3.2+dfsg-2ubuntu1_amd64.deb

YOU HAVE AN EXTRA {pt.} in the link.

Otherwise go to the Software Sources> under Download From> change the setting to> Main Server or choose "Other" then "Select Best Server", let it update. Then run sudo apt-get update from a terminal.


Cannot resume from hibernate using systemd under Ubuntu15.10

I had the same issue on Ubuntu Gnome 16.04. The only solution I found at the time was updating the kernel. After update to 4.5.3-generic the problem was gone.

The how-to upgrade linux kernel is described here.

You can check your kernel version through terminal:

uname -r


Loss of access to data after reinstalling Ubuntu 15.10 and Windows 10

Since you have created new partitions on top of your old ones and have written data to it (installed Windows 10), it might be a little bit difficult to recover your files.

Preamble

If you want to be extremely safe and in order not to tamper directly
with the data of your drive case something bad happens in the process, you can create an exact copy of your drive and tamper with that instead. Of course you will need a spare hard drive of at least 500GB size and some good piece of software for the
cloning. I suggest using the dd command which copies the whole disk into another disk including unallocated space. You can execute this command in the Ubuntu Live environment. A usage example for cloning disk to disk is:

dd if=/dev/sda of=/dev/sdb

where /dev/sda is the source hard disk and /dev/sdb is the destination.

BE CAREFUL: if you enter the wrong hard drive identifiers, disaster might occur. Use :

 sudo parted --list

in order to list your hard drives and their identifiers.

Plan A

First you can try to recover your initial partitions using some partition management software. A good free and open source tool I know is testdisk. To run it you will have to boot from a Ubuntu 15.10 live CD or USB. After booting using Ubuntu live, open a terminal (Ctrl+Alt+T) and enter the above command to install it:

sudo apt-get install testdisk

Here is a quick guide that will help use teskdisk.
If it succeeds in finding your old partitions, then mount them and copy your files to an external drive or a partition other than the partitions that you want to recover your files from.

Plan B

If this technique does not work, there is a bit slower one, using photorec. If you have tried Plan A before proceeding to Plan B, then photorec had been already installed when you installed testdisk. If not, then follow Plan A first please. Photorec will try to recover files from the partitions you choose it to do so, restoring them to another partition other than the partitions that you want to recover your files from. To learn how to use it see this quick guide.

Plan C

There is no Plan C! :P

If your files have not been overwritten in disk by other files, there's a great chance that following the above instructions will lead you to recovering your files.


Can't change brightness on Packard Bell LM86

I managed to fix the problem by using this PPA  and setting acpi_backlight=vendor as a boot parameter.


ALT+TAB only appearing on primary display

As of today that window only shows up on your primary monitor.
You can go into "Settings" and make whatever screen you want your primary.
The window will only show up on one screen at a time.


Here is how I solved it:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer


rm works on command line but not in script

There are various possible failure points in your script. First of all, rm *.old* will use globbing to create a list of all matching files, and that can deal with file names containing whitespace. Your script, however, assigns a variable to each result of the glob and does that without quoting. That will break if your file names contain whitespace. For example:

$ ls
'file name with spaces.old.txt'  file.old.txt
$ rm *.old.*   ## works: both files are deleted

$ touch "file.old.txt" "file name with spaces.old.txt"
$ for i in ./*; do oldfile=$i; rm -v $oldfile; done
rm: cannot remove './file': No such file or directory
rm: cannot remove 'name': No such file or directory
rm: cannot remove 'with': No such file or directory
rm: cannot remove 'spaces.old.txt': No such file or directory
removed './file.old.txt'

As you can see, the loop failed for the file with spaces in its name. To do it correctly, you would need to quote the variable:

$ for i in ./*; do oldfile="$i"; rm -v "$oldfile"; done
removed './file name with spaces.old.txt'
removed './file.old.txt'

The same issue applies to pretty much every use of $i in your script. You should always quote your variables.

The next possible issue is that you seem to expect that *.old.* matches files with the extension .old. It doesn't. It matches "0 or more characters" (*), then a ., then "old", then another . and then "0 or more characters again". This means that it will not match something like file.old, but only something like `file.old.foo:

$ ls
file.old  file.old.foo
$ for i in *; do if [[ "$i" == *.old.* ]]; then echo $i; fi; done
file.old.foo

So, no match foe file.old. In any case, your script is far more complex than needed. Try this one instead:

#!/bin/bash

for i in *; do
    if [[ -f "$i" ]];  then
        if [[ "$i"  ==  *.old ]]; then
            rm -v "$i" || echo "rm failed for $i"
        else
            echo "$i doesn't have an .old extension"
        fi
        cp -v "$i" "$i".old
    else
        echo "$i is not a file"
    fi
done

Note that I added -v to the rm and cpwhich does the same thing as what you were doing with yourecho` statements.

This isn't perfect since when you find, for example, file.old, that will be removed and, later on, the script will try to copy it and fail since the file no longer exists. However, you haven't explained what you script is actually attempting to do so I can't fix that for you unless you tell us what you are really trying to accomplish.

If what you want is to i) remove all files with the .old extension and ii) add the .old extension to any existing files that don't have it, all you really need is:

#!/bin/bash

for i in *.old; do
    if [[ -f "$i" ]]; then
        rm -v "$i" || echo "rm failed for $i"
    else
        echo "$i is not a file"
    fi
done
## All the ,old files have been removed at this point
## copy the rest
for i in *; do
    if [[ -f "$i" ]]; then
        ## the -v makes cp report copied files
        cp -v "$i" "$i".old
    fi
done


How do I change the default permissions for automounted USB media?

I guess your USB drive is formatted with VFAT/FAT32. This file format does not support execute permissions which is why chmod +x fails.

[Edit] Ok, had a bit of a play and search on the net. Lots of 'solutions' suggest that you should change /etc/fstab. This just seems clunky to me, what do you do? change fstab every time you encounter a new USB flash drive???

My solution:

$ sudo vi /etc/udev/rules.d/90-usb-disks.rules

Add the lines:

# UDEV Rules to change the permission of USB disks

#

KERNEL=="sd*[0-9]", ATTR{removable}=="1", ENV{ID_BUS}=="usb", MODE="0022"

$ sudo /etc/init.d/udev restart

Then try inserting a usb drive. There is probably an attribute that you can check for to ensure it's a FAT formatted drive if you wanted to be more specific.


Can I install the drivers offered by HP on my Laptop using Wine?

No.

Besides that... I have 3 HP printers here and not one of them needs special drivers from the HP website. The newest of those 3 is a HP PSC 2170. Printer, scanner and cardreader work out of the box.

Printers work through a generic piece of software called CUPS.

  CUPS is the standards-based, open source printing system developed by Apple Inc. for Mac OS® X and other UNIX®-like operating systems

You can add printers from dash by searching for printers. It will show this:

You can add printers manually here ...

but after plugging my printer in it gets automatically detected:

The same goes for your mouse, keyboard. Graphics you can install an extra driver for via dash, additional hardware but this is also a native driver (ie. "built by ubuntu for ubuntu"). BIOS is not OS related so I will leave that one out ;)

The only thing I do know that benefits from a windows driver (but that was 3 releases ago) is your wireless card and only if it is a Microsoft based wireless. But I think that those days are behind us.


You can try another driver for this adapter. Run in terminal

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms


How to connect to Windows PC in graphical mode?

I suggest to try tightvnc.  TightVNC is a free remote control software package. With TightVNC, you can see the desktop of a remote machine and control it.


Bluetooth headset without crystal clear sound

Provided you run KDE with pulseaudio you will have access to the audio profile for your Bluetooth headset by installing and running pavucontrol .

You need the A2DP protocol for high fidelity sound output. How to do this is illustrated in the accepted answer ot the following question:

Accidentally changed Bluetooth mode to off


Execute Script when Android Phone is connected to specified/selected USB Port

In general, any plugged device get some corresponding nodes in SYSFS /sys, some adds other nodes in /dev.

Using sysfs:

Monitor udev events

sudo udevadm monitor

Plug your device and watch for previous command output, example

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[5797.642807] add      /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4 (usb)
KERNEL[5797.643604] add      /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0 (usb)
UDEV  [5797.659463] add      /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4 (usb)
UDEV  [5798.753894] add      /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0 (usb)

So in the format of bus-port.port:config.interface see reference: Bus:2, Port:1 (root hub), Port:4 (external usb port), Config:1 (plugged device), Interface:0

The full name of USB port is 2-1.4.
To check its attributes:

udevadm info -a /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4

Or the device (that port is parent node of it)

udevadm info -a /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0

Using /dev:

Android phone like a modem, it creates a serial port in /dev. To know the new plugged device, See How to allow software access to any USB devices?

udevadm info -a /dev/ttyACM0

Another way, to get port is dmesg or :

tail -f /var/log/kernel.log

Then use port number for KERNELS=="2-1.4" or KERNELS=="2-1.4:1.[0-9]*"

References:

Linux USB FAQ:What are the sysfs structures for Linux USB?


How to shutdown computer with ubuntu from a program?

… how can I send commands to terminal from my program …

Using system, eg:

#include <stdio.h>
#include <stdlib.h>

int main() {
    system("/bin/ls -la");
}

or

#include <stdio.h>
#include <stdlib.h>

int main() {
    system("sudo shutdown");
}

Example

% gcc foo.cpp
% ./a.out
[sudo] password for aboettger:

% cat foo.cpp
#include <stdio.h>
#include <stdlib.h>

int main() {
    system("sudo shutdown");
}


No sound in Ubuntu 12.10 [Or any distro], mb soundcard

same problem here. it seems any kernel somewhere after 3.6.4 produces severe misconfiguring of the pulseaudio client and X11 setups. the nay-sayers that said pulse was a dog, and it  would eventually bite us, were right. SuSE, Ubuntu, and Fedora 16+ all have this failure. that this has gone on for over a year also underscores the developers' total lack of concern in correcting it. it's not on anyones critical list, to my knowledge.
solution: remove pulseaudio; note: this is a code based prob, as windows 7 sound works  ;)


TeXMaker installation error 'Failed to fetch file'

this happens to me a lot with a lot of programs. In my case, the reason was my system has't supported by Ubuntu anymore , I have needed to upgrade my system. After upgrading, there was no any problem 'failed to fetch file from server'. I recommended to you check this out. (check support time of your system by ubuntu)


Why does LibreOffice use OpenOffice.org-like icons?

You have the tango icon theme selected (this not a legacy Open-Office theme by the way). Also I found that LibreOffice seems to force certain themes if your GTK+ theme is changed (at least in 3.4, so they might have back ported that to 3.3.3).

What you can do is go to tools>options>view and choose another theme (such as galaxy). If you don't have that theme, then you need to install the other LibreOffice icon themes (called styles) from the Software Centre or synaptic.


How I can fix Audacious Crash on Ubuntu 14.04 Trusty Tahr LTS?

Often crashes with programs can be hard to diagnose, as the problem may exist with the environment or the program itself. First step should be to check for known issues in the program in question. In order to help with troubleshooting, it may be a good idea to verify that you have all the required dependencies, as well as build the program from source and see if the newest release fixes the issue you are having.

If those do not result in your program being able to run, you can ask the developers, or clone their repo and investigate and make changes, then ask to push your changes upstream.


Using NVidia Driver

I put this here for who uses NVidia proprietary driver. So if it is not the case, please add to the question the driver you are using. (Such advanced options depends on the used driver)

Run sudo nvidia-settings
X Server Display Configuration tab → Set monitor from 'Selection:' → Advanced
BTW, This option is called Under Scan. Here an example for my monitor with 1280x800 original resolution. I removed 120 from left and 75 from bottom to keep same ratio.

ViewPortIn: 1160x725
ViewPortOut: 1160x725+120+0
Panning: 1160x725

Apply

Note: You can save as the following screenshot to confirm it's size 1160x725

Margin can be seen here:


Kernel panic after attempting to upgrade to Ubuntu 14.04

Maybe something went wrong during update and this will be enough?

Repair after bad update

  sudo apt-get update

  sudo apt-get -f dist-upgrade


My account can't start GUI, but Guest account can

This is probably a bug, but the workarounds for this sort of problem are generic, and applying the workaround will help in reporting the bug initially. (So while most bug questions are closed as off-topic, I'm answering this one with a workaround. Also, I suppose it's possible that this could happen as the result of some misconfiguration, rather than bug.)

How to Get a Successful GUI Login as "Fred Hamilton"

Press Ctrl+Alt+F1 to open a text-based virtual console. Log in with Fred Hamilton's username and password. But take note:

The username will not actually be Fred Hamilton. It will be the short name. (You may recall having put in both a short username and a full name, when you installed Ubuntu.) If you don't remember what this is, it's probably fred. But some users make their initials (for example, mine is ek), or something entirely different.

If you don't know what this is, you can log in as Guest, and try to see what subfolders exist inside the /home folder. These subfolders are the folders for each human, non-guest user (so there's probably just one--the one for Fred Hamilton).
Unlike when logging in graphically, nothing will change on the screen as you type in your password. You won't see any placeholder characters like *. This is by design. Just type in your password and press Enter.

Now you can run commands. Make sure you're connected to the Internet (you can connect in a simultaneous guest session if necessary, switching to the GUI with Alt+F7 and back to the first virtual console with Ctrl+Alt+F1). Run this command, by typing it in and pressing Enter.

sudo apt-get update && sudo apt-get install gdm

This will install gdm, an alternative to lightdm. LightDM and GDM are two different display managers. A display manager is the part of the GUI that provides the graphical login screen. Since the LightDM login screen is not working, installing GDM and configuring it to be used instead of LightDM should eliminate the problem.

Please note:

You'll be prompted for your password. As you enter it, you won't see anything change (as before).
As the final installation step, the gdm package will be configured and you'll get to choose whether you want to use LightDM or GDM as your display manager. Choose GDM. You can use the arrow keys and the Enter key to make this selection, when the menu comes up asking you which you want to use.

Strictly speaking, you don't have to choose gdm, as you'll be manually switching to it anyway. But LightDM (which is currently broken and causing this problem) will continue giving you the bad login screen, unless you select GDM. You can always reconfigure this later, with sudo dpkg-reconfigure gdm or sudo dpkg-reconfigure lightdm.

Then stop lightdm and start gdm:

sudo stop lightdm
sudo start gdm

Now switch back to the GUI (Alt+F7) and log in as Fred Hamilton.

How to Report This As a Bug

First, read the official bug reporting instructions for Ubuntu carefully. (The answers here are also a helpful resource.)

Then report this bug against the lightdm package in Ubuntu, by pressing Alt+F2 and running the command ubuntu-bug lightdm.

Here are a couple of specific considerations, when writing your bug report:

Make sure to describe the problem in detail. In particular, developers should not have to come here, to fully understand and appreciate the bug you're reporting.
Make sure that an Xorg.0.log file created from a LightDM session (not from the current GDM session) is attached. Xorg.0.log and Xorg.0.log.old will usually be attached automatically, and Xorg.0.log.old will likely be the correct file. If you're at all unsure, you can also attach the Xorg.0.log file you currently have, if you made a copy of it before logging in again. (Just make sure to give it a description that makes clear what the difference is between it and the Xorg.0.log file automatically attached.)

In case somehow this is not a bug, you might also want to paste the contents of the appropriate Xorg.0.log file at http://paste.ubuntu.com and edit your question here (or post a comment) to provide a link to it.

This question might be considered a duplicate of this older question. (Thanks to aking1012 for finding that.) If so, and this is closed as a duplicate of that question, this answer can probably be merged, and then I can edit accordingly.


How can I configure my mouse pad features on 14.04 LTS?

By default it scolls using two fingers. You can change this behaviour in System Settings.


How to add a directory permanently to my Path?

export PATH=/tmp:$PATH for your current session.

echo -e '\nexport PATH=/tmp:$PATH' >> ~/.profile for your future sessions.


Removing an application created by dragging a URL onto the unity bar?

Search in $HOME/.local/share/applications/ for a .desktop file for "Game of Thrones Season 4 - Backstage" and remove it.


Ive seen disconnects being caused by faulty power saving capabilities of the driver/chip

To quickly check if this is the case

try:

 sudo iwconfig wlan0 power off

and see if you see any difference.
Make note that this will not change your settings permanently.
So they will be reset on suspend & reboot


According to shutters website it should be as simple as following the steps there.

Add the PPA with, sudo add-apt-repository ppa:shutter/ppa
update your source list with, sudo apt-get update.
And install shutter with sudo apt-get install shutter.

When I installed shutter on my 13.04/13.10 I just used the software center.

does this work for you?


Apache Rewrite not working with domain name for Yii2 app in AWS Ubuntu OS

To prevent directory listing you should remove the Indexes keyword from your Options directive, or simply put a - in front of it like: -Indexes

Additionally, check your DocumentRoot with following command, it must match your Yii2 folder:

grep -i Documentroot /etc/apache2/httpd.conf

Did you set the ServerName parameter in /etc/apache2/sites-enabled/000-default.conf conf file? for example:

ServerName IP_ADDRESS

And always remember to reload configuration after you do changes


Is there a way to make the top bar in chrome transparent?

The top panel style you're using is controlled by Chrome themes. You can go to Chrome Preferences-Personal Stuff-Appearance and select a different theme by clicking "Get Themes". A theme can be selected that has top with a color close to the tone of your background. Not the transparency you desired but you will be able to select a lest stark color.


Dell XPS 12 and Ubuntu 13.10 Touchpad/Screen Woes

First make sure your kernel is up to date - I'm on 3.11 at the moment.

Have you installed any multitouch apps? A good one to try is planarity. If that works with multiple touches, you know whether its your setup or a problem with the hardware.

If you want gestures there are 2 options - ginn and touchegg. I'm using touchegg on my XPS12 at the moment, but thats because I'm on Gnome Shell.

Overall it seems like there is relatively little out there about running a touch screen in linux, but the Arch wiki is pretty good for tips. IIRC your laptop will be using an Atmel maXTouch Digitizer. You may have more luck finding stuff relating to the actual hardware component, as opposed to just a laptop model.

https://wiki.archlinux.org/index.php/Lenovo_Thinkpad_Helix

https://wiki.archlinux.org/index.php/Touchscreen


Mounting a new hard drive (sda1) to my existing filesystem

A possible recommendation, which will mount sda1 at system startup with read-write permissions for you and your group, and read-only permissions for others, might be adding this line to /etc/fstab:

UUID=<ID-NO-OF-SDA1>   /media/<Your-User-Name>/<Label-Of-SDA1>   ntfs   defaults,auto,nls=utf8,uid=1000,gid=1000,dmask=002,fmask=113   0   0

And if you don't have any plans for a shared use of this drive with Windows, you can prefer using EXT4 format and then add this line instead:

UUID=<ID-NO-OF-SDA1>   /media/<Your-User-Name>/<Label-Of-SDA1>   ext4   nodev,nosuid   0   2

Note: You can get the UUID and Label of SDA1 using GParted.


How can I enable horizontal window tiling on Ubuntu 17.10

I now have the behavior I want, I can tile my windows left, right, all four corners, top half and bottom half. Here is what I did for anyone who wants to know:

I installed the ShellTile extension for GNOME Shell.

After installing that, I faced another issue. ShellTile was working but it's functionality was being replaced by the default tiling behavior.

This forum post explains how to remove the default tiling behavior, in favor of ShellTile's.

I was told to type:

gsettings set org.gnome.shell.overrides edge-tiling false

But that didn't work, so I ended up going with the second answer and installed dconf-editor by typing:

sudo apt-get install dconf-editor

Here are the instructions for what to do next:

  You need dconf-editor. Install it per your distribution's recommendations. I'm running Fedora 17 at the moment and this is the command line incantation I used: sudo yum install dconf-editor.
  Launch dconf-editor. On the left you will see a simple menu with five entries. Click on the plus sign to the left of org. New menu entires will drop down beneath it. Click on the plus sign to the left of gnome. Scroll down, then click on the plus sign to the left of mutter.
  Click on mutter next to the plus sign to highlight it. Several entries will appear in the large window to the right.
  If the edge-tiling entry is checked, click it to uncheck it. If it is already unchecked, leave it unchecked.
  Scroll down the left panel and click on the plus sign to the left of shell.
  Go to the overrides entry below shell and click on it.
  Again, you are looking for the edge-tiling entry in the right window. Make sure it is not checked.
  Close dconf-editor.

  Note: This turns off all edge-tiling. The Gnome Shell effect that snaps a window to the left or right side of the screen and opens it to one-half screenwidth will not work after disabling edge-tiling. If you decide to get it back, return to dconf-editor and re-enable it.

That's basically it. I give thanks to Hi-Angel and pomsky for mentioning ShellTile. I hope this helps someone else who wants the same functionality I wanted.

Thanks again.


You can't do chmod on a drive:

  The mode is determined by the partition's mount options (you cannot change it via chmod).


Can we change window background to a custom image?

You can try these solutions:

Using an app called MyUnity
Changing window background color by theming

Using dconf-tools
How to change the background colour of a window?


Apache: You don't have permission to access this resource

Try changing the owner of the following directory /var/lib/jenkins/workspace/beta-frontend/build to www-data
use following command to do so:
sudo chown -R www-data:www-data /var/lib/jenkins/workspace/beta-frontend/build


Can't use personas in LibreOffice 4.1.0.4 on Xubuntu 12.04 64-bit

This may be a bug and you should report it. You may still be able to install the personas manually.


Ubuntu-Software center stay on 'Pending' upon installing anything

You can use bleachbit to clean , and reboot the machine.
That will get it back. I have the same issue, and this works for me.
I have tried ubuntu tweak janitor, but it did not work for me getting the software centre to behave again.
However, since I do not want to do this all the time, I use Gdebi and Synaptic to install what i need.

Hope this helps.


Failed Attempt to Dual-Boot Ubuntu 12.04 with Windows 7

Paul, first of all, as an Ubuntu user and lover, I'm sorry for your failed attempts and frustration.

But, honestly.... that tutorial you followed is horrible, and doomed to failure. The approach it chooses is extremely complex and fragile.

If you're starting over for the 5th time, how about trying from scratch the default, sane, easy way? I assume you're trying the "real" Ubuntu, not the Wubi one, correct?

First, clear that mess in Window's boot list, so that Windows boot list is the default one, using the MBR as it wants, with no Grub4DOS or anything, booting straight to Windows. Use the Windows install/recovery DVD for that. Done? Ok, So let's begin:

1 - Boot from the Ubuntu Live CD (or USB key)

2 - Install it normally. I assume you know about partitioning. If not, just ask. Or use the "Install Along Windows" option for auto-partitioning

3 - Grub2 (the boot manager) goes to /dev/sda, the MBR of your boot drive, where it belongs. Do NOT install it in a partition (like /dev/sda1)

4 - Reboot. You now will have both Windows and Ubuntu in grub2's boot menu. Choose either, and be happy ;)

5 - If any Windows (or even other Linux) future install messes with grub, follow these instructions to restore grub


youtube-dl Troubleshooting: ERROR: This video is unavailable

See youtube-dl: Download Page.

  To install it right away for all UNIX users (Linux, OS X, etc.), type:

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

  If you do not have curl, you can alternatively use a recent wget:

sudo wget http://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

  You can also use pip:

sudo pip install --upgrade youtube_dl

The above steps will install latest version of youtube-dl that can be checked using youtube-dl --version. As of now the output of youtube-dl --version is:

2020.01.01


Ok, I just figured out, how it can work.

Edit the file:

vim /etc/exim4/conf.d/main/02_exim4-config_options

Insert the following in bottom of the file:

# Spamhaus RBL zen.spamhaus.org
CHECK_RCPT_IP_DNSBLS = zen.spamhaus.org

Edit the file:

vim  /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt

Search for:

CHECK_RCPT_IP_DNSBLS

Then change, "warn" to "deny" as shown below:

# Check against classic DNS "black" lists (DNSBLs) which list
# sender IP addresses
.ifdef CHECK_RCPT_IP_DNSBLS
deny
message = X-Warning: $sender_host_address is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
log_message = $sender_host_address is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
dnslists = CHECK_RCPT_IP_DNSBLS
.endif

We must restart Exim:

/etc/init.d/exim4 restart

To test this configuration and see if the PBL blocking is working by sending an email (any email) to: nelson-pbl-test@crynwr.com

The system will answer, to tell if your server is correctly blocking PBL-listed IP addresses or not.


50-cloud-init.yaml, optional: true - will the network interface get initialized if it gets online after the boot sequence?

Without the optional: true statement, ethernet network interfaces that are not completely ready can add an additional 2+ minutes to the boot time.

With the optional: true statement, the boot cycle will continue, without delay, and it'll bring up the ethernet network interfaces when they're ready.

Unless you've got a specific ethernet network interface that MUST be completely operational for other services to properly start (like a WAN port), go ahead and add this statement to the other ethernet interface stanzas.


Installing Ubuntu takes more than 8 hours

I have solved this issue by turning off my internet connection during installation as ptetteh227 suggested.

Maybe I got this issue because of an internet connection problem while running updates during installation.


Lost some files after I cut and pasted in Ubuntu 12.04

Here's your answer: Best tool to recover removed files


Group share permisssions to windows clients?

This is a permission problem, which you can solve either by:

1) telling Samba to force some specific permissions (e.g., 664) on
all files in the share: the relevant solution is discussed here:
http://www.linuxquestions.org/questions/linux-newbie-8/samba-share-permissions-57589/

It boils down to: assuming you want everything to be read+write for
"parents" and read-only for everyone else, add the following lines to
you [parents] share configuration:

  force create mode = 0664
  force security mode = 0664
  force directory mode = 0775

Every bit set to 1 in one of the "force * mode", will be set by
SAMBA on the file, regardless of what the Windows clients requests.

2) Use the security mask setting to disallow clearing the
group-write bit (bits set to 1 in the "security mask" can be
manipulated by Windows clients):

   security mask = 757

So, once you've set a file g+w from Linux, it can never be changed
back from Windows.

A more detailed explanation of the relevant parameters is given at:
http://cri.ch/linux/docs/sk0002.html

Regardless of the chosen workaround, you might also want to force all
files in the share to belong to UNIX group parents:

  force group = parents

Either one of the two options should work; they are compatible so you can
also choose to implement both at the same time.


How to install netbeans-8.1 in ubuntu-15.10

Download NetBeans .sh file from direct link and open terminal and run:

chmod ugo+x netbeans-8.1-linux.sh
./netbeans-8.1-linux.sh


How to make pdfsam work in (L)ubuntu 18.04?

It is known bug bug 1768565 on the LaunchPad about broken compatibility between OpenJDK 11 and PDFSaM Ubuntu package.

I found working solution. We should remove pdfsam Ubuntu-package and  download pdfsam-basic from official site:

sudo apt-get purge pdfsam
sudo apt-get autoremove
cd ~/Downloads
wget https://github.com/torakiki/pdfsam/releases/download/v4.0.1/pdfsam_4.0.1-1_all.deb
sudo apt-get install ./pdfsam_4.0.1-1_all.deb

This is not first time, as Scilab was broken by Java too (see this Q&A).
So Ubuntu 18.04 LTS is not yet ready for enterprise and educational deployment.


How to use sudo command in the default guest account?

Add a rule to the sudoers file that gives the guest account the permission to gain root privileges but only execute the command that starts the VPN, and possibly the command that stops the VPN.

Run visudo, and add lines like the following:

guest ALL = /usr/sbin/service openvpn start
guest ALL = /usr/sbin/service openvpn stop

Alternatively, if applicable, you could tie the VPN service to the network interface for general Internet connectivity. For example, if your network interface is eth0, add a file in /etc/network/if-up.d/ containing

#!/bin/sh
if [ "$IFACE" = "eth0" ]; then
  service openvpn start
fi

and in /etc/network/if-down.d/ containing

#!/bin/sh
if [ "$IFACE" = "eth0" ]; then
  service openvpn stop
fi

If you use OpenVPN and your network interface is configured in /etc/network/interfaces rather than via NetworkManager, you can configure an OpenVPN VPN to start there.

iface eth0 inet dhcp
    OPENVPN=trustconnect

There may be a way to do this with NM as well but I don't know how.


How to hide console messages on shutdown?

Try editing /etc/init/rc.conf:

sudo nano /etc/init/rc.conf

and comment console output so it looks like:

#console output

Don't touch anything else in the file!

Then reboot and it should no longer show anything.

If you want to know what this does do

man 5 init

and read on the console output section.


Some Ubuntu 13.04 applications cannot access files on MTP-mounted systems. Why?

The MTP specification doesn't support the basic open/read/write/close operations that are required to implement normal file access on Linux - it only provides upload/download for files, and that's what the MTP backend implements.

Nautilus will copy files just fine, but as soon as you try to use an application that doesn't explicitly account for the restricted set of operations, you'll get an error. evince is an example of an app that does support it (it copies the file to /tmp then opens it).

So, that's what's going on in 13.04.

Now, it happens to be the case that Google implemented a set of MTP extensions in Android that offer open/read/write/close, and it's possible to provide normal file access with these. I've done this work in the gvfs development branch but it missed the 1.16 release window, so it's not going to show up in Ubuntu until 13.10 at the earliest. 14.04 and still not there

In the meantime, you can use my ppa to install builds where I have backported this work.

https://launchpad.net/~langdalepl/+archive/gvfs-mtp

Finally, it's important to note that these extensions only exist in Google's MTP stack. You have a Nexus 10, so it will work as it's running stock Android - but someone using a Samsung device, or devices from other manufacturers, will not have these extensions and might not have support for normal file I/O.


Restrict SSH-login with public-key only to selected users

The AllowUsers option in the /etc/ssh/sshd_config file is exactly what you need to accomplish user access restriction via ssh.
See the manpage for sshd_config:
AllowUsers
      This keyword can be followed by a list of user name patterns, separated by spaces.
      If specified, login is allowed only for user names that match one of the patterns.
      Only user names are valid; a numerical user ID is not recognized.  By default, login
      is allowed for all users.  If the pattern takes the form USER@HOST then USER and
      HOST are separately checked, restricting logins to particular users from particular
      hosts.  HOST criteria may additionally contain addresses to match in CIDR
      address/masklen format.  The allow/deny users directives are processed in the
      following order: DenyUsers, AllowUsers.

In order for the changes in sshd_config to take effect, you need to restart the sshd service with:
$ sudo systemctl restart ssh.service

If that still does not work, check the /etc/ssh/sshd_config.d folder for any additional configuration files, that overrule your AllowUsers statement.


How to auto poweroff after Ubiquity preseed install of Ubuntu desktop

Okay I have found the solution, the following keys solve the problem:

  ubiquity ubiquity/reboot boolean true
  ubiquity ubiquity/poweroff boolean true


Cannot double click Indicators (notify bar) to launch some applications or open their main window

It sounds like you have enabled some applications to use the older notification tray, as indicators are (by design) supposed to act like menus, so double clicking on them shouldn't work:

Why do indicator applets exist?
Indicator applet-less applications?


Error with libpam-systemd:amd64 dpkg error, locked by another process

try sudo rm /var/cache/debconf/*.dat
it will rebuild the .dat files when you run apt-get again.


Keyboard/Mouse not working after installation from windows

Did you try different USB ports?

If they all do not work, try to SSH into your machine. If you have access to your home router, you can see what computers are connected with their IPs. Check your

ls /dev/input/by-id/

to see if your USBs are even detected. You will see the names of your devices attached. If they are not there, this may be a USB driver issue.

Update:

OP has a new Gigabyte motherboard that has an option called IOMMU which is disabled by default. Enabling it solves the problem.


wubi has a 30Gb limit. Wubi is for those Windows users that want to test Ubuntu without having to add partitions and possibly then just delete it. It is meant as an extended test over just using liveCD, but not for a long term install.

You  need to free up those 200Gb you want by creating a new partition (partition magic can do this from within Windows but Linux' gParted can do this too). And you can also remove the wubi install to free up the extra 30Gb. After you got the extra partition you can use a live CD to install Ubuntu in the empty space (the installer will ask for several installation methods including the option to use free space).


How to make a custom button provide haptic feedback

Abstract Buttons do indeed come with haptic feedback out of the box and does not require any special properties to enable it. It sounds like you are experiencing a bug. Perhaps if you can add the code of your custom round button, one can confirm and check if it works on our end or not.


When I tried to upgrade Ubuntu 16.04 to Ubuntu 16.10 "errors were encountered while processing systemd-shim"

Rename /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service to  /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak and do

 sudo apt upgrade


Keyboard layout indicator "work" but the keyboard layout doesn't actually switch

When I had Xubuntu I had the same issue just for Hebrew. But playing with settings fixed it.

Check that your system settings are correct (Settings -> Text Entry).
Make sure also that shortcut is not taken in Keyboard Shortcuts and that no key associated with Next input method. Try to remove everything from Input Methods settings.
Go to keyboard settings, and change layout configurations.
Try to clean/reset mapping settings: How do I clear xmodmap settings?

If it still doesn't work try:

Check that the plugin xfce4-xkb-plugin is installed (just run sudo apt-get install xfce4-xkb-plugin)
try to map manually sudo setxkbmap -optiongrp:switch,grp:alt_shift_toggle us,ru


How to install a printer without Internet connection

Can Ubuntu works with that printer?

Probably or at least the printer part.

  Does I need, yes or yes, an Internet connection to perform this?

Yes, but not really needed on that laptop itself. You can download it all onto your current system and install it when you are there.

You can also install a ssh server onto that machine and copy and install it remotely.

This does largely depends on the support for this printer. Download the files you need form the link.


Dual boot Windows 8.1 and Ubuntu on SD card EFI (Chuwi VI10)

There's a chance that disabling Secure Boot will fix the problem, but that's a bit of a long shot, since I'd expect that a problem that affected the installed system would also affect the installation media. Unfortunately, no two computers are exactly alike when it comes to Secure Boot settings, so it's impossible to completely describe how to try this; but I show several examples on my page on Secure Boot.

A more likely possibility is that you've got a defective firmware that ignores its boot settings. The best solution to this problem is to obtain a fixed firmware from your manufacturer. Unfortunately, few manufacturers ever bother to fix this type of problem, but it's worth looking for an updated firmware. (The manufacturer is likely to call it a "BIOS," although it really isn't a BIOS.) If that fails, you could try working around this by using Boot Repair. You'll need to go to the Advanced menu and select the option to back up and rename the boot loader files. If that fails, then be sure to undo the operation with Boot Repair, since the moved and renamed files will just complicate the boot path and make future changes more complex.


Evince Document Viewer theme parssing error causes invisible GUI when custom GTK-3 theme is in symlink

So after a wild chase I managed to find this issue on Evince's GitLab.
The problem is the files are in a location not approved by AppArmor and thus Evince is blocked from accessing them.

To solve the issue and continue using symlink for the .themes and .icons folders, quick answer is adding the following lines to /etc/apparmor.d/usr.bin.evince:

  owner {path-to-icons-folder}/.icons/** r,
  owner {path-to-themes-folder}/.themes/** r,

The longer answer:

first take a backup of the file /usr/apparmor.d/usr.bin.evince

install apparmor-utils:

sudo apt install apparmor-utils

run AppArmor's scanning utility:

sudo aa-genprof /usr/bin/evince

While the utility is running, attempt to open a PDF file using Evince in another terminal window:

evince {name-of-your-pdf.pdf}

Now head back to the original terminal window and press s for "Scan". The utility will scan the logs for denied permission attempts for Evince by AppArmor and ask if you would like to allow Evince to access these in the future. Accept the suggestions.

Now if you try running Evince again, you'll notice a whole bunch of new permission errors. You could continue adding these until the errors stop showing, but I prefer my config files slightly less messy so I suggest editing the /usr/apparmor.d/usr.bin.evince file. Locate the two entries added during the scan, then edit them and change the file URL to:

  owner {path-to-icons-folder}/.icons/** r,
  owner {path-to-themes-folder}/.themes/** r,

Note that this gives Evince permission to all files in the folder and sub directories, which it could potentially alter, so keep the scope small.

After saving the file, tell the AppArmor utility to scan once more. This is so AppArmor's config is updated. Now Evince should have the required permissions and show it's GUI in all it's amazing glory when you next open a PDF.


No internet access via ethernet, while wifi works (82579lm, ubuntu 14.04)

Alright so in case anybody else has the same issue I found a workaround:

I killed the loopback ('lo') interface that appeared when using ifconfig with the command 'sudo ifconfig lo down' which immediately led to pings going through again. After a reboot the interface showed up again and everything worked the way it was supposed to. No idea where the problem actually was, but hey it works ...


How to secure myself from the libpng buffer overflow in png_set_PLTE security bug?

Compile the fixed version, available here.

Remove the vulnerable packacke with

sudo dpkg -r --force-all libpng12-0

Don't use apt-get remove or apt-get purge. With these commands, related programs and libraries would also be removed.
Remove the development package

sudo apt-get remove libpng12-dev

Here is the usage of apt-get remove ok.
Create a DEB package, e.g. with checkinstall and use ./configure --prefix=/usr
Enable the security channel (e.g. wily-security for Wily). Check more often for upgrades. The installed version will be overwritten, if a fixed version is available in the Ubuntu repositories

And yes, Ubuntu is currently also affected, the versions are

Wily: 1.2.51-0ubuntu3.
Trusty: 1.2.50-1ubuntu2
Precise: 1.2.46-3ubuntu4

Fixed versions are 1.6.19, 1.5.24, 1.4.17, 1.2.54, and 1.0.64

To check, which applications depends on this library:

apt-cache rdepends libpng12-0

or to simulate the removal

sudo apt-get remove -s libpng12-0


Installed easy-rsa package, but I cannot find the directory

You should install OpenVPN along with easy-rsa

sudo apt-get install openvpn easy-rsa

and copy over the Easy-RSA generation scripts

sudo cp -r /usr/share/easy-rsa /etc/openvpn


how to disable charging in ubuntu when battery level is above 80 percent?

I think you may be use a guild which write for a Thinkpad. But you should know that tp_smapi is for real Thinkpads only.

Not for all Lenovo. And not even all Thinkpads are supported. See this page on Thinkwiki.org which models are supported. It doesn't mention yours there.

From the same Thinkwiki.org page:

The the new Lenovo series have firmware that is completely different from other ThinkPad models. Neither tp_smapi nor thinkpad-acpi support these models.

These are consumer-grade notebooks, from the original Lenovo line. The supported Thinkpads are more of the original IBM-line of machines with a completely different design in hardware. The component that's key here is the embedded hardware controller for this unique power controlling feature. As far as I know, only the business-line of Thinkpads still feature this today.

Short history: Lenovo bought IBM's Thinkpad line of machines in 2005, but even till today the machines between the Thinkpad T/X/W series can't be compared to the consumer-grade machines in terms of compatibility (and quality).

Bottom line: you can't do this on your device.


Open the terminal on the guest OS from Host OS

If your guest OS is running a Desktop session (i.e X server started), you could use the following command to open a terminal.

From your Host OS, open a terminal and type:

ssh <user>@<ip_of_guest> DISPLAY=:0.0 gnome-terminal

Just replace <user> and <ip_of_guest> with your real username and guest ip.


Best Way to Install LTSP on Ubuntu 18.04

You should follow official guide on LTSP wiki - http://wiki.ltsp.org/wiki/Installation/Ubuntu and do not forget to add Greek PPA (ppa:ts.sch.gr).

I did not tried 2 NIC configuration yet, but 1 NIC with ProxyDHCP work as expected with Greek PPA.


(18.04) Recording-Problems with my USB-Microphone

The problem is same ancient as Ubuntu. It has the name "Logitech webcam microphone chipmunk sound". Looks like the problem has resurrected with Ubuntu 18.04 with its  4.15 kernel.

The well-known old workaround for the bug "Logitech camera microphone makes "chipmunk" sound" has worked for my Logitech C270 webcam like a charm.

You have to disable USB autosuspend at kernel boot parameters. Open /etc/default/grub file with a text editor, let it be nano for instance:

sudo nano /etc/default/grub

and find there line with GRUB_CMDLINE_LINUX_DEFAULT. Add usbcore.autosuspend=-1 to kernel parameters, i.e. replace the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

with this one

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

Save changes and apply it to your system with grub update:

sudo update-grub

Reboot your computer and the chipmunk (Mickey Mouse) sound problem has to dissappear.


How to start apps always on specific display?

Be prepared to get your hands dirty
On the edge of what I feel we could ask users to do, but on the other hand, when instructions are clear, why not? So here we go...

Background process to set on which monitor new windows should appear

The Vala snippet

using Wnck;
using Gdk;
using Gtk;

// compile:
// valac --pkg gtk+-3.0 --pkg gio-2.0 --pkg libwnck-3.0 -X "-D WNCK_I_KNOW_THIS_IS_UNSTABLE" 'file.vala'

namespace move_newwins {

    private int[] monitor_geo_x;
    private int[] monitor_geo_y;
    private int monitorindex;
    private string currmon;

    private void getwins() {
        var dsp = Gdk.Display.get_default();
        unowned Wnck.Screen scr = Wnck.Screen.get_default();
        scr.force_update();
        get_monitors(dsp);
        scr.window_opened.connect(newwin);
    }

    private void newwin (Wnck.Window newwin) {
        newwin.unmaximize();
        int winx;
        int winy;
        int winwidth;
        int winheight;
        newwin.get_geometry(out winx, out winy, out winwidth, out winheight);
        Wnck.WindowType type = newwin.get_window_type();
        if (type == Wnck.WindowType.NORMAL) {
            newwin.set_geometry(
                Wnck.WindowGravity.NORTHWEST,
                Wnck.WindowMoveResizeMask.X |
                Wnck.WindowMoveResizeMask.Y |
                Wnck.WindowMoveResizeMask.WIDTH |
                Wnck.WindowMoveResizeMask.HEIGHT,
                monitor_geo_x[monitorindex] + 100,
                monitor_geo_y[monitorindex] + 100,
                winwidth, winheight
            );
        }
    }

    private int get_stringindex (string s, string[] arr) {
        for (int i=0; i < arr.length; i++) {
            if(s == arr[i]) return i;
        } return -1;
    }

    private void get_monitors(Gdk.Display dsp) {
        int nmons = dsp.get_n_monitors();
        string[] monitornames = {};
        for (int i=0; i < nmons; i++) {
            Gdk.Monitor newmon = dsp.get_monitor(i);
            monitornames += newmon.get_model();
            Rectangle geo = newmon.get_geometry();
            monitor_geo_x += geo.x;
            monitor_geo_y += geo.y;
            monitorindex = get_stringindex(
                currmon, monitornames
            );
        }
    }

    public static void main (string[] args) {
        currmon = args[1];
        Gtk.init(ref args);
        getwins();
        Gtk.main();
    }
}

The Vala snippet needs to be compiled. To do so you need to install a few things:

sudo apt install valac libwnck-3-dev libgtk-3-dev

Copy the snippet below, save it as win_tomonitor.vala
Compile the snippet with the command:

valac --pkg gtk+-3.0 --pkg gio-2.0 --pkg libwnck-3.0 -X "-D WNCK_I_KNOW_THIS_IS_UNSTABLE" '/path/to/win_tomonitor.vala'

(I know, the wnck argument is silly, but needed), an executable will be produced in the working directory.
Find out the name of your primary monitor by running the command xrandrin terminal.
Run the executable with the targeted monitor as argument, e.g.

/path/to/win_tomonitor HDMI-1

New ("normal") windows will appear on 100px (x + y) from topleft of the targeted monitor.

N.B.

When adding this as a startup item, you might need to add a break of a few seconds before running it. If you run into issues on login/startup, please mention.

EDIT

Below an edited version (on request). Differences:

This version skips action on windows which already are on the targeted monitor.
This version allows to set excluded WM_CLASS -es. To exclude one or more classes: add extra arguments after the targeted monitor- argument. An example:

/path/to/win_tomonitor HDMI-1 Tilix Gedit

to exclude both Tilix and gedit windows from moving.

Setup is exactly the same as the first version. Have fun!

Find out a window's WM_CLASS

Open a terminal window
Type xprop, Press Return
click on the targeted window, The WM_CLASS appears in terminal

The code

using Wnck;
using Gdk;
using Gtk;

// compile:
// valac --pkg gtk+-3.0 --pkg gio-2.0 --pkg libwnck-3.0 -X "-D WNCK_I_KNOW_THIS_IS_UNSTABLE" 'file.vala'

namespace move_newwins {

    private int[] monitor_geo_x;
    private int[] monitor_geo_y;
    private int monitorindex;
    private string currmon;
    Gdk.Display dsp;
    string[] blacklist;

    private void getwins() {
        dsp = Gdk.Display.get_default();
        unowned Wnck.Screen scr = Wnck.Screen.get_default();
        scr.force_update();
        get_monitors(dsp);
        scr.window_opened.connect(newwin);
    }

    private void newwin (Wnck.Window newwin) {
        newwin.unmaximize();
        int winx;
        int winy;
        int winwidth;
        int winheight;
        newwin.get_geometry(out winx, out winy, out winwidth, out winheight);
        string wins_monitor = dsp.get_monitor_at_point(winx, winy).get_model();
        Wnck.WindowType type = newwin.get_window_type();
        string wm_class = newwin.get_class_group_name();
        bool blacklisted = get_stringindex(wm_class, blacklist) != -1;

        if (
            type == Wnck.WindowType.NORMAL &&
            wins_monitor != currmon &&
            !blacklisted
        ) {
            newwin.set_geometry(
                Wnck.WindowGravity.NORTHWEST,
                Wnck.WindowMoveResizeMask.X |
                Wnck.WindowMoveResizeMask.Y |
                Wnck.WindowMoveResizeMask.WIDTH |
                Wnck.WindowMoveResizeMask.HEIGHT,
                monitor_geo_x[monitorindex] + 100,
                monitor_geo_y[monitorindex] + 100,
                winwidth, winheight
            );
        }
    }

    private int get_stringindex (string s, string[] arr) {
        for (int i=0; i < arr.length; i++) {
            if(s == arr[i]) return i;
        } return -1;
    }

    private void get_monitors(Gdk.Display dsp) {
        int nmons = dsp.get_n_monitors();
        string[] monitornames = {};
        for (int i=0; i < nmons; i++) {
            Gdk.Monitor newmon = dsp.get_monitor(i);
            monitornames += newmon.get_model();
            Rectangle geo = newmon.get_geometry();
            monitor_geo_x += geo.x;
            monitor_geo_y += geo.y;
            monitorindex = get_stringindex(
                currmon, monitornames
            );
        }
    }

    public static void main (string[] args) {
        currmon = args[1];
        blacklist = args[1:args.length];
        Gtk.init(ref args);
        getwins();
        Gtk.main();
    }
}


lxc and google chrome cannot open display

For me, it works, when doing xhost local:* as root or with sudo. This command allows access to the screen for local users. I need to issue this, because I'm running unprivileged containers as different user as I log into my desktop.

If you are running a non privileged container, you could even further restrict this with xhost local:username. See also man xhost.

When I started to experiment, I accidently had this enabled and wondered a while after restarting my machine.


What do the symbols in service --status-all mean?

To provide a shallow and unsatisfactory answer your first question:

The command service --status-all literally runs service <name> status for each service that supports the status command. Convention is for these to return success if the service is running and an error otherwise. A [ + ] is drawn upon success and a  [ - ] upon error.
The [ ? ] is drawn for services that don't mention a status command in service <name>.

As you might have anticipated, I learned this by reading the source code.

To address the real issue—the lack of documentation—I suggest filing a polite bug report about the manpage on Launchpad. ubuntu-bug sysvinit-utils should get you started.


From the bug report, it seems like the only workaround is to remove LightDM and install GDM over it.

Can you try the following commands?

sudo apt-get remove lightdm
sudo apt-get install gdm


Problem with upgrading to libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb

Just if someone else would hit this, dropping container and re-creating it from a scratch solved this.


I am going to recommend you download a printer driver from Epson; and if you do that, I would recommend you open your PRINTERS folder before that, and delete any existing SX435 icons there; as you say they do not work.

So if you go ahead, this link Drivers & Downloads | Epson is through the Epson website Download Center | EPSON when I search on SX430 and SX435: Epson only list a driver for the 430 and they call it Full Feature; for a 64bit system, one downloads the epson-inkjet-printer-201105w_1.0.0-1lsb3.2_amd64.deb and for 32bit (ubuntu), the epson-inkjet-printer-201105w_1.0.0-1lsb3.2_i386.deb

If you click to download, and select the OPEN option from the dialogue, gdebi installer or the software centre will then INSTALL the file; and hopefully run a setup in the background so a configured printer option should be ready and waiting

EDIT: since I answered above, you have edited your first post; please tell us "Printer is turned on and connected to my laptop" how it is connected


How can I Simultaneous login to all the Virtual Terminals?

You can edit as super user the files named /etc/init/ttyx.conf (where x can be 1 to 6) as follows:

sudo gedit /etc/init/tty1.conf

find

exec /sbin/getty -8 38400 tty1

and comment it:

#exec /sbin/getty -8 38400 tty1

Write below:

exec /bin/login -f USERNAME < /dev/tty1 > /dev/tty1 2>&1

where USERNAME is yours.

If you still want to start GUI, add startx to your bash profile:

sudo -s
echo "startx" >> $HOME/.bash_profile

or, if this won't work, open your user’s .bashrc file:

gedit ~/.bashrc

Add the following to the end of the file:

if [ $(tty) == "/dev/tty1" ]; then
startx
fi


No sound from Firefox or Discord, and they occasionnally freezes. - Ubuntu 18.04

If it really is a problem with Firefox only, the first thing to try would be to uninstall and reinstall it and try again. Maybe that will already fix it.

If not you might want to try to erase all temporary and profile data such as in /home/[your username]/.mozilla/firefox/. But CAUTION: This will erase your history and saved passwords as well. They will be GONE if you don't have a backup. So pleas BACKUP EVERYTHING in that folder before you erase and reinstall.

So, since this did not do the trick, lets analyse your error message:

  AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=5368 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=

AVC apparmor is the security framework telling you that it denied opening the snap (installer alternative to apt) profile for the gnome system monitor. I don't know about the other tags, but would guess that denied_mask="r" also tells you that a simple read ("r") was denied.

So the question is: does your gnome system monitor work? Was it turned on? Does reinstalling change something? Maybe use apt instead of snap?

I am sorry for not being able to provide a conclusive answer. Maybe you ask an expert on AVC apparmor. Otherwise this remote maintenance will continue in a trial and error fashion.

Hope that helps anyway ^^


Why is Ubuntu 14.10 not yet available at the Ubuntu Official Site?

Here is the new release:
http://releases.ubuntu.com/14.10/
Have fun!


How can I enable silent automatic updates for Google Chrome?

Install unattended upgrades:
sudo apt-get install unattended-upgrades

Enable unattended updates on the Google Chrome repo by editing the unattended upgrades list and adding the Google Chrome repo in it:
sudo gedit /etc/apt/apt.conf.d/50unattended-upgrades

Add "Google\, Inc.:stable"; to the allowed origins:
Unattended-Upgrade::Allowed-Origins {
    "${distro_id} ${distro_codename}-security";
//  "${distro_id} ${distro_codename}-updates";
//  "${distro_id} ${distro_codename}-proposed";
//  "${distro_id} ${distro_codename}-backports";
 "Google LLC:stable";
};

Test
Use sudo unattended-upgrade --dry-run to test, if all came clear you should be having updates to Google Chrome installed without any intervention from you.

To check that it's working tail the log after the dry run:
cat /var/log/unattended-upgrades/unattended-upgrades.log

and you should see something along the lines of this in your log:

2011-10-11 18:03:23,292 INFO Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=Google, Inc.,a=stable']

You can change the configuration of the unattended updates by editing the file /etc/apt/apt.conf.d/10periodic, options for the configuration are in the /etc/cron.daily/apt script header. Read them to configure the frequency of the unattended updates.


How can I rotate my display in the most easy way?

Go into Keyboard -> Shortcuts, select "Custom Shortcuts", and press "+" to add a new shortcut.

"Name" is a descriptive name for the action (i.e. "Rotate monitor"). In "Command" type the custom command to run when the shortcut is activated.

Once the shortcut is in the list, select its row, press ENTER, then the key combination you want to activate the shortcut. If there's a conflict, the shortcut manager will tell you so, and you can choose a different combination.

You can have shortcut to enable rotated display and another to bring it back to an upright position. You can even, if you're knowledgeable enough, write a command that maintains state and just toggles between upright/rotated.

Now, as for the command you need to use, it's probably xrandr:

xrandr --output HDMI1 --rotate left

xrandr --output HDMI1 --rotate normal

The output parameter depends on which port your monitor is plugged into. To see what you currently have, type:

xrandr -q

Mine says:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1366x768       60.0*+
   1360x768       59.8     60.0
   1024x768       60.0
   800x600        60.3     56.2
   640x480        59.9
VGA2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

In this case my --output would be LVDS1, as all the others are disconnected.


Driver Intel Wireless-AC 9560 suddenly stops working

What fixed my problem:

The wireless was not working on windows as well, even after reinstalling the driver from the official source. What fixed the problem was resetting the BIOS settings in BIOS. Now both the Windows and the Ubuntu wireless is working as before. I still don't know the reason for the wireless stop working on the first place.

I will keep my question in case someone needs this solution, I can see that this question Cannot detect wireless driver intel ac wireless 9560 [logs included] is not solved yet and I think it is related but I don't have reputation to be able to answer there.


Where can I get Ubuntu 15.10 Wily Werewolf DVD label and DVD cover image?

I made one myself, with help of this site

Here is it.. sharing with love.

Can also be downloaded here.