First install nvidia drivers and then reboot it.

Open terminal and then make changes to /etc/X11/xorg.conf file to adjust HorizSync and VertRefresh under Section "Monitor" to achieve desired screen resolution.

For better battery backup, I would recommend you to install Jupiter package from Software center. Then optimize the configurations in it.

try checking your cpu temperature with the command "acpi -t" before and after installing the Jupiter package.

You will feel it much better now.


Try to repair the file system

Depending on file system, there are different ways that you can try to repair it according to this link:

Repair the partition table and file system of a pendrive.

S.M.A.R.T. information

You should also check the 'hardware health', the S.M.A.R.T. information according to the following link:

S.M.A.R.T. information of HDD and SSD


As @Panther mentions is to run the command:

nano ~/.fluxbox/init

Then over the file change the following (search by pressing Ctrl+W):

session.screen0.toolbar.tools:  prevworkspace, workspacename, nextworkspace, clock, prevwindow, nextwindow, iconbar
session.screen0.toolbar.autoHide:       false
session.screen0.toolbar.visible:        false

Note:
As you saw over the session.screen0.toolbar.tools: setting just remove the systemtray option ;)


Try to correct Windows filesystem with Windows:
see WubiGuide - Cannot boot into Ubuntu
Then boot into live usb and try to correct Ubuntu filesystem.
Type sudo blkid to decide which partition is your Windows partition with the Wubi disk
Type sudo mount /dev/sdax /mnt to mount your Windows partition with the Wubi disk. Replace /dev/sdax with /dev/sda1, /dev/sda2, /dev/sda3 or /dev/sda4 depending of your decision in step 3.
Type sudo e2fsck -pv /mnt/ubuntu/disks/root.disk to check Ubuntu filesystem within Wubi disk.
Type sudo mkdir /wubi to create a folder for your Ubuntu data.
Type sudo mount -o loop /mnt/ubuntu/disks/root.disk /wubi to mount Wubi disk with your Ubuntu. All your data should be now in folder /wubi.
Sometimes it is necessary to perform commands within your Ubuntu system. If you need the environment of your Ubuntu system, you can type the following commands:

sudo mount -o bind /mnt /wubi/host

sudo mount -o bind /dev /wubi/dev

sudo mount -o bind /proc /wubi/proc

sudo mount -o bind /sys /wubi/sys

sudo chroot /wubi

your commands

exit

sudo umount -a

I found it at ubuntuusers.de. It is in German but the commands are the same of course.


gparted may not allow you to resize the mounted & active root / partition when you are logged into Ubuntu (i.e. mounted /). There are many solutions to resize the root partition depending on your knowledge and experience. However, I would suggest using the gparted live CD. Burn the iso to USB or CD and boot your system from it. Once booted, you can make changes to the root partition and the root filesystem. Bonus for using gparted is that it gives you GUI.

gparted Live CD


Can I install Ubuntu 12.10 on a external harddrive USING the Windows installer?

In theory, yes. You will need to install the bootloader and grub on the Windows drive though to avoid issues with dual booting. Then even if you unplug the drive, you should still have a functioning grub instance before you plug the drive in again. Just be aware that this is a bad way to set up dual operating systems. ie. you might as well do it on the same drive.


How can I add the Network Manager Applet to the panel after removing?

You have to add the Notification Area applet to the panel. The network manager will show up there.


16.04 recent install low graphics mode error

I faced the same infamous "Low graphics mode" issue after upgrading to 16.04 out of my curiosity from 14.* LTS. I tried installing/uninstalling graphics drivers (open source/official), configuring/reconfiguring various desktop managers, trying various previous kernels, installing/reinstalling GL/mesa drivers via apt-get, removing ~/.*authority, creating xorg.conf, changing/fixing/blacklisting graphics kernel modules and so on, but nothing worked

Finally, I saw that /etc/lightdm/lightdm.conf didn't have any greeter-session at all. So, added greeter-session=unity-greeter and then got the lightdm login page instead of flickering black screen saying "System program problem..." dialog box appearing and
disappearing every few seconds.

Then, I got into another infamous issue - login loop. For this, I switched the desktop environment to GNOME metacity as none of the other worked - Ubuntu, Unity8 Mir, Gnome Compiz, etc. Finally, I was able to login, but "system settings" was having issues - unity-control-center and gnome-control-center were crashing with SegFault.

So, I installed the latest built mesa driver from mesa-12.* sources (only half built as there was some llvm error but installed the so far stuff anyway which included
the intel drivers as I saw), and at last "system settings" opened successfully.


Files transfered from Windows have owner "Nobody". No file can be opened through Ethernet by Windows

Set this in your smb.conf:

[MyShare]
comment = My Share
#other fields here for the share
path = /shares/MyShare
force user = thisuser
force group = thisgroup

(I got this from this page)


Why my Ubuntu block wlan & how to unblock?

Your wifi might be disable for several reasons. I suggest you look into the logs (journalctl -b -0 if you use a recent version of Ubuntu).

This might be a problem with your network-manager configuration (assuming you use network-manager to access Internet, which is the default in Ubuntu), which can be found in the folder /var/lib/NetworkManager/.

EDIT:
It can also be a problem with your kernel driver. I found that on this site: Cannot change soft block setting to "no" for AR9287 Wireless Network.


If you have the drivers for the surveillance camera, try to install the drivers for it in your Windows 10 host. Then, connect the USB (or whatever kind of connection you use) to your Ubuntu 17 guest from the USB icon or from the settings. I'm not sure if this is correct or right. Contact me for more.

Bajiru :)


The most secure way to do this would be to set up certificates and not use a password. How to setup ssh certificates

Then you can create aliases for each server in you bashrc:

alias ssh_server1='ssh user@server1'

You could also use a program called sshpass that allows you pass the password as an argument. Then you could set up aliases using that. I'm not really familiar with the program. I would recommend the first option.


Where do I get PHP-CGI binaries for Ubuntu?

You dont have to compile Phpcgi, Ubuntu packages have that already configured.
I haven't configured with NginX, but with Apache you can configure using the following command,

sudo apt-get install php5-cgi libapache2-mod-php5

You need to enable the cgi mod using 'a2enmod'

sudo a2enmod php5-cgi

After which you need to restart Apache service.

sudo service apache2 restart

As to NginX and FastCGI, look into the following links,

1, https://help.ubuntu.com/community/Nginx

2,https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04


Ubuntu 18.04.1 does not boot without ethernet cable

I usually see this when I use static ip addresses on my virtual machines. As the networkd needs to setup your network or add your system to the network using this values so if the network isn't available it won't boot.

Modify your configurations and add the optional: true to prevent the system from wating during boot.

network:
  version: 2
  renderer: networkd
  enp0s25:
    addresses: [ 192.168.1.100/24 ]
    gateway4: 192.168.1.1
    nameservers:
       addresses:
         - "8.8.8.8"
         - "8.8.4.4"
    optional: true

Then try sudo netplan try and if all goes well apply sudo netplan apply.

Excerpt:

  Prevent waiting for interface
  Interfaces that are not required for booting or should not be waited on during boot should have the optional: true key added to them. This will prevent long delays in booting for interfaces that may not come up.

See: https://netplan.io/faq


Ubuntu can't configure proper gateway at boot

Click your network icon
Edit connections.
Select the first wired connection (eth0)
Edit
In the IPv4 settings, click Routes.
Check the bottom box.

I think that should do it, but I haven't actually tried it myself, so it would be nice with a comfirmation.


Dual boot windows 8 - ubuntu ; upgrading to windows 10

I did it by run live-cd with Ubuntu (can be any other distro) and install boot-repair. Everything is written here: https://help.ubuntu.com/community/Boot-Repair

Run in live-cd terminal

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

Then just click Recommended Repair. This works, i have used it a few times.


You should know how a machine commonly (always) reaches the internet.

It has a local IP, typically in one of the RFC 1918-addresses, like 192.168.132.118 is an example of.

Commonly home networks employ the subnet mask of 255.255.255.0 (or in CIDR-notation: /24). This means that everything from 192.168.132.1 to 192.168.132.254 is assumed reachable on the local network.

But to reach something outside the local network, you have to go via a router, that forwards packets for you. This is commonly called a gateway. The gateway has one IP in your local subnet (e.g. directly reachable), and one address in another network, and a routing table specifying how to reach other hosts.

To set a route, use ip:

ip route add default via 192.168.132.1

This of course assumes that your router is reachable at 192.168.132.1. Your router has to be in the same subnet as you set your IP to.

But my real question is why you would want to change your IP. You probably don't.

In addition, you may have to set DNS servers to suitable values.


Amd driver (fglrx) for ubuntu 12.04.5LTS

You can not install fglrx-legacy drivers, because Ubuntu 12.04.5 has too new Xorg stack.

You can downgrade Xorg by running

sudo apt-get install xserver-xorg libgl1-mesa-glx xserver-xorg-input-all

You also need to downgrade kernel too. This can be done with

sudo apt-get install linux-generic

Then you will need to boot with kernel 3.2 using grub menu. After that remove all 3.13 kernels using Synaptic.

Then legacy drivers may be installed by

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update
sudo apt-get install fglrx-legacy

After that you will be able to install legacy AMD drivers that support your video card.


How to get rid of 'Picture CD' label for hard drives

Apparently if there is a directory named "pictures" in the first level, Ubuntu marks it as a picture CD. It is a known bug. Here another one. This started with Intrepid and has not been addressed (well, it might have been seen as a feature...).

Warning: there is also the same issue where it shows "applications".

Easiest work around:change the directory name.
Uninstalling Brasero will make the notification go away.


Problem Finding Server error trying to go online after bootup

So you have an intermittent network problem... Does your computer only have the wifi connection, or does it have a wired connection as well?

Quoting your troubleshooting output:

ip route

>default via 192.168.1.254 dev wlp6s2 proto static metric 600
>192.168.1.0/24 dev wlp6s2 proto kernel scope link src 192.168.1.86 metric 600

ip addr

>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>    inet 127.0.0.1/8 scope host lo
>        valid_lft forever preferred_lft forever
>    inet6 ::1/128 scope host
>        valid_lft forever preferred_lft forever
>2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
>    link/ether 00:0b:97:31:92:83 brd ff:ff:ff:ff:ff:ff
>3: wlp6s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
>    link/ether 00:13:ce:44:4c:5e brd ff:ff:ff:ff:ff:ff
>    inet 192.168.1.86/24 brd 192.168.1.255 scope global dynamic wlp6s2
>        valid_lft 85976sec preferred_lft 85976sec
>    inet6 2602:306:358b:2df0:d81c:cace:8e01:5065/64 scope global

shows that your wireless connection is up, connected to network 192.168.1.0/24, with a DHCP address of 192.168.1.86 and going through gateway 192.168.1.254 to connect to the internet. Your default route is set to use that gateway.

So far, nothing looks wrong. Does it give you the "Problem Finding Server" message when you try to connect to a particular server, or does it say that for anything on the internet?

