How to add flags and/or arguments to a command in the 'sudoers' file

As stated in the comments, there isn't a way to control sudoers in the way requested, although there are fine grained permissions available in the system:

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

But even that isn't quite enough, you'd basically have to replace all the standard program libraries with scripts to filter flags. Which would be messy and potentially break the system.

Instead consider flipping the problem and creating users who don't need sudoers. Making sure they're in the right groups and using ACLs to expand permissions where needed so they can access the files they need without causing issues.


Can I make the system to check checksums of all the binary files installed?

The MD5 sums of files installed by .deb packages are stored in /var/lib/dpkg/info/*.md5sums. Run the following to check the integrity of all files:
cd /
md5sum -c /var/lib/dpkg/info/*.md5sums

Or, to see only the failures:
cd /
LC_ALL=C md5sum --quiet -c /var/lib/dpkg/info/*.md5sums


It was solved by using synaptic and double clicking the package libapache2-svn (which had a exclamation mark in the status (S) column, meaning: "installed and upgradeable").

The package got updated - problem solved.

I don't really know why it wouldn't update using the update manager.


TomTom GPS 1500 loads cdc_ether and usbnet modules, thinks it's a USB ethernet device :(

To TS: Your Tomtom VIA 1500 is running navcore version newer then 9.  Navcore is the OS/GUI image that Tomtom uses. Older TomToms (XL, GO, etc) were using older Navcore, which, when connected into a PC, would reboot, and present itself as a USB disk.

Devices that run navcore 10+ now run OS all the time, and when connected to PC, present themselves as an Ethernet over USB device (which is clearly what your device does as well).  Update is performed by establishing a TCP/IP session to a device (most likely using SSL encryption, I have not investigated much).  Generally, Tomtom device runs a DHCP server, and has an IP 169.254.255.1, and serves up IP 169.254.255.2/30 to the computer.

If you configured networking over USB correctly, you should be able to access the http server on your Tomtom VIA by using the URL http://169.254.255.1/pcmi/?locale=en_gb

There is no known (to me) way to downgrade navcore in TomTom VIA devices down to 9.x.

HTH


Ubuntu 13.10 Server : wget changes the filename of downloaded file automatically

I suggest you to use:

wget -O - -q http://domain.com/QuickSearch?object=$n&search=Overview > $n.txt

See man wget to understand why.


Can't run deb command to install Erlang?

It doesn't tell you to run deb http://... command; that is a line that should be written to a file. You should execute this:

sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF
## Installs the latest Erlang 22.x release.
## Change component to "erlang-21.x" to install the latest 21.x version.
## "bionic" as distribution name should work for any later Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb https://dl.bintray.com/rabbitmq/debian bionic main
EOF

as a 1 big (four line + comments) command.

Or alternatively, just put this content:

deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb https://dl.bintray.com/rabbitmq/debian bionic main

in the file /etc/apt/sources.list.d/bintray.rabbitmq.list (you'll need to do it with root privileges), that's the same thing. This tells apt where to download your packages from.


You can manually set the time by first selecting "Manually" instead of "Automatically from the Internet".


Problem booting after updating from Ubuntu 14.10 to 15.04

I was able to fix this after reading the bug report @Mondane mentioned and several other troubleshooting articles on recovery mode.

Boot into GRUB menu (pressing shift while starting).
Choose recovery mode.
Enable networking.
Drop to root shell prompt.
ifconfig eth0 and dhclient eth0 to get
(Probably unnecessary)  I had a some networking issues that were probably unrelated to this (undetermined so far) so I had to edit /etc/resolv.conf to include Google DNS 8.8.8.8 and 8.8.4.4.
See what drivers are available for the nvidia hardware: ubuntu-drivers devices
Install the recommended: apt-get install nvidia-346
Reboot normally.
Go to sleep.

Some resources I found useful:

https://wiki.ubuntu.com/RecoveryMode#Booting_into_recovery_mode
How do I boot into a root shell?
https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

For reasons I haven't yet determined, my networking was really messed up.  I had to unplug and replub the USB-to-ethernet, run dhclient, then apt-get install nvidia-346 to get about 5% of the update before networking failed.  This might be a hardware issue and totally unrelated, but it made troubleshooting and fixing this problem especially difficult.


It was caused due to a misspelled link as you can see in E: GPG error: http://arcgive.canonical.com raring Release: The following signatures were invalid: NODATA 1 NODATA 2 it says "arcgive" it needs to be "archive" to change this, type sudo gedit /etc/apt/sources.list and fix the typo where you see it (in this case: deb-src http://arcgive.canonical.com/ raring partner needed to be edited to: deb-src http://archive.canonical.com/ raring partner) hit save now the issue should be fixed and then type sudo apt-get update to check and it should now find any missing updates. This also fixed the issue of not being able to download from the Ubuntu Software Centre or install via apt


Installed lubuntu, worked great, however upon reboot menu items are now gone

remove/rename the ~/.config/lxsession/Lubuntu/desktop.conf file and then reboot.  That should re-create the file.


How can I have a network connection after uninstalling network manager?

Go to this link, download the correct .deb on another computer, save it to a USB drive, and install it using the Software Center.


To enable the changes made in sysctl.conf you will need to run the command:

sudo sysctl -p /etc/sysctl.conf

Reference

How to Enable IP Forwarding in Linux


VNC Connection error "Unable to connect to VNC Server using your chosen security setting."

First off, your system is way out of date.

SSH into it, and run this command:

sudo apt update && sudo apt dist-upgrade

From there, you want to actually upgrade to Ubuntu 16.04, because your current version is no longer supported. Do this by running:

sudo do-release-upgrade

and answering all the questions it has.

From there, the system should get the latest versions of the VNC server and ensure everything is shiny and new.

Now, it is important to note that you are not playing securely! VNC is not a safe protocol at all, especially at Encryption Level 0. In effect, anyone on the network (or potentially the internet) can see what you're doing now. That's not good. Fortunately, you can use something known as SSH tunneling to securely tunnel VNC traffic.


Gedit keyboard shortcut for "Goto Next Bookmark"?

Ctrl+Alt+B toggles a bookmark on/off for the current line.
Ctrl+B navigates to the next bookmark, moving downwards and cycling back when reaching the bottommost bookmark.
Ctrl+Shift+B navigates to the previous bookmark, moving upwards and cycling back when reaching the uppermost bookmark.


How to make USB drive as local repository

You should build a repository in a local directory and point a file: URI entry to your APT sources (see URI SPECIFICATION in man sources.list):

deb file:/home/user/repository

To make apt work, you need to create a list of packages (Packages.gz) for APT to consume. This is explained in detail here. For your case, it should be quite easy. I refer you to the "Trivial Repositories" section of the manual. It should be as easy as changing to, say, /home/user/repository and running

dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz

Then after a apt-get update, the packages should become available. Perhaps if you want to make this source take precedence over others, you need to assign it a higher priority; for that see the APT manual pages.


juju-gui web server hangs, what server does it use?

My ubuntu server required me to update yesterday. The issues seemed to start at that point. This looks like it has reraised this bug:

https://bugs.launchpad.net/juju-gui/+bug/1397296

We tried a bunch of different things that made no difference.  In the end, I switched to chrome and it worked immediately.  Much thanks to @hatch!

So, something in the update either broke firefox, or broke something in juju-gui that firefox cares about.  If you have not done a juju bootstrap in a while and you use firefox, if you do a bootstrap and it stops working, this chrome's for you.


In Live Ubuntu USB Flash Drive, Can I have multiple Casper-rw Files, for additional persistence?

I don't think multiple overlay fs-es are what you want or need, but I think there is a solution to you space problem.

Instead of having more than one casper-rw you can extend the size of the one you already have.

Roll down to the part saying Resize an existing casper-rw loop file.


I solved my problem.Solution;
* right-click on the desktop and select 'Change Desktop Background'
* there's a tab that says 'themes'. Click on that. Then
* at the bottom of that screen, it should say 'Customise'.
* Click on that. at the top of the window it brings up, a tab should say "Icons'.
that's all.


Persistence, casper-rw partition problems

Currently syslinux type installers like UNetbootin, Rufus, Universal and Startup Disk Creator do not allow a persistent partition on the same drive, a persistent partition works OK as long as it is on a different drive.

YUMI can create multiple persistence files for multiple OS and uses grub4dos to make casper-rw files greater than 4GB.

Persistent partitions work great if used on a grub2 type persistent drive such as mkusb creates.

mkusb will create a flash drive with FAT boot partition, ISO9660 OS partition, ext2 casper-rw persistence partition and a NTFS data partition accessible to Linux and Windows. https://help.ubuntu.com/community/mkusb

Download mkusb to a ubuntu boot drive and use it to make your persistent drive.


Ubuntu 18.04 not stable on Asus ZenBook UX533FD

I made a reddit post about this computer https://www.reddit.com/r/linuxhardware/comments/ajdog3/asus_ux533fd_and_linux/

I installed xubuntu 18.04 on it, and it did work. There is no reason for Ubuntu 18.04 not to work.

Maybe your computer is overheating. How long is the battery life? You should get 10 hours.  To solve overheating and battery drain, you need to install the latest nvidia drivers (at the time  nvidia-driver-415), go to nvidia prime and siwth to power-saving mode.


What's the best place to set up a VPN network in Linux

If you're setting up a connection in, I would go with the server as the router is a director if traffic. That's it's primary purpose.

If you're setting up a connection out, I would go with the router as that will encrypt all communications coming from said device.


How can I fix my Wifi connection in Lubuntu 13.04?

Removing Network Manager is tricky and can be done but I doubt it is the problem. I also recommend you use WPA2 and AES encryption. Do not use, if you have the option, any mixed mode WPA and WPA2 mode.

I'd suggest you power cycle the router; that is, unplug the power, wait a few moments and plug it back in. Let the router boot and obtain an IP address from your internet service provider. Reboot your computer. Can you connect now? If not, let's try a driver parameter:

sudo modprobe -r rt73usb
sudo modprobe rt73usb nohwcrypt=1

Now can you connect? If so, let's make it persistent:

gksudo gedit /etc/modprobe.d/rt73usb.conf

Add a single line:

options rt73usb nohwcrypt=1

Proofread carefully, save and close gedit. Do NOT make this change and write this file unless you learn, from the steps above, that it makes it possible to connect.

If none of these steps help, update the driver by downloading this file to your desktop: http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.10/backports-3.10-2.tar.bz2 Right-click it and select 'Extract Here.'

Get a temporary wired ethernet connection and do:

sudo apt-get install linux-headers-generic build-essential
cd Desktop/backports-3.10-2/
make defconfig-wifi
make
sudo make install

The compile process takes a few minutes, so please be patient. Now unload the old driver and load the newest:

sudo modprobe -r rt73usb
sudo modprobe rt73usb

Now can you connect?


What is the easiest way to setup Log rotation

You can use logrotate, execute this command to install it:
sudo apt-get install logrotate

Logrotate's configuration can generally be found in 2 places on Ubuntu (from Digital Ocean):

/etc/logrotate.conf: this file contains some default settings and sets up rotation for a few logs that are not owned by any system packages. It also uses an include statement to pull in configuration from any file in the /etc/logrotate.d directory.
/etc/logrotate.d/: this is where any packages you install that need help with log rotation will place their Logrotate configuration.

On a standard install you should already have files here for basic system tools like apt, dpkg, rsyslog and so on.
By default, logrotate.conf will configure weekly log rotations (weekly), with log files owned by the root user and the syslog group (su root syslog), with four log files being kept (rotate 4), and new empty log files being created after the current one is rotated (create).
If you want to learn more about how to use this tool, please visit the following link:  How To Manage Logfiles with Logrotate on Ubuntu 16.04
Hope this helps.


Can't get ubuntu one / update-manager to use system proxy settings

Backup this file.

sudo cp /etc/apt/apt.conf /etc/apt/apt.conf.bak

You can try editing the file:

sudo gedit /etc/apt/apt.conf

Add lines like:

For proxy without authentication.

Acquire::http::proxy "http://proxy_server:port/";

For proxy with authentication.

Acquire::http::proxy "http://username:password@proxy_server:port/";

Same way for other protocols like ftp, https etc.

Then run

sudo apt-get update.

Hope this helps.


Wifi stops working after some time on ubuntu 14.10 and ubuntu 14.04

It might be issue with the power off manager, so please try the below command and check,

sudo iwconfig wlan0 power off


How is Grub updated after each kernel upgrade?

The installer just runs update-grub when any Kernel-package activity happens. This completely rebuilds the grub bootloader (ie it doesn't update single records).

And yes, they are listed by descending version. You can see the listing in the "Ubuntu (advanced)" grub listing... But otherwise, the top one is taken.

The easiest fix for you is to just remove the kernel packages you installed. update-grub should be run automatically and the default should return to a maintained line.

If you want to keep the newer kernel version but just default to a stable one, here  is a great tutorial on manually setting the default kernel version. You should be able to specify "2>3" which should pick the next highest Kernel underneath your upstream one, so this should also track them as updates are installed.


Assessment is "failing" under id 5, Reallocated Sector Count, whose value comes out to be 561 sectors

The head on the drive is probably going bad. Replace the drive.


Task Manager Memory Usage Does Not Agree with "top" command Memory Usage

top includes cache/buffered to the used memory.  While other tools do not.  top reports I'm using almost 3.7 GB!!  But it also show about 2.6 as cache so I'm realy only using about 1.1 GB.  (which is what htop reports)  I recommend htop over top.  It's just as lightweight and useful as top, but with extra features.


Lubuntu alternate install stops at *starting Bluetooth

this mean that your desktop environment has gone faulty. press alt-f2 and then re-install lubuntu-desktop. or check for your /etc/x11/xorg.conf in case you're using NVIDIA driver.


2 finger right click Macbook 4.1 with Ubuntu 18.04

Install Gnome Tweak tool using the command below:

sudo apt install gnome-tweaks

Then check the keyboard and mouse settings:


After updating the linux kernel to 3.17+ and dual monitor works!


Computer doesn't recognize mic on my headset on Ubuntu 20.04

Found the answer on https://forums.linuxmint.com/viewtopic.php?t=286654 where the guy just put auto in place of the chipset's name, thus my last line in /etc/modprobe.d/alsa-base.conf is
options snd-hda-intel model=auto

Now i can talk in class !!!


Power failure during upgrade from 12.04 to 12.10 resulting to desktop not working

I am not sure if I understand your situation, did you reinstall 12.04 after the failed 12.04 to 12.10 upgrade?

I just installed 12.04 and have a desktop with invisible icons in the Unity Launcher.  Still trying to resolve the issue, seems to be something with Unity 3D / compiz.

As a work around, you can try Unity 2D.  At the login screen, right click the Ubuntu circle thing and select Ubuntu. Continue to login.


"set -eo pipefail" not working in Windows Subsystem for Linux (Ubuntu 16.04)

As indicated by the ^M sequences in your cat -net output, you have saved the script with Windows-style (CRLF) line endings rather than Unix-style (LF only)

In fact, we could have guessed that from the truncated error message: the "real" error is that pipefail\r is an invalid option name. However, the carriage return causes the cursor to reset to the start of the line and overwrite the preceding characters. Compare

$ cat -net bad.sh
     1  #!/bin/bash$
     2  set -eo fhqwhgads$

$ ./bad.sh
./bad.sh: line 2: set: fhqwhgads: invalid option name

and

$ cat -net bad.sh
     1  #!/bin/bash$
     2  set -eo pipefail^M$

$ ./bad.sh
: invalid option name: pipefail


Can't set arguments in Eclipse to define Tomcat

First download the tar version from Eclipse.
Open terminal and type this command, sudo tar -xvf eclipse-jee-luna-SR2-linux-gtk-x86_64.tar.gz -C /opt/.

Above the parameter -C create a new archive.
So the files are being copied to the /opt/ folder.

Now you need to create a file inside this /usr/share/applications/
folder with eclipse.desktop name.

With a editor put this configuration.

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Save and close the file


Problem solved. I had copied & pasted the command to get the download and neglected the command to unzip it<tar -xvf latest.tar.gz>
I am a novice at using the command line and had neglected that step.
Thanks for the responses.


I have found a very quick solution, but I haven't looked at the consequences yet.

In your os_prober script for update-grub there are some lines to by-pass the timeout you set and to force displaying a boot menu if an other os has been found. You can easily disable this by setting the "quick_boot" variable to 0.

In /etc/grub.d/30_os_prober at the beginning of the file change

quick_boot="1" to quick_boot="0"
Then run sudo update-grub


Are the devices being created at boot time?

Yes.

  So, if I ask, which list do I update to cause /dev/sr1 created at boot time?

makedev

DESCRIPTION

   MAKEDEV is a script that will  create  the  devices  in  /dev  used  to
   interface with drivers in the kernel.

   Note  that  programs  giving  the  error  ``ENOENT:  No  such  file  or
   directory'' normally means that the device  file  is  missing,  whereas
   ``ENODEV:  No such device'' normally means the kernel does not have the
   driver configured or loaded.

Regarding your sr1:

CDROM DEVICES

   sr or scd or scd-all
          Creates scd{0..16} SCSI CD players and  sr{0..16}  symlinks  for
          these  devices.   cdrom is a symlink which can be created by the
          user to the active CD device.  It is not created by MAKEDEV.


Systemd service script not logging during shutdown

Change:

After=network.target network-online.target

to:

After=network.target network-online.target rsyslog.service

Now it should be logging!


The command you are looking for is update-alternatives.
So you should be running sudo update-alternatives --config java.


Music app for large library over samba share

Did you try Amarok (I did not test it, but looks like it has SMB support since version 2.2), Banshee, aTunes, or other alternatives?


How to check status, install, and stop a program in ubuntu 20.04 LTS Server

You install wrong package. Try:
sudo apt install docker.io


Welcome to Ask Ubuntu! Setting up Squid is fairly simple, install the package with

sudo apt-get install squid3

After install, run man squid3 for details about tailoring Squid to your needs.


Ubuntu 18.04 & Dell XPS 13 9350 Suspend issues when lid closed

Try pm-utils. As root run the command

$ pm-suspend

In /var/log/pm-suspend.log you should see something similar to

Initial commandline parameters:
Thu Aug  1 09:46:07 CEST 2019: Running hooks for suspend.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status suspend suspend:
/usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux planb 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Module                  Size  Used by
ccm                    20480  6
rfcomm                 77824  32
...
Thu Aug  1 09:46:07 CEST 2019: performing suspend

Then wake up the system. In /var/log/pm-suspend.log you should see something similar to

Thu Aug  1 09:46:31 CEST 2019: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
...

/usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
Thu Aug  1 09:46:32 CEST 2019: Finished.

Customize pm-utils to your needs, create a shortcut to pm-suspend (e.g. Ctrl-Alt-S) and disable lid

$ grep -i Lid /etc/systemd/logind.conf
#HandleLidSwitchDocked=ignore
HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=no

.

$ grep -i lid /etc/UPower/UPower.conf
IgnoreLid=true

I don't have XPS 13 atm, but I remember it worked for me with 18.04 this way. YMMV. There is one more advantage. You can close the lid when an external monitor is attached.

FWIW. Here are the links to Ansible role linux_postinstall and to the tasks pm-utils and lid in particular. I use the configuration data below

$ cat lp-lid.yml
lp_lid: true
lp_lid_logind_conf: "/etc/systemd/logind.conf"
lp_lid_upower_conf: "/etc/UPower/UPower.conf"
lp_lid_logind_conf_vars:
  - { var: "HandleLidSwitch", value: "ignore" }
  - { var: "LidSwitchIgnoreInhibited", value: "no" }
lp_lid_upower_conf_vars:
  - { var: "IgnoreLid", value: "true" }

$ cat lp-pm.yml
lp_pm: true
lp_pm_sleepd: {}


As it says in the instructions:

sudo dpkg -r nomachine

See here.


Make wifi preferable over wired connection in Ubuntu 14.04?

You can change metric.
route add default dev eth0 metric 20 When you change metric you default route to wless0 will have less metric and traffic will go via wless0. When wless0 is down you default route to wless0 will be deleted from routing table and traffic will go via eth0. After when you wless0 is again up, default metric will be less then 20 on eth0 and traffic will again go to wless0.

Also you can edit /etc/network/interfaces and set metric permanent for interface.

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
metric XXX

@gunjan parashar Elaborate:

Network service route packages on several parameters. First of that is that packet is for local net or not. For this decision network service use netwotk mask from nic setup. If packet is not fol local net, pc will sendit to default gateway.

If you have 2 interfaces in the same subnet / local network and the same gateway for both interfaces, pc must use some "parameters" for routing decision. Parameter for routing is metric. Practically less metric is better route and pc will send packet to gateway based on that. In case that you have same metric and same gw and both interfaces on local net, traffic to gw will not working because pc can not make routing decision.

When you change metric, practically you say pc "Link over eth0 is worse. Use wlan0" But when is wlan0 down, any connection is better then no connection and pc will be use "worse" connection. When you wlan is again up automatically will be with better because default metric parameter is less then metric parameter configured manually on eth0.


Never displayed when installing Ubuntu 19.10 for Raspberry Pi 4B 4G

Is the HDMI port connected to a monitor or TV?
Do you use an HDMI switch connected to the monitor?
Make sure that during installation there is only active direct raspberry-monitor connection.

I have installed the 32 bit Ubuntu 19.10 version on my raspberry Pi 4 4GB with overclocking CPU at 2 GHz and GPU at 650 MHz, and it works very well.

You need to download the Ubuntu 19.10 32-bit server image (ubuntu-19.10-preinstalled-server-armhf + raspi3.img.xz) from https://ubuntu.com/download/raspberry-pi.
Download the BalenaEtcher application compatible with your operating system and use this utility to write the image on your microSD
from https://www.balena.io/etcher/.
Once the microSD is ready, open the file /boot/config.txt with vim (if you use windows you can use notepad++) and add it at the end of the file:

over_voltage=4
arm_freq=2000
gpu_freq=650

Insert your microSD in the raspberry and start the system. Once you get to the login, enter the username and password credentials = ubuntu.

The system will ask you to change your password.

At this point you can install the desktop version of ubuntu you want with the command: (make sure the raspberry is connected to the internet for example with the ethernet cable)

sudo apt install ubuntu-desktop

Or:

sudo apt install xubuntu-desktop

Or:

sudo apt install lubuntu-desktop

Or:

sudo apt install kubuntu-desktop

After installation, restart the system:

sudo reboot

That's all.


How to start on making music production on Xubuntu?

Take a look at this handbook:
UbuntuStudio/AudioHandbook

Some examples from the handbook:


How to factory reset /delete all users in ubuntu 14.04?

sudo deluser --remove-all-files username

replace the username with the user you want to delete

If you do not have the access to GUI press ctrl+alt+f1 you get the terminal do login and execute the following command

rm -rf .gnome .gnome2 .gconf .gconfd .metacity

This resets the everything ...... just like firstime it asks for the creating the user

After Completion of Command press ctrl+alt+f7 to go back to gui....


Usually, processors themselves never are the big deal when it comes to whether Linux can run on it. The most affected hardware parts are graphics cards/chips.

The Graphics you name work with the proprietary nVidia driver. To do this, open the Software & Updates utility, go to the Additional drivers tab and select nvidia-331 for your graphics card, then reboot.

A faster option would be to run the command sudo apt-get install nvidia-common nvidia-331 from a terminal, then reboot. This also works, if you're unable to use Ubuntu with a graphical frontend due to a non-working driver. In this case, hit Ctrl+Alt+F1, log in and run the command.

Another problem you may encounter are wrong LAN/WiFi/BT drivers, which may result in slow internet connections. As you didn't name the Ethernet or WiFi chip in your question, you should best look at the chip manufacturer's website and look for Linux drivers, or ask another question here, if you don't find any information about it.

Other than that, there often are only smaller problems, most of which can be resolved by the correct config or driver. Basically, ThinkPads most often run pretty well with Ubuntu.


How to selectively alternate between DHCP and Static IP from Network Dialog, Ubuntu 20.04

@user535733
Thanks, I had tried that in xubuntu 20.04, but it did not work properly in that OS, I fiddled around quite a bit could not get NetworkManager to work properly. I could only cause static-IP to work by modifying the NetPlan file, and then DHCP stopped working. I moved over to Ubuntu 20.04, and it did not work here either, so I asked the question here in AskUbuntu.
I made a mistake in the dialog configurator, which I realized this morning and it is working correctly now. I can select between DHCP (named 'InterNet') and StaticIP (named 3D_Printer') via the dialog box.
Thanks for your reply. - drwho


Assuming you have got as far as

show databases;

then the next step would be to choose a specific database

use database_name;
show tables;

See Getting Information About Databases and Tables


LibreOffice can't open a spreadsheet after lockup

LibreOffice is creating a "lock file" which looks something like that:

.~lock.FileName.xls#

If you remove it, you will be able to open your document just fine. To display it, you need to either make Nautilus show hidden files (menu View -> Hidden Files or CtrlH), or open a terminal and type

ls -la

You should see the lock file. Remove it.

Also in terminal you could find them all with:

locate -e .~lock


HP Envy DV6 Quiet and only sees 15.6G of ram

IIRC the beats audio stuff is some extra amps that need to be turned on by hitting particular memory locations. you might have some luck with hda-jack-retask which will let you explore the possible options from a gui.

http://voices.canonical.com/david.henningsson/2011/11/29/turn-your-mic-jack-into-a-headphone-jack/


Generally no sound output over headphone jack

Use on command line the graphical tool alsamixer to get rid of any soundproblems, it's gui is very well self explanatory.


I experienced this with Linux Mint 17 (based on 14.04) and searched for a solution without success.

I did a little investigation as you had above and it showed that while an entry existed in crypttab, that UUID didn't actually exist when viewing the blkid output. So, I issued a sudo mkswap /dev/mapper/mint--vg-swap_1 and copied the newly generated UUID into my crypttab file's cryptswap1 entry and rebooted. My swap problem is solved!

Your entry for mkswap will be specific to your distro and according to the information above should be /dev/mapper/ubuntu--vg-swap_1. YMMV.


How do I stop my PC from autoplaying media files present on my SD card on my Android Phone?

Click on power button

Click on system settings

Click on details

Click on Removable Media; then you could;

Check the box to "Never prompt..."

or

Set the drop down menus under "music player" and "photos" to "Do nothing."

Maybe using a newer/different cable to try and stop the problem of device/s being detected but then disconnecting and reconnecting if moved at all.


driver for graphic card NVIDIA GeForce GT 820M?

Nvidia has a pretty good support site and lists drivers for Linux in both 32 and 64 bit versions - have you tried their support pages yet?


The Kubuntu PPA contains point releases for KDE software - i.e. slightly newer packages that are intended to go into Ubuntu Updates eventually.

The Backports PPA contains very new packages that are often not extensively tested.  Be prepared for breakages and other stuff that may not work correctly.  However, its an excellent PPA to test the latest cutting edge software - at the time of writing this, it contains KDE 4.7 whilst the default Natty configuration is KDE 4.6.

The packages in the Backports PPA will be higher in number, so will take precedence over any similarly named packages in the Kubuntu PPA or in the standard repositories.  So it is safe to run both in parallel.


Unable to install mongodb on ubuntu 16.10

As far as i know there is no package for mongo 3.4 in 16.10 yet. You can only get 2.4 from ubuntu packages http://packages.ubuntu.com/yakkety/mongodb
just run

  sudo apt install mongodb-server


I encountered a gconf2 error while installing some packages, what should I do?

In linux mint, I solved the problem via first:

sudo dpkg --configure -a

then:

sudo apt-get upgrade


What is the accepted way to contact the Ubuntu development team

You can use Reporting Bugs.

The page has topics and links that include:

How to report bugs
Determine if the bug is really a bug
Perform a survey of your problem
Reporting an application crash in the development release
Reporting an application crash in the stable release

Once you report a bug (or feature request) it will be assigned a number and you'll have the ability to track it, as well as share the bug report link with others.


It's possible to run Ubuntu straight from a USB stick and use the same stick as HDD?

Yes it is possible. when you install the OS make sure to install the OS in the USB drive of your choosing.

1) when you install the OS go to something else option

2) select the drive that you want to install the OS (In your case your USB drive)

3) select USB drive as root partition (/)

4) after that change  boot-loader install location to your USB Drive

5) click continue

now if the installation successful then your USB drive is now bootable.

and don't forget to override the boot order inside the BIOS when you want to use that USB drive.


How to install Dia plugins on Ubuntu 12.04?

The python directory does not exist by default in ~/.dia you have to create it, open a Terminal and type:

cd ~/.dia
mkdir python

Then copy the dia_orgchart.py plugin (available here) to ~/.dia/python.
Restart dia and load the sample csv file.

Source


How do I edit the classic menu indicator

Thanks for using ClassicMenu Indicator :-)

Yes, you can use alacarte to edit the menu used by ClassicMenu Indicator. Changes may take a few seconds to become available at the indicator.

You can't move the indicators on the panel, see my answer on the question you cited.


I touched the bar on the top of my smart phone screen, and it gave me the option of switching between USB modes – "charging", "file transfers (MTP)", "photo transfer (PTP)", and "MIDI". I switched from MTP to PTP, and suddenly I was able to paste files onto the device! So problem solved, I guess.


Add space on existing ext4 ubuntu partition

There is an ubuntu wiki page on this topic. In short, you can use either the Windows 7 tools to resize the windows partition or gparted, then you use gparted to increase the size of the Ubuntu partition.

It's recommended that you back up your data as partition / filesystem resizing is a potentially destructive operation.


Disk is full but cannot find large files

The POSIX standard allows you to remove a file while it's still being opened. Only when all processes opening the file has closed then the file is actually deleted

The unlink() function shall remove a link to a file. If path names a symbolic link, unlink() shall remove the symbolic link named by path and shall not affect any file or directory named by the contents of the symbolic link. Otherwise, unlink() shall remove the link named by the pathname pointed to by path and shall decrement the link count of the file referenced by the link.
When the file's link count becomes 0 and no process has the file open, the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have the file open when the last link is removed, the link shall be removed before unlink() returns, but the removal of the file contents shall be postponed until all references to the file are closed.
https://pubs.opengroup.org/onlinepubs/009695399/functions/unlink.html

So if the running process in the script is still opening the file the space is still consumed and you can't observe it until the process closes the file or is killed


Boot menu does not offer choice between Ubuntu and Windows

Run windows. Run:

msconfig

and search for option describing how long should it show other systems. At my XP it is in BOOT.INI and is called

time limit.

Set it to 30s.

If that doesn't help then I suggest to edit grub.conf file. But first try this and let us know if it helped.


Use a DVD -R , less expensive, and there is no real need for +R

Even better, get a 2 Gb flash drive, much cheaper in the long run then DVD.


How to configure different Ports on Ubuntu to Print?

One idea would be to try using the old-school LPD daemon (maybe this is the thing you need). LPD works on TCP port 515.

For that, you would need the old good inetd installed as well.

Run this command:
sudo apt-get install openbsd-inetd

Then, edit the file /etc/inetd.conf and add this line to it:

printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd

Then, restart inetd with:

/etc/init.d/openbsd-inetd restart

or

service openbsd-inetd restart

Afterwards, make your application print to the IP of your machine and port 515. Note this will print to the "default" CUPS printer.

I hope this answer is useful. :)


This is possible on a UEFI system running systemd.

Phoronix: In A UEFI World, "rm -rf /" Can Brick Your System
Systemd bug report, source of that article

To summarize, quoting a comment from that bug report:

  Point 1:
  Deleting /sys/firmware/efi/efivars/ should thrash your EFI
  configuration, but in a properly implemented EFI this should be
  recoverable.

  Point 2:
  There is some pieces hardware out there with broken/poorly implemented
  EFI, which will can be permanently bricked by doing standard conform
  stuff to them. See for example the case where Ubuntu bricked some
  Samsung laptops by storing additional data in some EFI memory. This
  behaviour was fine by standard but broke this particular
  implementation.

  Point 3:
  Running anything as root that writes to /dev/sda will destroy your
  partition table and/or filesystems. That's bad especially if you have
  no backup, but after partitioning, creating new filesystems and
  reinstalling your OS your machine will work again. So you can recover
  from it by booting some other media and redo your installation.

  Point 4:
  Thrashing your EFI is a whole different kind of problem. In the worst
  case you won't be able to do anything with the machine as it will not
  get to POST. No booting from an other media, no entering some EFI
  utility to fix missing stuff. A that point your computer is a really
  expensive paperweight.

The problem occurs in distributions that run systemd and mount efivarfs writeable (at /sys/firmware/efi/efivars). Systemd needs to write there, so distributions using systemd are affected. However, there seems to be no indication that Upstart systems are affected.


Can I map an external drive plugged on a Linux netbook into a Windows PC over the internet?

Yes.  An easy method to map the device under samba.  The device being internal or external doesn't make any difference.  The criterion is that you can access the drive on your Linux box for sharing.

An example of Samba configuration is (/etc/samba/smb.conf):

[SharedDrive]
        comment = Shared External Drive
        path = /media/myexternaldrive
        writeable = yes
        browseable = yes
        valid users = user1, user2

Make sure the external drive is available at boot time when the samba configuration will start.

An fstab entry is (/etc/fstab):

UUID="60292932-ae7d-4676-8f0f-7c319cb66fee" /media/myexternaldrive  ext4  defaults 0 0

The path entry smb.conf file is the mounted point of your external drive.  The valid users are usernames on the linux machine.  You would use sudo smbpasswd [username] -a to add the user to the samba permissions list.

The /etc/fstab entry is the UUID of the external drive and the mount point.

From Windows browse or map the drive:

There are many ways of adding file shares to Windows.  You can do this simply by opening up your Windows file browserand putting the IP address or hostname of the Ubuntu machine, in this format: \\192.168.1.100\. This will list all your shared devices from the Ubuntu machine.  Double click on the share you want and answer the username and password you have provided in the configurations above.

You can also right click on the shared resource and click map network drive to assign a drive letter to the device.

Making your Ubuntu visible from outside your local network

You will have to configure your router to forward the port for your Samba server to your Ubuntu computer.  The default ports are TCP ports 139 and 445.  The UDP defaults are UDP ports 137 and 138.

The port forwarding in most routers will be found under the Security group.  On a Linksys router (Linksys Smart Wi-Fi), you can get to it by:

Click Security -> Apps and Gaming -> Port Forwarding

You will find some similar wordings in most Routers.  You might have to look up port forwarding in your Router's manual.

You can find the IP address of your ubuntu computer either by browsing your router's configuration or by running this on the commandline:

hostname -I


I don't have any experience using the Windows Installer of Ubuntu, so please don't be offended if I write total nonsense.

If I'm not mistaken you installed the Ubuntu boot manager (grub2) on your HDD in order to use it to load Ubuntu from the Ubuntu CD. Since your Ubuntu CD is not a physical disk, but a CD image that you mounted in a virtual drive emulated using a Windows program, the boot loader (which is executed before any OS is loaded and therefore also before any virtual CD drives are available) cannot find the CD and therefore fails to load anything from it.

My suggested solution is simple: Burn a real Ubuntu CD and boot from it, either by using the boot loader already installed on your HDD, or by simply booting directly from the CD using the boot device selection option of your BIOS or EFI (actually that's the preferred way and what you did, installing the boot loader to hdd, is only meant as a workaround for the few computers that cannot boot from CD). Of course you can as well create a Ubuntu Installation USB pen drive by using Unetbootin or a similar tool.

If you want to uninstall the Ubuntu boot manager and go back to Windows only, you probably have to rewrite your HDDs master boot record. On Windows 2000 or XP one can for instance boot from the Windows CD, go to Recovery Console and run the fixmbr (or was it fixboot?) command. For newer Windows versions there exist similar commands.


Install specific NVIDIA driver package and not have it upgrade via transitional package

A "transitional package" might not be something that could actually be installed; see What exact purpose have transitional packages?

I don't know about it but maybe there's a different source for the exact version you need.


How to upgrade ubuntu if i get 'Authenticating the upgrade failed'?

Make sure that you have the latest version of the update-manager-core installed.

sudo apt-get update; sudo apt-get install update-manager-core

Then re-run do-release-upgrade.

If this still fails, the issue is with your private repository, not locally.

You should manually force a refresh of the private repository, because it's possible the xenial.tar.gz file has changed and your repository has a stale version.


You can get older versions of Skype in the form of .deb files from: here or here


After Windows/BIOS update, GRUB boot option gone and I can't boot to LiveUSB

I solved the problem.  When I was looking at the Security Page of the BIOS screen, I failed to notice the slider bar on the right.

BIOS Screen With Slider Bar

When I scrolled down lower using the slider bar, I found the Secure Boot option.

Secure Boot Option

Under the Secure Boot option, I was able to disable Secure Boot Control which allowed me to boot from the USB.

As a follow on, I was unable to repair my GRUB.  I followed very explicit instructions, but apparently I was unsuccessful.  However, I was able to salvage all my data to an external hard drive, which in turn allowed me to upgrade my Ubuntu 18.04.


How to adjust java stack size when starting a java executable?

Thank you Rinzwind! Following your hint, I found out, instead of as the document stated, I need to adjust the stack size with the -Xss instead of -Xms and Xmx flag. Then it started successfully:
/opt/Oracle/MessageQueue/mq/bin$ ./imqbrokerd -vmargs "-Xss384k"

[18/Jun/2020:16:15:14 EDT]
================================================================================
Open Message Queue 4.5.2
Oracle
Version:  4.5.2  (Build 2-d)
Compile:  Thu Dec  8 17:30:48 PST 2011

Copyright (c) 2011, Oracle and/or its affiliates.  All rights reserved.
================================================================================
Java Runtime: 1.8.0_201 Oracle Corporation /usr/lib/jvm/java-8-oracle/jre
[18/Jun/2020:16:15:14 EDT]    IMQ_HOME=/opt/Oracle/MessageQueue/mq
[18/Jun/2020:16:15:14 EDT] IMQ_VARHOME=/opt/Oracle/MessageQueue/var/mq
[18/Jun/2020:16:15:14 EDT] Linux 4.4.0-177-generic amd64 erdbeer (4 cpu) bfzhou
[18/Jun/2020:16:15:14 EDT] Java Heap Size: max=188416k, current=188416k
[18/Jun/2020:16:15:14 EDT] Arguments:
[18/Jun/2020:16:15:14 EDT] [B1060]: Loading persistent data...
[18/Jun/2020:16:15:14 EDT] Using built-in file-based persistent store: /opt/Oracle/MessageQueue/var/mq/instances/imqbroker/
[18/Jun/2020:16:15:14 EDT] [B1270]: Processing messages from transaction log file...
[18/Jun/2020:16:15:15 EDT] [B1039]: Broker "imqbroker@erdbeer:7676" ready.


images fetched from server are not appearing in browser?

The image permissions are not in order meaning you don't have permission to view them or you don't belong to the group that does. Do ls -l /path/to/image(s) to see the ownership and permission. Then change either ownership and or permissions of the same or add yourself to that group to have the required permissions.

Do the following:

Add yourself to the xamppusers group:

usermod -a -G xamppusers $USER

Set the correct permissions on the /opt/lampp/htdocs folder

sudo chmod -R 775 /opt/lampp/htdocs

Restart you system and add imags again to see if it works.


How to strip uncommon parts of filenames and have the unique parts

I won't say this is "the optimal solution", but given

$ ls cpu*
cpu-interrupt-2016-05-07  cpu-softirq-2017-05-06  cpu-softirq-2017-05-08  cpu-system-2017-05-08  cpu-wait-2017-05-07
cpu-interrupt-2017-05-08  cpu-softirq-2017-05-07  cpu-system-2016-05-06   cpu-wait-2016-05-06    cpu-wait-2017-05-08

then

$ ls cpu* | cut -d- -f1,2 | uniq
cpu-interrupt
cpu-softirq
cpu-system
cpu-wait


If you don't care about recovering dd (wikipedia has some examples) is  a tool to do a block transfer utility so can be used to create copies of filesystems but also alter the one you are working with.

dd if=/dev/urandom of=/dev/{blockdevice} count={blockstowrite} bs={sizeofblocks} seek={wheretostart}

This bypasses the filesystem so will mess up the journaling. A bs=1k seek=10 count=4k will make the partition or disk unusable until repaired with e2fsck.

And I assume everyone knows it is a bad idea to do this on anything that contains something that needs to be saved 1st.

Oh it can be as simple as using a hexeditor to edit a bit on a raw device.


Since it is not a LVM partition and it's an ext4 partition it should be easily applicable, but probably you need to do this from a LiveCD since you need to unmount the /dev/sda3 partition.
You can resize and move the partition with right clicking on a partition and selecting Resize/Move option. But there is a possibility that you may encounter data loss which is probably going to be emphasized by Gparted so make a backup before doing this.
GParted Resize Partition


How to create a guest-session in Kubuntu 14.04 (kdm)

You should already have a pre-set guest session, but the preset guest session will not save the guest data... You can access the pre-set guest session in the login menu when the computer boots up,or in the gear shaped power icon in the top right hand corner of your desktop.It will say Guest Session.

if you want to create a new user for the guest, instead of using the preset guest session.Open a terminal via [ctrl]+[alt]+[t] and enter the following commands.

sudo adduser newuser

then fill out the following questions that your terminal will ask.

create unix password for the user.

where it asks to enter full name enter- guest-session or whatever preferred user name.

you can skip the following questions about phone and room numbers if you choose by pressing [enter].

it will ask you if you information is correct and to enter y/n for yes or no enter preferred command either y or n and press [enter].

Presto you have created a new user.

This method can also be used to create users for specific people of household members by the way.

So I wish you luck and hope that i was helpful,have a wonderful day.

TAC_Tux


ubuntu 12.10.zram-config or zramswap-enabler?Which is better?

zramswap-enabler is for Ubuntu 11.04 or 11.10

Ubuntu 12.04 or newer should be using zram-config

Zram


Is there a way to cheat javascript games (like Unicoin mining) where rapid clicking is required?

If you want to give your finger a rest you can use the following to automatically send multiple (10,000 in this case) clicks to the current cursor location.

xdotool click --repeat 10000 --delay 10 1

I suggest you open a terminal first put the command in (leave focus with the terminal) and then move the mouse over the mining screen before pressing return so that the clicks end up in the correct place.

As soon as one boulder is mined, move your mouse over to the next one. Don't leave the game area until the command has finished running unless you want to unleash chaos on your system.

Post April-fools update: This will also be handy in instances where you can't hack around the browser with javascript. There are a few games out there —and not just in browsers— that rely on quick clicking where this sort of workaround can help.


I would file the bug against firefox and gedit. Unfortunately you will need to sign up to file a bug.

This guide tells you how to file a bug against firefox. https://developer.mozilla.org/en-US/docs/Bug_writing_guidelines. I would give them a link to the question as it has a lot of information they would need.

For gedit, go to https://bugzilla.gnome.org/.
I hope this helps.

Oh yes, see if this works: https://addons.mozilla.org/en-US/firefox/addon/united-states-english-spellche/. It is a dictionary.


No permission to access my usb device, which is in /dev/ttyUSB0, even though I am in dialout

It's expected that you cannot change this file's permissions as a regular user because you're not this device's owner. Nothing out of the ordinary here.

With regards to symlinking the /dev/ttyUSB0 as /dev/ttyS0 - I think it's a bad idea. Unless you have a source of the program trying to use the port, you don't really know how the developer checks for the device node of the serial port. Maybe it checks the device is a character device (symlink doesn't satisfy this condition) and then fails?

I'd always prefer using the program command line flag to specify a port over making workaround such as symlinking.

ArSerialConnection::open: Could not open serial port '/dev/ttyUSB0' | ErrorFromOSNum: 2 ErrorFromOSString: No such file or directory
Could not connect, because open on the device connection failed.

What's the output of stat /dev/ttyUSB0 when you run this command?

Also - after adding your regular user account to the dialout group, did you log out and then back in?


Try this:

sudo apt-get install build-essential gnome-common gobject-introspection libglib2.0-dev libgtk-3-dev libpulse-dev libpulse-mainloop-glib0 libmutter-dev libwnck-3-dev libupower-glib-dev libgnome-menu-3-dev libc6-dev
git clone https://github.com/evolve-os/budgie-desktop.git
cd budgie-desktop
./autogen.sh
make
sudo make install

Or try with PPA:

sudo add-apt-repository ppa:evolve-os/ppa
sudo apt-get update
sudo apt-get install budgie-desktop

from:blog


Try install Python-pip first by Opening up a terminal windows. Then entering the followings command sudo apt-get install python-pip Then, install
shadowsocks by again entering this commandsudo apt-get install shadowsocks


Reasonable size for "filesystem reserved blocks" for non-OS disks?

I have found the following the answer https://www.redhat.com/archives/ext3-users/2009-January/msg00026.html, from Theodore Tso, an ext4 developer.

  If you set the reserved block count to
  zero, it won't affect performance much
  except if you run for long periods of
  time (with lots of file creates and
  deletes) while the filesystem is
  almost full (i.e., say above 95%), at
  which point you'll be subject to
  fragmentation problems. Ext4's
  multi-block allocator is much more
  fragmentation resistant, because it
  tries much harder to find contiguous
  blocks, so even if you don't enable
  the other ext4 features, you'll see
  better results simply mounting an ext3
  filesystem using ext4 before the
  filesystem gets completely full.

  If you are just using the filesystem
  for long-term archive, where files
  aren't changing very often (i.e., a
  huge mp3 or video store), it obviously
  won't matter.


How to create .deb package without packages for the dependencies available?

What you're trying to do will very likely not work, or will take a lot of effort to get working the way you wish it to.

pbuilder, sbuild, etc. all work within pristine core chroots, which contain certain critical packages inside the chroot to build software.  The problem is, when you pass a source package into either of these, you will end up having to download the dependencies into the chroot, and there's very few ways around this.

The only way around this is to go into the chroot of the pristine environment, and then manually install packages for the chroot's Ubuntu distribution (yes, you can have chroots for different versions of Ubuntu lying around on your system).  This gets to be a very huge headache - because not only do you need the dependencies for your package to build, you need the dependencies of the dependencies, plus additional software packages to install for various libraries, coding languages, extra dependencies determined by the system, etc.

Ultimately, I do not advise creating redistributable packages offline without the dependencies available.  Use pbuilder or sbuild or the chroot-based package build environment of your choice, but do it with an Internet connection. Do not try and run chroot-based builds unless you've first modified the chroot on an Internet connection, or use a specifically dedicated system for the building that has selective Internet access to the Ubuntu repositories.


Setting up Dual-boot with Windows 8 and Ubuntu 12.10 screwed up GRUB

I guess your mistake has been to install two operating systems (Windows and ubuntu) in different modes:

Windows 8 is istalled in UEFI Secure mode
ubuntu is installed in BIOS Legacy mode

You can only switch between the modes via the BIOS/UEFI.

Please try the following:

Restart you system with the power-button
Immendiately thereafter press  to enter the BIOS/UEFI
Press F10 and set the system to UEFI Boot and Secure boot enabled. Then save the settings
Press F9 to enter the "boot options". In the "boot manager" try the listed files one by one. Hopefully one boots. Alternatively let us know what is listed there.


Cannot mount /dev/dm-2 . And filesystem for dm-2 shows empty

I believe that I have found the answer: the hard disk is physically damaged.


Unistalled apps still taking space on Ubuntu Touch

I have found a bug over on Launchpad, dealing with the issue. It seems as of now the best thing to do is head over there and mark the bug as affecting you too in order to increase the bug heat. You may also subscribe to be notified about the bug (when it is resolved), this also counts towards the bug heat.

Uninstalled Applications still using up space


How to use Fixedsys in the Gnome Terminal, or wherever monospaced fonts are required

This is the solution I found. I have tested it thoroughly several times, and I have been using the resulting font in a number of places for over 2 years now, but be warned: some parts of the procedure may be anywhere from suboptimal to plain wrong.

Before you ask "why don't you make the resulting font available", the answer is: "because I'm not sure I can do so". Font copyright is an intricate matter.

Download the corrected Fixedsys Excelsior font (file FSEX301-L2.ttf, at comment #16)

Install FontForge (e.g., from the Ubuntu Software Center)

Right-click on the FSEX301-L2.ttf file and open it with FontForge. In the Load Bitmap Fonts window that appears, click on No.

Click on File → Execute Script..., and copy&paste the following into the window that appears:

SelectAll()
foreach
   if (GlyphInfo("Width") != 80)
      DetachAndRemoveGlyphs()
   else
      b = GlyphInfo("BBox")
      if (b[0] < 0 || b[1] < -30 || b[2] > 80 || b[3] > 130)
         DetachAndRemoveGlyphs()
      endif
   endif
endloop
SelectNone()

Then select FF and click OK (it will take a while, you will have to wait until the Execute Script window disappears)

Click Element → Font Info... In PS Names change the Fontname, Family Name, and Name for Humans, e.g., by appending Mono (spaces are allowed only in the second and third string).

In the same Font Information window, select OS/2.
In the Misc. tab change the PFM Family to Monospace.
In the Metrics tab, set Win Descent Offset and HHead Descent Offset both to 0 (*).
In the Panose tab, change Proportion to Monospaced.

In the same Font Information window, select Lookups.
In the GSUB tab, and in the GPOS tab, select each line in turn and click Delete.

In the same Font Information window, click OK, and in the Change UniqueID? window that appears click Change.

If you want, you can tweak one or more questionable features of Fixedsys. E.g., the zero character is shifted one pixel to the right. To shift it back to center, double click on it, then click Metrics → Set LBearing..., set the LBearing to 10 and click OK. You can also change the shape of characters, but always keep control points at multiples of 10, and the width at 80.

Click Element → Bitmap Strikes Available..., then, in the window that appears set Pixel Sizes to 16 and click OK.

Click File → Generate Fonts..., choose a different directory and/or a different filename if needed, make sure the output format is TrueType, and click Save. In the Non-standard Em-Size window that appears click Yes. In the Errors detected window that appears next click Save (don't worry).

Quit FontForge (File → Quit). In the Font changed window that appears click Don't Save.

Move the generated file to the .fonts subdirectory of your home directory (create it if it doesn't exist).

Open the Gnome Terminal. Click Edit → Profiles... In a profile (I suggest you create a new one) change the font to Fixedsys Excelsior 3.01-L2 Mono (or whatever you have called the mono version of Fixedsys Excelsior), at size 12 (which is the only "true" Fixedsys size). If you want, you can also disable bold text. I suggest black text on white background, but that is a matter of taste.

The bold variant of this font is equivalent to repeating the character shifted by one pixel to the right (this is different from FSEX301-L2.ttf, where it appears smoothed). It is not very legible - but do you really need bold? I don't. The problem is only with those contexts where bold cannot be disabled (not even, e.g., by editing syntax highlighting), especially in those cases where the character spacing is incremented by one pixel as well, breaking alignments (this is not the case in gnome-terminal). I haven't found a solution to this last nuisance yet. Suggestions are welcome.

(*): not needed since the FontForge release of 2012-07-31 (in 14.04 LTS - Trusty Tahr)


How can I fix the boot that broke after trying to uninstall ubuntu?

What's happened is that your Windows installation is now being used as the boot partition, but it's confused because the partition layout/order on the disk has been changed.

Your basic options are:

Do as the error suggests and insert a Windows installation media which will repair the bootloader in Windows and fix the issue.
Insert a Ubuntu Live CD and install it again which will restore the GRUB boot loader, which will see you have Windows installed and create an entry for it in the menu.

If you wish to remove the Ubuntu partitions later you can do this but you must a.) ensure they are near the end of the disk and b.) ensure that before you shutdown Windows you run bootsect.exe to update the boot record.


First instead of pushing the Power Button try this command  sudo reboot . As for the issues your having with unity not loading in safe mode or normal try to boot . Type  sudo apt-get remove unity    which should remove unity . Then type  sudo apt-get install unity  to reinstall you may get lucky . Chances are your going need to reformat ubuntu with your cd.


Unfortunately, you removed group permissions and all other permissions. And you did it to just about every program that your system uses to boot and draw the GUI. You also nuked the terminal emulator. Unless you have an image that you can restore from, I think you're going to have to re-install the OS.


Install Ubuntu to a hard drive temporarily external and after that move it to internal?

The answer to your first question is yes, but then replacing your previous hdd with the newly installed hdd may cause severe problems.

As an example consider that you installed Ubuntu in new HDD when connected externally and grub was installed in old HDD, when you remove old HDD and replace it with new HDD, it won't boot any OS because grub is missing.

If you install grub on new HDD (during installation it would be something like /dev/sdb) and then replace internal (old) HDD with new HDD, grub won't again load since replacing internal HDD with new HDD would make the new HDD as /dev/sda but grub would find it in /dev/sdb which doesn't exist, hence, you won't be able to boot.

Thus, the safer method is :

To make a back up of all data of your previous HDD on some external storage like USB disk
Replace the old HDD with new HDD.
Install Ubuntu on the new HDD.
Copy back up files from external storage (say USB disk) to the new HDD.

Hope it helps.


I don't think my /home partition is being used for home

df -hl
and
cat /etc/fstab

Did let me know it was being used and I was able to solve my root space problem by using gparted to grow my root partition


want to put ubuntu on a samsung 700z3 running windows 8

Be aware that recent Samsung laptops have a firmware bug that can brick the computer when it's booted in EFI mode. There's an Ubuntu bug report about this here, but be aware that it's wider than this. See Matthew Garrett's blog post about the topic for details. Basically, writing enough data to the UEFI storage space, even from Windows, will brick the computer. Thus, the only safe way to use these computers at the moment is to do so entirely in BIOS/legacy/CSM mode. To do this, you'll need to disable EFI support in the firmware, re-install Windows in legacy/BIOS mode (or convert the EFI installation to boot in legacy/BIOS mode, which is likely to be tricky), and install Linux in legacy/BIOS mode. Unfortunately, EFI implementations have completely non-standardized user interfaces, and since I don't own a Samsung, I can't give you directions on how to disable EFI mode and enable legacy/BIOS mode. The best I can suggest is that you enter the firmware setup utility and look for options with promising-sounding names.

On computers without this bug, or if/when Samsung fixes it in a firmware update, you can install Ubuntu in EFI mode fairly simply. You'll need Ubuntu 12.10 or later for Secure Boot support or you'll need to disable Secure Boot in the firmware, but in theory it should install pretty much the same way it would install on any other computer. In practice, there are quite a few EFI-specific bugs, but they tend to vary from one computer to another. Thus, there's no way to answer the question as stated without writing a very long response. The best I can say here is to follow the usual Ubuntu installation instructions and, if you run into problems, post a more specific question. I must reiterate, though, that installing Ubuntu in EFI mode on a Samsung laptop is very risky, and I do not recommend you try.


How to set up an hourly Cron job to run `grive` from `/etc/cron.hourly`?

Aside from the unquoted whitespace in your original script (which you seem to have corrected) the issue is likely with the naming of your script.

According to the DEBIAN SPECIFIC section of man cron:

   As  described  above, the files under these directories have to be pass
   some sanity checks including the following: be executable, be owned  by
   root,  not  be  writable  by  group or other and, if symlinks, point to
   files owned by root. Additionally, the file names must conform  to  the
   filename  requirements  of  run-parts: they must be entirely made up of
   letters, digits and can only  contain  the  special  signs  underscores
   ('_')  and  hyphens  ('-').  Any  file  that  does not conform to these
   requirements will not be executed by run-parts.  For example, any  file
   containing  dots  will  be  ignored.  This is done to prevent cron from
   running any of the files that are left by the Debian package management
   system when handling files in /etc/cron.d/ as configuration files (i.e.
   files ending in .dpkg-dist, .dpkg-orig, and .dpkg-new).

Since grive.sh has a dot in its name, run-parts will ignore it.


Attempting to start Thunderbird and getting Segmentation Fault (core dumped)

Back up your system, then verify the archive created matches the source files.

Back up your system a second time to different external media, then verify the second archive created matches the source files.

Uninstall Thunderbird, reinstall Thunderbird, restore the Thunderbird data files.


Ubuntu 18.04 - Poor Wi-FI when connected with Bluetooth Headphone

I was having the same problem with QCA9377 0cf3:e500 Atheros Communications, Inc. bluetooth adapter. I answered in this question, I solved by including 0cf3:e500 to blacklist in btusb.c and recompiling the modules. You can check the link if you want to see how I arrived to this answer.

Unfortunately this fix is still not applied in official repository. But you can do that following the steps below:

1) Download Kernel Source (consider changing '4.18.0' for whichever version you're using):

# In a working directory, run:
apt source linux-source-4.18.0

2) Fix code for this device. Include 0x0cf3:e500 to blacklist in btusb.c.

# Here the source was extracted to linux-hwe-4.18.0.
cd linux-hwe-4.18.0/drivers/bluetooth

# Change btusb.c with editor of your choice. Ex:
vim btusb.c

In btusb.c file just add { USB_DEVICE(0x0cf3, 0xe500), .driver_info = BTUSB_QCA_ROME }, to static const struct usb_device_id blacklist_table[].

File should be something like this:

static const struct usb_device_id blacklist_table[] = {
    ...
    /* QCA ROME chipset */
    ...
    { USB_DEVICE(0x04ca, 0x3015), .driver_info = BTUSB_QCA_ROME },
    { USB_DEVICE(0x04ca, 0x3016), .driver_info = BTUSB_QCA_ROME },
    { USB_DEVICE(0x04ca, 0x301a), .driver_info = BTUSB_QCA_ROME },
    { USB_DEVICE(0x13d3, 0x3496), .driver_info = BTUSB_QCA_ROME },
    // This is the fix for QCA9377 bluetooth 0x0cf3:e500
    { USB_DEVICE(0x0cf3, 0xe500), .driver_info = BTUSB_QCA_ROME },
    ...

