Having some trouble with my nVidia driver on kubuntu 13.10

Nvidia + Intel setup uses a technology called Optimus. Optimus support on Linux could be better, but it's generally working now.

To quote the Arch Wiki:

  There are several method available:

  disabling one of the devices in BIOS, which may result in improved battery life if the NVIDIA device is disabled, but may not be
  available with all BIOSes and does not allow GPU switching
  using the official Optimus support included with the proprietary NVIDIA driver, which offers the best NVIDIA performance but does not
  allow GPU switching and can be more buggy than the open-source driver
  using the PRIME functionality of the open-source nouveau driver, which allows GPU switching but offers poor performance compared to
  the proprietary NVIDIA driver and does not currently implement any powersaving
  using the third-party Bumblebee program to implement Optimus-like    functionality, which offers GPU switching and powersaving but requires extra configuration

Based on opinions I've heard, I would recommend Bumblebee.

About Netflix... it is possible with Pipelight.


How to install package that was downloaded as source files

Here is what you need to do...

Decompress the tra/gzip file

Go into the decompressed directory

Look for files like: README or INSTALL. These files usually contains the instructions to install the source code.

If no such instructions are mentioned then follow these steps:

./configute
./make
./install

This should help you.


Audio doesn't work on a Dell Vostro 3550 laptop

From a reference on the ubuntuforums: http://ubuntuforums.org/showthread.php?t=1906905 some people have solved audio problems on this make of laptop by doing the following:

Add this line to /etc/modprobe.d/alsa-base.conf

options snd-hda-intel model=dell-vostro-3500

Then, restart alsa by enter the following in a terminal session

sudo alsa force-reload

If it is possible for you to do so it may be worth considering updating to 11.04 or 11.10, the Dell Vostro 3550 has been certified to work with both of these releases: Ubuntu Certification


Why is the cache size half of what it should be as reported by /proc/cpuinfo?

The Intel Core 2 has cores clustered by 2. Each core has its own very fast level 1 cache (L1) and each cluster features a shared L2 cache.

So the 8MB are actually shared between 2 cores, you have a total of 16MB, 8 to each 2 cores, have a look at this

http://jerome.berbiqui.org/parallel-many-core-CS/article001.png

source: http://jerome.berbiqui.org/parallel-many-core-CS/


Is it possible to stream the screen of an Ubuntu desktop to another device?

Steam Link is pretty much designed for the use case you're talking about.


I've tried doing that and what I actually had is not exposed, but locked session of user A.

Say I'm logged in @ Vty/7 as user A and then when I do "dm-tool lock" it switches me to another Vty with new instance of X server and login window. But I can skip login into and easily go back to Vty/7 — pressing Ctrl_Alt_F7. When I do this, I see locked user A session, there's no doubt.


Try sticking a sort in there:

find "PATH" -name "*.txt" -print0 | sort -rz | xargs -0 cat >  "PATH/output.txt"

And note that, given the same PATH, output.txt might be included in this, so the results might not be what you expected.


How to turn off the monitor via command on Wayland (KDE Plasma)?

It was recently added as a native KDE Keyboard Shortcut option which also works for Wayland. It is roughly located at System Settings -> Shortcuts -> Power Management -> Turn Monitor off (maybe the names are not correct because I'm using localised system settings)


Is verifying ISOs downloaded from the official website worthwhile?

Yes it's worthwhile.

It takes only seconds to md5sum/etc a downloaded ISO, and it provides reassurance you weren't attacked by MITM etc. Beyond that, those seconds are insurance for the [hours of] time wasted if you had a few bit errors and debugging necessary chasing errors no-one else gets because of your download (eg. you have network issues & so try to debug; but networking is stuffed because that's what the few bits wrong were...) Think of checksum-checks as very cheap insurance.

The software needed to md5sum something will be from another source usually (an older version, even different os/distro on occasion), is very small and is already present for many/most of us.

Further it allows me to download from a local mirror, but because I grab the md5sum from the Canonical source; I've insurance that the mirror didn't play with it. Again very cheap insurance that costs me ~3secs of time.


Open Terminal and (as it says in the error message) run sudo service vboxdrv setup.

The reason you see this error is because the kernel was recently upgraded, but the VirtualBox driver was built for the older kernel (which you are no longer running). Normally, dkms automatically recompiles any modules for newer kernels, so you don't have to do it, but (like me) it's not happening. Make sure dkms is installed (sudo apt-get install dkms).


How do I change the icon size in the KDE status bar?