Can you ping gateway 192.168.1.254 when you are stuck in this state?


not able to ping/connect to rhel machine on virtual box from my Ubuntu desktop

It seems like a problem which cased by Virtual Box networking set to NAT.

Setting the networking to be Internal networking or Host-only networking should solve the problem.

From Virtual box manual:

  6.7. Host-only networking

  Host-only networking is another networking mode that was added with
  version 2.2 of VirtualBox. It can be thought of as a hybrid between
  the bridged and internal networking modes: as with bridged networking,
  the virtual machines can talk to each other and the host as if they
  were connected through a physical Ethernet switch. Similarly, as with
  internal networking however, a physical networking interface need not
  be present, and the virtual machines cannot talk to the world outside
  the host since they are not connected to a physical networking
  interface.

  Instead, when host-only networking is used, VirtualBox creates a new
  software interface on the host which then appears next to your
  existing network interfaces. In other words, whereas with bridged
  networking an existing physical interface is used to attach virtual
  machines to, with host-only networking a new "loopback" interface is
  created on the host. And whereas with internal networking, the traffic
  between the virtual machines cannot be seen, the traffic on the
  "loopback" interface on the host can be intercepted.

  Host-only networking is particularly useful for preconfigured virtual
  appliances, where multiple virtual machines are shipped together and
  designed to cooperate. For example, one virtual machine may contain a
  web server and a second one a database, and since they are intended to
  talk to each other, the appliance can instruct VirtualBox to set up a
  host-only network for the two. A second (bridged) network would then
  connect the web server to the outside world to serve data to, but the
  outside world cannot connect to the database.

  To change a virtual machine's virtual network interface to "host only"
  mode:

  either go to the "Network" page in the virtual machine's settings notebook in the graphical user interface and select "Host-only
  networking", or
  on the command line, type VBoxManage modifyvm "VM name" --nic<x> hostonly; see Section 8.8, “VBoxManage modifyvm” for details.

  Before you can attach a VM to a host-only network you have to create
  at least one host-only interface, either from the GUI: "File" →
  "Preferences" → "Network" → "Host-only network" → "(+)Add host-only
  network", or via command line with

VBoxManage hostonlyif create

  see Section 8.37, “VBoxManage hostonlyif” for details.

  For host-only networking, like with internal networking, you may find
  the DHCP server useful that is built into VirtualBox. This can be
  enabled to then manage the IP addresses in the host-only network since
  otherwise you would need to configure all IP addresses statically.

  In the VirtualBox graphical user interface, you can configure all
  these items in the global settings via "File" → "Preferences" →
  "Network", which lists all host-only networks which are presently in
  use. Click on the network name and then on the "Edit" button to the
  right, and you can modify the adapter and DHCP settings.

  Alternatively, you can use VBoxManage dhcpserver on the command
  line; please see Section 8.38, “VBoxManage dhcpserver” for details.

Setting up ssh server:

Instructions how to set ssh server on CENTOS can be found here
Instructions how to set ssh server on Ubuntu 16.04 can be found here


APT goes straight to "Abort" when prompting for confirmation

I recently had the same issue when doing an apt upgrade which was aborting just after asking for Y/N confirmation.

  sudo apt upgrade

I tried my usual workaround and tried to upgrade on a new terminal. Surprisingly, it worked. I realized, it was a problem with that particular terminal.
After researching on why this happened, I found this:

Why does apt-get abort by itself, as though I'd pressed 'N'?

This says that the apt command aborts if it is unable to take input from stdin for an interactive command.

So one can use sudo apt -y upgrade to skip asking for user confirmation as a workaround.


Is there a way to use wild cards, redirection or other shell syntax with systemd units?

From man 5 systemd.service (section "Command Lines"):

This syntax is inspired by shell syntax, but only the meta-characters and expansions
described in the following paragraphs are understood, and the expansion of variables is
different. Specifically, redirection using "<", "<<", ">", and ">>", pipes using "|",
running programs in the background using "&", and other elements of shell syntax are not
supported.

And:

Note that shell command lines are not directly supported. If shell command lines are to be
used, they need to be passed explicitly to a shell implementation of some kind. Example:

   ExecStart=/bin/sh -c 'dmesg | tac'

Wildcards are not mentioned as being supported, so you'll have to wrap that command in /bin/sh -c or /bin/bash -c like in the above example.


Where is the icon for Mounted Drives Stored?

It depends on the icon theme you are using.

Following example is for Ubuntu 18.10 hard disk drive mounting.

Please note that the path for different types of mountings for example HDD Drive mounting, SSD Drive mounting, USB Drive mounting, External Drives may vary slightly.

When the icon theme is LoginIcons, it is located at -
/usr/share/icons/LoginIcons/apps/48/drive-harddisk.svg

Humanity theme -
/usr/share/icons/Humanity/devices/48/drive-harddisk.svg

Yaru theme -
/usr/share/icons/Yaru/48x48/devices/drive-harddisk.png


How can I get the monitor resolution using the command line?

Taken from this answer:

xdpyinfo | grep dimensions

Or to get just the resolution:

xdpyinfo | awk '/dimensions/{print $2}'

OR

xdpyinfo  | grep -oP 'dimensions:\s+\K\S+'


Is there a version of Ubuntu Server that will install from a USB drive?

You can install any of the bootable .iso ubuntu images using the guides for various systems here:

https://help.ubuntu.com/community/Installation/FromUSBStick

Just be sure to download and supply the path of the .iso image you wish to use when following the above instructions.


I found that option among commands that you can assign the shortcut to in Window Manager Settings via Whisker menu → Window Manager → Keyboard → Switching between windows of the same program. (Translation mine, so official one may vary.)

In my case it's Super+Tab, but I think it was empty by default.


Display a text message when running a specific command

Typically, when there are things that have to be done before an actual command runs - such as providing and setting up environment variables, adding extra positional parameters, etc - the command is placed into a wrapper script. How it should be implemented - that depends on the specific command you want and things you want to check before actual command runs. In the very simple case such as git, you could do something along the following lines:

#!/bin/sh

printf "%s\n" "Did you check the conf files, did you update the requirements file?[y/n]"
read answer

case "$answer" in
    [Yy])  exec git commit -a ;;
    [Nn]) printf "%s\n" "Please check. Exiting"; exit 1 ;;
esac

Of course the next question is the naming of the command. This script could be named git-commit or something similar. I would advice against naming wrapper scripts same as the original application.

See also:

In Bash, how to add “Are you sure [Y/n]” to any command or alias?
Add flag to existing terminal command


My guess is you don't have the alsa-devel package installed, so when you compiled jackdmp it couldn't link to alsa.

Install that and recompile and I'm sure it'll work


I have only one scanner installed. But Ubuntu shows two