3) Compile modules. You may need some need make and build-essential for that, install using 'sudo apt install make build-essential' if they are not installed.

make -C /lib/modules/$(uname -r)/build M=$PWD modules

4) "Install" and reboot. Replace btusb module for the new btusb and reboot.

# You may do a backup of the old file:
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.backup

# Copy and replace btusb.ko to module location:
sudo cp btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

# Reboot and test
reboot

I didn't experience any problem after that. Wireless seems ok, bluetooth headset also seems to be ok.

If you also could test, please, share results here. If it really solves the problem we can ask this to be included in future linux kernel versions.


As @Matteo noted in the comments, there is a native Linux binary which works much better than the (unsupported) Wine version. Local files work just fine with this client.


Try using these commands:

sudo ./cpupowerd --freq "0|1800"

sudo ./cpupowerd --freq "0|1600"

sudo ./cpupowerd --freq "0|800"


The PowerPC version of Ubuntu, which is community-supported rather than officially supported, should run on your Mac that has a G4 processor. There are some differences between the PowerPC version of Ubuntu and the versions of Ubuntu for officially supported architectures; you will likely find the PowerPC FAQ helpful. There are also some very general system requirements.

The PowerPC download page contains links to where you can download the PowerPC version for each Ubuntu release, as well as links to special installation instructions, as applicable. Please note that for some Ubuntu releases, the PowerPC version's desktop .iso image is too large to be burned to a CD, so it must be burned to a DVD instead (or written to a USB flash drive, if your G4 Mac is capable of booting from one).