The setting to change icon sizes, located in Settings > Appearance > Icons > Advanced, seems to have been unusable for years, as you've noted in your question. This appears to have been the case since some version of KDE 4. Possibly it is related to whether the icon theme is in a resolution-independent format.
A hidden iconSize system tray setting was added around plasma-workspace 5.9. Prior to the addition of this setting, qml files had to be edited.
For a standard plasma panel, open $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc in the text editor of your choice. If you are using Latte Dock, open the $HOME/.config/latte/*.layout.latte that corresponds to the layout you are using.
Look for the entry that corresponds to the system tray. It will look something like this:
[Containments][#]
...
plugin=org.kde.plasma.private.systemtray
...

Then scroll down until you see something that looks like this:
[Containments][#][General]
extraItems=...
knownItems=...
showAllItems=true`

Then add:
iconSize=#

Where # is a number that refers to one of the following options:
0 ~ Small
1 ~ SmallMedium
2 ~ Medium
3 ~ Large
4 ~ Huge
5 ~ Enormous

To see the changes log off and on. Or, in a terminal, kill and restart plasmashell:
killall plasmashell ; sleep 1 ; kshell5 plasmashell

Or latte-dock...
killall latte-dock ; sleep 1 ; kshell5 latte-dock


I found this two.

http://linux.softpedia.com/downloadTag/Gnuplot+GUI

http://sourceforge.net/projects/jgp/


Compiz grid plugin places window on two virtual desktops

The Compiz Grid plugin has some difficulties with window geometry and especially right side edges. There are a few similar bug reports:

windows near to the right edge of the screen inhibit the unity toolbar on the next rightmost screen
Grid plugin places windows incorrectly when dragged to right edge

And for a collection: Launchpad Bug #774986

I can confirm that I also get a 2px overlay on my right monitor by „putting a window right” on the left monitor.


There is no option to do this, as Banshee does not yet support crossfading.
See Bug 524300 for more information.


How can I put the second rows of a file to form two column with well aligned second column?


Can't disable local addresses on network interfaces

Please see down at NOTE as extra IPs came back again.  So I believe I found what was wrong and how to stop them from getting the extra IPs.
I'm writing this up as an answer because when I tried with netplan I was getting unstable connections with extra IPs appearing on my network cards.
On 20.04 LTS using kernel 5.4.0-54-generic.
Using ifupdown and setting the /etc/network/interfaces file as I dumped netplan all together.
Installed ifupdown and ifenslave
sudo apt install ifupdown ifenslave

Removed netplan:
sudo apt remove netplan.io

Next, I stopped the systemd-networkd and systemd-networkd.socket:
systemctl stop systemd-networkd.service
systemctl stop systemd-networkd.socket
systemctl disable systemd-networkd.service
systemctl disable systemd-networkd.socket

Check your /etc/modules for the following lines:
loop
lp
rtc
bonding

I also setup so I am not using predictive naming for my ethernet cards.  I have heard from people saying that it can be bad, but it has always worked for me.
Added the following to the /etc/default/grub file then ran sudo update-grub and rebooted for changes to take effect.
GRUB_CMDLINE_LINUX_DEFAULT="nosplash net.ifnames=0 biosdevnames=0"

Then added my interfaces to /etc/network/interfaces with bonding setup for balance-alb:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
    iface eth0 inet manual
    bond-master bond0

auto eth1
    iface eth1 inet manual
    bond-master bond0

auto bond0
    iface bond0 inet static
    address 10.0.0.220
    netmask 255.255.255.0
    network 10.0.0.0
    broadcast 10.0.0.255
    gateway 10.0.0.1
    bond-mode balance-alb
    bond-miimon 100
    bond-slaves eth0 eth1

I also made it so my resolv.conf was no longer controlled by stub or anything else.
sudo unlink /etc/resolv.conf
echo "nameserver 10.0.0.1" | sudo tee /etc/resolv.conf

You can change your nameserver to whatever your router is or if you want to use 8.8.8.8.
You can add more nameservers with tee -a as well to the resolv.conf:
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf

Feb. 25, 2021 Note:  I recently had an update to my system and it kicked back on my cards to receiving extra IPs again.  To resolve this I had to add denyinterfaces eth0 eth1 to the /etc/dhcpcd.conf file.  Below is what my /etc/dhcpcd.conf file looks like.  Make changes as needed for your network.
denyinterfaces eth0 eth1
interface bond0
        static ip_address=10.0.0.220/24
        static routers=10.0.0.1
        static domain_name_servers=9.9.9.9 149.112.112.112

Apply those network settings:
sudo /etc/init.d/networking restart

Checked with ifconfig and checked /proc/net/bonding/bond0
ifconfig
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 10.0.0.220  netmask 255.255.255.0  broadcast 10.0.0.255
        ether bc:5f:f4:79:66:fe  txqueuelen 1000  (Ethernet)
        RX packets 85381  bytes 12752852 (12.7 MB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 125655  bytes 156764973 (156.7 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether bc:5f:f4:79:66:fe  txqueuelen 1000  (Ethernet)
        RX packets 76259  bytes 10724189 (10.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12520  bytes 4905475 (4.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether c8:3a:35:d6:ec:a0  txqueuelen 1000  (Ethernet)
        RX packets 9122  bytes 2028663 (2.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 113135  bytes 151859498 (151.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 55907  bytes 158911787 (158.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55907  bytes 158911787 (158.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

and
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: bc:5f:f4:79:66:fe
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: c8:3a:35:d6:ec:a0
Slave queue ID: 0


Installed waha-system-adjustments_all.deb this did take over several places of my system

I've checked the package without installing, and it won all the red marks. It replaces almost all the most important files for any Debian distro without regards. Here's the main problem:

cat debian/postinst
#!/bin/sh
set -e

if [ -d /usr/share/waha/adjustments/ ]; then
    cp -R /usr/share/waha/adjustments/* /
fi

exit 0

it tells that all the files in /usr/share/waha/adjustments/ are copied to the root of the filesystem without checking before hand and no way to remove them securely. The best option is just to backup everything and reinstall the system.

List of files that get replace without previous confirmation:

/lib/live/config.sh
/usr/lib/pymodules/python2.7/UpdateManager/DistSpecific/WahaLinux
/usr/lib/pymodules/python2.7/UpdateManager/DistSpecific/WahaLinux/__init__.py
/usr/lib/pymodules/python2.7/UpdateManager/DistSpecific/WahaLinux/changelog.py
/usr/share/locale/ar/LC_MESSAGES/add-ar-keyboard.mo
/usr/share/locale/ar/LC_MESSAGES/check-live-installer.mo
/usr/share/software-center/softwarecenter/distro/WahaLinux.py
/usr/share/waha/check-live-installer
/usr/share/waha/add-ar-keyboard
/usr/share/icons/debian-installer-launcher.png
/usr/share/icons/gnome ## several logos and svg files
/usr/share/images/desktop-base
/usr/share/images/desktop-base/joy-wallpaper_1920x1200.svg
/usr/share/images/desktop-base/joy-wallpaper_1280x1024.svg
/usr/share/images/desktop-base/joy-inksplat-wallpaper_1920x1080.svg
/usr/share/images/desktop-base/joy-wallpaper_1600x1200.svg
/usr/share/images/desktop-base/login-background.svg
/usr/share/images/desktop-base/joy-grub.png
/usr/share/images/desktop-base/joy-wallpaper_1920x1080.svg
/usr/share/applications/libreoffice-impress.desktop
/usr/share/applications/libreoffice-xsltfilter.desktop
/usr/share/applications/uninstaller.desktop
/usr/share/applications/libreoffice-calc.desktop
/usr/share/applications/debian-installer-launcher.desktop
/usr/share/applications/gnome-terminal.desktop
/usr/share/applications/libreoffice-startcenter.desktop
/usr/share/applications/libreoffice-math.desktop
/usr/share/applications/libreoffice-base.desktop
/usr/share/applications/mimeapps.list
/usr/share/applications/wine-winetricks.desktop
/usr/share/applications/mimeinfo.cache
/usr/share/applications/wine.desktop
/usr/share/applications/libreoffice-writer.desktop
/usr/share/applications/libreoffice-draw.desktop
/usr/share/applications/wine-browsedrive.desktop
/usr/share/applications/supertux.desktop
/usr/share/applications/winecfg.desktop
/usr/share/applications/show-desktop.desktop
/usr/share/pyshared/UpdateManager/DistSpecific/WahaLinux
/usr/share/pyshared/UpdateManager/DistSpecific/WahaLinux/__init__.py
/usr/share/pyshared/UpdateManager/DistSpecific/WahaLinux/changelog.py
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/schemas/gschemas.compiled
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/prefs.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/extension.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/myDash.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/convenience.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/stylesheet.css
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/intellihide.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/dockedDash.js
/usr/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/metadata.json
/usr/share/python-apt
/usr/share/python-apt/templates
/usr/share/python-apt/templates/WahaLinux.info
/usr/share/python-apt/templates/WahaLinux.mirrors
/etc/skel/ #most of the skel files
/etc/apt/sources.list ## Important
/etc/apt/sources.list~
/etc/apt/sources.list.d
/etc/apt/sources.list.d/wheezy-backports.list
/etc/apt/sources.list.d/sarab.list
/etc/apt/sources.list.d/iceweasel-release.list
/etc/apt/preferences.d
/etc/apt/preferences.d/wheezy-backports
/etc/samba
/etc/samba/smb.conf
/etc/gdm3
/etc/gdm3/greeter.gsettings
/etc/alternatives
/etc/alternatives/start-here-48.png
/etc/alternatives/start-here.svg
/etc/alternatives/start-here-22.png
/etc/alternatives/start-here-256.png
/etc/alternatives/start-here-24.png
/etc/alternatives/start-here-32.png
/etc/alternatives/start-here-16.png
/etc/network
/etc/network/interfaces
/etc/modprobe.d
/etc/modprobe.d/alsa-base.conf
/etc/adduser.conf
/etc/lsb-release
/etc/NetworkManager
/etc/NetworkManager/NetworkManager.conf
/etc/issue
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/tracker-miner-fs.desktop
/etc/xdg/autostart/tracker-store.desktop
/etc/issue.net


Udev rule to create node for character device when loading module

To see what happens you can run

sudo udevadm monitor

in one terminal and then trigger the wanted event with

sudo udevadm trigger --action=add --subsystem-match=module

The monitor will show the events seen by udev.

Your problem is probably that in your scripts mknod and rm are not found as no PATH is set by udev. Use absolute pathnames or set a PATH at the start of the scripts.


Is it possible to recover a permemnantly deleted file on EXT partition?

A few options may be.

http://www.acronis.com/en-us/business/backup/linux-server/

http://www.r-tt.com/free_linux_recovery/Download.shtml

http://www.cgsecurity.org/wiki/TestDisk

http://www.easeus.com/data-recovery/data-recovery-software/linux-ext2-ext3-data-recovery-freeware.htm

To prevent future issues try a program called TimeShift to create backups

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install timeshift


Ubuntu 18.4 Intel graphic card selected and verified still nvidia won't turn off

I can confirm this issue.
What helped me to turn off the nvidia card is:

sudo sh -c 'echo auto > /sys/bus/pci/devices/0000:01:00.0/power/control'

but this is only a solution until the next reboot.

Cheers


There are two possibilities:

Go to UEFI and make Ubuntu your default system. This way, GRUB should show up on startup, where you will be able to select Windows or Ubuntu. If it doesn't, you have to configure it to show up, but that is another topic.
Access the boot options during startup (there should be something like "Press F11 to access boot menu") and choose whatever you want.

Oh, and

Don't use Windows XP. At all. Ever.

For further information on installing Ubuntu on a Windows PC, have a look at this.


How can I completely reset wifi settings?

To remove your connections from Network Manager run:

sudo rm -f /etc/NetworkManager/system-connections/*; sudo pkill -9 NetworkManager

Just make sure you have passwords for wifi networks that you intend to use before you do so.


For people to have at least one direct answer:
(yes there is a Ubuntu kernel in this url)

http://kotelett.no/ac100/phh/Android2.2/

This is a guide on how to do it - You shouldn't risk trying it if you don't know what you're doing:
http://salaliitto.com/~gildean/ac100/wiki/phh/

(and whenever they use Ubuntu5.tar.lzma you take the Ubuntu7.tar.gz and whenever they use boot.img you use boot.32.img)

--- but before you do anything of it, try your luck with the guide as it is...

I don't take any responsibility for broken devices


If you go to the download page here you find a ppa, and a guide how to use the ppa if you need that.


Difference between "xargs" and command substitution?

One difference is that when using command substitution instead of a pipe, the size of the data passed is limited by the size of the command buffer, so it is truncated in some cases with no warning. This also means that that the whole command output must be produced, and stored in memory, before it is passed to the next command, so for large outputs you can use much more memory than necessary.

Another issue with the first method is that the output is split on whitespace, so you can't handle filenames with spaces in them. xargs also is affected by the whitespace problem, but it can be fixed by changing the delimiter used. To properly handle filenames by the way, you would need to use the null byte as a delimiter in the second example.

A third issue is that globs are expanded, so if a file has asterisks or question marks in its name, there will be unexpected results.

You can find a nice discussion on the issue here: http://mywiki.wooledge.org/ParsingLs

The correct syntax would be

echo rm *

or if you must use xargs,

find . -maxdepth 1 -print0 | xargs -0 echo rm

Remove echo when the output looks correct.


No, it won't... Worst case it might set back that it boots straight to Windows and doesn't show grub any more, but even that is relatively unlikely.


The root account is disabled by default. A safer way to perform super-user actions is using the sudo command followed by your command.  Example : sudo apt-get install clementine.

But if you  really want to borrow the super-user account for a while, use sudo su. You can set the root account password there with passwd command. Example:

##Enter your account's password here##
nits@nits-workstation:~$ sudo su
[sudo] password for nits:
root@nits-workstation:/home/nits# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@nits-workstation:/home/nits# exit
exit

##once the password is set, log-in to the root account with the password you just set##
nits@nits-workstation:~$ su
Password:
root@nits-workstation:/home/nits#


First off I can tell you that the chip will work on Ubuntu. what you will first need todo is to download the driver and put it on the computer then fallow http://ubuntuforums.org/showthread.php?p=12206393 to install the driver and that should work.


Ubuntu resolves only hostname, but not the FQDN

Microsoft uses .local as the recommended root of internal domains, and serves them via unicast dns. Linux uses .local as the root of multicast dns. If you're stuck on a broken MS network like this, reconfigure your linux multicast DNS to use a different domain like .alocal.

To do this, add a domain-name=.alocal line to the [server] section of /etc/avahi/avahi-daemon.conf, then restart avahi-daemon: sudo service avahi-daemon restart.

[server]
domain-name=.alocal

You may need to flush the DNS, mDNS and resolver cache, as well as restart your web browsers to clear their internal cache.

Credits go to this blog entry that also has some more background information. I have included the solution for quick reference.


Please open a terminal and do:

gksudo gedit  /etc/systemd/system/wifi-resume.service

Use nano or kate or leafpad if you don't have the text editor gedit. A new empty file will open. Add the following:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target

Proofread carefully twice, save and close the text editor.

Now do:

sudo chmod +x  /etc/systemd/system/wifi-resume.service

And next:

sudo systemctl enable wifi-resume.service

I suggest you reboot. Test and let us hear your report.


To turn wlan0 on, in a terminal type:

sudo ifconfig wlan0 up


Are there geographical restrictions to the software center?

I live in India and I've set my update server to default ubuntu server. This is how it looks :

Try changing your update server and see if that helps. I've found that the IIT-M server (which I used for a bit) is heavily behind. However, I haven't gone back to it and have relied on the main servers since then.


How to install an older version of a an application?

Here how I downgrade a package. First look for available version:

apt-cache showpkg <pkg_name>

Check available version under Provides:. Then downgrade your package with

apt install <pkg_name>=<version>

By exemple for me:

apt-cache showpkg xfce4-whiskermenu-plugin

Returns:

Provides:
2.3.1-1 -
1.6.2-1 -

Finally to install version 1.6.2-1 (in case of 2.3.1-1 is installed)

apt install xfce4-whiskermenu-plugin=1.6.2-1

Note that command can fails if some dependencies needs to be downgraded as well.


Unable to process upgrades due to error with snmpd

I had exactly the same problem.

sudo dpkg --purge snmp

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libmysqlclient18 libperl5.18 libsnmp30 mysql-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  snmpd*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 232 kB disk space will be freed.
Do you want to continue? [Y/n] Y

Whoops.... its perl, mysql and the snmp lib.
sudo apt-get purge snmpd

Get rid of that too. Not only the config files.
If you want to get rid of the AUTOREMOVE messages and/or you actually need the packages just remove and reinstall the packages.

sudo apt-get autoremove

Modify as you please:

sudo apt-get install libperl5.18 libsnmp30 libmysqlclient18 mysql-common


The option you are looking for is buried away in the Firefox configuration options.

In the search bar type about:config as shown and accept the warning subsequently shown.

Search for permissions.default as shown

Right click and choose Modify and change the value to either 2 to block all images or 3 to block images coming from other sites not the site being loaded.

  1 allows all images to load,
  2 blocks all images,
  3 allows only
  images from the same site to load and blocks third-party-images

source

... and here is an example of option 2 with google.co.uk i.e. no google logo


How to get Intel Corporation Centrino Wireless-N 1000 working?

I suggest you try this:

sudo su
mv /lib/firmware/iwlwifi-1000-5.ucode.backup /lib/firmware/iwlwifi-1000-5.ucode
echo "options iwlwifi 11n_disable=1 bt_coex_active=N" > /etc/modprobe.d/iwlwifi.conf
exit

Reboot and tell us if your wireless is working as expected.


My keyboard is bugging out on 12.04 ubuntu

It seems that other people with the Saitek Elcipse 2 have observed and reported similar problems as recently as 2011, where the special keys fire a mouse event. I haven't found any evidence of a resolution. A thread at UbuntuForums documents the problem, and notes a workaround:

  But the best workaround till this is resolved is to press all the mouse buttons, which is left right and middle click (no need to press other buttons for gaming mice). When i do that workaround after changing colors everything goes back to normal till I change colors again. It seems that the light button is sending mouse presses.

A bug report on Launchpad confirms the problem for Maverick and Natty, but based on your experience there must be a regression in Precise as well.

You should report the bug and, meanwhile, you might try the workaround above. It's not a fix, but hopefully a future update will resolve the problem.


Unable to remove pgadmin3 version 1.18 from Ubuntu 14.04

pgadmin version 1.20 is currently installed on your system.

I don't think you've ever had both 1.18 and 1.20 of pgadmin3 installed at the same time.  The icons on the desktop have little relation to the actual installed versions of the applications.

In the case of the pgadmin3 package, the Debian APT package management system prevents you from having more than one version installed at the same time.

When you install an application for which multiple versions are available, look at the output of apt-get install to see the installed version number.

The output of your apt-cache show pgadmin3 output shows that you have 3 versions of pgadmin3 available for installation:

$ apt-cache show pgadmin3 | grep Version:
Version: 1.20.0-3.pgdg14.04+1
Version: 1.20.0-3.pgdg12.4+1
Version: 1.18.1-2
$

(The version 1.20.0-3.pgdg12.4+1 is for Ubuntu Precise 12.4. You should probably remove precise-pgdg from your software sources.)

I hope the following sections help you understand the steps you've been through and what was actually happening:

Default Trusty pgadmin Installation

This is on Trusty 14.04 with pgadmin3 1.18.1-2 installed. Neither trusty-pgdg or precise-pgdg appear in the software sources.

$ apt-cache policy pgadmin3
pgadmin3:
  Installed: 1.18.1-2
  Candidate: 1.18.1-2
  Version table:
 *** 1.18.1-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
       100 /var/lib/dpkg/status
$

Show installed versions of pgadmin3:

$ dpkg-query -W pgadmin3
pgadmin3        1.18.1-2
$

Invoke pgadmin3 -v to show the executable version:

$ pgadmin3 -v
pgAdmin III 1.18.1
$

Adding the trusty-pgdg repo (contains newer pgadmin3)

Now I've created a file /etc/apt/sources.list.d/postgresql.list containing the line:

deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main

And then run sudo apt-get update. Looking at the apt-cache policy we see now a new version (1.20.0-3.pgdg14.04+1) from the trusty-pgdg repo. Note the line "Candidate:" which shows which version is the best candidate to be installed:

$ apt-cache policy pgadmin3
pgadmin3:
  Installed: 1.18.1-2
  Candidate: 1.20.0-3.pgdg14.04+1
  Version table:
     1.20.0-3.pgdg14.04+1 0
        500 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64 Packages
 *** 1.18.1-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status
$

NOTE: Because there is a new "Candidate", either apt-get dist-upgrade or apt-get install pgadmin3 will install the new version of pgadmin3.

Install pgadmin3 again to get the most recent version from new repo

Now install pgadmin3 again, to get version 1.20 (we already have trusty-pgdg in our software sources list). apt-get install by default attempts to install the latest version, shown by the line "Candidate:" in the policy above:

$ sudo apt-get install pgadmin3
[ . . . ]
Preparing to unpack .../pgadmin3_1.20.0-3.pgdg14.04+1_amd64.deb ...
Unpacking pgadmin3 (1.20.0-3.pgdg14.04+1) over (1.18.1-2) ...
Preparing to unpack .../pgadmin3-data_1.20.0-3.pgdg14.04+1_all.deb ...
Unpacking pgadmin3-data (1.20.0-3.pgdg14.04+1) over (1.18.1-2) ...
[ . . . ]
Setting up pgadmin3-data (1.20.0-3.pgdg14.04+1) ...
Setting up pgadmin3 (1.20.0-3.pgdg14.04+1) ...
[ . . . ]
$

And verify the installed version:

$ dpkg-query -W pgadmin3
pgadmin3        1.20.0-3.pgdg14.04+1
$

$ pgadmin3 -v
pgAdmin III 1.20.0
$

Also shown by apt-cache policy:

$ apt-cache policy pgadmin3
pgadmin3:
  Installed: 1.20.0-3.pgdg14.04+1
  Candidate: 1.20.0-3.pgdg14.04+1
  Version table:
 *** 1.20.0-3.pgdg14.04+1 0
        500 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main amd64 Packages
        100 /var/lib/dpkg/status
     1.18.1-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
$

If you try to install again, no action will be taken:

$ sudo apt-get install pgadmin3
Reading package lists... Done
Building dependency tree
Reading state information... Done
pgadmin3 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$


Works in 14.04 LTS

Click on the Settings Icon in the top-right-most of the panel (on the right of Time)
Click on System Settings
Under Hardware section, Select Keybord
Under Typing tab, Click Text Entry
Click + button to add a keyboard layout
Type in Workman, you'll find this, asking you to select out of available:

Select, English (Workman). Then, click Add
Now, to switch between languages(keyboard layout), Press, Super+Space
Or you can change it by clicking Keyboard Layout icon in the panel on the left of battery indicator.


WiFi icon not displaying plus some WiFi networks never connecting on Ubuntu Studio 14.04

Install a driver this way

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


Unable to update a package after making python -> python3 symlink

Ubuntu has a version of Python 2 and a version of Python 3 installed by default.
Even if you don't want to do anything with them yourself, you need to respectfully leave them as they are, because many core programs in Ubuntu are written in Python and depend on Python. As many questions here testify
If you break Python, Ubuntu will break
So far you have not broken anything critical. You just need to delete the symlink you created, so that programs looking for python will not find python3 instead and fail horribly.
The default symlinks in 16.04 in /usr/bin should look like this:
$ ls -l /usr/bin | grep python
lrwxrwxrwx 1 root root           9 Oct 18 12:13 python -> python2.7
lrwxrwxrwx 1 root root           9 Oct 18 12:13 python2 -> python2.7
-rwxr-xr-x 1 root root     3777000 Sep 17 13:08 python2.7
lrwxrwxrwx 1 root root           9 Oct 18 12:13 python3 -> python3.5
-rwxr-xr-x 1 root root     4739496 Sep 22 13:18 python3.5

You don't say where you created your symlink, but you should remove it and make sure you have /usr/bin/python pointing to /usr/bin/python2.7.
cd /usr/bin ; ls -l           # if you have python -> python3 then
sudo rm python
sudo ln -s python2.7 python


GNOME Software shows less programs than Ubuntu Software Center

I do not know why gnome software does not show as many software however I do know that there is definitely no way to change the software it shows using the GUI if it can be done using the command line then I do not know how to do it


When installing or booting from USB flash drive screen goes blank

Try the option of "nomodeset"

The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.

Press any key at that moment to access a menu. Select your language with the arrow keys, press enter and you will see this menu: Then select F6


How to grant standard users access to disk partitions and flash storage?

Go to the Unity dash, and type Users and Groups.  When the window opens, click on the desired user, and then the Advanced Settings Tab

and then click on the User Privileges tab, and choose the options that you want.


Making Ubuntu 20.04 into a Router: something keeps adding default route for the lan interface

Nothing shown in your netplan config would cause a default route to be set on the lan interface.  Look for some other process that is running on your system that may be doing this, such as an extra dhcp client.


Can't redirect stdout and stderr in background

I solved the problem by add the -u argument to the command who launches my python script.
The command is now python3 -u main.py > /tmp/thebotlogs 2>&1 &
Apparently, it's the output buffering so the -u argument disable it
Thank you for your answers :)


Apparent Ubuntu 18.04 Intel RAID 0 Hardware Incompatibility

I used a drive to install 18.04 first. Then add the array into the system with Intel RST. The first drive sda has the U18.04. Then sdb, sdc, sdd is my RAID0 array.

$lsblk
NAME                        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                           8:0    0 149.1G  0 disk
└─sda1                        8:1    0 149.1G  0 part
  ├─action--1004--vg-root   253:0    0 148.1G  0 lvm   /
  └─action--1004--vg-swap_1 253:1    0   976M  0 lvm   [SWAP]
sdb                           8:16   0 931.5G  0 disk
└─md126                       9:126  0   2.6T  0 raid0
sdc                           8:32   0 931.5G  0 disk
└─md126                       9:126  0   2.6T  0 raid0
sdd                           8:48   0 931.5G  0 disk
└─md126                       9:126  0   2.6T  0 raid0


How to check what color depth my monitors are using in Ubuntu 14.10 (Unity)?

From this Ubuntu Forums post:

xwininfo -root | grep Depth


The following is based on the E514dw. I hope other Dell printers are similar, but no promises.

The first challenge is finding the drivers.

The important thing, for me, was to give up on searching Dell's site, and turn to Google: https://www.google.com.au/search?q=dell+E514dw+ubuntu

That returned: http://www.dell.com/support/home/au/en/audhs1/Drivers/DriversDetails?driverId=FV8XM

You can download a zip file from there that contains 4 drivers:

e514dwcupswrapper-3.2.0-1.i386.deb
e514dwcupswrapper-3.2.0-1.i386.rpm
e514dwlpr-3.2.0-1.i386.deb
e514dwlpr-3.2.0-1.i386.rpm

First, extract e514dwcupswrapper-3.2.0-1.i386.deb from the zip file.

And install it, for example:

dpkg -i e514dwcupswrapper-3.2.0-1.i386.deb

If you want to connect via usb, you should be done.

If you also want to connect wirelessly, there are a few more steps.

You might be able to skip this next step, but I also installed: e514dwlpr-3.2.0-1.i386.deb

dpkg -i e514dwlpr-3.2.0-1.i386.deb

Then use system-config-printer to add the printer as a network printer.

Run the printer configuration wizard:
    system-config-printer

Then:

click Add
click on Network Printer
wait a few 10s of seconds, and your printer should be detected
click on your printer, and click Forward
optional: set Host to your printers IP address
click Local Driver, then click Forward
make sure Dell is selected, then click Forward
make sure E514dw for CPUS is selected, then click Forward
optional: update the Name, Description and/or Location
click Apply
optional: print a test page.

If you didn't explicitly enter the IP address, the print system will now think your printer is called DELL5C5DFA.

To fix that, you can either edit /etc/hosts and add an entry for DELL5C5DFA, or can go back into system-config-printer and change the Device URI.

Either way, if you don't know your printer's IP address, you need to find it. I used nmap -O, but there are some other, maybe simpler, suggestions here: Finding the printer's IP address

To test your connection without having to print a test page, you can check 'ink/toner levels'


How can I stop my Dell Inspiron laptop from dimming the screen when I plug in the AC adapter?

Until someone comes up with an answer, here is at least a partial workaround that I use for the same problem (Dell Insprion 1525, 13.10).

I use "Indicator Brightness" http://www.omgubuntu.co.uk/2013/04/brightness-control-ubuntu which allows you to simply mouse over the indicator and roll the scroll wheel to increase the brightness.  If I am in a situation that makes it difficult to even see the indicator I will move the mouse, plug in the adapter, roll the wheel up, and bang you're back in business.

As explained in the article...

sudo add-apt-repository ppa:indicator-brightness/ppa

sudo apt-get update && sudo apt-get install indicator-brightness


How to use my computer's internet connection in Raspberry Pi?

On the Raspberry Pi, enter this command:

sudo ip route add default via xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is your desktop computer's IP address.

Your RPi already knows where your local network is. This command tells the RPi that there is a route to all other IP addresses (a default route) and it goes through your Ubuntu machine.

You may need to set DNS name servers as well.


How to unzip a zip file from the Terminal?

If the unzip command isn't already installed on your system, then run:

sudo apt-get install unzip

After installing the unzip utility, if you want to extract to a particular destination folder, you can use:

unzip file.zip -d destination_folder

If the source and destination directories are the same, you can simply do:

unzip file.zip


Remove ubuntu 14.04 from dual boot, resize partitions and reinstall

For re-installing Ubuntu it should be as simple as backing up & installing new.

Deleting the data from the old Ubuntu "/" partition may not be necessary, but it couldn't hurt. If you've got your home on a different partition you can keep that and use it with the new Ubuntu, most of your settings and things should be waiting for you in the new Ubuntu then.

That's a good way to upgrade to a newer Ubuntu release too, used to be recommended more often in the past, especially if the in-place dist-upgrade has any problems (or to avoid them in the first place).

If you wanted to completely remove Ubuntu, then erasing it's partition would do it, and could leave GRUB and edit it's menu (grub.cfg file) to remove the Ubuntu boot options. As long as the GRUB data isn't on the Ubuntu partition... But Windows is good at "fixing" booting problems for itself from a repair disk (by obliterating other boot loaders like Grub) if that were your goal.


How do I enable the built-in wireless on my hp mini 110-3710?

From the command line:

sudo modprobe hp-wmi
sudo service network manager restart


As far as I'm aware apt doesn't handle PAC files directly. But this file is nothing more than plain text describing the location of your proxy. The Wikipedia page for Proxy auto-config has some details. So I would suggest downloading the PAC file to your computer, open it in a text editor and try to find out the correct URL for your proxy. You can enter this information into the /etc/apt/apt.conf and this should work.

Other software might have seperate ways to handle PAC files. Firefox for instance has network settings. There you can enter the URL to the PAC file.


Apple Magic mouse on ubuntu 13.04, how can I prevent crashing one >=3 touch points?

So after trying out numerous things, including different bluetooth managers, different USB ports, searching for drivers etc.. The problem lies within the hardware. I have tested it with another Bluetooth dongle and it works better.

Issues that remain:
 - Can't fix the mouse speed without hacking
 - Can't fix the scrollspeed without hacking
 - Mouse randomly stopped working

Therefore I have decided to stop trying.


Forced into "Classic" interface under VMWare Fusion

Even in the latest version update for VMWare Fusion 3.1.3 for Mac they claim to support Ubuntu up to version 10.04. only. There was some improvement in 3D support but this may only be true for Windows or Mac OS.

See also this question.

If you need to run Ubuntu 11.04 with Unity supported you may want to try out Virtual Box.

In case the theme is not set properly run the following line in a terminal in the guest Ubuntu:

 sleep 5; ps -aef | grep gnome-settings-daemon | grep -v grep | awk '{ print $2 }' | xargs kill -9; sleep 2; gnome-settings-daemon; killall nautilus


set path in crontab,

PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
0 22 * * * /usr/bin/python3.5 /home/gmoreno/hue.py


Need to edit my locales under /etc/environment

You modified the wrong file.

Edit /etc/environment back to original...

In terminal:

gksudo gedit /etc/environment

Change this:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8 UTF-8

To this:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" # leave this line as is
LC_ALL=en_US.UTF-8 # remove this line
LANG=en_US.UTF-8 UTF-8 # remove this line

The file that you wanted to modify is /etc/default/locale... but not by editing it manually. It already contains LANG="en_US.UTF-8".

You'll need to tell us more about what/why you were trying to modify your system.


How to improve fonts displayed in evince?

A few years late, but considering I'm having this issue and this was the initial post to pop up on my searches, I figured why not.

I, and others, have this issue. It's apparently been around for awhile. evince doesn't render some of the fonts appropriately.

You can check to see if the fonts are embedded within your pdf document and then fix it with ghostscript.

I found an article on stackoverflow that explains it in pretty good detail. It's enough to work off of. Most of the fonts are most likely in your system already (they were installed on my system).

I also happened to find a slackware tutorial post that went in to similar detail.

Technically, and ultimately, though, its just how evince renders the pdf file. I can load my pdf files using different apps and I've noticed each one renders in a unique way.

The only one I've come across that renders it properly is Adobe's Acrobat Reader. I've tested this on multiple systems and devices using all sorts of pdf apps from OSS to Proprietary.

I still use evince regardless and sadly I don't have the time right now to play with the source to figure out why this happens. Maybe I, or some one else, will fix it one day. You never know. It is OSS.


Agent-state forever pending or no tools available

No tools available means that the bootstrap node can't access the outside world (or that agents can't reach the bootstrap node). There are ways around this for getting bootstrap up, see:

Configure Proxy Access
Set up a Private Cloud using Simplestreams


Downgrade Nvidia Driver from nvidia-440 to nvidia-390

I was able to get it to work by installing an older version of the kernel using synaptic. Here is what I did:

installed linux-image-generic-5.4.0-58 and linux-headers-generic-5.4.0-58
Edited /etc/default/grub and changed GRUB_TIMEOUT from 0 to 5
Ran sudo update-grub
Ran sudo reboot, being sure to press esc after the UEFI screen to enter the grub menu and select Ubuntu advanced -> kernel-5.4.0-58
Once logged in, opened a terminal and ran the install of the nvidia-390 using sudo apt install nvidia-driver-390 xserver-xorg-video-nvidia-390
Noting that it no longer complained of a newer driver in the kernel, I ran sudo reboot and repeated step 4 to ensure I was loading the correct kernel.
This time my screen resolution and second monitor worked perfectly, so I opened synaptic and searched for the kernel-5.4.0-60 version and marked it for removal and selected the kernel-5.4.0-62 version for upgrade. Ran the update and rebooted again, this time letting it start the default kernel which is now kernel-5.4.0-62. The correct driver was maintained and I am up and running again.


Netbook Ubuntu can I install something better now

The netbook and desktop edition of Ubuntu have been merged into the desktop edition, that's how we ended up with Unity (which would be great if it was a bit more snappy and stable). You could try to install Ubuntu 11.10 on that computer, though I'd recommend you use the "2D" environment (Unity 2D). If it doesn't work out you could always try a more lightweight Ubuntu derrative like Xubuntu or Elementary OS.
The advantage of most Linux distributions is that you can try them out from a LiveCD first to see if you like them (though I recommend putting them onto a USB drive (MultiSystem is a good application for that), CD's are a bit slow).


how to install Ubuntu 14.03.4 LTS into laptop with windows xp

Look at the initially system, first put in the ubuntu disk or usb in computer. Boot up from their. Then you'll see the installation of windows system partations. You need to add the ubuntu system, create the / directory, /home directory, and swap partation. Do you're research before doing any installation. Because the three partations/directory for ubuntu are really important.
 Here is my question toward your problem and my problems. The solution.

Ubuntu Hard drive Partition Setup?

Do your research. Ubuntu's installation is important.
Ron


Compare this line

sdc  iso966 Debian 8.11.0 amd64 1
                                 2018-06-23-13-24-25-00

with the correspoding line, when I loop mount my similar iso file

sudo mount -o loop debian-live-8.8.0-amd64-standard.iso /mnt/lp1

$ sudo lsblk -f
NAME   FSTYPE   LABEL                         UUID                    MOUNTPOINT
loop0  iso9660  Debian jessie 20170506-14:26  2017-05-06-13-27-04-00  mnt/lp1

You see that there is an iso 9660 partition structure and file system, which is typical for a system, cloned from a hybrid iso file. The iso 9660 system is read-only by nature, and cannot be modified.

So you need to use an extracting tool (not a cloning tool), if you want to be able to
modify it. But I am not sure that a live or persistent live system will be able to take advantage of the firmware you want.

Instead I suggest that you create an installed system in your USB drive (installed like into an internal drive), and install the firmware (and maybe drivers and other software) into that system. See this link (and modify it to take into consideration, that it is not an Ubuntu system, or simply try the newest Ubuntu system, 18.04.1 LTS).

Boot Ubuntu from external drive


Do I need to upgrade RAM from 4GB to 8GB for Android development?

The recommended amount of RAM for running Android Studio Ubuntu is 8GB, and your computer has only 4GB of RAM. You should expect to get not better than minimal performance from hardware that meets only the minimal requirements for Android Studio, and you should expect to get recommended performance from hardware that meets the recommended requirements.
As you get deeper into Android Studio you'll find out again and again what a resource hog it is. Android Studio is a very feature rich IDE, and you need to give it more resources in order to use all of its great features. In addition to the RAM having a decent graphics card would also help.


How can I correct for a slow scanning document feeder?

Solved this with some -resample:

convert -strip -resample 300x260 -density 300 in.pdf -compress jpeg out.pdf

The -compress flag is in there because without it there was a sevenfold increase in file size. This is slightly smaller than the original with plenty of quality.


I have just solved the problem: it is just a new kernel bug.
You can solve it by using:

options snd-hda-intel model=<your_model_or-audo> position_fix=2

In /etc/modprobe.d/alsa-base.conf


Track and delete commands currently in place

First, physically disconnect your system from the network. Then, read ~/.bashrc (and files sourced from there)( and read man bash about STARTUP FILES to see others), and inspect the .desktop files in ~/.config/autostart/, and /etc/xdg/autostart/.

locate can help:

locate .desktop
locate autostart

will give you the beginning of a list of  files to check.

Since, on MY system,

$ (locate autostart;locate .desktop) | sort -u| wc -l
5947

there are 5947 autostart or .desktop files, this cries out for automation.

First, are the files installed by a known package? If not, further investigation is needed.

(locate autostart;locate .desktop) | sort -u| xargs -n1 dpkg -S

Use journalctl -b to look at the logs, and see if there's anything there.


After adding the PPA run:

sudo apt-get update

To reload the packages list and try again. Make sure the PPA contains packages for the ubuntu release you are currently using.


How to add shortcut-key to create a New Text File in Dolphin

I came up against the same problem. Creating new text documents is a HUGE part of my workload, and this would save a lot of time.
Unfortunately, I have not yet found a way to make a shortcut key for it. (Though I'm investigating Xbindkeys -- with that, you can (globally) assign console commands to keyboard shortcuts but I need to figure out how to make it aware of what window has focus and what folder dolphin has open, so that the console command knows what folder to create the new text document in. And then I'd need to write a script that shoots up a pop-up window asking for the document name... As you can see, definitely not quite there yet.)
Anyway, I do kind of have a bit of a workaround that may help you.
If you go to: dolphin's menu --> Configure Toolbars... you can add new items to the toolbar, and one of the items you can add is 'create new'.
Once that's added to the toolbar, that streamlines things a little bit.
Before: right click empty area --> click create new --> click text document
After: click create new --> click text document
Not much, I know, but it is a little bit faster.
Maybe send a feature request to the dolphin developers for this keyboard shortcut? Adding new (not assigned by default) keyboard shortcuts is usually fairly easy, and developers are often happy to do it.


I know this is an old thread but putting a potential solution here just in case someone needs it. From terminal run:

sudo apt install nvidia-384

Next time it should show you that it is using that driver.


udevadm trigger not permitted message on the screen

Your question as it now is not clear. See How do I ask a good question?

So basically, You have installed Ubuntu after reboot you got this error:

  udevadm trigger not permitted

Then you boot from USB stick and trying to recover it by following this post:

Udevadm trigger is not permitted
Well, the first error message:

  mkdir: cannot create directory 'media/newroot':File exists

comes from mkdir /media/newroot because you already have /media/newroot in place. So no need to create it.

The second one:

  cant find /dev/sdb1/media/newroot

See by mistake, you missed a space between /dev/sdb1 & /media/newroot
Would you try it again, and use this command to check if it get mounted correctly:

ls /media/newroot

You should see your files there. If it is was ok carry on:

sudo chroot /media/newroot/
dpkg --configure -a
update-initramfs -u -k all
exit
sudo umount /media/newroot/
sudo reboot


Start an application on VirtualBox Virtual machine from Host machine Command Line

Over 30 years ago, one could do remote execution with UUCP using the uux(1) command. Looks like it is still around.


How to make jar file executable from anywhere without root permission

This sounds like you messed up the permissions of the Jar file. Check what permissions the file currently has using ls -l /bin/Test.jar. Maybe you didn't give execution permissions to all users or didn't assign read permission.

You can simply fix this with a chmod guo+rx /bin/Test.jar and the necessary permissions should be there.

Also, please note that /bin is meant for system executables. For your own executables, use /usr/local/bin. For further information read this Unix SE answer.


Moved from comments:

bcmwl-kernel-source is a package containing a source files for your wireless interface card driver. The system uses these to configure/build the kernel module for the driver. This is a driver for legacy cards and have some known bugs (no support from upstream and relatively rarely used). It is hanging on the package install step, which is probably also the step that loads the kernel module (driver).

The easiest way to get around this is to disable "install updates and extra drivers" during your installation, and then deal with configuring the wireless card after you get your system running

Source + More information


I reinstalled Ubuntu and while downloading Chrome I am getting "Error: Dependency is not satisfiable: libasound2 (>> 1.0.23):"

I think it can be solved by installing Chrome through repository directly. Just run:

sudo add-apt-repository "deb http://dl.google.com/linux/chrome/deb/ stable main"
sudo apt-get update
sudo apt-get install google-chrome-stable

This works for me. You can also install google-chrome-beta or google-chrome-unstable to get later versions of Chrome.


You can go to Control Center > About me

Or you could begin logging out, and a windows will appear saying

  You are currently logged in as your name


Installing Windows 10 in dual boot with Ubuntu

i noticed the forum and your question. I know you can partition the hard drive with some software that will enable you to have two separate partitions on one hard drive for two separate systems. I believe when doing a duel boot there isn't really a Default boot option however i may be wrong.
An example of some software free to download and use to partition your hard drive is: Gparted, i've used this software myself it worked like a charm. Pretty easy to use the two links below are the download link for the software and a web page of how to use it. Hope this helped!! :)
Download: http://gparted.org/download.php
Help page: http://www.makeuseof.com/tag/gparted-ultimate-partitioning-software/


You probably need to use sudo.

sudo kill -9 2838

Then pgrep -fl apt to see if it is still running or

ps aux |grep aptd

to see who the user is and what the PID is:

phil     20438  0.0  0.0  11744   916 pts/2    S+   10:43   0:00 grep --colour=auto aptd


Help! No brightness slider in the settings (ubuntu 16.04 desktop with nvidia GTX960)

Finally this worked for me:

sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt-get update
sudo apt-get install brightness-controller

Still I wish I could get a normal slider in the settings menu...


How to get errors from a system freeze? Ubuntu 14.04

I've figured out. Maybe my kernel was not working properly with the drivers I had to use. I tried installing another kernel version. (Works most of the time).

An amazing program for doing that is Ukuu.

First add the repositories:

sudo apt-add-repository -y ppa:teejee2008/ppa

Now update them:

sudo apt-get update

Install the program:

sudo apt-get install ukuu

And then launch it from the launchpad or via the terminal by:

sudo ukuu-gtk

Inside the program, you can choose the kernel you want. Then, it downloads and installs it.
As the program indicates, those are the common errors that you have, caused by a non compatible kernel.

Hope it helps...


How can I get the solarized color theme for MATE terminal?

By using this:
https://github.com/oz123/solarized-mate-terminal

Install git on your system.
Then in a terminal run

git clone https://github.com/oz123/solarized-mate-terminal.git
cd solarized-mate-terminal
./solarized-mate.sh dark

or

./solarized-mate.sh light

restart the terminal and enjoy.


Not Found The requested URL was not found on this server

The instructions on the possibility of using an underscore _ in a domain name are a bit ambiguous from a theory standpoint. But it is for sure not encouraged in modern practices. A domain name with an underscore in it will most likely be both not resolve and not allowed by modern systems. The same goes for host-names as well and even Apache's DocumentRoot in some cases.
Please see this post for example:
Can (domain name) subdomains have an underscore “_” in it?
And this post related to Apache's DocumentRoot:
Bad Request Your browser sent a request that this server could not understand
It is worth noting as well that the TLD .local might not be fully supported on all DNS revolvers and in this case the TLD .localdomain might be used instead.


Problem with Microsoft fonts and facebook

I have the same problem but with arabic, but i found a really excellent answer from :

"Florian Heinle
1,272618"

HE wrote :

  "My answer assumes you did not have fonts like
  Tahoma, Arial, etc installed before and that this is happening in any
  browser. Facebook uses the following fonts mostly: Lucida
  Grande, Tahoma, Verdana, Arial, Sans-serif. Those are used in the order
  provided. If Lucida Grande is not available, it will use Tahoma, then
  Verdana, then Arial, then falls back to a default sans-serif font,
  most likely DejaVu Sans or Ubuntu. What likely happend was that with
  installing Windows fonts those became available to your browser for
  rendering Facebook. Does it bother you? You could install Lucida
  Grande to have Facebook show up as intended by Facebook.
  Alternatively, you could disallow websites from setting their own
  fonts and have all the sites fall back to Firefox' default fonts (and
  sizes) in Firefox' settings (contents, advanced in the fonts section,
  tick the box there)"


you are running the remote desktop service as system user providing a  login service in ubuntu so you get an individual desktop session , if you run the remote desktop service as a user once logged into the ubuntu desktop you can share that desktop.

to share your current desktop:

open the menu with the windows key
type 'desktop sharing' to find the desktop sharing config
use the dialog to enable and configure desktop sharing.

be sure to use a strong password and turn it off when you aren't using it.


mounting a network server on ubuntu machine

Regarding 2, try this, it will set your local user as owner of those files:

sudo mount -t cifs server-name /home/user/Desktop/New -O username=XXX,uid=yourlocalusername

More on this here: https://wiki.samba.org/index.php/Mounting_samba_shares_from_a_unix_client


Why does Google Drive in Ubuntu show additional files compared with the web app?

I was seeing exactly the same - hundreds of files and folders in my Google Drive when viewing with the Ubuntu Files app, but when I looked at Google Drive using a web browser, they weren't there.  They also weren't in the Google Drive Bin, and neither where they shared with me.  Eventually, I worked out why.  If I disable Show Hidden Files in the Ubuntu Files app, they all disappear.  I suspect that Google Drive must just "hide" files if they are moved or deleted from anything other than their web interface.  I think all the files that I could see before I disabled Show Hidden Files were probably deleted from the same Google Drive folder in my Windows PC.


How can I setup Ubuntu (and my home network router settings) so I can SSH to Linux console window?

Install the openssh-server package.

If you want your machine to accessible from the outside world, you'll want to forward a port - the destination is port 22 on your computer; the source port can be anything.

If you only want it to be accessible on your home network, DON'T forward the port.

I'd also set up SSH keys, and possibly turn off password logins altogether.

You may also wish to install fail2ban or some other sort of access-control system (fail2ban checks for repeated failed logins & bans the IP with firewall rules.)


No terminal colors in Ubuntu Server 12.04

You do not have problems with your terminal or terminal setting. Try this:

ls --color

It works, doesn't it?

Most likely, you have replaced your .bashrc. You can find the original .bashrc, which for example defines the alias ls='ls --color=auto' and also color promtpts in /etc/skel/.

Copy a new .bashrc with:

mv ~/.bashrc ~/.bashrc.old
cp /etc/skel/.bashrc ~/.bashrc


Ubuntu 17.10: Firefox/Google Chrome extensions not in sync with GNOME Tweak Tool extensions

From the screenshot it seems you're in a "GNOME Classic" session.

In GNOME Classic session it doesn't matter what it shows, extensions like "Window List", "Application Menu", "Places Status Indicator" are always activated by default. It doesn't even provide the user an easy option to disable them (try disabling/enabling any of the aforementioned extensions, you'll see no change).


Change Xsensors in Ubuntu 18.04.3 LTS Bionic to display Fahrenheit?

The same way as with sensors:

xsensors -f

Use man:

man xsensors

It displays:

OPTIONS
       -f     display all temperatures in Fahrenheit.


Where can I download Xubuntu released wallpapers?

This is the link of the newest won Xubuntu 14.04 wallpapers , they are wonderful !

Xubuntu 14.04 Wallpapers


You seem to be doing everything right. I think it's a KDE issue, seeing as to how you're using Ultimate Edition 3.5. You can try running the sudo apt-get update command or update to U.E 3.6


This is from the Audio Handbook

System Requirements
Before running the installation, you might want to check that your computer has the minimum requirements.

• 2 GHz dual core processor
• 2 GB RAM (system memory)
• 25 GB hard-drive space (Ubuntu Studio's footprint is much smaller, but you'll need extra space)
• VGA monitor capable of 1024x768 resolution
• Either a CD/DVD drive or a USB port to install and try out the operating system


FortiClient SSL VPN Connected but cannot access IP

The Issue was due to the same IP ranges, both my local network and VPN used 192.168.1.0 subnet.
I have changed my local IP range to 192.168.10.0 and added a route entry for vpn

sudo route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0

Then I could successfully access the vpn on 192.168.1.0


can i have a virtual CD DRIVE in lubuntu 13.10

I fear you can't have a virtual CD drive from which you can boot. There is a nice program gmount-iso that lets you mount image files but it will not help at boot time.

Julian Stirling aptly described the reason in the comment above:

  The problem here is that the virtual CD is is a program running in an operating system, so you can't boot from it because it only exists once the operating system is booted.


This is a known Firefox feature/bug. It is related to how firefox interprets color profiles. You have more information in the link, but to sumarize it you should disable color profile management in Firefox:

Type "about:config" in the firefox addresss bar. Search for "color". Double click on the gfx.color_management.mode option and set the value to 3. Then restart Firefox.


How to select Kernel driver in use for GPU

You could try to manually unbind the Driver from the Device. Check this guide here: https://lwn.net/Articles/143397/

Type in sudo tree /sys/bus/pci/drivers/amdgpu.

You should recieve a list like this:

/sys/bus/pci/drivers/amdgpu
├── 0000:03:00.0 -> ../../../../devices/pci0000:00/0000:00:03.0/0000:03:00.0
├── 0000:04:00.0 -> ../../../../devices/pci0000:00/0000:00:05.0/0000:04:00.0
├── bind
├── module -> ../../../../module/drm
├── new_id
├── remove_id
├── uevent
└── unbind

I think you need to turn off your window manager before you unbind the driver from the graphics card. Open a console outside of the desktop environment with CTRL+ALT+F2 for example.
Login as root and type systemctl stop lightdm.service. Exchange lightdm with whatever manager you have.

Now unbind the module from the device:

echo -n "0000:04:00.0" > /sys/bus/pci/drivers/amdgpu/unbind

and bind it to whatever module you want.

echo -n "0000:04:00.0" > /sys/bus/pci/drivers/path_to_your_driver/bind

After that, you can start your desktopmanager again:
systemctl start lightdm.service

If everything worked you should find your device binded to the module you specified until reboot.


In general, updates to existing packages will overwrite existing files, and the installed size should stay the same, give or take a few percent.

Some packages are installed in parallel - for instance, each new kernel version is installed alongside the existing version (so that you can revert should the new version not work). Each kernel update adds O(100MB) to the installation, which will not automatically be freed until upgrade to a new Ubuntu version (but you can manually remove the older kernel packages).

The .deb packages recently installed by updates are stored in /var/cache/apt/archives. This directory can grow quite large - you can (harmlessly) clear it out with sudo apt-get clean if space usage becomes a problem.


Can't type in guest session terminal windows

As an administrator type the following in the terminal

sudo nano /etc/apparmor.d/lightdm-guest-session

Add the following line

# Allow gnome-terminal
unix (send, receive, accept) type=stream addr="@/tmp/dbus*",

It should look like this:

# vim:syntax=apparmor
# Profile for restricting lightdm guest session

#include <tunables/global>

/usr/lib/lightdm/lightdm-guest-session {
  # Most applications are confined via the main abstraction
  #include <abstractions/lightdm>

  # chromium-browser needs special confinement due to its sandboxing
  #include <abstractions/lightdm_chromium-browser>

  # fcitx and friends needs special treatment due to C/S design
  /usr/bin/fcitx ix,
  /tmp/fcitx-socket-* rwl,
  /dev/shm/* rwl,
  /usr/bin/fcitx-qimpanel ix,
  /usr/bin/sogou-qimpanel-watchdog ix,
  /usr/bin/sogou-sys-notify ix,
  /tmp/sogou-qimpanel:* rwl,

  # Allow ibus
  unix (bind, listen) type=stream addr="@tmp/ibus/*",

  # mozc_server needs special treatment due to C/S design
  unix (bind, listen) type=stream addr="@tmp/.mozc.*",

  # Allow gnome-terminal
  unix (send, receive, accept) type=stream addr="@/tmp/dbus*",

}

Save the file, try restarting apparmor

sudo systemctl restart apparmor

If you don't get anything when restarting the service, the profile is ok, else if you get an error, try to correct the syntax of the file, theres probably a mistake made.
Now login as the guest account and the terminal should be working.


Hidden files show up in Nautilus recent files

I do not know how you hid them, but there is another way. Simply edit the name and put a "." in front of it. For example, if the name is "test.txt", then rename it to ".text.txt". Same thing for folder. If it is still there, press ctrl-h.

Note: Hiding Files is just a convient way of not displaying files that are only for internal purposes. They are easy to find. If you want to secure your files, see https://help.ubuntu.com/community/EncryptedHome.


How to get latest Wordpress on 12.04.4 LTS

It's pretty easy to get the latest WordPress installed on Ubuntu 12.04. I do it multiple times a week.
As you've already mentioned, the con of using apt-get to install the wordpress package is that it's not currently up to date. If you do it this way, you'll still need to

modify permissions on the directory root to update through the Admin dashboard,
hand over your FTP credentials to update through the Admin dashboard, or
download the latest release anyways and manually install the code.

Alternatively, you could just download the latest WordPress directly. This is what we have our users do.
Make sure you don't miss the following related AskUbuntu questions:

What's the recommended way to install Wordpress from packages on a server?
How do I configure Wordpress to update automatically?


Borked encoding in Ubuntu 13.04 for Slovak language

Seems like there is a bug in the Slovak locale with respect to the LC_NUMERIC category. Try to add this line to your ~/.profile file:

export LC_NUMERIC=en_DK.UTF-8

(assuming that en_DK.utf8 is one of the available locales according to the locale -a command)


You can edit the file using

nano ~/.profile

To get the default ~/.profile back use

cp /etc/skel/.profile ~/.profile

As this will overwrite your modified version you may want to save your version first:

cp ~/.profile ~/.profile.invalid


You need to go to the Feed Update Settings in the Preferences and change the default feed interval as in this picture, and consider reading the written note:


Window buttons vanish after upgrading metacity packages

Quite likely what happened is that you have not upgraded a related package (such as the unity-window-decorator's required libs (metacity-common, libmetacity-private).

Wait a while, then check for updates manually again (sudo apt-get update in a terminal, or refresh your sources in synaptic) and you should see some new package updates.
Once you apply these, run unity (alt+f2>unity or logout and login again) to reload the window decorations.


WPS Office is an office productivity suite, including Writer, Presentation and Spreadsheets. WPS Office is a native snap package in Kubuntu and other Ubuntu flavors. To install it in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install wps-office
sudo snap connect wps-office:removable-media

In order to install  WPS Office Suite with support for many languages type:
sudo snap install wps-office-multilang

To list the supported languages of wps-office-multilang run snap info wps-office-multilang.
The wps-office snap packages will be updated automatically when updates are available.


Iptables rules slow down loggining in via SSH

From iptables --help:

--numeric   -n      numeric output of addresses and ports

https://serverfault.com/questions/85602/iptables-l-pretty-slow-is-this-normal

Include the -n option so it doesn't try to use DNS to resolve names for every IP address, network and port. Then it will be fast.

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

Allowing Established Sessions

We can allow established sessions to receive traffic:

sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT

If the line above doesn't work, you may be on a castrated VPS whose provider has not made available the extension, in which case an inferior version can be used as last resort:

sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

edited out because help.ubuntu.com offers a better and completer sollution ignore below

https://serverfault.com/questions/416537/why-does-a-valid-set-of-iptables-rules-slow-my-server-to-a-crawl

Rule to accept traffic based on existing traffic

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


Simply, if inaccurately, the Chromium and Google Chrome browsers now use something called "Aura" and so many GTK+ aspects no longer apply.

You can read about Aura here: http://www.chromium.org/developers/design-documents/aura-desktop-window-manager and note the section titled "Platform Native Control (aka Gtk/HWND) Elimination".

I don't know to what extent your difficulties are related to the use of Aura.


Start Gnome at lock screen at startup in ubuntu 16.04

Not entirely clear but it sounds as you want to switch from lightdm to gdm. This should be doable using sudo dpkg-reconfigure gdm. This of course requires gdm to be installed.

Found a guide for 14.04 but it should work for 16.04 as well (https://itsfoss.com/switch-gdm-and-lightdm-in-ubuntu-14-04/)


Recover data in external harddisk (which still shows 1.2/2Tb as used) accidentally erased using Startup Disk Creator

I have had this problem and it seems, you have to purchase a non-free to get the files as they are with all folders. Photorec is very powerful and it will centrally recover all your files till they were not over written but they will be renamed and sorted in folders according to photorec's policy.

R-studio is great one that supports multiple platform and all major file systems. It saved my arse back than.

Best of luck.

VVI : Back up !!!!! Back up !!!!! Back up !!!!!

Edit: this kind of problem has been solved here :)

Instructions step-by-step:

`Install TestDisk
 Mount the drive
 Launch sudo testdisk (eventually enlarge the terminal)
 Create a new log file
 Select the drive
 Select partition Table (usually Intel should be good)
 Analyse
 Quick Search (this should found only the actual partition)
 [Enter]
 Deeper Search (this should find your old partition, you can stop it after it found  it) Once you found what you think it's your partition select it with up/down arrows
 [P] for list files and look if it seems it
 [q] to quit list files
 [Enter]
 Write to save new partition table to MBR.`

Look carefully: this don't overwrite / recover any data, just the MBR of the disk.

Source: Recover 1TB disk erased with startup disk creator


unattended-upgrades and postgresql version

Unattended Upgrades only works from certain repositories.
Let's take a look at which repositories. Here's the setting in /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}";
        "${distro_id}:${distro_codename}-security";
        // Extended Security Maintenance; doesn't necessarily exist for
        // every release and this system may not have it installed, but if
        // available, the policy for updates is such that unattended-upgrades
        // should also install from here by default.
        "${distro_id}ESM:${distro_codename}";
//      "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
};

Let's interpret that: It means the Unattended Upgrades ONLY looks for security updates in the -security pocket of the Ubuntu repositories. You can change the setting, but the question you asked suggests that you didn't know about it (so it still looks like this).
This is one of the great benefits of using the Ubuntu Repositories: Security updates from the Ubuntu Security Team.
Since you installed Postgresql from someplace else that's not on the Allowed-Origins list (and uses different package names and versions), Unattended Upgrades WON'T apply security updates nor new versions. Nor will the Ubuntu Security Team patch your packages. You are on your own.

If multiple sources provide the same package name (regardless of what the contents are), Unattended Upgrades may indeed install upgrades from sources that are in Allowed-Origins. That might indeed cause problems, so keep your third-party sources to a minimum.

Generally, most -security pocket upgrades involve patching the currently-available version rather than bumping to a higher version (which can breaks workflows). There are a few exceptions and corner cases.


Boot without password, but still have encrypted partitions

As long as you ensure that non of the data on the encrypted partition is needed to enable a system boot you could just remove the reference to it from /etc/crypttab to stop it from being auto-mounted at boot. Alternatively you could leave the reference in place but add the noauto option.

As for the swap the easiest solution here is just to have it be encrypted using a random key each boot seeing as data on swap need not persist between reboots anyway this is perfectly fine you can use an entry like this in crypttab to do so:

sda6_crypt /dev/sda6 /dev/urandom cipher=aes-xts-plain64,size=256,swap,discard

Replacing the sda6 with your physical swap partition.


This is missing from the documentation, but if you don't have your own DHCP server somewhere else, MAAS does not automatically enable its DHCP server or give an obvious switch for turning it on. It's somewhat buried within the VLANS page. To fix this, in the web UI:

Click the Network tab
Click the VLAN you want to run your DHCP server on
Click "Take Action"
Enable DHCP

This is not an option if you go to the subnet page, so it's really easy to miss this.


Network GUI Tools in 11.10+ (Whois, DNS Checker, Trace Route, etc...)

The package is called gnome-nettool and can (if not already) be installed via the terminal or the Ubuntu Software Center.

Look for it on the Unity dash

Hope this is the one your looking for


Try to log in with Public Key Authentification disabled, using

ssh -o PubkeyAuthentication=no root@newserver


Integrated webcam worked on previous version, but not Ubuntu 20.04

I faced a similar issue and a simple restart solved it. If that doesn't work, try installing guvcview from snap store.
sudo snap install guvcview

Worked like a charm for me.


trackpad script not working on startup / login

This doesn't explain why it is happening, it's just a workaround.

You could automatically reset the property whenever it changes. Use this script:

#!/bin/bash
while true; do
  xinput list-props 12 | grep -q "Synaptics Scrolling Distance (273):.*-25, -25" || xinput set-prop 12 273 -25 -25
  sleep 5
done


Is there an IDE with Inbuilt Browser and terminal?

I think a better solutuion to your alt-tabbing problem would be, instead of trying to find an IDE which integrates all the things you need (what about an IRC client? Skype?) - is to use a window manager which helps you to organize your windows in a way which eliminates alt-tabbing and provides instant access to all your windows.

Have a look at some tiling window managers - I personally use Xmonad but there are a few others.

This way you will be able to use "real" programs - a real browser, a real terminal client - instead of their embedded versions.

Here's a picture from xmonad.org:


How to NOT store credentials for WPA enterprise?

When you're entering your credentials while connecting for the first time, click on the symbol in the "Password" field. A pop-up should appear. Select "Ask for this password every time".


How to have more Workspaces created/removed Automatically?

I am guessing you are using Unity. This idea is a feature in the Gnome-3 desktop environment see the right column on the image below - workspaces are added and removed as necessary. In this case there are two, but if the user puts something in the second workspace, a third one is created.). .

To install the gnome-shell, use these commands here:

How do I install and use the latest version of GNOME?

Then, log-out and before you log back in, change your desktop by clicking on the Ubuntu icon near your login name. Here are more detailed instructions.


Can't install google chrome on Ubuntu 12.04

To uninstall previously install one:

sudo apt-get remove google-chrome-stable

For 32 bit OS:

cd /tmp && wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i google-chrome-stable_current_i386.deb
sudo apt-get -f install

For x64 OS:

cd /tmp && wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install


How to change Gsettings via remote shell?

The key is to set the DBUS_SESSION_BUS_ADDRESS environment variable.

On this thread I found the following script, that helps to get the correct value of that variable. It requires name of the process, that is running on the desktop, on which we want to change the dbus settings. (There can be more than 1 running graphical sessions in parallel). Lets call it discover_session_bus_address.sh

#!/bin/bash

# Remember to run this script using the command "source ./filename.sh"

# Search these processes for the session variable
# (they are run as the current user and have the DBUS session variable set)
compatiblePrograms=( nautilus kdeinit kded4 pulseaudio trackerd )

# Attempt to get a program pid
for index in ${compatiblePrograms[@]}; do
    PID=$(pidof -s ${index})
    if [[ "${PID}" != "" ]]; then
        break
    fi
done
if [[ "${PID}" == "" ]]; then
    echo "Could not detect active login session"
    return 1
fi

QUERY_ENVIRON="$(tr '\0' '\n' < /proc/${PID}/environ | grep "DBUS_SESSION_BUS_ADDRESS" | cut -d "=" -f 2-)"
if [[ "${QUERY_ENVIRON}" != "" ]]; then
    export DBUS_SESSION_BUS_ADDRESS="${QUERY_ENVIRON}"
    echo "Connected to session:"
    echo "DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}"
else
    echo "Could not find dbus session ID in user environment."
    return 1
fi

return 0

With this script we can do the following, assuming that unity process is running on the desktop, on which we want to apply our settings:

. ./discover_session_bus_address.sh unity
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize "4"

And things should work OK.


It ended up being a proxy problem, so never mind :)


For any system-wide proxy for HTTP, you can check the value of http_proxy environment variable:

echo "$http_proxy"

For HTTPS:

echo "$https_proxy"

Similarly, there are ftp_proxy, socks_proxy for serving the exact purpose of their names. There is also all_proxy for setting proxy for all these protocols at once. Just to note, no_proxy unsets proxy for any specific addresses of any (or all) given protocol. Just for sake of completeness, you might want to check the uppercase version of these variables too, although the lowercases are standard for *_proxy environment variables (only environment variables i am aware of that are lowercased).

Note that, these will show any system-wide proxy setting, not application-specific. For example, firefox, or apt can have their own proxy settings irrespective of any global one. Some applications do not honor these variables too (e.g. specific gnome apps use gsettings), so YMMV.


How do I automatically load my ~/.zprofile when I log in?

Commands from ~/.zprofile are only read if the shell is a login shell. Did you set zsh as your default shell using cshsh or just in the preferences of the terminal emulator? If the former, logging out and back in should do the trick (although, the file will be only read when you actually perform the login, not when you start a new shell), or you have to tell your terminal emulator to execute the shell as a login shell. If you are using gnome-terminal, go to Edit->Profile Preferences, select the Title and command tab and check the Run command as a login shell box.


The first place I would look for parameters like those in the other post would be cat /etc/modprobe.d/iwlwifi.conf and then check what parameters you can use with modinfo -p iwlwifi  If you find that the cat command shows just options iwlwifi 11n_disable=1 you can delete the file sudo rm /etc/modprobe.d/iwlwifi.conf and reboot

EDIT: Please add the result of cat /etc/modprobe.d/iwlwifi.conf to your question before using sudo rm /etc/modprobe/iwlwifi.conf


Simply put:

If you open a shell or terminal (or switch to one), and it asks you to log in (Username? Password?) before it gives you a prompt, it's a login shell.
If it doesn't (like gnome-terminal), and lets you use it straight away, it's a non-login shell.

If you are a normal user of Ubuntu Desktop, the only login shell is...your desktop (you type a password to get in, right ;)? Well, technically it's a login shell that starts a GUI, but that's getting in to jargon. And yes, it will read the settings in .profile
The only time you (a normal user) will probably see a login shell that looks like a login shell is if you are having some problem with your desktop and you switch to a virtual terminal with the Ctrl+Alt+F1 shortcut.

The other general cases for having a login shell include:

accessing your computer remotely via ssh (or connecting locally with ssh localhost)
simulating an initial login shell with bash -l (or sh -l)
simulating an initial root login shell with sudo -i

or sudo -u username -i for another non-root user

authenticating as another non-root user with su - username (and their password)
using the sudo login command to switch user


I had the same issue after upgrading to Ubuntu 17.10. Reinstalling xserver-xorg-input-all worked for me.

sudo apt install --reinstall xserver-xorg-input-all


I have ubuntu and win 10 in dual boot it shows GNU grub2 error

I recently did something similar, and I just wanted to get back to Windows only. You need to fix the boot record of your disk - something like https://www.easeus.com/partition-master/repair-mbr-windows-10.html or https://www.pcworld.com/article/3113585/windows/how-to-repair-windows-master-boot-record-and-fix-your-bricked-pc.html

What I ended up doing was:

Use ubuntu live usb stick to erase the ubuntu partitions and resize
the windows partition to use the new free space - I used gparted for this.
Create a windows 10 installation usb stick and repair the boot record.

I strongly recommend having a second system available to create usb sticks and google stuff.


From  https://dbus.freedesktop.org/doc/dbus-tutorial.html#interfaces

  When each application connects to the bus daemon, the daemon immediately assigns it a name, called the unique connection name. A unique name begins with a ':' (colon) character. These names are never reused during the lifetime of the bus daemon - that is, you know a given name will always refer to the same application. An example of a unique name might be :34-907. The numbers after the colon have no meaning other than their uniqueness.

And a little further

  Applications may ask to own additional well-known names. For example, you could write a specification to define a name called com.mycompany.TextEditor. Your definition could specify that to own this name, an application should have an object at the path /com/mycompany/TextFileManager supporting the interface org.freedesktop.FileHandler.

So something like :1.123 is just unique name but it also might be referenced under a human-readable name somewhere in the list,too


If you mean to type bash commands on the desktop you can use the guake terminal.


How to check if a specific programm is installed?

If your name sp refers to a package name, the correct procedure, imho, is to use

dpkg --get-selections sp

(dpkg -l provides an output adapted to the terminal width, and so can truncate package names, and it also reports non installed packages for which still exist config files)

If you name refer to an application name, the following could be useful (if using the default bash shell)

type sp


You probably are interested about bash quick substitution in the last command:

!!:gs/old/new

Example:

$ ls *.txt | grep -e 'foo' >> list_of_text_files_containing_foo.txt
$ !!:gs/foo/bar
ls *.txt | grep -e 'bar' >> list_of_text_files_containing_bar.txt

For more info about bash substitution, read man bash starting from somewhere from the line 3630.


Ubuntu 18.04 Dock mouse hover tooltips - how to disable?

there is no direct or simply way to configure what we need in question.
But it can be done by editing the User Shell theme that is in use.

if you are using default theme in 18.04, below is the way to achieve.

first take back up of /usr/share/gnome-shell/theme/ubuntu.css file.

now open the file with you favorite text editor, mine is gedit, so

sudo -H gedit /usr/share/gnome-shell/theme/ubuntu.css

go to line number 1205 and find the below content.

.dash-label {
  border-radius: 7px;
  padding: 4px 12px;
  color: #eeeeec;
  background-color: rgba(46, 52, 54, 0.7);
  text-align: center;
  -x-offset: 8px; }

Change it to

.dash-label {
  border-radius: 7px;
  padding: 4px 12px;
  color: #eeeeec;
  background-color: none;
  font-size: 0pt;
  text-align: center;
  -x-offset: 8px; }

save the file & close. Reboot to see the change.

if you use different User-Shell themes, you may find same content and editing it as above.


Alright, so the issue was definitely on the Ubuntu side, but I figured it all out.

You can use this to enable an IP address alias on the primary network interface that allows you to use two IP addresses on a single nic (ens3 is the network interface, usually called eth0 but for some reason the AWS device is called this instead)

ip address add 172.31.0.0/24 dev ens3

And then if you want to keep those settings on reboot, you'll need to add the following to nano /etc/network/interfaces

auto ens3:1
iface ens3:1 inet static
address 172.31.0.0 #your secondary private IP
gateway 172.31.48.1 #your gateway, get with `ip route`, after "default via "
netmask 255.255.240.0 #get the "Mask" with `ipconfig` from your nic

And reboot and you should be all good to go!


VBoxManage guestcontrol permission error

The command was rather incomplete. To run ls from a guest Ubuntu issue at least:

VBoxManage guestcontrol "<Name_of_VM>" run --exe "/bin/ls" --username <me> --passwordfile mypassword.txt  --wait-stdout

By this you need to give the full path to the application. We also need a user and a passwordfile which would be stored on the host directory from were we started VBoxManage.

A much easier approach would be to run an SSH server on the guest to enable SSH access from the host.


How to correct the command for PHP 7.0.* in following PHP cli and git installation?

PHP 7.0 packages has been renamed, so you are looking either for apt-get install php-cli to install dependency package that will pull default PHP version, or just apt-get install php7.0-cli. I recommend the former.


Test if the following command helps:

sudo sh ./configure

Then run the the second command as sudo, and use sh (what's sh?):

sudo sh menudo make

If not, try to fully update your system. If an update doesn't work, then please write your question more extensive, and include what the sudo ./configure gives you as well as the menudo make.


I assume you want a dual boot? Then stop with what you are doing. This can go bad: it will remove parts of your XP installation if you do not identify the correct one.

The easiest method to choose is to...

Boot back into Windows.
Use a windows tools (like partition magic) to shrink 1 of your partitions and to create an unallocated partition of 20Gb or more. Or if the 49 Gb partition is still empty to delete the partition.

Boot Ubuntu and choose to install in the unallocated partition (either with the choice "install alongside Windows XP" or with "something else" and picking the partition that shows "unallocated space" and NOT the one marked NTFS).

This will make sure you will pick the correct one without having to guess what partition to use.


I believe you will need to edit your script to look like this:

#!/bin/bash
gksudo nautilus /opt/lampp/htdocs

the tilde at the end of the filename ~ indicates that the file is a backup


How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 20.04?

Disks Utility
Launch the Disks Utility (If you don't have it already, you can install Disks via the Software Center or open a terminal and issue the command sudo apt-get install gnome-disk-utility.

Select the drive of interest then click on the menu button at the upper right corner and choose SMART Data & self tests

Note that sometime between 18.10 and 20.04 the menu option has moved from the "hamburger menu" to the 3 vertical dots menu as shown below.

Types of self-tests

Short: Checks the electrical and mechanical performance as well as the read performance of the disk. Electrical tests might include a test of buffer RAM, a read/write circuitry test, or a test of the read/write head elements. Mechanical test includes seeking and servo on data tracks. Scans small parts of the drive's surface (area is vendor-specific and there is a time limit on the test). Checks the list of pending sectors that may have read errors, and it usually takes under two minutes.
Long/extended: A longer and more thorough version of the short self-test, scanning the entire disk surface with no time limit. This test usually takes several hours, depending on the read/write speed of the drive and its size.
Conveyance: Intended as a quick test to identify damage incurred during transporting of the device from the drive manufacturer to the computer manufacturer. Only available on ATA drives, and it usually takes several minutes.

How to interpret SMART-Attributes
The most important attribute in terms of failure rates is likely the 196 - Reallocated Sector Count, but considering Google research paper: _"...failure prediction models based on SMART parameters alone are likely to be severely limited in their prediction accuracy, given that a large fraction of our failed drives have shown no SMART error signals whatsoever." However, the majority of the drives (over 60%) in the study that failed did exhibit a smart failure, so as imperfect as it may be, it's still valid indicator.
Note that while the vast majority of recent drives support SMART not all drives do and implementations can vary. For more details on SMART see https://en.wikipedia.org/wiki/S.M.A.R.T.


How to delete debug files in /sys/kernel/debug?

These are not files in the traditional sense.

The entire /sys filesystem is a virtual file system, which maps various system functions as files. They are not stored on disk; they're merely mechanisms to access various kernel functions. In this case, the file is the video RAM. The files can serve as a debugging interface, thus the naming.

Removing them does literally not make sense - as they're an representation of a physical feature of your computer system. That's why you're not allowed to remove them.

In short: Do not touch anything inside /sys or /proc unless you know what you are doing. You may crash your system. Reading them is generally safe - worst case will typically garble your terminal with random data.

There's lots of interesting stuff in /sys and /proc, that can tell you a whole lot about how your system operates, both the Linux kernel, and physical parts of your computer.


From man g++:

   When you invoke GCC, it normally does preprocessing, compilation,
   assembly and linking.  The "overall options" allow you to stop this
   process at an intermediate stage.  For example, the -c option says not
   to run the linker.  Then the output consists of object files output by
   the assembler.

So, if you want g++ to run the linker - to create an executable file rather than an object code file - you should remove the -c flag from your command.


/dev/loop0 doesn't have enough disk space

It seems you have installed through WUBI, so you can try this solution: How to increase wubi /root disk space


Is it possible to buy a physical copy of Ubuntu?

You can buy a 12.04 LTS (Not the latest version, but will last until 2017) disk from Canonical - for laptops look at the 'Desktop' version:

http://shop.canonical.com/product_info.php?products_id=976

But you could Download the image and burn it to a disk.


How to dual-boot Ubuntu + Windows 8 on a Samsung Series 9 laptop?

You did install Ubuntu using the BIOS/legacy boot option -- that's what "CSM" is. (This acronym expands to "Compatibility Support Module," which is EFI-speak for BIOS compatibility mode.) Thus, setting the "OS mode selection" in your firmware to "CSM" for the installation essentially tells your computer to boot only in BIOS/legacy mode.

There are a number of possible solutions. These include:

Install my rEFInd boot manager in Windows. Edit the refind.conf file: Uncomment the scanfor line and add hdbios to its options. When you reboot, rEFInd should come up and show at least two boot options. One should boot Windows and the other should start up GRUB in BIOS mode, which should in turn launch Linux. If you try this and want to experiment more, you could try tweaking the configuration to boot Linux directly in EFI mode.
Convert your existing Ubuntu installation to boot in EFI mode by adding a suitable EFI-mode boot loader. rEFInd can serve this purpose, or you could install ELILO or the EFI version of GRUB 2. The trick is registering the EFI boot loader with the firmware, which requires an EFI-mode boot of Linux or doing the work from Windows. (The preceding option does this for rEFInd by doing the work in Windows.) See my EFI Boot Loaders for Linux site for more on your options on this score. This approach has a fairly steep learning curve, but it's a fairly clean approach. There's the caveat about EFI-mode boots possibly having problems on your system, though.
Re-install Ubuntu in EFI mode. This will require overcoming your kernel panic problem, though, and I don't have any specific suggestions on doing that. Perhaps adding (or removing) a kernel option would do the trick, or switching to another kernel version (but this is awkward for an installer's kernel).

Overall, I'd say your easiest course of action is to install rEFInd. It will probably enable you to boot Linux in EFI mode, and it provides a path to experiment with EFI-mode booting if you decide to pursue that.


Touchpad on Lenovo x240 missing features after suspend

Try this:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash psmouse.synaptics_intertouch=0"

It worked for me.