It is only one device, but accessing via two different methods. I presume this device is connected to your network for printing and scanning, as well as connected to your computer via USB. The second entry in that list is for accessing the device over the network (see the ip=192.168.1.104 bit.

To get rid of one of the entries, you can either disconnect it from your PC directly, and scan over network, or disconnect it from the network and only scan over USB. Or leave it as is, and do either.


Cannot add-apt-repository ppa:nemh/systemback on ubuntu 14.04

Add the PPA to the software sources:

sudo apt-add-repository ppa:nemh/systemback

... and you will see something like this:

 Simple system backup and restore application with extra features

Systemback makes it easy to create backups of the system and the users configuration files. In case of problems you can easily restore the previous state of the system. There are extra features like system copying, system installation and Live system creation.

This PPA contain the stable version of Systemback.

Currently supported Ubuntu releases:
- 14.04.X LTS
- 15.04
- 15.10
 More info: https://launchpad.net/~nemh/+archive/ubuntu/systemback
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpiv2ysmqh/secring.gpg' created
gpg: keyring `/tmp/tmpiv2ysmqh/pubring.gpg' created
gpg: requesting key 73C62A1B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpiv2ysmqh/trustdb.gpg: trustdb created
gpg: key 73C62A1B: public key "Launchpad PPA for Kendek" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK


Anyone hasn't answered, so I write the results of my search:

https://sites.google.com/site/easylinuxtipsproject/ssd

What SSD optimization are needed on latest Ubuntu version?


drm/radeon, adds pm sysfs files late. Added early in the driver init provess which means that in some cases driver was not finished initializing before other tools try to use it which could results in a crash report depending on bad timing.

I think this issue has been fixed in kernel 4.3


Why does sysinfo list my CPU as having 1,6GHz when I have an i5-2300 CPU @ 2.80GHz?

It's probably just because the processor frequency has dropped to save power due to it being idle. If you run a processor intensive task and look again you should hopefully see the correct frequency.
You can also see this information by running cat /proc/cpuinfo in a command line. For example, my computer has one core currently heavily loaded. Along with a load of other information I get this for the heavily loaded core:

model name      : Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
cpu MHz         : 3060.000

So that just about matches up with the 3.07GHz. For another core I get:

model name      : Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
cpu MHz         : 1596.000

The current frequency is halved over the maximum.


Unable to restart Nautilus (required by Dropbox)

Try

sudo nautilus -q

or install a newer Nautilus for 14.04/13.10 from here

EDIT: What I forgot, after installing Nautilus 3.12, you will have to reboot -> sudo reboot

Report back if it worked ;)


First,

make sure your internet connection is good and stable, try to stick with a trusted server (if you recently changed apt-get server change back to one of the main servers).

Then,

move the file prompting the error:

cd /var/lib/apt/lists/partial/
sudo mv extras.ubuntu.com_ubuntu_dists_precise_main_i18n_Index main_copy

update gpg key:

gpg --keyserver keyserver.ubuntu.com --recv 40976EAF437D05B5

rebuild cache:

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial

Finally,

update, clean, autoclean, and autoremove for good measure before attempting to upgrade again:

sudo apt-get update && sudo apt-get clean && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get upgrade

You could replace sudo apt-get upgrade with sudo apt-get dist-upgrade if that is what you were originally aiming for in the first place.

If you encounter any errors, please post them.

sources:

https://unix.stackexchange.com/questions/82707/failing-on-apt-get-update

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

and

http://ubuntuforums.org/archive/index.php/t-1967783.html


I've the issue with Suspending system in Ubuntu 16.04LTS

$ cat /lib/systemd/system-sleep/wpasupplicant
#!/bin/sh
set -e

if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then
    case "$1" in
        pre) /sbin/wpa_cli suspend ;;
        post) /sbin/wpa_cli resume ;;
    esac
fi

You have a problem with /sbin/wpa_cli, which is part of the wpasupplicant package.


How to fully convert Ubuntu to Ubuntu Gnome (not just installing Gnome)?

sudo apt-get install gdm
sudo apt-get install gnome-shell
sudo apt-get install ubuntu-gnome-desktop

And when PC asks which display to use, select "gdm".

Installing Ubuntu GNOME Applications: Type these commands:

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-weather gnome-music gnome-maps cheese gnome-documents

This should do the trick. This does not install GNOME on your desktop-it gives you the full Ubuntu GNOME Experience without installing a fresh OS.


I found the archlinux AMDGPU page quite useful for this though a little dated. They have some links to various tools the most useful of which I found to be https://github.com/sibradzic/amdgpu-clocks, which is a handy script for doing what you want along with having some useful pointers in the readme.


How to download Ubuntu over an unreliable connection

In my case my connection drops a lot and if trying to download the ISO directly I also end with a MD5 problem. What I recommend is downloading the ISO image through a torrent client.

That way, even while downloading, the torrent client checks to make sure it is OK. There is a good list of torrents to use but if you are in Windows or Mac, I suggest UTorrent. If you are doing this from an Ubuntu installed computer, Ubuntu comes with a default torrent client called Transmission .

You can find the torrent download file in the ubuntu site just look for the file with the .torrent file extension.


Using built-in wifi and not external adapter

Go to the Network icon in the top panel and choose Edit Connections. Edit the wireless network profile of your choosing. Find the Device field, and select the popup, and choose the desired wireless adapter desired for that connection.


Arch and Ubuntu are very different distributions, relying on totally independent package managers. Package names may therefore be different. You will have to go through your packages.txt file and change Arch packages to "equivalent" Ubuntu packages. Unless someone already scripted this, that will be a manual job.
Better yet: just take a little time to adapt your system while you are working with it. When it is tweaked the way you want, you can retrieve a list of installed ubuntu packages for future reference.


Oh hey i figured it out. Yay. I followed the instructions here: https://www.reddit.com/r/SolusProject/comments/53nvcm/help_screen_flickering_on_rx_480_with_amdgpu_on/?st=jcidz4k7&sh=3ec07c37

This is what it says:
Open up a terminal and run

sudo gedit /etc/X11/xorg.conf.d/20-amdgpu.conf

A blank document will pop up. Inside, you need to paste in this stuff.

Section "Device"

Identifier  "Radeon RX 480"

Driver "amdgpu"

Option "AccelMethod" "glamor"

Option "DRI" "3"

Option "TearFree" "on"

EndSection

Why this isn't an automatic setting is beyond me. Ah, Ubuntu. I love you so much.


How do I install a non-PAE kernel on PAE-enabled hardware for Ubuntu 12.04?

32-bit 12.04 currently comes with a PAE kernel but I need to get a non-PAE kernel.

It's as simple as doing this on your existing 32-bit 12.04 installation:

sudo apt-get install linux-image-generic

followed by a this to remove the PAE kernel (so the system boots from the non-PAE by default):

sudo apt-get remove linux-image-generic-pae
Alternatively, comment out the GRUB_HIDDEN lines in /etc/default/grub and run sudo update-grub to display the grub menu upon boot, from which you can select the kernel to use.

If you want to install a non-PAE kernel as part of a new installation, start with Xubuntu or Lubuntu 12.04 32-bit, both of which come with the non-PAE kernel. Once running, you can run sudo apt-get install ubuntu-desktop to get the full Unity desktop experience.
In general, the two common kernel suffixes for 12.04 are:

-generic (non-PAE for 32-bit; standard for 64-bit)
-generic-pae (PAE and default for 32-bit only)


squidGuard: error while loading shared libraries: libdb-6.0.so: cannot open shared object file: No such file or directory

Heloo, may be, you can test, this command.

root@proxy-serv:~ # apt-file search libdb-6.0.so
libdb6.0: /usr/lib/x86_64-linux-gnu/libdb-6.0.so

root@proxy-serv:~ # ls -al /usr/lib/x86_64-linux-gnu/libdb-6.0.so
ls: cannot access /usr/lib/x86_64-linux-gnu/libdb-6.0.so: No such file or directory

root@proxy-serv:~ # cd /usr/lib/x86_64-linux-gnu/
root@proxy-serv:/usr/lib/x86_64-linux-gnu# ln -s /usr/local/BerkeleyDB.6.0/lib/libdb-6.0.so ./

Done.


Device or Resource busy when trying to use mv

I solved the problem by using cp -R rather than mv.


gedit 'broken' after update on Ubuntu 13.10

Correct me if I'm wrong but aren't you saying that gedit will not work when your PYTHONPATH looks like this:

  /usr/local/Madagascar_1.5/lib/python2.7/dist-packages:/usr/lib/python2.7:/usr/local/lib/python2.7:/usr/local/Madagascar_1.5/lib/python2.7:/usr/local/Madagascar_1.5/lib/python2.7/dist-packages:/usr/local/Madagascar_1.5/lib:/usr/lib/python3

But when you manually change it with export to

  /usr/lib/python3

It works fine?

Is there any reason why you would want the path to look like in the first example all the time? You could make it to that by adding the export command to ~/bash.rc

edit: Also, could you experiment and try putting the part that gedit likes, /usr/lib/python3, at the start of the path and then the rest of it afterwards, rather than having python3 right at the end? Maybe it uses "short circuit logic" and chooses the first one it finds that works.


KVM/virt-manager fails to find/load ROMs

Check the status of SELinux with the following command:

  sudo getenforce

if Enforcing, then try:

  sudo setenforce 0

Just a thought.


Long time ago from this question but maybe someone will read this nowadays.

I was getting the same "Can't set Simple Pairing mode on hci0: Operation not permitted (1)" after a long search and did not found nothing about it I had the happy idea of make "sudo hciconfig hci0 sspmode 1" maybe I could not found any information about because it is too obvious :)!

Hope this will util for someone.


How do I make it my primary OS 16.04 LTS Ubuntu

So you have two options.It's basically Ubuntu-App way or GParted way.

1)Ubuntu-App way

Connect your live USB to the machine and choose "try Ubuntu without installing". After it booted up to the screen, open commandline and type

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

After that, OS-Uninstaller will open and asks you which OS do you want to remove. You choose Windows and it will delete the OS and keep your Ubuntu.

2)GParted way

This way is little bit longer than the other way. You boot your machine with live USB and open the app "GParted". Here, you can see your partitions. Windows partitions are usually formatted as NFTS, so you can see them easily. Choose NFTS partitions and delete them.

After deleting there will be exist a "Unallocated" partition. Choose your Ubuntu partition, right click and select "Resize" option. Here you can add these unallocated space to Ubuntu.

Last, perform actions that you did in the GParted app. Reboot the machine and Windows will be gone for good. If you see Windows option in the GRUB menu, you can write sudo update-grub to update your GRUB options.


Crashes when using gnome tweak tool with Gnome 3.4.1

I got this error doing

apt-get remove gnome-tweak-tool
apt-get install gnome-tweak-tool

And

apt-get install gir1.2-gnomedesktop-3.0

worked for me

Credits to robytrevi from the portuguese ubuntu forum


What is this error "end kernel panic" (while trying to install virtual ubuntu machine)

I've faced this issue, and after many trials, I remembered my BIOS did not have virtualization enabled. After I enabled this option in BIOS setup, everything is working fine. (Intel does not have an option for that)


How can I rip an audio CD to an ISO image?

It got a little hard to use before 10.04 came out. In older versions the option to rip to ISO existed. Not anymore. I strongly suggest using AcetoineISO for that it is like Daemon Tools in Windows but better, you can convert image formats to ISO, mount them in special ways, etc... Any way if you still want to use it, when creating the new image rename .toc to .iso. This is for creating a direct image from a CD.

if you want to transform the .cue .bin .nrg .whatever else to ISO use acetoineISO which makes it very very easy to use. ( sudo apt-get install acetoneiso OR sudo aptitude install-get install acetoneiso )

If you want to do it via terminal then first install the needed programs:

sudo apt-get install bchunk ccd2iso mdf2iso nrg2iso or sudo aptitude install bchunk ccd2iso mdf2iso nrg2iso

Then depending on the source format you can do in the terminal:

From CUE+BIN --> ISO:

bchunk source.bin source.cue destination.iso

From MDF --> ISO:

mdf2iso source.mdf destination.iso

From IMG --> ISO:

ccd2iso source.img destination.iso

From NRG --> ISO:

nrg2iso source.nrg destination.iso


Boot into Windows Vista
Right click on "computer" and click "manage"
click on "disk management"
select the disk where you want ubuntu to be installed
right click and click "shrink". This will take some of the free space of your disk and creates a separate partition
enter the amount of space for the new partition (50000mb or 50GB)
perform a quick format select NTFS
remember the drive letter of the new empty partition
insert ubuntu installation disc and restart
click install ubuntu
choose something else
on the dropdown menu, select the newly created partition and INSTALL
choose ext4


Use pmount instead of mount.

  pmount ("policy mount") is a wrapper around the standard mount program which permits normal users to mount removable devices without a matching /etc/fstab entry.

Probably want the ...

  -w, --read-write

  Force the device to be mounted read/write. If neither -r nor -w is specified, the kernel will choose an appropriate default.

So you can drop the fstab entry and do not need to add the user to the disk group.

It allows mounting anywhere under /media/ if the device is listed in /etc/pmount.allow so it will also solve any permissions problems.


How to resolve "/bin/sh: 1: sshfs: not found" when trying to mount remote drive?

You need to install sshfs before you go further.

sudo apt-get install sshfs

Now, you should test that everything is working correctly. You should try mounting your server with.

sshfs -o idmap=user $me@server:/ /mnt/review/dori

If that works, unmount the directory with

fusermount -u /mnt/review/dori

The use the second line you posted about from /etc/fstab.

sshfs#me@server:/    /mnt/review/dori    fuse    defaults,user,noauto,idmap=user,allow_other 0 0


Why is apt-get always using proxy, although no proxy is configured?

I'm using a script to replace different configuration files in order to easily switch between proxy and non-proxy environements. The problem was that I replaced the proxy apt.conf file with an empty apt.conf file, which apt then ignored.

After writing Acquire::http::Proxy "false"; into the apt.conf it worked without proxy :)


Where to check if a cron job was ever run?

On a default installation the cron jobs get logged to

/var/log/syslog

so you can check it there.

To see just cron jobs in that logfile by running

 grep CRON /var/log/syslog

EDIT:

Check this link to learn more how to read log file of cron and how to determine which job has ran or no


What you are describing does seem to be a bug because the software should let them know that uppercase letters are not allowed. Here is the bug tracker for Ubiquity: https://bugs.launchpad.net/ubiquity - please report the bug there.

Also, to make general suggestions about Ubuntu, you can make them at Ubuntu Brainstorm (http://brainstorm.ubuntu.com/) where the community will help vote up the best ideas for implementation.


Controlling the left-right alignment of columns in Files / Nautilus in Ubuntu 16.10

In a Nautilus file manager window, showing in list mode, right-click on the Name column title and add ANY column AFTER the Modified-Time column. Then you can grab the Modified-Time column right width handle and move it to the desired column width. Then right-click on the Name column title again, and remove the extra column that you no longer need.

Or, using the same method to select/deselect columns, enable Modified and disable Modified-Time.


Firefox: Delete history containing /foo/

Open the Library Menu in Firefox pasting the following in the address bar:

chrome://browser/content/places/places.xul

You can open the same in a new Window using ctrl+shift+o.

This is a more advanced site for seeing your Bookmarks and History. Here you can search and mark multiple entries (select all with ctrl+a)


How can I show special characters in a terminal when I copy a file from my local Mac to my remote Ubuntu server?

Using UTF-8 can solve a lot of that problem, but you still have to use HTML entities for reserved XML characters (ampersand, less-than, greater-than). So, either use HTML entities or serve the webpage with an HTTP header that says it's UTF-8. That could be done with an HTML header or META tag:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Or, in the Ubuntu web server change the default encoding:

Apache: AddDefaultCharset utf-8

nginx: charset utf-8;

On the terminal, you know that the server is using UTF-8 (locale), so make sure that your SSH client is set up correctly. For example, if using Putty, we have to set Putty's character set:

Putty: Window->Translation->Remote character set: UTF-8

Otherwise, it will use ISO-8859-1.

And check what format the editor is using.

file file.ext

We should see "UTF-8 Unicode text" if the editor is writing UTF-8 files.


If they are both on the same harddrive and you just completely removed the ubuntu partitions, depending on your windows 8 setup (EFI/Legacy) you may be able to repair it with a live CD. I just fixed MBR with Boot-Fixer with windows on legacy mode.


You need to install libfaudio0 as well, in your Ubuntu 18.04 installation using
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport

You may also need to enable 32 bit architecture, if it isn't enabled using
sudo dpkg --add-architecture i386

So for the whole installation process:
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt update && sudo apt install --install-recommends winehq-stable


Eclipse Kepler crashes on Ubuntu 14.04 when using WindowBuilder

Use the oracle java8 (or version.x) installer.  It fixed all of my problems and was easy.
http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html


How do I use command line arguments in bash?

You need getopts. getopts is a library designed to handle commandline arguments for you, and is generally available in many languages. In bash, you use it like this:

This is borrowed from a tutorial I found:

From="/home/elg19/lone/doc"
To="/home/elg19/documents"

while getopts "d:" optionName; do
    case "$optionName" in
        d) To="$OPTARG";;
        [?]) exit 255;;
    esac
done

[[ -d "$To" ]] || exit 255

cd "$From"
for i in pdf txt doc; do
    find . -type f -name "*.${i}" -exec mv "{}" "$To" \;
done

This is untested, but basically it's just your script with the option to override the "$To" argument with getopts.

The [?] bit tells it to exit if any unrecognised options are found.


vim - running dd range command using command line

:norm iterates over lines with specific addresses, not over lines with specific marks.

Suppose you have this file:

line 1
line 2
line 3
line 4
line 5
line 6

And you execute :2,4norm! dd.
You probably expect getting this file:

line 1
line 5
line 6

But in reality, you'll get this file:

line 1
line 3
line 5

First, :norm executes the dd command on the line whose address is 2; at that point, the file contains:

line 1
line 3
line 4
line 5
line 6

Then, :norm executes the dd command on the line whose address is 3. But since :norm has removed a line in the previous step, all the addresses of the lines below the deleted line have decreased by 1.
So the line of address 3 is not the one containing the text line 3 anymore, but the one containing the text line 4; and :norm deletes the latter; at that point, the file contains:

line 1
line 3
line 5
line 6

Finally, :norm executes the dd command on the line whose address is 4. But again, since :norm has removed 2 lines in the previous steps, all the addresses of the subsequent lines have decreased by 2; and the line of address 4 is not the one containing the text line 4 anymore, but the one containing the text line 6; :norm deletes the latter and the file finally contains:

line 1
line 3
line 5

If for some reason, you really want to use :norm! dd, combine it with :g which contrary to :norm does mark the lines on which it operates before executing its command argument:

:3,15g/^/norm! dd

Or try to reverse the order of the deletions:

:call map(reverse(range(3, 15)), {_,v -> execute(v.'norm! dd')})

Always append a bang to :norm, unless you really want your custom mappings to be taken into account.

If your file is folded, make sure folding is temporarily disabled; execute :setl nofen before the deletions, then :setl fen afterward.


How to get MIDI output from a Windows application via Wine

A simple suggestion: Try installing Timidity, which should provide your Ubuntu with a MIDI synthesizer, enabling it to play MIDI output.


How to reset KDE desktop to default on Ubuntu 14.04?

To reset your USER kde:

mv ~/.kde4 ~/.kde4.old

Then restart your pc. It will set your KDE settings to default..

All the setting will be set to default.


I believe you have a broken iso file due to your saying

Try to download iso via torrent (trust me it's faster) and follow this guide

reboot

go to your bios (usually f2 button) and set the order of boot while usb it pluged in, you should see the name of the usb

ubuntu grub2 will comeout and say install ubuntu and follow standart installation process

also i suggest you to install something like lubuntu instead of full unity  ui bc it might be slow with you kinda specs #nooffense

an ssd might speed up things as well, those things are not expensive nowadays like they first comeout


Gtk-WARNING when loading gedit from shell

Probably the creator of the theme failed to indicate the unit 'pixels' in some places.
the only solution is to modify the theme's configuartion.


You have to specify current folder (./) path when calling executable.
Use command below
./ugsplatform

and if you get any error output please add it to the original question by editing it.


Jenkins error "Incorrect Java version" for Java11. After removing Java11 and installing Java8. java is not found anywhere

I've just encountered this problem, and it actually looks like an issue in /etc/init.d/jenkins testing for the Java version. I just posted a solution here: https://dorian.fraser-moore.com/works/5054500/ubuntu-and-jenkins-found-an-incorrect-java-version , sharing below for those who find this question as first google hit.
Following a recent update to my Ubuntu 20.04.1 LTS dev server my installation of Jenkins stopped running on boot. Checking systemctl status jenkins.service returned back this set of messages
Nov 13 09:35:43 tattve jenkins[1038744]: Found an incorrect Java version
Nov 13 09:35:43 tattve jenkins[1038744]: Java version found:
Nov 13 09:35:43 tattve jenkins[1038776]: openjdk version "11.0.9.1" 2020-11-04
Nov 13 09:35:43 tattve jenkins[1038776]: OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04)
Nov 13 09:35:43 tattve jenkins[1038776]: OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)
Nov 13 09:35:43 tattve jenkins[1038744]: Aborting

Which seemed odd, as jenkins support Java 11 and openJDK, indeed I'd been running that before.
Digging around a bit I noticed the init script in /etc/init.d/jenkins that the script, at lines 56-60, was using SED to extract the version from the java - version command into a numeric value, but the regular expression was a bit to broad
# Which Java versions can be used to run Jenkins
JAVA_ALLOWED_VERSIONS=( "18" "110" )
# Work out the JAVA version we are working with:
JAVA_VERSION=$($JAVA -version 2>&1 | sed -n ';s/.* version "\(.*\)\.\(.*\)\..*".*/\1\2/p;')

It turns out this last line was setting JAVA_VERSION to 11.09 which doesn't match anything in JAVA_ALLOWED_VERSION. I could add 11.09 to JAVA_ALLOWED_VERSIONS to make it run, but a better fix seem to be to fix that permissive sed line. Changing it to:
JAVA_VERSION=$($JAVA -version 2>&1 | sed -n ';s/.* version "\([0-9]*\)\.\([0-9]*\)\..*".*/\1\2/p;')

Did the job. It might help someone else.
[Due Diligence Edit]
It looks like someone has already made a PR for a fix: https://github.com/jenkinsci/packaging/pull/198


What is the recommended way to download Ubuntu new releases ISO? Torrent or official mirror?

Torrents are a great way to go if you are on a home network and the Internet Service Provider (ISP) does not throttle the service when torrent clients are running (My parents had a wireless ISP that did this; most DSL or Cable services will not). Some Linux/UNIX distro maintainers (I.e. Arch Linux) actually recommend that you download via torrent if possible. This is because your total download speeds will be faster due to the nature of torrents. There is also the additional community benefit of lightening the load on official mirrors.

The important part is to make sure that you download the torrent itself from the distribution's official Web site to ensure that you will be downloading a legitimate copy.

If you are not at a private residence or if the ISP where you are does not allow torrenting, mirror downloads will work just fine too.


You need to remove the GobiNet driver before loading qmi_wwan for the probing to work. The devices will be named /dev/cdc-wdm0 and /dev/cdc-wdm1.


Black screen after logging in, after upgrading to 20.04

I thought it was gonna take hours but I found .config/dconf/user to be the culprit. Removing that file restored my ability to login without ending up in a black screen.


How to use sed to edit /var/log/apt/history.log in order to apt-get remove numerous installed packages?

Your problem with the regular expression is its greediness (the * and + quantifiers try to match as much, as they can). Unfortunately there is no way to tell sed to use non-greedy regular expressions. You have to use Perl to accomplish that, although ugly workarounds for sed do exist.

So try the following Perl one-liner:

perl -pe 's/\(.*?\)(, )?//g' /var/log/apt-history.log

That should manipulate the text as you wish. You will find PCRE (Perl regular expressions) very similar to the POSIX / GNU BRE and ERE one sed uses.


Ubuntu 12.10 doesn't recognize Graphic Chip in Intel Celeron G540T

sudo apt-add-repository ppa:glasen/intel-driver
sudo apt-get update
sudo apt-get install xserver-xorg-video-intel

Then reboot

If that gives you problems, then enter the below command to remove it and again, reboot your PC.

sudo rm /etc/X11/xorg.conf


No more bash history, new hidden folders in www directory, what happens to my server?

NOT normal behaviour! Read man bash, the 'INVOCATION' section. Carefully inspect /etc/profile, /etc/bash.bashrc, ~/.bash_profile, ~/.bash_login, ~/.bash_logout, and ~/.profile. Additionally, look at  all files source'd (or .ed) in those files.

In a running shell, look at

echo "HISTFILE=$HISTFILE"
echo "HISTFILESIZE=$HISTFILESIZE"
echo "PATH=$PATH"
echo "PS1=$PS1"


Here is a quick and easy tutorial for setting up disk quotas.  It also defines the differences of hard quota and soft quota.  It also shows how to set a grace period.

It is generic and should work under any version of Ubuntu.

Hope this helps!

disk quota 5 steps


How do I give myself fast access to pasting some common strings?

You can install autokey with  sudo apt-get install autokey-gtk for the GTK+ version or sudo apt-get install autokey-qt for the Qt version.

autokey allows you to define abbreviations which when typed in anywhere in your xsession will expand to a defined phrase: E.g I defined an abbreviation xyy for the phrase Thank you for your help. I ticked in the Always prompt before pasting this phrase option in the autokey configuration. From now on, anywhere I type xyy and hit a space, a small pop-up appears, which I can select with a down-arrow key and an ENTER and the typed xyy is replaced with the phrase Thank you for your help.

If you don't tick in the "prompt before pasting" option then the abbreviation is replaced immediately after you hit space. You can also define scripts, like for inserting the current date.

I use autokey-gtk on 12.04 which has a minor problem that the autokey tray icon doesn't show up on the panel. To correct this just launch dconf-editor and add 'Autokey' to the Desktop->Unity->Panel->systray-whitelist array. E.g. for me it contained ['JavaEmbeddedFrame', 'Wine', 'Update-notifier'] and I modified it to ['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Autokey']. If you are using Unity2D then this won't solve the problem because of a bug in Unity2D. For Unity2D you have to change the array to ['all'] to whitelist every app. After these modifications log-out/log-in and the tray icon should be visible now.

Don't forget to set autokey to start up on login, on the Edit->Preferences->General
 tab.


Virtualbox 5.1.8 does not start headless VM

I recently moved from VB 5.0.28 to VB 5.1.8.  My Win 7 virtual machine began random BSD (blue screen).  Nothing I tried over a 3 day period (I am not near a VB expert) failed to prevent the problem from occurring.  I backed out to VB 5.0.28 and the problem went away.

Don't work:   Mint 18 (Trusty)
              VB 5.1.8
              Win7 Virtual Machine

Works:       Mint 18 (Trusty)
             VB 5.0.28
             Win7 Virtual Machine

I can not ID anything other than the VB version as the source.  I would try VB 5.0 to solve the problem.


Alternatively you can:

Hold CtrlShift and press u to enter into Unicode Composition mode.
Release CtrlShift.
Then type 0040.
Finally press Enter.


Yes, the online accounts dialog is only a shortcut, meant to configure many applications at once. Facebook is supported in two ways in Ubuntu by default; as a social network and as a chat service. To setup the social networking part, you'll open Broadcasting from the messaging menu (the one with an envelope). It will ask you to enter details for the various networks, including Facebook. To configure instant messaging, open Instant Messaging from the messaging menu. It will also ask for account details. Afterwards, you'll have both Gmail and Facebook chat in Empathy. You can also ask to be notified when users log on and off, which means when they open Facebook or Gmail in their browsers, or when they start Empathy if they've set it up like you. You do that in Edit > Preferences in Empathy.


Purge the libreOffice first :

sudo apt purge libreoffice

Install libreoffice again :

sudo apt install libreoffice

If your problem is not solved then try :

sudo apt install libreoffice-gtk*


The screenlets.org website is down, probably because it was unmaintained and had lots of spam. Currently you can find documentation in the Web Archive: http://web.archive.org/web/20130314075629/http://screenlets.org/index.php/Documentation


This can be done easily using Disc Utility

First open Disk Utility.

Select the partition you wish to re-name.

Next click Edit File System Label

Enter your password as prompted.

Change the name as required and click apply.


Resolved!!!!!!

Transpired that the issue was nothing to do with lightdm.  An application had been installed that made some custom changes to the /etc/pam.d/lightdm and /etc/pam.d/lightdm-autologin files.  I restored them to their defaults and the issue was resolved.  I'm now seeing exactly what I was expecting.  I hope I've not upset the application in question too much by doing do:-)!!

Thanks to those who bothered to take the time to read this post!


You can try Calibre, which is a GUI for managing and converting ebooks. Also capable of converting to docx.


How to enable the Radeon dynamic power management feature?

Update (8-05-2014): As expected, in Ubuntu 14.04 DPM is enabled by default for all modern AMD GPU's (HD 4000 through HD 7000 series). If you are running this release together with a supported graphics card, you don't need to do anything to use this feature.

Update (28-11-2013): Ubuntu 13.10 ships with the 3.11 kernel by default. So if you are using this release, all you need to do is add the parameter to the Linux Kernel. I updated the guide accordingly. Also, it looks like by Ubuntu 14.04, DPM will be enabled by default so hopefully this guide will be obsolete by then! ;)

Ok, In the last few days I experimented a bit and got it enabled! It's actually really easy once you found out how to do it.. For people who also want to try it, I'll explain every step. Starting with the installation of the new kernel.

First of all a few points to consider. The Radeon DPM support is only for Radeon HD 2000 (R600) series graphics cards and newer. If you're using a really old ATI Radeon graphics card, the power management support is already tapped out on the open-source driver.

Steps for Ubuntu 13.04 or below only:

To use Radeon DPM you need the Linux 3.11 kernel or newer. You can use the Ubuntu mainline kernel PPA and download the latest stable 3.11 Linux kernel image from this kernel.ubuntu.com directory. Any future kernel updates are fine too and can then also be found in this directory.

Using the dynamic power management feature requires updated firmware for the graphics card. The latest Radeon microcode/firmware can be downloaded from this directory. You need the *_smc.bin files from June. If you're unsure of your specific graphics card codename, you can generally find it from looking at output of lspci -v | less ...  The file(s) need to be placed within /lib/firmware/radeon. If you try to use Radeon DPM without the firmware, acceleration will end up being disabled for the GPU. You also need to make sure you have the updated firmware in /lib/firmware/radeon before installing the >3.11 kernel - it will be pulled automagically into the installed image.

Ubuntu 13.10 or lower, or users of Radeon HD 3000 or below:

The Radeon DPM support is not enabled by default below Linux kernel 3.13, or for older GPUs. You must add the radeon.dpm=1 parameter to the Linux kernel to enable it in these cases. For the steps to do so on Ubuntu, see the Ubuntu Wiki about the different ways.

With the new kernel installed, firmware updated and Kernel parameter enabled you should be good to go. You must now reboot your system and you can check if everything is working after that by doing

cat /sys/kernel/debug/dri/64/radeon_pm_info

Note: @luca992 pointed out that the file radeon_pm_info could be in a different directory (for example in /sys/kernel/debug/dri/1/ instead of dri/64/). If you're absolutely sure you followed all steps correctly, you can check if this could be the case in your situation.

You should see something like this:

uvd    vclk: 0 dclk: 0
power level 0    sclk: 22000 mclk: 25000 vddc: 900

You can further configure DPM by opening /etc/rc.local and adding the following line:

echo parameter > /sys/class/drm/card0/device/power_dpm_state

Where "parameter" can be:

battery (a set of performance levels targeted for optimal operation on battery)
balanced (a set of performance levels targeted for optimal every day use)
performance (a set of performance levels targeted for the highest GPU performance)

Sources: http://www.botchco.com/agd5f/?p=57


Can I run Gnome 3 in Classic Desktop and still switch to default Unity?

As far as I know Unity only works with Gnome 2 and both Gnome versions do not really reside side to side with each other.


If I upgrade Ubuntu from an EOL version to a supported version will my data will lost?

The data will be never lost during an update: your data is stored in /home directory, and the upgrade affects the other parts of the system. What might be lost are your app settings and your desktop preferences (it didn't happened never when I made release upgrades, through.).

If you are paranoid, backup your important data to an external HDD, disconnect it, and make the upgrade afterwards.


solved - Asus doesn't resume after suspend

Fine ! I did make it !
... ubuntu wasn't involved to it at the end.
... Finally had to flash the bios.. As it wasn't an update, i did use winflash with /nodate parameter, it did make the job. You should be able to make it with unetbootin as well... but didn't try it.

Thanks to WinEunuuchs2Unix for his help !


Removing required password to used Terminator terminal package

It sounds like you are opening a terminal with admin rights, instead of a standard terminal. You should only use this if you need to perform tasks that require this level of privilige, e.g. installing or updating software.

If you can't find the regular terminal from the menu, then pressing CTRL + ALT + T will give you a terminal with your normal user priviliges without asking for your password.


Install a specific stable Docker version

If you explore the download directories in docker.io you won't find a 17.03 compiled for Bionic, so there is no guarantee that 17.03 will work with Bionic...

You can however find a .deb for Xenial, so installing it in a VirtualBox running Xenial would be easy.

This said, why would you want a specific Docker version? Where I work there is a mix of Docker versions (from 12 to 18) (as well as several versions of the docker registry), and so far we haven't uncovered compatibility problems.


This issue was due to high CPU temp shutdowns. The motherboard turned out to be shutting down the server at a lower temperature than necessary (~65°C). This was not related to any issues with Ubuntu or KVM.


Mate Ubuntu 14.04 battery indicator not showing status

have a look at the "Control Center" --> "Power Management" --> "General"!
use the bullets to choose your preference!

if it don't acts like expected you can install the "dconf Editor" (type in terminal: sudo apt-get install -y dconf-editor) and have a look at the section "org" - "mate" - "power-manager" - "icon-policy"... this also changes the behavior of the battery-icon.
BUT be careful with this editor!!!


Lubuntu desktop not loading on admin user

If you press Ctrl+Alt+F1, can you get to command prompt? If so, try adding a new user by doing:

sudo useradd username -D


Problem with start Cisco Packet Tracer 6.3

If properly installed, simply start Packet Tracer in terminal with the command

sudo packettracer

Ensure you use the sudo command.


The $$ variable in bash and other shells contains the process id of the shell.

See this Stack overflow question and this one also has more detail about what it is more precisely, and commands similar to it.


Where can I buy a keyboard with an Ubuntu logo on the super key?

You could buy one from ZaReason.com, but they are out of stock right now.

System76 gives away free Ubuntu stickers, including ones for the Super key, instructions on how to get them:
 http://www.system76.com/community/stickers/


Can't disable swap partition on USB persistence ubuntu 14.04 LTS

You have encountered one of the limitations of a persistent USB install.   You should be able to add

swapoff -a

to the /etc/rc.local file somewhere before the "exit 0" line to turn it off.
Or just delete the swap partition.


How do I tell winetricks to work with a different prefix?

I found the answer to my question.

The following worked for me:

WINEPREFIX=/home/steve/.PlayOnLinux/wineprefix/Rosetta winetricks

It launched the GUI, and when I selected default then clicked browse files, it brought me to the Rosetta prefix to confirm.


VLC won't open video files from a secondary internal hard disk

If you're using the snap vlc, by default it'll be confined. To get around that, remove it:
sudo snap remove vlc

Then install from the command line:
sudo snap install --classic  vlc

This will allow browsing & loading files outside of $HOME
Please note: that on 16.04 with current snapd package this is no longer needed, vlc can browse mounted volumes, obviously same is true for 18.04.
--classic is basically the old --devmode option.
Though atm there seems no way to use hardware decoding with snaps, if that matters to you...


Lost access to OS-X after installing Ubuntu 20.04 while trple booting in Macbook Pro

I posted the same question in the Superuser site and found a solution. Posting the same here to close this question.
As mentioned by At0mic in the comments section, I started my search from that link and was able to successfully retrieve my partition.
The challenges the I had initially were

My internal Wifi card was not working. I was using an external wifi card. Due to this, I couldn't use the internet recovery option. MAC was not recognising USB-ETHERNET cable either.

I didn't have a bootable USB installer and no access to another MAC. This was a major challenge for me. Luckily after a lot of searching, I found a solution to create bootable USB on windows in another site.

The following are the links to the other questions that were helpful to me.

Creating an OS-X bootable USB installer on Windows. Required files also included.
Understanding your partition table and type of partition.
Removing and recreating the corrupted volume and sometimes complete partition table (in case of bogus MBR)

Finally, I would like to thank At0mic for giving me a starting point and klanomath and David Anderson for sharing their invaluable knowledge to help out this community.
P.S: Please don't experiment with the partition tables without fully understanding them. The chances of losing your data are high. Also please go through the posts regarding triple boots, answered by klanomath and David Anderson.


svn SQLite compiled for 3.7.17, but running with 3.6.1

The saucy version of libsqlite3-0 is 3.7.17-1ubuntu1. It should not be 3.6.1

Try to run:

sudo apt-get --reinstall install libsqlite3-0

And check the version with:

dpkg-query -s libsqlite3-0


Ubuntu 12.10 starts up but I end up having a black screen in my laptop screen

I am actually very new at this too. My first day ever with Ubuntu and I have the same problem. I also posted it as a question but got no replies.
I however was trying the whole night to fix it somehow and what I did was first completely format the external drive. Then I ran the live cd again and clicked the install button. At the next step i chose the option LMV (Some disk management option). It installed and then when it was over, the system asked me to remove the disc so i did. But what i found out was, it never works when you restart the computer. I shut it down completely and then I heard a click sound at the end originating from the HDD. Then i started again and this time it booted normally.
I guess maybe when you shut down, the header of the HDD returns to NULL position and maybe that plays a part. I tried it 3 times consecutively and each time it booted normally.
I am not sure if this is the solution but as of now it is working for me.But as I said, I have only 1 day experience.
Just try this, it might work and keep me posted.

All the best !!


I would just use a simple function. Add this to your ~/.bashrc file:

function runcom(){
    echo "$@"
    ## Run the command
    $@
}

Now, whenever you want to run a command and print it, you can do:

runcom apt-cache depends kde-window-manager > out

The above produces this file:

$ cat out
apt-cache depends kde-window-manager
kde-window-manager
  Depends: perl
  Depends: kde-runtime
  Depends: kde-style-oxygen
  Depends: libc6
 |Depends: libegl1-mesa
  Depends: <libegl1-x11>
    libegl1-mesa
  Depends: libgcc1
 |Depends: libgl1-mesa-glx
  Depends: <libgl1>
    libgl1-mesa-swx11
    libgl1-mesa-glx
 |Depends: libgles2-mesa
  Depends: <libgles2>
    libgles2-mesa
  Depends: libice6
  Depends: libkactivities6
  Depends: libkcmutils4
  Depends: libkdeclarative5
  Depends: libkdecorations4abi2
  Depends: libkdecore5
  Depends: libkdeui5
  Depends: libkio5
  Depends: libknewstuff3-4
  Depends: libkwineffects1abi5
  Depends: libkwinglesutils1
  Depends: libkwinglutils1abi2
  Depends: libkworkspace4abi2
  Depends: libplasma3
  Depends: libqt4-dbus
  Depends: libqt4-declarative
  Depends: libqt4-script
  Depends: libqtcore4
  Depends: libqtgui4
  Depends: libsm6
  Depends: libstdc++6
  Depends: libwayland-client0
 |Depends: libwayland-egl1-mesa
  Depends: <libwayland-egl1>
    libwayland-egl1-mesa
  Depends: libx11-6
  Depends: libx11-xcb1
  Depends: libxcb-composite0
  Depends: libxcb-damage0
  Depends: libxcb-image0
  Depends: libxcb-keysyms1
  Depends: libxcb-randr0
  Depends: libxcb-render0
  Depends: libxcb-shape0
  Depends: libxcb-shm0
  Depends: libxcb-sync1
  Depends: libxcb-xfixes0
  Depends: libxcb-xtest0
  Depends: libxcb1
  Depends: libxcursor1
  Depends: libxext6
  Depends: libxrandr2
  Depends: libxxf86vm1
  Breaks: kde-style-bespin
  Breaks: kde-style-bespin:i386
  Breaks: <kde-style-skulpture>
  Breaks: <kde-style-skulpture:i386>
  Breaks: kde-workspace-data
  Breaks: <kde-workspace-data:i386>
  Breaks: kdeartwork-theme-window
  Breaks: kdeartwork-theme-window:i386
  Breaks: <kdebase-workspace-data>
  Breaks: <kdebase-workspace-data:i386>
  Breaks: kwin-style-crystal
  Breaks: kwin-style-crystal:i386
  Breaks: kwin-style-dekorator
  Breaks: kwin-style-dekorator:i386
  Breaks: kwin-style-qtcurve
  Breaks: kwin-style-qtcurve:i386
  Replaces: kde-workspace-data
  Replaces: <kde-workspace-data:i386>
  Replaces: <kdebase-workspace-data>
  Replaces: <kdebase-workspace-data:i386>
  Conflicts: kde-window-manager:i386


You do not have to upgrade your kernel. Kernel 3.16 still gets security and bug fixing updates.

But you CAN upgrade the kernel to 3.19 by

sudo apt-get install linux-generic-lts-vivid

or to 4.2 by

sudo apt-get install linux-generic-lts-wily

It is even possible to upgrade to kernel 4.4, but that may cause issues with DKMS modules

sudo apt-get install linux-generic-lts-xenial


Is running Ubuntu/XP duel boot safe now that XP is being pulled?

If you do not connect to the internet using XP, it is unlikely that your XP will be infected through Linux. That is, if you do not have a shared FAT or NTFS partition and you do not use the Windows partition to store files on from Linux. By default Windows cannot read ext4 or older.

Another thing is that you are extremely vulnarable if you use other files than the ones you are 100% sure of. Many threats, malware, viruses are "saved" untill the date that support for XP will expire and there will be no fixes developped.


No, there is no way to tell deja-dup to not display errors.  But modern versions of deja-dup (Ubuntu 12.04 or above) should not start a scheduled backup if it can't resolve the hostname.


Installing Chuck, problem with alsa / JACK / pulse/

The problem is likely that you don't have the relevant development libraries installed on your machine.

You will need to either consult the software's build documentation (such as a README or INSTALL file in the software archive's root directory) for a list of dependencies, or figure it out yourself - for the latter, the apt-file utility is helpful e.g.

$ apt-file search 'alsa/asoundlib.h'
libasound2-dev: /usr/include/alsa/asoundlib.h
libdssialsacompat-dev: /usr/include/dssi/alsa/asoundlib.h

suggesting you would need to install the libasound2-dev package for example.

The apt-file package should be available from the universe repository.


One click show/hide sticky notes ubuntu 14.04 gnome flashback

If you are using GNOME desktop in Ubuntu, you can use the Extension called Sticky Notes View, which I find very handy.

If you have installed a GNOME shell and GNOME Tweak Tool, as well as ubuntu-gnome-desktop, Sticky Notes View will be available inside `Extensions option in GNOME Tweak Tool. Just mark it on. Also to get your Notes you just need to do Super+N and to get back the working desktop, Super. Try this if you are a GNOME user.


The easiest way to upgrade (IMO) is using the terminal, you do it by running the command do-release-upgrade.

Optionally if you don't feel comfortable using the terminal you could use the Update Manager, to use it press Alt+F2 and type in update-manager into the command box. Update Manager should open up and tell you: New distribution release 'XX.XX' is available. Click Upgrade and follow the on-screen instructions.

I would also recommend you read this brief guide and backup your installation.


Install openssh-server package from preseed file

We used and tested the following approach together with the netboot image of Ubuntu.

d-i passwd/root-login boolean true
d-i passwd/root-password-crypted password <password>
d-i passwd/make-user boolean false
d-i pkgsel/include string openssh-server
d-i preseed/late_command string \
  in-target sh -c 'sed -i "s/^#PermitRootLogin.*\$/PermitRootLogin yes/g" /etc/ssh/sshd_config';

Use the following command to generate the password:

printf "please-change-password" | mkpasswd -s -m sha-512

Here you will find a more sophisticated approach using ssh public keys as default. It still contains all the hints in the preseed file regarding password login.


How to clean the print heads of my HP printer?

This is not supported by the HPLIP driver for this printer.
In most cases I might say that this is a feature omission, but in this case, because we're dealing with a LaserJet, I think it's just not a feature the hardware has.
Laser printers don't have "print heads". A laser etches into a drum covered in ink, toner tones things (alright, I'm a little sketchy on how they work exactly) and a static charge applies all of that to paper.
If you've got a mucky print, there are things you can clean but it's very different lingo from inkjet printers. And it's all manual work.