Most of these are KDE PIM applications (akregator, kaddressbook, kmail, korganizer) and their dependencies. There are some other KDE apps (juk, dragonplayer, kwrite) in there as well. None of them are essential for running the Plasma desktop though


Error: You don't have permission to access that port

You can use another port for your django development server port to running.
for example
python manage.py runserver localhost:18080


installing ubuntu from a usb flash stick

If you dont want to install the linux, which is what I am assuming you mean by "how to run ubuntu on a flash stick". You can look at this link
running linux on a usb stick wont effect bios you just interrupt the boot order for that one boot.

You will just need to interrupt your boot order for each boot you do this. A quirky video on how to do that.

You have two other options install linux onto one of your drives and and you can use the grub men to boot to either linux windows 7 or 10 anytime you boot.
here is a well thought out and well written guide for windows 10

Your other option depending on your need you can use a virtual machine, which would have no effect at all on your bios. And if you ever have any problems with it you can delete it.
Here's a link to see how to


Docker uses bridges to split the network into several isolate parts. br-* usually are created with docker-compose files when you run your containers with a compose file (docker-compose.yml). so docker creates a new network bridge to isolate your container. you can see your networks with this:

docker network ls

output:

NETWORK ID          NAME                   DRIVER              SCOPE
78d5fd93be37        bridge                 bridge              local
b20b47d754cd        example1_default       bridge              local
f26798e4e71c        exporter-net           bridge              local
ed99a6f6dfc1        host                   host                local
12910824ac92        none                   null                local

br-* bridges come from br-<NETWORK ID> of your networks.

you can see its subnet and the containers using this network with the command:

docker inspect <NETWORK NAME like example1_default>

output:

[
    {
        "Name": "example1_default",
        "Id": "b20b47d754cdaba5dfe89f181e5d5a93eee4c50d3f34d8d93f16eed2e80e72b0",
        "Created": "2019-05-12T18:16:03.618737845+04:30",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.20.0.0/16", ##### subnet
                    "Gateway": "172.20.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": true,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": { ##### containers using this network
            "5a3fba164f7c15318eaab64b65a1c7996a1da15d84629e818e8b61195fe14345": {
                "Name": "example_container",
                "EndpointID": "cbced3c6c8ae79ae266261de6f62f469aefdc6a7a0f5f79fd0f04301f0030e34",
                "MacAddress": "03:11:fe:00:00:02",
                "IPv4Address": "172.20.0.2/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "default",
            "com.docker.compose.project": "example1"
        }
    }
]

to change this subnet range, you must create a new network with custom subnet:

docker network create --subnet 172.123.123.0/24 new_network

and reconnect your containers to the new network. you must repeat this for all containers using the old_network.

docker network disconnect old_network container_name
docker network connect new_network container_name

Now you can remove old_network and use the ranges.