How to fix Ubuntu 12.04 display artefacts/freezes after switching users?

are you completely logging out of guest session after they are done or just switching users again. I had the same problem not logging out of the guest user before switching users. You may be able to right a script the automatically refresh unity on start/log in.


Ubuntu goes black after upgrading (using VirtualBox)

I have solved the problem. It's Nvidia driver update. just uninstalled them.


How to write Makefile to package a .so dynamic library that will install all required links

For the symbolic links to libraries I could find on my system, the links were all relative, and not absolute:

lrwxrwxrwx 1 root root       14 Aug  9 03:52 libwine.so -> libwine.so.1.0
lrwxrwxrwx 1 root root       14 Aug  9 03:52 libwine.so.1 -> libwine.so.1.0

So, it looks like the Makefile should do a cd to the library folder and make relative symbolic links:

cd $(DESTDIR)/usr/lib
ln -s ${CND_ARTIFACT_NAME_${CONF}}.$(version).0.0 ${CND_ARTIFACT_NAME_${CONF}}
ln -s ${CND_ARTIFACT_NAME_${CONF}}.$(version).0.0 ${CND_ARTIFACT_NAME_${CONF}}.$(version)
cd -


This worked for me:

whereis geckodriver   to find the location(s)
sudo rm <location_from_previous_command>


Scanner Not Found On Wireless Ubuntu 14.04

You need to install a scanner driver and add the scanner IP address.

Go to Epson drivers site and search for your scanner.

Download the scanner driver and network plugin.

iscan_2.30.1-1~usb0.1.ltdl7_amd64.deb
iscan-data_1.36.0-1_all.deb
iscan-network-nt_1.1.1-1_amd64.deb

These packages are for 64-bit Ubuntu. If you have a 32-bit installation, then download 1st and 3rd packages with i386 in the name.

Copy these files to your Home folder and run in terminal

sudo dpkg -i iscan*.deb

Then find IP address of your scanner and add it to /etc/sane.d/epkowa.conf as e.g.

 net 192.168.1.101

You will be able to scan with Simple Scan, xsane, iscan or other software.


how to unlock passwd from the command "sudo passwd -l [user]"?

sudo passwd -u [username]

from  man passwd:

  -u, --unlock Unlock the password of the named account. This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).


12.04LTS -> 14.04LTS; Dist-upgrade failed; postgresql; removal blacklist

I edited the file: /var/lib/dpkg/status and removed the block relating to the package, e.g.:

Package: postgresql-8.3.....

onwards to the next blank line.


How to install XFCE (Xubuntu) from Ubuntu without uninstalling Ubuntu-Desktop