Bash - How to execute a Terminal command without opening the Terminal GUI

The gnome-terminal command causes a GUI terminal application to open. Instead of using gnome-terminal to run the command, make your script simply run the command:

#!/bin/bash
java ABC


Ubuntu 16.04 Xenial hard crashing on ACER E3-11-P0D8

I have an Acer E3-111, and I upgraded from Xubuntu 14.04LTS to 16.04LTS a couple days ago, and had the same freezing issues as being described here. I'm assuming that your laptop is an E3-112, based on a bug submission on Launchpad that was clearly you.

I was running BIOS version 1.35 when I first upgraded. I installed the version 1.37 BIOS from Acer's website, and I've been going for about a day now without any freezes. The description of the BIOS version 1.37 is "Update EC to version v2.6(improve compatibility of battery charging)." For the E3-112, the latest BIOS is version 1.16, and has a similar description "Update EC to version v1.7(improve compatibility of battery charging)." Based on the bug submission on Launchpad (if that was indeed you), it looks like you were using an old BIOS, so a BIOS upgrade might do the trick.

I'll update if the problem reappears, or if I just didn't wait long enough to see it.

As an aside, to flash the Acer BIOS, you have to be running Windows. When I bought this machine, the first thing I did was take out the original hard drive and put in an SSD with Xubuntu. So all I had to do was put back in the original hard drive with Windows to flash the BIOS. If you overwrote your original hard drive, you might be in trouble here.