It's likely a conflict between xfce4-notifyd and notify-osd. Since notify-osd is in required by ubuntu-desktop, it needs to be removed. But removing ubuntu-desktop, does not mean removing the actual software. The ubuntu-desktop package itself is a meta package which is only there to ensure that all components are present. So, installing ubuntu-desktop will install firefox, for instance, but uninstalling ubuntu-desktop will not remove firefox.

I don't know why there is a conflict between those two notification systems, but that's probably something you should have a look at before you start, since notify-osd is rather cool.


Run these commands in a terminal (Ctrl+Alt+T)

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -

(source)

Then retry

sudo apt-get update
sudo apt-get --reinstall install intel-linux-graphics-installer

Then run the installer again
(source)


You will have to uninstall the Nvidia drivers, assuming you've previously installed them:

Determine what packages you need to uninstall with:

$ dpkg --get-selections | grep -i nvidia

sudo apt-get purge them.

Note: sudo apt-get purge nvidia-* should also work.

Now, I believe that in order to make sure your Nvidia card isn't used at all by Linux, you will have to blacklist the nouveau driver. You can do so as SU:

(note: omit the # character)

# echo -e "\n\n# Manually blacklisted nouveau so as to ensure Nvidia card is disabled\nblacklist nouveau" >> /etc/modprobe.d/blacklist.conf


Kubuntu 15.04: kquitapp plasma-desktop does not work - why?

Your command is too old, use

kquitapp plasmashell

for killing plasma 5 and then

plasmashell

for it starting


Gnome Tweak Tool Broken after partial upgrade - Ubuntu 20.04

Thanks for all the help @Kulfy.  I figured it out. The repositories were not able to be accessed during a software update due to E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal/main/binary-armhf/Packages 404 Not Found [IP: 91.189.91.39 80] and while researching that problem, it lead me to this post:
How to fix a "Failed to fetch binary-armhf/Packages" error during apt-get update?

Ran sudo dpkg --remove-architecture armhf as instructed in that thread and was able to update.  One problem solved.  Then figured I'd try installing Gnome Tweaks to see if there was any relation and it worked.


Can't find wireless interface in ubuntu 15.10 on a MacBook 5,1

This is most likely an issue with the driver (or lack thereof). If you go to "System Settings" --> "Software & Updates", is the "Proprietary drivers for device (restricted)" checked?  After it is checked, go to the tab "Additional Drivers" and select the Broadcom driver (you may need to install the appropriate broadcom driver if it does not appear).  Does that do the trick?


How to set up a VirtualHost on Amazon EC2 for phpmyadmin

After hours of testing and trouble shooting here is the solution.

First ensure that you created an A record in your DNS manger to point your sub domain "test.example.com" to your server IP (this should take roughly 24-72 hours to propagate).

Then create your host file with the following command (please note I'm using ubuntu which uses individual host files but you can add this to you main host file):

sudo vi /etc/apache2/sites-available/test.example.com

Add the following data below (I've enabled ssl on my system which is port 443 and un-contentmented the ssl section at the end):

<VirtualHost *:80>

    ServerAdmin webmaster@example.com

    DocumentRoot /usr/share/phpmyadmin
    ServerName test.example.com

    RewriteEngine On
        RewriteCond %{HTTP_HOST} !test.example.com
        RewriteRule (.*) [L]

     <Directory /usr/share/phpmyadmin>

        Options Indexes FollowSymLinks
            AllowOverride None
        deny from all
        allow from localhost
        #allow access via your IP
            allow from xxxxxx.xxxxx.xxxxxxx.xxxxxxxxx/xx

        <IfModule mod_php5.c>
            AddType application/x-httpd-php .php

            php_flag magic_quotes_gpc Off
            php_flag track_vars On
            php_flag register_globals Off
            php_admin_flag allow_url_fopen Off
            php_value include_path .
            php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
            php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
        </IfModule>

    </Directory>

    # Authorize for setup
    <Directory /usr/share/phpmyadmin/setup>
        <IfModule mod_authn_file.c>
        AuthType Basic
        AuthName "phpMyAdmin Setup"
        AuthUserFile /etc/phpmyadmin/htpasswd.setup
        </IfModule>
        Require valid-user
    </Directory>

    # Disallow web access to directories that don't need it
    <Directory /usr/share/phpmyadmin/libraries>
        Order Deny,Allow
        Deny from All
    </Directory>
    <Directory /usr/share/phpmyadmin/setup/lib>
        Order Deny,Allow
        Deny from All
    </Directory>

    #   SSL Engine Switch:
        #   Enable/Disable SSL for this virtual host.
       # SSLEngine on

        #   A self-signed (snakeoil) certificate can be created by installing
        #   the ssl-cert package. See
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
        #   If both key and certificate are stored in the same file, only the
        #   SSLCertificateFile directive is needed.
       # SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
       # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        ErrorLog /home/user/public_html/folder/logs/error.log
        LogLevel warn
        CustomLog /home/user/public_html/folder/logs/access.log combined

</VirtualHost>

Once done save the file and active your vhost

sudo a2ensite test.example.com

It will then prompt you to restart Apache once you have done so you should be up and running and able to accesses phpmyadmin via "test.example.com" as oppose to "www.example.com/phpmyadmin"


Increase Trackpoint Sensititvity with SystemD (Ubuntu 15.04 or later)

Ctrl + Alt + T  (Opens Terminal)
sudo -i gedit /etc/tmpfiles.d/tpoint.conf
Add the following lines (*):

w /sys/devices/platform/i8042/serio1/speed - - - - 255
w /sys/devices/platform/i8042/serio1/sensitivity - - - - 255
w /sys/devices/platform/i8042/serio1/inertia - - - - 6
w /sys/devices/platform/i8042/serio1/press_to_select - - - - 0

Adjust the numbers to your liking. Higher = More Fast/Sensitive -- press_to_select is for tapping on the trackpoint to simulate a click. 1 to enable.
Save, Exit.
For these changes to take effect before next reboot (see), run

sudo systemd-tmpfiles --prefix=/sys --create

(*) Thinkpad X1 Yoga Or Thinkpad W530 users will need to modify slightly:

w /sys/devices/platform/i8042/serio1/serio2/...

You can find out the exact path on your device via:

find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//'

Personal Recommendation

Use the highest settings (255,255)
Go into Mouse and Touchpad settings and set that bar value to the lowest value.

After you get used to it, your finger will have to do much less effort into moving the cursor and will greatly reduce any strains or pains in your finger.


Failing to import pandas in Anjuta "module functions cannot set METH_CLASS or METH_STATIC"

It seems to be a problem with python 3.6; I had the same problem except I was using matlibplot, numpy and pandas with the following order:

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

And it gave me the same error you got, I rearranged my import order so that it looks like:

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

And now it runs well. See this github issue which is very related: https://github.com/pandas-dev/pandas/issues/23040 . Quoting the last user who posted as today named "AlfTang":

  The problem is fixed it by changing pandas import order as suggested. I suspect that the cause is python3.6. When I used python 3.5.2 everything worked fine.


Using source command to replace bash string with field array

The script in your edit should work perfectly.

But you should note that Bash's variable declaration is picky. I rewrote your code:

# Strings with spaces must be quoted, or the shell will think the second word is a command (-re, in this case).
start_cmd="avconv -re -i test.mp3 -c:a libmp3lame -ac 2 -ar 44100 -content_type audio/mpeg -b:a"

# You can't nest quotes. A quote mark terminates the quotation, unless it's escaped.
stream_parameters="$stream_bitrate -f mp3 -ice_name $icecast_show -password $icecast_password -legacy_icecast $icecast_legacy"

# It's best to quote strings, as a habit.
icecast_setup="icecast://$icecast_user:$icecast_password@$icecast_server:$icecast_port$icecast_mount_url"

# Don't put spaces around the equals sign.
stream_cmd="$start_cmd $stream_parameters $icecast_setup"

As for how to run a command defined by a string, it's super simple. Just run this: $stream_cmd

Also you might want to state the absolute path of the config file (maybe ~/settings.cfg), unless you want to use the relative location.


Problem with dual boot Windows - Kubuntu 18.04

Try this one:

# update-grub

or

$ sudo update-grub

# - it means Superuser


Installed Ubuntu 14.04 but boot fails after hard reset

Hold Shift during boot: you will see boot menu. If no Windows entry appears in it, you should boot into Ubuntu and run:

sudo update-grub

It should find all OSes if they exist.


Is there a plugin that makes Rhythmbox Smart Playlists more like iTunes?

Not sure what exactly is meant with sub arguments to smart playlists and iTunes-like levels but the smart playlists in Rhythmbox can quite nicely be adapted to personal needs.

On creating a new automatic playlist or when editing a playlist the following window will let us add several selection criteria like "Time of Last Play", "Rating", "Artist" to name only a view:

This criteria can be set to match all criteria or if ticked to match any of these criteria for inclusion in a playlist of unlimited or limited number of songs. In addition we are able to sort the playlist from various criteria.


Network Manager (as well as wicd) don't connect to Wifi

I have same like this, I use 'System settings' : 'software and updates' : 'additional drivers' tab - in my case - Broadcom wifi driver. After installation, reboot and it's working.


How to configure a second monitor using DisplayLink on Ubuntu 13.04

I was able to resolve this issue by switching the display off and back on using xrandr like so:

$ xrandr --output DVI-0 --off
$ xrandr --output DVI-0 --auto

I went through this just recently and summed it up on my blog. Eventually, you might be interested to read here:

http://jochen.kirstaetter.name/blog/linux/using-aoc-usb-monitor-in-ubuntu-1304-displaylink-e1649fwu.html


startx will not work in 16.04 because it uses systemd instead and not upstart.

You can go back to upstart, with

sudo apt-get install upstart-sysv
sudo update-initramfs -u

Please note, this will remove systemd.

To go back to systemd

sudo apt-get install ubuntu-standard systemd-sysv
sudo update-initramfs -u

In short, this is intended behavior and you should start your unity session in 16.04 with lightdm.

Source


Knowing what graphics card you have would be helpful.

Install your recommended graphics driver. To do so, go to 'Software & Updates', then go to the 'additional drivers' tab. Select the proprietary driver from your GPU manufacturer; preferably one that's tested if it's available, if not just install the newest one and reboot your machine.

If you have any further questions, feel free to ask. If you're still having issues, come back and provide some updates on the situation.

Hope this helps! Iechyd Da!


I've set listed parameters to True and now auth works.

network.auth.force-generic-ntlm
network.auth.force-generic-ntlm-v1
network.automatic-ntlm-auth.allow-non-fqdn


How to install Ubuntu on part of the disk?

I assumed that there is no OS installed before. You can use GParted to split your HDD into several partitions:

Boot into your Ubuntu installer (USB/DVD)
Select Try Ubuntu without Installing
From the Dash, type 'GParted'. And you can start splitting your HDD from here.

Here is my disk partition looks like:
I'm dual booting Windows and Ubuntu, also separate / and /home


How to shrink a root partion from remote?

I would suggest that you have a tech at the colo facility boot into a live CD and enable SSH. You could then SSH into the server and run gparted from your own computer.


How do I tell if a USB thumb drive is USB 3.0?

Make sure that you have a USB flash Drive plugged in.

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

lsusb

That will list USB information.  Look for the USB flash drive info as shown in the image below:

Then do

lsusb -D /dev/bus/usb/003/023

To get more info about the USB flash drive, and look for bcdUSB, and that will tell you if its USB 2 or 3, plus as Dan said in his comment, USB 3 connectors are usually Blue.

Source:lsusb Man page


Can't fix broken packages using Synaptic (Broken Package: Wine1.4)

This is a common problem with Wine and 64bit systems. The solutions proposed here solves de problem:

Dependency problems installing wine 1.5 on ubuntu 12.04 x64


How do I change window title font size using command line in 12.10

The settings are in gsettings now. This should do it:

gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Ubuntu 10'


Setting up ultrawide (3440x1440) monitor on Ubuntu 18.04

The steps above are correct. My laptop uses an AMD Radeon HD 7470M 1GB and the maximum digital resolution is 2560 x 1600. That is why I get a black screen when I try to set it above it.


If I understand correctly, I don't see why not.  Does each "target disk" have an entry in the GRUB menu?  If so, there are a number of strategies you could use.  If you are content with having a default boot option, you could simply edit the file /boot/grub/grub.cfg to change the line set default="0" (or whatever number is set) to the one you want, then reboot ("sudo init 6", if I remember correctly).

This file says "DO NOT EDIT THIS FILE" at the top, but that is only because it gets regenerated, and will reset to the default when this happens, either during an update, or when you do an update grub command explicitly.

This can easily be scripted if you don't want to edit the file.  The easiest way is to use sed, which can find and replace that line in the grub config file.


Why does mv work so slowly renaming files in my SD card?

As you see when you are moving the that it is mounted over gvfs which is the gnome virtual file system which pcmanfm, pcmanfm-qt along with many other file managers use and will already have it installed. You could try the gvfs-rename command to rename all the files on the phone. Also if it is still slow you could be filling up your write cache of things to change on the phone as if you still can write in the cache but once it is full it will slow down if you want more information on this see https://en.wikipedia.org/wiki/Cache_(computing). Unfortanetly if it is caching that is causing the first move to be quick but all the rest to be slow. To find out if this is a problem I would try using mv on one file and if that is quite quick per file. Also sd cards in phones are not the fastest storage medium and you need to write the changes to the sd card for each file. For long file transfers I remember pcmanfm having a progress bar is it not moving for each file or are you renaming so many files that it could take that long.


Concerning your thunderbird question: all your mails and mailing settings are stored in your homefolder in ~/.thunderbird (that's /home/$YOURUSERNAME/.thunderbird). Just backup this folder and paste it in the same direction on a clean install and you are able to continue with Thunderbird, where you left.

The dot in the folder-name indicates that the folder is hidden. You therefore normally won't see this folder. To display hidden folders, you may press [CTRL]+[H] in nautilus.

For your documents you would logically backup your Documents folder in your home-directory (however it is on your system called as it is localized).

And to installation faults: I don't know if there is something like a snapshot possibility but if you have installed a wrong package or such and don't see a thing, you may want to remember that you are using a Linux system. Press [CTRL]+[ALT]+[F1] to enter your first tty. This will work no matter if your xserver is acting faulty or not. From there you can revert any changes you made like you would do it in the terminal.


How to compile wireless driver for 13.10

First, there is no reason to use 'sudo make.' Second, the line 'leaving directory '/usr/src/linux-headers-3.11.0-12-generic' is trivial. Third, your previous build probably left behind some malformed bits and pieces. Let's clean them up, using sudo since they were built with sudo:

cd ~/rtl8812au-master
sudo make clean
make

And if there are no errors:

sudo make install

Please note and post any errors. If they are extensive, paste them here and give us the link in your reply: http://paste.ubuntu.com/


How to apt-get install multiple packages without stopping (if not found)?

I suggest an apt-get option

sudo apt-get --ignore-missing install $list_of_packages

but be aware that missing dependences cannot be ignored, and even if you use --force you can get a broken system.


OpenShot and Audacity are good video and audio editors respectively.

Installation:

Directly from Software Centre:

OpenShot  install from here
Audacity install from here

From Terminal:(Ctrl+Alt+T)

sudo apt-get install openshot
sudo apt-get install audacity

Alternatively you can use Pitivi  video editor,

Installation:

From Software Centre here or from terminal,

sudo apt-get install pitivi


What package(s) to install for missing button icons in KDE applications on Unity?

As JonasCz pointed out, you need to install oxygen-icon-theme. But it's not enough to have installed, you also have to use it.
One way of doing this is to install Unity Tweak Tool:

sudo apt install unity-tweak-tool

Run it, go to Appearance / Icons and choose "Oxygen" instead of "Ubuntu-mono-dark" or whatever your current theme is. Then open the KDE Connect window again and it should have the icons.

Further options

If you don't like the Oxygen theme you can try another one. KDE Connect is not tied to Oxygen. What you need is a theme with specific icon names. For example, the button from your first screenshot needs an icon named edit-rename (see the reference in the source code):

<iconset theme="edit-rename">

You can search on your computer for icon themes containing such an icon:

find /usr/share/icons -name 'edit-rename*'

You could also search for available packages containing the icon:

apt-file find edit-rename.png

Or maybe you could even modify your current theme and create links with the desired names to the existing icons (I haven't tried this).


Use joypad instead of mouse for aiming in Xonotic

There are utilities to map inputs to other devices. One of them is qjoypad: http://qjoypad.sourceforge.net/

Discussed xboxdrv in another thread:How can a gamepad control THE mouse?

You can write a simple code run it background in python or C using a library. You need to look an inputmapper library for python or c for linux.

Or you can write mouse driver which get its input from joypad: https://www.linuxjournal.com/article/2476


Ubuntu does not automatically enable some of the power saving features that you might want.  A good first step would be to enable Tlp:

sudo apt install tlp

you can check the default settings, whoch are stored at "/etc/default/tlp" and edit them as desired, then either restart your computer or issue the command

sudo tlp start

You may also want the packages thermald, lm-sensors and psensor


What is Dell OpenManage Ubuntu Repository?

It is a repository to install Dell OpenManage, a software designed to manage deployments of dell servers. It's usually only used on big IT shops.

You shouldn't install it unless you have a rack with some hundreds of dell servers in the backyard ;).


No boot after uninstalling ubuntu 12.04 with ubuntu uninstaller

To install a Microsoft style MBR, boot from Ubuntu LiveCD/USB. Open the terminal and run the following cmds:

sudo software-properties-gtk -e universe && sudo apt-get update
sudo apt-get install mbr
sudo install-mbr /dev/sda

Please change the device type sda or hda as per your system in the last cmd.


Display settings fail to apply on 13.04 with Gnome 3.6/3.8

I solved this by removing every config file (~/.*) from my home directory. Previously I had attempted to remove all gnome related files but this didn't help.

(I followed: How do I reset GNOME to the defaults?)

I still don't know what old config file caused this, but I recommend moving all your config files to a backup directory and moving them back one by one. If you want to test if this will help, login as a guest and see if you can reproduce the problem.


As far as I know, Internet Explorer 11 does not work well under WINE, and you would be extremely lucky to get it working well.

The only available entry for IE 11's WINE compatibility currently rates it as "Garbage": https://appdb.winehq.org/objectManager.php?sClass=version&iId=33811

And as you can see on the Wine website, no version of Internet Explorer above 7.0 has been reported to work well (they're all "Garbage"): https://appdb.winehq.org/objectManager.php?sClass=application&iId=25

I wish you luck getting it to work, but I think it's a losing battle. If the Linux version of Steam would work for your needs, I'd recommend using that instead.


Most of these are not errors, they are warnings or messages. The issues are, more often than not, minor programming mistakes or dependence on deprecated APIs etc.

You should not care about these, as long as the applications are working as expected. Unless if you are a developer of course.

In your Nautilus example, however, this is not even a real issue, the warning informs you that the current user does not have a D-Bus session, which is to be expected, if you are running it as root. Don't use sudo to run graphical applications, use PolicyKit instead:

pkexec nautilus


Why can't I allow access to port 22 on Ubuntu 12.10?

I need to install sudo apt-get install openssh-server.


Problems with NVIDIA Optimus Card/Intel Sandy Bridge

You laptop has a hybrid card, you have a intel + nvidia card running in your system, the drivers you are installing for you nvidia are not working correctly because they are not being loaded on startup.

You Intel card is running as primary so you have 2 options:

1) If you BIOS allows to turn off the Intel card and leave the nVidia one running then the drivers will work correctly;

2) Use software that enables you to use some functions of your nVidia card, its called Bumblebee and its largelly discussed on use/installation, etc, on the site.


How to fix Terminal being hung out on "Building initial module 4.15.0-23-generic"

@Andrew McLeod is correct above. You have to enter your root password + press enter twice


This problem has been reported originally on WINEDB app site of Bugzilla with bug 37347.  However, it later turned out that the culprit was described here.  Then finally a open bounty was placed on this most unnerving problem.  The problem was indeed solved and put into Master.

Thank the happy people of the Linux community who did find a solution.  It's a tricky one, so do not get discouraged.  I had an immense amount of trouble at first.

First off you will need several tools to get the job done.
First off is the nicely made package call Autotools.
There is a list needed for dependencies required to compile Mesa and Install it:

Python 2.6 or later

Python mako module .7.3 or later

dri2proto 2.6 or later

LibDRM 2.4.33 or later

Other dependencies required in building can be installed using the apt command in the terminal
python-dev (in case you need the development headers, if not, nothing is needed), python-mako
x11proto-dri2-dev
libdrm-dev

Extract using

tar vxz ~$Whateverdiryourfilesarein/each one linked

Install using ./configure and make commands

For Autotools

Simply open up a terminal and type

sudo apt-get install autoconf
sudo apt-get install autotools-dev
sudo apt-get install automake

At which point you will now be able to compile everything.  So now, in the terminal type:

tar xvzf ~$whateverfolderitsin/Mesa10.4

./autogen.sh --enable-dri

once that is done, type:

./configure
make
sudo make install

Reboot the system and now everything should work.  Autotools is a pain but will be well worth the time later on in life.


Check the Error in installing Steam on ubuntu 15.04 post.

This problem don't seem to affect the closed source drivers, only the open ones.