System:
Acer E3-111-P60S
Intel Pentium N3530
4GB RAM

Current Linux Kernel 4.4.0-34-generic

Update: It's been about 4 days, and everything is fine. I'm calling this resolved unless OP updates their BIOS and has contradicting results.

link to the associated launchpad bug


How to make ubuntu VM accessible from Internet

All of the above.

On the Ubuntu system, there must be a service listening on an open port
On the VM, the interface must either be bridged to your LAN, or (if it is NAT'ed), the port on which the service is listening must be forwarded across the NAT
On your router, the port must be forwarded from the LAN side to the WAN (public) side.

In addition, your ISP must not block the chosen WAN port.


How to do a dual boot of two Ubuntu operating systems?

I find this tutorial to be the best source of information regarding GRUB2 - http://www.dedoimedo.com/computers/grub-2.html#mozTocId398970.


AFAIK Ubuntu does support Bluetooth 3, and even if it did not, your Bluetooth 3 capable adapter is using Bluetooth 2.1 for Bluetooth 2.1 devices. Quite likely it is just a driver issue, or your internal adapter might simply do poorly with that device because of how it is built (for example if it does not use enough power for the transmission or what ever. It may even be that it is not getting a clear enough reception).


You can use:

 png2icns file.icns file.png

The first one is the name you want your .icns file to have. The last one is the .png file you want to export as an icon.

Important: Only convert the icons that match sizes icns supports: (16x16, 32x32, 128x128, 256x256, 512x512 and 1024x1024 pixels)

Or you can use an online service: iConvert Icons

Source: Ubuntu manuals


Server maintenance: Disallow SSH and HTTP for everybody except myself

I am not sure if you are connecting to the VM from Linux. If you are:

First, I you can limit number of SSH connections via the firewall, but be careful not to lock yourself out as well. I do not believe you can limit using SSH config files.

Second, you can setup your SSH connection to tunnel localhost, so HTTP access is only possible from the web server.

Example tunnel using ~/.ssh/config:

Host YourServer
   HostName XXX.XXX.XXX.XXX
   IdentityFile ~/.ssh/YourServerKey
   User YourUser
   LocalForward 8888 127.0.0.1:80
   LocalForward 8889 127.0.0.1:443

With tunneling available, you can add restrictions to the HTTP server config file to allow only localhost to view the site.

Example: phpMyAdmin on Apache2, localhost only

And then comment out those lines when you are ready for public access again.


Unable to find Printer Driver RICOH MP 2001L in Ubuntu 18.04.3 LTS

It seems this printer machine works only upto windows 7 & former OS.
Also it is not compatible for Linux OS as said in its manual.


The error message says that you have no permission to access /home/basil/.config/google-chrome/SingletonLock, which probably means it isn't owned by you. This is probably due to running Chrome as root (using sudo), which shouldn't be done.

Try sudo rm -r /home/basil/.config/google-chrome/ to remove Chrome's configuration files for your user.


i did this and it worked :

 1) sudo apt-get install libgles1-mesa libgles1-mesa-dev
 2) sudo apt-get install freeglut3 freeglut3-dev
 3) gcc ./*.c -o "XXX" -L/usr/lib/x86_64-linux-gnu/ -lGLESv1_CM -lglut

those steps on ubuntu 13.04 64bit , because the "-L/usr/lib/x86_64-linux-gnu/"
changes depending on your distro.


Try looking into the PythonFu Slice filter. It will take an image and then divide it into however many pieces you want in as a even a way as possible, then you can manually re-join them in whatever way you want.

There's also the Guillotine plug-in that divides up the image based on any guides on the image. Again, this would require you to manually composite the images back together.

And, finally, there's this Split and join images filter I found on the GIMP Registry. I haven't got it to work, but perhaps you can. It also seems to be partially in another language.

These aren't exactly what you want, as it's not automatic - but perhaps you can take these and create your own PythonFu script or GIMP extension!


With credit to here, you can disable the Alt+F4 combination in Openbox by editing .config/openbox/lxde-rc.xml with code similar to:

<keybind key="A-F4">
  <action name="If">
    <title>* Chromium</title>
    <then>
      <!-- Do nothing when Chrome is the active window -->
    </then>
    <else>
      <!-- Do nothing in other cases as well -->
    </else>
  </action>
</keybind>


How to remove Windows List form Ubuntu-MATE Top Panel

It turns out I only needed to find the right spot where to right-click. Then a menu opened and I was able to remove the indicator.

Now I'd like to know how to add the Recent Files applet to the panel tho.


OK, I've solved the problem myself by removing .kde folder. Yes, it's full solution.


How to dual boot Win8/Ubuntu using UEFI and two HDDs

I think what you want to do would be a little bit simpler than doing an install on one drive.  I assume you are familiar with some more advanced terminology here since you said you were reading up on the subject, but please ask if anything is unclear.

You need to first get your install ISO's downloaded:
--Getting a Windows 8 install ISO may be the hardest part of this procedure.  (But you don't need if it is already installed.)
--Ubuntu desktop ISO.  (I presume you want Ubuntu 14.04 / amd64 because your computer is 64 bit).  If possible, create two bootable usb sticks, one for each.  You can easily have a second computer handy to switch from one bootable iso to another and use just one usb drive, or once you install windows, download Lili usb creator and create the Ubuntu install drive.  Alternatively you could make DVD's if your target computer has a DVD drive.

You need to disable secure boot in your bios.  If Windows 8 is already installed, it is easy to find a guide for this.  (For the love of your sanity, don't format the Windows 8 already installed.)  You have to shift-right-click restart in the lower right corner power menu to get to Advanced settings and access the bios.  Please note the menu progression is totally different twixt 8 and 8.1.  While in the bios turning off Secure boot, your bios might have an option to allow you to turn on F8/F10/F12/or del key to let you access the bios, which Windows 8 PC's have to ship with the option off.  (This is for convenience as you probably need to go into the bio a lot as a dual booter.)

IF you are totally installing both OS's, you have the option to turn the UEFI off in the bios.  But this is not advisable because UEFI protects you from rootkit "viruses".

We also need to do some planning.  We ultimately need the bios to boot first to the SSD drive.  However, we will install each OS separately with only one drive attached at a time, so this can be a last step for you.

We want the Linux drive to be the primary boot drive because if we can avoid replacing a part of the windows boot system with GRUB2, we should.  Windows gets cranky when it doesn't find what it expects in the boot sectors of the drive when it goes sniffing around to auto-fix itself.  So we can prevent that conflict from ever happening.

If you are planning partitions, there is something important to think about.  If you have Windows 8 fast boot turned on, Ubuntu cannot read the Windows partition.  This means that if you want to share files, you need to plan on having an NTFS or FAT32 partition that they both can share nicely.  Also, hibernating windows and booting Linux will cause Windows to lock Ubuntu out of any hard drive that a Windows program had just one file open on--> perhaps on the nice little data sharing hard drive partition you set up.  So don't hibernate and then boot Ubuntu.  (Yes, I learned this the hard way...)

You want to install Windows 8 first.
The key trick is to only have the one hard drive you plan to use for Windows connected.
I think that you already have Windows 8 installed on the HD and are adding the SSD?  If this is the case, you are done installing Windows, hurray!
However, you will need to disable Secure Boot. (as above)

Now, power down the computer and disconnect the Windows 8 hard drive and attach the Linux hard drive.  Install Linux.

After it is installed and you get online, run these commands in terminal

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair

Boot-repair is going to get the whole thing dual booting later.

Now, power down and attach both hard drives.  Set up bios so that we boot to the SSD/Linux.  (If your bios setting is wrong, you'll just go to windows instead.  No problem try again.)

Now that we are happily booting Linux, run boot-repair and follow the instructions.  This should set up your boot menu to let you switch between the OS's.  And ta-da, all done.

Now if for some reason boot-repair goes all haywire on you, first of all, you can just tell the bios to switch to Windows and there you go, you can still boot something.
Also, you can use your Ubuntu 14 desktop usb stick to boot to Ubuntu.  Select try Ubuntu.  Then you can install boot-repair per the above instructions and try again.


Why does Ubuntu use Firefox by default if it has its own web browser?

Web Browser was originally designed for use with Ubuntu Touch and was specially designed to be used with touch screen devices. Canonical has plans to end its investment in Ubuntu Touch in 2017, but the Web Browser app (webbrowser-app) is installed by default in Ubuntu 14.04-17.04.

Web Browser has very limited functionality compared to Firefox. It does not have a built-in master password feature and does not play YouTube videos properly. At least Web Browser can save bookmarks by clicking the star in the URL field on the right side, and Web Browser can also access Bookmarks, History, Private Mode and Settings by clicking on the three horizontal lines icon in the upper right corner as shown in the below screenshot. The only thing I could think of to use Web Browser for is for websites that require disabling adblocking, but Web Browser can't be used for that either because it doesn't even support solving Captcha riddles.


With awk:

awk -F_ '{ print $1 > "file_1"; print $2 > "file_2" }' source_file


Icons have disappeared from XFCE4 launcher panel at bottom of screen

Very interesting ... when I switched from lightdm to gdm3 in response to my ...

Ubuntu 18.04 stopped booting into GUI

... this problem disappeared, too!


I installed conda based on this SO answer and in Pycharm, I changed the interpreter to the anaconda python; and that did the trick.

conda remove opencv
conda update conda
conda install --channel menpo opencv

But destroyAllWindows() function is still giving me errors. I will find out what's going on.


Stop or break window snapping to left or right with another window

When you have the 2 windows left and right, grab the top title bar of the left window and drag it to the right and back to the left.  It will now be bigger and the its right edge will no longer be connected to the left edge of the second window.  At this point either window can be made wider without affecting the other.


After Ubuntu 16.04 update some programs were lost

The upgrade process disables third-party ppas. If the programs you are missing came from this kind of source, you will have to re-enable the ppas and re-install the programs.


How do I create a launcher for the Xampp control panel?

Try to run this command:

gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py

And I got this error:

Error importing pygtk2 and pygtk2-libglade

Install python-libglade solved the problem:

sudo apt-get install python-glade2

Hope it's useful for someone.


Bash script to maintain audit trail / log of files accessed

The simplest answer for me to wrap my head around is not using journalctl derivatives but rather "brute force" programming / scripting.

Here is the code.

~/bin/gsu:

#!/bin/bash

# Usage: gsu gedit file1 file2...
#  -OR-  gsu natuilus /dirname

# & is used to spawn process and get prompt back ASAP
# > /dev/null is used to send gtk warnings into dumpster

COMMAND="$1" # extract gedit or nautilus

pkexec "$COMMAND" "${@:2}"

log-file "${@:2}" gsu-log-file-for-"$COMMAND"

/usr/local/bin/log-file:

#! /bin/bash

# NAME: log-file
# PATH: /usr/local/bin
# DESC: Update audit trail/log file with passed parameters.
# CALL: log-file FileName LogFileName
# DATE: Created Nov 18, 2016.
# NOTE: Primarily called from ~/bin/gsu

ABSOLUTE_NAME=$(realpath "$1")
TIME_STAMP=$(date +"%D - %T")
LOG_FILE="$2"

# Does log file need to be created?
if [ ! -f "$LOG_FILE" ]; then
    touch "$LOG_FILE"
    echo "__Date__ - __Time__ - ______File Name______" >> "$LOG_FILE"
    #     MM/DD/YY - hh:mm:ss - "a/b/c/FileName"
fi

echo "$TIME_STAMP" - '"'"$ABSOLUTE_NAME"'"' >> "$LOG_FILE"

exit 0

Contents of log file gsu-log-file-for-geditafter a few edits:

__Date__ - __Time__ - ______File Name______
11/18/16 - 19:07:54 - "/etc/default/grub"
11/18/16 - 19:08:34 - "/home/rick/bin/gsu"
11/18/16 - 19:09:26 - "/home/rick/bin/gsu"

Future enhancements

A consolidation script which will take take last two lines and merge them into:

11/18/16 - 19:09:26 - "/home/rick/bin/gsu" (2 edits, first on 11/18/16 - 19:08:34"


like in Apache Doc:

  Custom error documents are configured using the ErrorDocument directive, which may be used in global, virtualhost, or directory context. It may be used in .htaccess files if AllowOverride is set to FileInfo.

So it should be okay in .htaccess Files.
Did it work for you?


Why Tor cannot access /usr/bin/tor-browser/Data/Tor?

The above error means that you do not have permission to perform the installation.
So you need to become the root user.
Do this by typing
 sudo -s
in the terminal and you will be able to install tor.


Ubuntu 16.04 on Dell Latitude 7480 - hardware issues

Solutions so far:

Issue 1. Many issues were fixed when I updated to the firmware in 16.10 while still running the Linux 4.08 kernel in Ubuntu 16.04's early point releases:

wget -N http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161.1_all.deb
dpkg -i linux-firmware_1.161.1_all.deb

Issue 2. Updated the BIOS and the firmware on the SSD, then enabled SATA ACPI and legacy boot ROMs, disable secure boot. No clue why a PCIe NVMe SSD needs a SATA option, but there it is! OK, this isn't really a Latitude issue, but it's a popular SSD, and the only way to get 2TB at the moment. I'm baffled why it uses only a legacy ROM. Maybe there's a Windows way to configure it differently. Oh well.

Issue 3. The fix is in, thanks Ben Morgan! When I suspend or hibernate and resume, the DualPoint Stick (likely ALPS under the hood, but it doesn't say that) and the three buttons above the trackpad stop working. FYI, I filed a kernel bug here:

https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1694866

Issue 4. VTs work in recent kernels/firmware.

Issue 5. A Dell person told me that support for ThunderBolt 3 is coming along nicely in the new kernels. For now, video and charging work a little, then fail, but anything else does not work at all (audio, network, USB). I have tested HDMI and VGA, but not DisplayPort. Looked at closely, the native VGA quality is not as good as a $9 HDMI-to-VGA converter from VicTsing or others, though it's pretty good.

Issue 6. You have to do Edit connections and enter them manually (including passwords), and then it finds them.  Until it doesn't, and then you're in the slow-crash-cold-boot cycle.  This may be a clue that the crashes are related to networking.

Issue 7. With the Ubuntu 16.04.3 release, we saw the 17.10 kernel (v. 4.10) and its aforementioned fast and hard crashes.  The best thing to do as of January 2018 is to pin and run the 16.04.2 kernel and the 16.10 firmware.  Pinning the earlier HWE restored it to prior problem, a definite improvement, but still not great.  See above.

Other than that, most things seem to work:

Blank=untested
p=partial
m=maybe (probably need a package)
y=yes

 GPU
 smartcard
 fingerprint
 SIM card
n Thunderbolt 3 (charges, video work a little, then fail, but not USB, audio, RJ45)
p WiFi
y camera
y builtin mic
y DualPoint Stick, 3 buttons (17.04, else freeze after suspend)
y SD card (exfat filesystem is not recognized until you add packages)
y audio port 16.04 w/ 1.161.1 firmware from 16.10
y bluetooth 16.04 w/ 1.161.1 firmware from 16.10
y touchpad, 2 buttons
y HDMI
y SSD
y RJ45 (grabs cable, need tool to remove)
y CPU
y RAM 32GB (Crucial 2x16GB DDR4 2133 upgrade)
y battery
y touchscreen
y X11
y keyboard, backlight
y USB3 ports 1, 2, 3
y speakers, mic

Sorry for the length. I had hoped to find a single page with all these answers on it, but didn't, so I made it that way.


Installing salt minion in ubuntu 20 for Windows(Windows terminal)

Ubuntu 20.04 uses Python 3.8, which is not compatible with Salt v3000 and older: https://github.com/saltstack/salt/issues/55310


Ubuntu Installation Bug with new MSI B460 board and Samsung EVO ssd?

Did you by chance try installing a different distro just to see what would happen?  That might give you a clue if there is an issue with your hardware running Ubuntu or Linux in general.
If I'm having a problem like this, I'll often try Fedora or another big name distro to see if the problem shows up there as well to help start narrowing things down.


How can I get the AMD driver running on Ubuntu 12.10 (AMD Radeon HD 7310& AMD Vision E1-1200 APU)

I had the same issues but I finally found a way to use AMD drivers while keeping the Unity launcher working.

First in the terminal update your kernel with

   sudo apt-get install linux-headers-3.5.0-17-generic

Next go to the AMD website and download the 12.11 Beta drivers

Download the drivers and place the drive file (.run file) on the desktop

In the terminal run the following:

cd /home/yourname/Desktop (Replace yourname w/ your Ubuntu login username)

Followed by

sudo sh amd-driver-installer-catalyst-12.11-beta11-x86.x86_64.run

The AMD driver/catalyst installer should open, follow the step by step and restart!

Your unity bar should work while you have the latest drivers! WOo!

Also - to remove the watermark (For AMD testing only) simply open the terminal and run

sudo gedit /etc/ati/signature

Then replace "Unsigned" with 9777c589791007f4aeef06c922ad54a2:ae59f5b9572136d99fdd36f0109d358fa643f2bd4a2644d9efbb4fe91a9f6590a145:f612f0b01f2565cd9bd834f8119b309bae11a1ed4a2661c49fdf3fad11986cc4f641f1ba1f2265909a8e34ff1699309bf211a7eb4d7662cd9f8e3faf14986d92f646f1bc


Installing new versions of ubuntu alongside /home folder

Yes, as long as you don't delete it (should go without saying) your /home partition (encrypted or not) will remain intact when you upgrade your Ubuntu OS to a future release.

The process I follow (which I believe is pretty typical) is to create several partitions: /, /home, and swap (/boot/efi is often required as well when using the newer UEFI BIOS).

Maintaining a separate /home partition makes it very easy to do an upgrade while allowing your personal data to persist across upgrades.

In my own case, I probably have ~10 years of data in one of my /home partitions... and it's survived innumerable upgrades with no problems.


There's a bug where the installer hangs instead of formatting the partition in some cases.  I ran into it doing a "Something Else" install, but managed to press on by starting over with an "Upgrade" install.

If you provide more info, someone may be able to tell if this is your situation.


How do I scan all ubuntu source code? I have downloaded & extracted all 5 source dvd iso images

You can use the debmirror tool to download all the source files. You will pull a lot of files (and we are not talking about a few Gbs here). This will get the source from "main" for "eoan":

debmirror -a none --source -s main -d eoan,eoan-security,eoan-updates \
          -r /ubuntu --progress -e http -h archive.ubuntu.com outpath

Replace main with universe, multiverse, and restricted to get the other repositories.
archive.ubuntu.com can be any mirror.
I can not find reliable sources of the size of Ubuntu repositories but Debian's amd64 is 400Gb. Ubuntu is likely to be not less than that.

Canonical has provided a script for this but you will need to adjust this to your needs.


Statsd installation on Ubuntu 14.04 issue. Unable to start service after installation

I would go over the config files again.

sudo nano /etc/statsd/localConfig.js

Can also try and restart these. Wait a few seconds between each.

sudo service statsd stop
sudo service carbon-cache stop
sudo service carbon-cache start
sudo service statsd start

Still having problems look to see if it really is not running.

Run this command to take a look at what is running.

sudo netstat -nlp

If it is running you will see ip:port under Local Address.

Statsd 0.0.0.0:8126, 0.0.0.0:8125
carbon 0.0.0.0:2003, 0.0.0.0:2004


Unable to connect to 127.0.0.1 using telnet

Telnet is not a secure way of connecting and it is disabled by default. Use ssh for that; however, install the package openssh-server first.


gvfs-mount not working on Ubuntu 14.04 for wireless HDD

The location for gvfs mounts had changed in Ubuntu 14.04.

Example of an SSH mount:

/var/run/user/1000/gvfs/sftp:host=COMPUTER,user=USERNAME/...

1000 is the user id of the standard user USERNAME
sftp is the protocol used


How to install x-tile on Ubuntu MATE 18.04 LTS?

As before x-tile package is located in the official PPA.

So we need to add PPA and install package from it:

sudo add-apt-repository ppa:giuspen/ppa
sudo apt-get update
sudo apt-get install x-tile

Then find it in Applications->Accessories->x-tile.


How to change installation directory for Android Studio, and what are the consequences?

Did you try installing Android Studio by downloading a .zip file then extract it where you want?


if specifc line contains substring then output other substrings

I used the following text as sample (modified the sample provided by the OP):
<TEST1>     <text:p text:style-name="P4">Hello<text:span text:style-name="T2">world</text:span><text:span text:style-name="T3"></text:p>
<TEST2>     <text:p text:style-name="P540">0 <text:s/>oooh yeah<text:s text:c="2"/>kool-aid<text:s text:c="12"/>0:00</text:p>
<ANOTHER_TEST15>     <text:p text:style-name="P9">Hi<text:span text:style-name="T16">there</text:span></text:p>

I came up with this combination of grep and sed commands, which might not be the most efficient, but is relatively simple to understand:
grep -n 'style-name="T' File.txt | grep -P -o '^\d+:<\w*>|style-name="T\d+' | sed -z 's/style-name="//g; s/:/ /; s/\nT/ T/g'

Breaking down the command:

grep -n 'style-name="T' File.txt adds the line numbers for which style-name="T was matched.
The output is:
1:<TEST1>     <text:p text:style-name="P4">Hello<text:span text:style-name="T2">world</text:span><text:span text:style-name="T3"></text:p>
3:<ANOTHER_TEST15>     <text:p text:style-name="P9">Hi<text:span text:style-name="T16">there</text:span></text:p>

grep -P -o '^\d+:<\w*>|style-name="T\d+' uses the previous output as input and matches the line numbers with the text inside :< and > right next to them and style-name="T with the number right next to it. Each matching is printed in a new line.
The output is:
1:<TEST1>
style-name="T2
style-name="T3
3:<ANOTHER_TEST15>
style-name="T16

sed -z 's/style-name="//g; s/:/ /; s/\nT/ T/g' uses the previous output as input and removes style-name=" and : and replaces the linebreaks before T (\nT)with a single space followed by T ( T).
The output is:
1 <TEST1> T2 T3
3 <ANOTHER_TEST15> T16


If you able to get the terminal to work maybe you can try and run sudo apt-get update

Check out this thread you might find your answers there.