Connection refused for SSH on Server via Docker container

Solved. The issue was that the the docker was engaged on a specific port and thus I needed to use that port, now the 8882 port that I was using.


How to edit files on mounted share using Visual Studio Coe

I think the only problem is that you're missing the "user" option in your fstab file - just add it to the comma-separated list of options you already have.

Is there any reason you have to use Samba for the RasPi share (e.g., maybe you need it for access via Windows)? If not, the simplest solution might be either using sshfs, a command to create a mount over ssh - type this in a command shell:

sshfs 192.168.1.130:/openHAB-conf /home/t/OH2/etc

...or mounting via nfs in your fstab file which looks like this:

192.168.1.130:/openHAB-conf /home/t/OH2/etc nfs noauto,user 0 0


Secondary PCIe SSD not recognized at boot

Not sure if it applies to your machine as well, but setting up dual boot windows on my Dell XPS was a major pain. Your symptoms seems similar to what I experienced so I would suggest checking this article for BIOS settings and other tips.


What is the best tool for working with oracle db?

Oracle SQL Developer

There is no debian installation file for it though so start here and accept the license.

  Installation

Ensure you have a JDK installed, if not, you can download one here.
Download the zip file.
Unzip sqldeveloper.zip
cd sqldeveloper/
sh sqldeveloper


How to (using GUI) empty a flash drive's trash without emptying the computer's?

When you open flash drive press CTRL+H or through menu View > Show hidden files, hidden folder should appear .Trash-1000 or similar. Delete this folder like normal file, you will be prompted with ask "Remove it permanently?", press delete button. Or delete this folder by selecting it and pressing Shift+Del.


Partially blank screen in Lubuntu 16.04.4 LTS

I've had to troubleshoot similar graphical issues in the past where I've made major changes to my setup.  Nine times out of ten it's been the Nvidia drivers causing the problem.  Maybe it's the case for you too?

You could try:

sudo apt-get purge nvidia-*
sudo apt-get install --reinstall xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf

And then reboot afterwards.

I got the above from How reinstall the default graphics drivers? which looks very similar to what I've used in the past.

Good luck!


exFAT is a proprietary FS and the drivers for it are not installed in Ubuntu by default, but can be installed.

sudo apt-get install exfat-utils

Then probably reboot and try it again. If you still cannot use it then type

lspci -v

and copy the result back here. You might need a driver for the reader to work right as well.


two directories need to be restored:

/var/lib/ldap
/etc/ldap

cp your backups for both of these folders into the directories.

also make sure to set correct permissions for the openldap user on /var/lib/ldap/*

I just completed this and verified it works as a solution.


Skip installation prompts during upgrade in terminal

Adding -y to sudo apt-get upgrade will make it assume yes to all queries.

From the man page:

-y, --yes, --assume-yes
      Automatic yes to prompts; assume "yes" as answer to all prompts and
      run non-interactively. If an undesirable situation, such as
      changing a held package, trying to install a unauthenticated
      package or removing an essential package occurs then apt-get will
      abort. Configuration Item: APT::Get::Assume-Yes.

So if you make your command look like this

sudo apt-get update && sudo apt-get upgrade -y && sudo shutdown -h 1

To run without risk of new password prompt before shutdown do this

sudo sh -c "apt-get update && apt-get upgrade -y && shutdown -h 1"

it will run and "answer" yes to any prompts you have during sudo apt-get upgrade.

For more information on the command apt-get type in a terminal man apt-get.


Guide to set up Apache2 and Tomcat8.5 on an Ubuntu 18.04?

There are lots of guides online that go over how to accomplish each of these tasks, but it seems many of them leave out one or two steps that then lead to questions on sites like this one. That said, DigitalOcean puts out some of the better walk-throughs for common software packages.
That said, AskUbuntu isn't really a site where one drops links and walks away. Link rot is a real thing and should be avoided when possible. So, with this in mind, let's install some software.
Apache2 on Ubuntu Server 18.04
This is how one would install Apache on an up-to-date Ubuntu 18.04:

Connect to the machine
Update apt:
sudo apt update

Install Apache:
sudo apt install apache2

Allow Apache through the firewall by first listing applications ufw is aware of:
sudo ufw app list

This will give you something like:
Available applications:
  Apache
  Apache Full
  Apache Secure
  OpenSSH

Allow Apache:
sudo ufw allow 'Apache'

Confirm the status:
sudo ufw status

You should see something similar to this:
Status: active

To                         Action      From
--                         ------      ----
OpenSSH                    ALLOW       Anywhere
Apache                     ALLOW       Anywhere
OpenSSH (v6)               ALLOW       Anywhere (v6)
Apache (v6)                ALLOW       Anywhere (v6)

Test the web server works in the browser by entering the server's IP address. You should see a stock Apache page with the Ubuntu logo and some configuration information.

Source: DigitalOcean
Install Tomcat 8.5
Tomcat 8.5 was the version available with Ubuntu 16.04 and Tomcat 9 was the version available for 18.04. That said, if you really must have 8.5 on your 18.04 server, this is how you can do it.
(Optional Steps — To be performed only if you have disconnected from the server after installing Apache)

Connect to the machine
Update apt
sudo apt update

Now let's install Tomcat 8.5:

Install the Java Development Kit:
sudo apt-get install default-jdk

Create a group and user for Tomcat to use:
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat

Download Tomcat 8.5 from the Apache Tomcat website. As of this writing, 8.5.65 is the most recent version. You can download this via curl:
curl -O https://downloads.apache.org/tomcat/tomcat-8/v8.5.65/bin/apache-tomcat-8.5.65.tar.gz

Tomcat will be saved to the /opt/tomcat directory, so let's get that set up:
sudo mkdir /opt/tomcat
sudo tar xzvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1

Now let's set the permissions correctly:
cd /opt/tomcat
sudo chgrp -R tomcat /opt/tomcat
sudo chmod -R g+r conf
sudo chmod g+x conf
sudo chown -R tomcat webapps/ work/ temp/ logs/

Next we need to get the current location of Java:
sudo update-java-alternatives -l

You will see something like this:
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64

The path will be needed for JAVA_HOME, which will be set in the next step.
Create a systemd .service file for Tomcat using an editor of your choice:
sudo vi /etc/systemd/system/tomcat.service

Paste the following into the file:
[Unit]
Description=Apache Tomcat Web Application Container
After=network.target

[Service]
Type=forking

Environment=JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/opt/tomcat
Environment=CATALINA_BASE=/opt/tomcat
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'

ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/bin/shutdown.sh

User=tomcat
Group=tomcat
UMask=0007
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target

Remember to change JAVA_HOME to the path from the last step, and keep /jre at the end of the path. Once done, save and close the file.
Reload the systemd daemon:
sudo systemctl daemon-reload

Start Tomcat:
sudo systemctl start tomcat

Confirm it's working:
sudo systemctl status tomcat

Allow Tomcat through the firewall:
sudo ufw allow 8080

And then test the installation with http://server_domain_or_IP:8080
Set Tomcat to automatically start at boot:
sudo systemctl enable tomcat

Now to configure the management interface. Open the configuration XML file and set a decent login and password:
sudo vi /opt/tomcat/conf/tomcat-users.xml

You'll see something like this:
<tomcat-users ...>
    <user username="crazyTown" password="superSecretPassword!123" roles="manager-gui,admin-gui"/>
</tomcat-users>

Save the file.
Restart Tomcat:
sudo service tomcat restart

Test the web interface again in the browser.

Source: DigitalOcean
mod_jk for Apache
This is the final step.
(Optional Steps — To be performed only if you have disconnected from the server after installing Apache)

Connect to the machine

Update apt
sudo apt update

Install mod_jk:
sudo apt install libapache2-mod-jk

Enable the redirect port on Tomcat:
sudo vi /opt/tomcat/server.xml

Uncomment the line that looks like this:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

Create a workers.properties file for Apache:
sudo vi /etc/apache2/workers.properties

Paste the following into the new file:
# Define one worker using AJP13
worker.list=worker1

# Set the properties
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

Instruct Apache to use the file:
sudo vi /etc/apache2/mods-available/jk.conf

Find the JkWorkersFile property and set it to the file you just created:
JkWorkersFile /etc/apache2/workers.properties

Finally, ensure Apache passes through to Tomcat:
sudo vi /etc/apache2/sites-enabled/000-default.conf

Then add this to your <VirtualHost *:80> configuration:
JkMount /api worker1

Restart Tomcat and Apache:
sudo service tomcat restart
sudo service apache2 restart

Source: My endless configuration notes in Evernote ...
This should give you everything you need to get these three pieces of software working together. This was tested in a VirtualBox VM running Ubuntu Server 18.04.5 LTS.


Font Size is too small in Kubuntu 16.04 with a 4k display. How to enlarge the size of system fonts / symbols?

Maybe this link helps: Is Ubuntu 4K ready?

  This german article says that it was running without issues. The
  author describes that he was changing the scaling factor under the
  system preferences and that the scaling was set systemwide for all
  used fonts.

Kubuntu should probably also have a scaling factor in the settings but I don't know where.


No longer a part of sudoers list after adding docker

This is a little nasty but it's worked for me in the past and has the added advantage of re-setting your root password. It wasn't an Ubuntu system I did this with but the principle remains the same.

Boot off of a live CD, I assume this will mount your existing linux partitions. If not you'll need to mount them manually.

From the shell

$ cp /PathToRootOfMountedDrive/etc/shadow /PathToRootOfMountedDrive/etc/shadow.bak

$ nano /PathToRootOfMountedDrive/etc/shadow

There will be a line like this:

root:The Hashed Root Password:15841:0:99999:7:::

The bit we are concerned with is the hashed root password. If you replace this with an asterisk (*) and save, you should be able to re-boot off of your install and log in as root without a password. Your amended line should look something like this:

root:*:15841:0:99999:7:::

You can then add yourself back to the sudoers file with $ useradd dorsatum sudo
It goes without saying that you should set a root password once you are done!

There is a nice explanation of /etc/shadow here


Grub2 not updating boot list. Booting with error: Failed to set MokListKT: Invalid Parameter

running grub-install overwrote your UEFI grub with a regular BIOS one.
You need to run grub-install --target=x86_64-efi --efi-directory=/dev/sda1 --bootloader-id=grub as root and then grub-update


Cannot do 1st login after installation of 20.04.01

Actually I've realized that I had configured Ubuntu with an US Keyboard layout(QWERTY) instead of a Belgian keyboard layout(AZERTY).
The solution was to type the correspondent keys of the US keyboard on the Belgian keyboard - layouts easily found on the web.


Installed Ubuntu 12.04 LSD alongside with windows 7. No boot menu

Open the terminal and run this command:

root@penreturns:~$ sudo gedit /etc/default/grub

Comment  line (add "#"):

GRUB_HIDDEN_TIMEOUT=0

It must look like this:

# GRUB_HIDDEN_TIMEOUT=0

Update your GRUB with this comand:

root@penreturns:~$ sudo update-grub

Reboot your system and you will see how the system will now stop at the GRUB2 boot screen.

Enjoy!

http://penreturns.rc.my/2012/03/configure-grub2-menu-ubuntu.html


Upgraded to GNOME 3.10, Eclipse stopped working! What do?

The errors inevitably reveals if you have not right distributive. If your Eclipse installed at 13.04, for using at 13.10 you need distributive for 13.10 and reinstall at least.


Not able to modify the contents of my local drives

By default, ntfs ("Windows") partitions (which show as drive letters under Windows) are not mounted automatically. You can however mount them by clicking the icon of the volume that appears in the left column of Files. Mounted this way, ntfs volumes are by default readable and writable by the user that mounted the volume.
That your volume is apparently mounted as read-only may indicate that the volume is not "clean", i.e., it was not properly closed before. In order to prevent damage, Linux will refuse to mount such a volume with write permissions.
That an ntfs ("Windows") volume is not clean can result from Windows being setup for fast start. With that setting, Windows does not close all file systems and files as one of the strategies to resume quicker on a subsequent setup. However, if you need to use the ntfs volumes while Windows is shut down, you will need to 1) disable fast-start in MS Windows and 2) secure that you shut Windows fully down (no hibernate!) before starting up Linux.
Thus, to solve your issue,

Boot into Windows
Disable "Fast Start" (Consult the manual of your Windows operating system to see how this is changed)
Use the Windows drive checking tools to check the integrity of the ntfs partition and repair possible issues

After this one-time action, make sure to always shut down Windows completely before accessing the volume under Linux.
It is a good habit to regularly perform 3. while you are in Windows. While Linux can work very well with an ntfs formatted partition, it is only MS Windows that is fully capable of checking and repairing such file system.


How to transfer file from MacOS to Ubuntu Server?

Normally, scp asks for a password. To avoid this, or to automate file copying in scripts, public key authentication is usually used.
The basic idea is to create a key pair on the client and copy the public key to the server into an authorized keys file.

Sources: https://www.ssh.com/ssh/scp#configuring-public-key-authentication


I want to put Xubuntu 13.04 on an old laptop with Windows 98 on it, can someone tell me how to put Xubuntu on?

To install Xubuntu, first you need to download the 32bit for your machine.  Once downloaded, you can either burn to DVD using Imgburn, or create a bootable USB using Unetbootin depending on what your machine can handle.  Once that is done, set the boot priority in the BIOS to boot from Either the DVD or USB.  Once booted, follow the screens below.

Click on Install Xubuntu.  If you want to see if everything is OK, before installing choose Try Xubuntu

Your option might say something like replace Windows 98, if not just choose erase Disk and Install


How to build packages for Maverick while running Lucid?

Many developers use pbuilder
 for this task. There is a very comprehensive guide to pbuilder on the Ubuntu wiki. You might also look into the pbuilder-dist script. It is a is a wrapper that makes it easy to use pbuilder with many different versions of Ubuntu and/or Debian. It is available in the ubuntu-dev-tools package.

sudo apt-get install pbuilder ubuntu-dev-tools


OpenOfficeOrg Calc always prints in Landscape mode

I'm using LibreOffice, so things might be slightly different, but I've had this problem before with Calc. Go to the "Format" menu, then click on "Page". You'll find a setting for orientation on the "Page" tab. Set it to Landscape, then do the same for your printer settings.


Removing earlier versions of installed package?

Actually apt-cache does not show you which packages or even versions of packages you have got installed on your system.
It just shows you detailed information of all available packages (and their versions) for your system. So do not worry about it.

If you want to clean up your system from old packages, dependencies and cached files (you may get a lot of free space after doing this):

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

It's that easy.


16.04 won't connect to wifi on Acer Aspire with BCM43227

@user68186 is correct. Follow his link to that answer and follow the instructions carefully. You cited a new install - I can tell you from personal experience that another installation will require installing the Broadcom drivers again. I went from Ubuntu 16.04 LTS to Xubuntu 16.04 LTS (getting the results I wanted). I did have to install drivers for my Broadcom wireless device again as well. Your SSD addition is not the problem and so no need to return to the HDD. Just reinstall the drivers (I actually saved the answer to my documents folder and would recommend that as well.


Unable to enter Windows 10 boot loader from GRUB after 'installing' Ubuntu 16.04 LTS

I just find a solution today, it isn't related to BIOS/UEFI but rather graphical/non-graphical user interface: Just disable GRUB2 graphical interface and it works.

Step 1: Edit file /etc/default/grub (as super-user), add (or uncomment) the following line

# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console

Step 2: Update grub

sudo update-grub


How to install WIne on Ubuntu 20.04 LTS?

Open your terminal, and type:
sudo apt-get update
sudo apt-get install -y wine

Job done.


LibreOffice Writer edited document is recognized as virus or spyware

That's probably a false positive. You can't do much about that, but you can circumvent it, by putting the document in a Zip archive using your favourite archive manager.

Some malware scanners peek into archives too, in which case you need to encrypted your archive and send the password along with it.


How to fix black screen after logging into laptop after suspend?

Found a solution. Installed gnome-screensaver, unchecked Screen Locker in startup apps, and rebooted.


As the previous responder wrote, https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia is a good article to read on the subject. At the moment, however, I recommend the closed-source drivers for your use, as the Nouveau drivers still need some work to fully utilize the power of the GPU, and cannot provide 3D acceleration.


I had a similar problem, and it was because I set the Focus stealing prevention to High.

Since you can't bring up the options from the menu as normal (oops), using

App Menu -> Settings -> Configure Desktop
  -> Window Management -> Window Behavior -> Select [Focus] tab

From a command line, type

kcmshell4 kwinoptions

Choose the Focus tab (already selected for me), scroll down to Focus stealing prevention and choose something less aggressive. Medium worked for me.


How do I install packages for Sublime text?

You install Package Control and use that to install further packages. Make sure you select the Sublime Text 2 version of the code you need to paste in.

And meta sidebar: I'm not providing code here because as the website says, it's very volatile.

The alternative is manually downloading plugins and sticking them in and around ~/.config/sublime-text-2/Packages. But I'd seriously look at Package Control.


What filesystem for an external Harddrive (Linux/Mac/Windows)

Usually i just go with NTFS. It's way better than FAT32, and it's relatively easy to install NTFS-compatibility on both Mac and Linux (compared to installing filesystems on Windows).

For Mac you need either the free NTFS-3g or the commercial version of the same, Tuxera NTFS. These are only needed if you want to be able to write to the disk. OSX can read NTFS.

For Linux, it's also NTFS-3g. To install it on Ubuntu: sudo apt-get install ntfs-3g.


Error: snap "ubuntu-calculator-app" from channel "stable" (snap not found)

This happened to me also. In my case, it was because some packages were being held back from an upgrade, preventing the installation of the snap packages. So I had to do a

sudo apt dist-upgrade

to install them.

At that point, I discovered that there was a conflict with one package that was holding back the packages from upgrading. I believe I had to do

sudo dpkg --remove --force-remove-reinstreq <package_name>

then an update to get it to resolve.


Prevent fs (SD card) from getting an item in Unity Launcher

The way to block the autoopen behaviour I think can only be done globally. Any other disk inserted will also affected.

Please try,

Open terminal application
Then type the following, and hit enter.

gsettings set org.gnome.desktop.media-handling automount-open false

If no error shown, then test the behaviour by reinsert your SD card

Reference : http://ubuntuforums.org/showthread.php?t=1971712

Note : I hope this setting point not changed on recent Ubuntu

Update :

After more research, actually, Ubuntu Unity provide a way to get rid certain device by blacklisting it. Here the unprecise guide (because I'm not Ubuntu user anymore)

Open terminal
Type in sudo blkid and there will show you output similar to below

...
/dev/sdb1: SEC_TYPE="msdos" UUID="4848-E35A" TYPE="vfat"
...

If you don't have root priviledge, try ls -l /dev/disk/by-uuid/ instead.
Look at your device (possibly /dev/sdb or /dev/sdc) and take a note on the UUID='CODE_SERIES' part
Then add the partition UUID to Unity blacklist, by issuing command below

gsettings set com.canonical.Unity.Devices blacklist "CODE_SERIES"

Test it.

If command on step #5 fail, please download dconf-editor application to achieve the same goal.


Grub rescue problem after installing Ubuntu 12.04 LTS

Now its working, sorry for my newbie question but i figured out that boot loader wasn't installed on the same hard drive where my Ubuntu is installed.

Thanks.


How can I improve Nautilus’ performance?

Since the problems happens to multiple file managers, it might be likely that it's a filesystem problem. Try adding disabling access time (add noatime to fstab), and if you're using ext4, try disabling write barriers (add barrier=0 to fstab).

The noatime flag tells the filesystem not to record the last access time. Recording access time means that even opening a file will cause an unnecessary write operation; most program never use access time and so it usually can be safely turned off nowadays.

Secondly, write barrier in ext4 prevents data loss under very specific circumstances, although it comes with a performance penalty to certain write-intensive applications. Write barrier is new in ext4, so if data reliability like in ext3 is good enough for you, then you can turn off write-barrier.


This link seems to solve the issue.

https://unix.stackexchange.com/questions/80382/arch-time-zone-wrong-time-due-to-local-time-hardware-clock

Setting this

  timedatectl set-local-rtc 1

but, you need to have already set the automatic Internet time to Manual, otherwise you will get a warning about the contradictions of doing this with Internet update turned on.

My PC in question has no Internet access so I had already set it to "Manual" but I suspect that nothing too bad would happen of you ignore the warning and left Auto turned on.

But, for me it was off and all is working fine when I boot to win8.1 I get the same correct time as Ubuntu.


Where does print statements logged when the python code is started during the bootup

Look this question if you need to log from python script.

import logging
from systemd.journal import JournalHandler

log = logging.getLogger('demo')
log.addHandler(JournalHandler())
log.setLevel(logging.INFO)
log.info("sent to journal")

If you need to log from native logging via bash use systemd-cat.

Ex: echo 'hello' | systemd-cat then view journalctl


Ideapad Z580 won't boot kernels above 3.2.0-32

I'm running 64 bit Lubuntu 12.10 on my Z580 and managed to fix the booting issue using the approach described here.

The steps that I followed are:

Installed iasl

sudo apt-get install iasl

Made a copy of the DSDT file.

sudo cp /sys/firmware/acpi/tables/DSDT ~/DSDT

Decompiled the DSDT file to a .dsl file

sudo chmod +r DSDT
iasl -d DSDT

Edited the DSDT.dsl to add a small sleep command in the WAEC method.

 Method (WAEC, 0, NotSerialized)
{
    Name (CUNT, 0x1E)
    While (LNotEqual (^PCI0.LPCB.EC0.BYFG, Zero))
    {
        Sleep (0x05)
        Decrement (CUNT)
        If (LEqual (CUNT, Zero))
        {
            Store (Zero, ^PCI0.LPCB.EC0.BYFG)
            Store (Zero, ^PCI0.LPCB.EC0.DRFG)
            Break
        }
    }
    Sleep (50) // #### adding this line is the only change ####
}

Produced a .aml file from DSDL.dsl

iasl DSDT.dsl

Copied to .aml file to the /boot directory

mv DSDT.aml dsdt.aml
sudo cp dsdt.aml /boot/

Added the .aml file to the grub configuration using the method described here. First downloaded the 01_acpi.txt file. Then:

mv 01_acpi.txt 01_acpi
chmod +x 01_acpi
sudo mv 01_acpi /etc/grub.d

Updated grub configuration

sudo update-grub2

Once I rebooted the problems disappeared.

sudo reboot

My current kernel version is 3.5.0-17-generic. Not sure what happens on newer kernels.


permission Denied Error : can't open 'etc/debian_version'

If you are using a container (Docker) use the IP generated in the docker.
You can view with docker inspect (Container ID). If not, change the file permission with chmod.


Firefox just won't start anymore. Is this a firefox or ubuntu issue?

I have used lsof -p and saw it was looking a lot in the var/cache/fontconfig and ~/.cache/fontconfig folders and just remembered I have used font-manager and enabled a folder in there with a shit load of fonts.
Oddly enough, those fonts were not installed in the system but this was the culprit. Happy to say it's working again!


GetDeb has the latest packages.
To use the repository, follow the instructions on their website.
After you added the repository, run sudo apt-get update from terminal to make sure you can install packages from there. Now you can install the newest version of GParted.

Please note that GetDeb is an unofficial source. Although they test the packages before release, their testing is not nearly as strict as the official repositorys. Therefore, packages might be broken and there is a very small chance of seriously breaking things.


How to set up ssh connection (acessible over internet, not LAN) using MTS MBLaze modem?

install ssh

First things first. You need ssh installed. Not just the client, the server too. Find out:

$ which ssh
/usr/bin/ssh
$ which sshd
/usr/sbin/sshd

If which can't find them, you need to install: sudo apt-get install ssh sshd.

The install process should set up everything, but just in case, make sure the ssh port (22), is open (if ufw is disabled, consider enabling it): sudo ufw allow 22/tcp

what is your address

Type ip addr | grep inet to get your ip address. If it starts with 192.168., 172.16. up to 172.31., or 10., you have a local (aka private) ip address. Otherwise it is public (eg 74.125.224.51). If it is public, you have it easy. Anyone can try and connect with a command like ssh bob@74.125.224.51.

If you are stuck with a local IP address, you need to configure your router to forward port 22 to your computer. Then you can go to a site like http://whatismyip.org/ to get your public ip address, and anyone who has it can try and connect with a command like ssh bob@74.125.224.51.

get a permanent address

Sign up with http://dyndns.com/ for their free Host Services to link a dyndns name to your ip address. I'm assuming here that you have not bought a static ip address from your ISP.


Install and use Boot-repair from a live session.

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


Seem to lose my ssh when the monitor goes to sleep, why?

Loosing SSH connection mostly depend on server and your process on server . As explain if monitor goes down and your Linux lock your screen it means that you didn't work with SSH connection for a while . In Linux there is argument by the name of TMOUT , as an example if you set TMOUT=60 if you don't touch your console for 1 minute you will be logout . For solving this problem set TMOUT to reasonable variable .

In ssh daemon config on server , there is TCPKeepAlive variable which try to keeping connection up .

$ vim /etc/ssh/sshd_config

And uncomment TCPKeepAlive yes to tell the service to try keeping alive connection .


Cant get ALSA to recognize sound device | Lenovo G560

Problem resolved!
I did some digging, and found a script to update the ALSA system.
http://www.stchman.com/alsa_update.html

After downloading the script you need to give it execute permission, for example

chmod u+x alsa_setup.sh

#!/bin/sh

# This script will recompile the ALSA drivers for Ubuntu
# This procedure was gotten from
# https://help.ubuntu.com/community/HdaIntelSoundHowto
#
# Authored by Bob Nelson  admin@stchman.com
#
# This script updated 9/6/2007

script_name="alsa_setup.sh"

# Script must run as root
if [ $USER != "root" ]; then
        echo "You need to run this script as root."
        echo "Use 'sudo ./$script_name' then enter your password when prompted."
        exit 1
fi

# Install the required tools
apt-get -y install build-essential ncurses-dev gettext

# Install your kernel headers
apt-get -y install linux-headers-`uname -r`

# Change to users home folder
cd ~

# Get the files from www.stchman.com
wget http://www.stchman.com/tools/alsa/alsa-driver-1.0.16.tar.bz2
wget http://www.stchman.com/tools/alsa/alsa-lib-1.0.16.tar.bz2
wget http://www.stchman.com/tools/alsa/alsa-utils-1.0.16.tar.bz2

# make a new folder
mkdir -p /usr/src/alsa

# Change to that folder
cd /usr/src/alsa

# Copy the downloaded files to the newly made folder
cp ~/alsa* .

# Unpack the tar archive files
tar xjf alsa-driver*
tar xjf alsa-lib*
tar xjf alsa-utils*

#Compile and install alsa-driver
cd alsa-driver*
./configure --with-cards=hda-intel --with-kernel=/usr/src/linux-headers-$(uname -r)
make
make install

# Compile and install alsa-lib
cd ../alsa-lib*
./configure
make
make install

# Compile and install alsa-utils
cd ../alsa-utils*
./configure
make
make install

# Remove the archives as they are no longer needed
rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*

# Add the following line to the file, replacing '3stack' with your model
echo -e '\n' >> /etc/modprobe.d/alsa-base
echo "options snd-hda-intel model=3stack" >> /etc/modprobe.d/alsa-base

# Reboot the computer
reboot

I still get the oss4 error. But the sound works!


Let's do the math.

700MB - 298MB ~= 402MB, so 438MB is about what I'd expect.

Why does it vary?

Different systems report different MBs.  Some will use decimal megabytes 1MB = 1,000,000 bytes.  Some will use binary megabytes 1MB = 2^20 = 1,048,576 bytes.  So your CD size may be underreported.  It's not uncommon to buy a 700MB CD (binary) and find it's 740MB (decimal).

Also, because CD and DVD data is stored in blocks of 2048 bytes, not all of those blocks will be full.  For comparison, your platter disk or SSD will, most likely, be storing in blocks of 512 bytes.

Lastly, CDs are designed using a special format (called Red Book) which is designed for specifically for digital audio and can, under certain circumstances, be denser than a regular disk.


You have BCM4311 wireless. You will need wired Internet connection to fix it.
Open Terminal and type: sudo apt install b43-fwcutter firmware-b43-installer
Then reboot.


Try to install the full dnsmasq package (On Ubuntu only dnsmasq-base is installed by default) : sudo apt-get install dnsmasq, then edit /etc/dnsmasq.conf (add your DNS server : server=8.8.8.8 for example). Restart dnsmasq and network manager services (sudo service dnsmasq restart; sudo service network-manager restart).

Hope this work.


The installer for the OS may give you the option to not install a boot loader, in which case it would not take over.  The norm is to take over, and usually install GRUB and recognize the other OSes and provide the choice to boot into them.


It could be that the game you were playing inside of wine changed the resolution of the desktop which has strangely stayed the same on reboot, reset the screen resolution in settings...  As for the fn keys, that's a strange one as you should still be using the same keyboard language as before but to be sure go into Kayboard Layout and check it's set for your laptop...


How do I move all directories into a single directory efficiently in the same folder?

If there are only the files (and the directory target) in your directory, simply use mv, rather than find:

mv * target

It will complain that 'target' can't be moved on itself, but the files will all be in target afterwards.


How to completely remove a gnome shell extension?

From Gnome shell page It says:

  There are some bugs in GNOME 3.2 that prevented uninstallation from
  working properly for some extensions. GNOME Shell 3.2.2.1 has fixed
  these problems. Make sure your system is fully updated if you are
  having issues uninstalling extensions.

  If you do not have GNOME Shell 3.2.2.1 and may be unable to get it, or
  are unsure, you can uninstall the extension manually. Remove the
  extension's directory, and then restart the Shell. The extension
  should be stored under ~/.local/share/gnome-shell/extensions.
  Removing the directory won't be enough: you will need to restart the
  Shell to make sure the extension is completely uninstalled: open the
  run dialog with Alt+F2, and enter restart.

So, You'll Be Fine removing extension under ~/.local/share/gnome-shell/extensions manually.


Remove domain user access to ubuntu machine

To enable access to one group only to ubuntu run the below command

sudo lwconfig RequireMembershipOf "Domain\testusers"

the above command only allows testusers group to login to the machine.

In my case I am using likewise-open to enable admin access


Gajim: Can't access submenus in top menu bar

the only workaround i've found is to disable the global menu for gajim as described for eclipse here :

https://askubuntu.com/a/371447

https://stackoverflow.com/a/19526584

So just replace Exec= line content by this :

Exec=env UBUNTU_MENUPROXY= gajim

Gajim will stop to use globalmenu and you will get your submenus back ;)


How to view force installation of package even if trigger fails?

I ended up fixing this particular problem by uninstalling lilo, updating, and then reinstalling it:

sudo apt-get remove lilo -y
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install lilo -y

installing lilo requires answering some questions about enabling large-memory support &c.

The specific error message probably refers to one of these files in
/var/lib/dpkg/*:

$ grep -r '/etc/initramfs/post-update.d/runlilo' /var/lib/dpkg/info/
/var/lib/dpkg/info/lilo.list:/etc/initramfs/post-update.d/runlilo
/var/lib/dpkg/info/lilo.conffiles:/etc/initramfs/post-update.d/runlilo

However, I haven't been able to figure out which options to pass to apt-get to be able to narrow down which specific trigger is responsible ... and I also haven't been able to figure out how to cleanly override triggers in a safe way.


I am having the same problem on a new machine. Sometimes suspend works as expected. Sometimes it messes up the monitor configuration, either changing from side-by-side to mirror, or moving all the windows on the second monitor over to the first. Sometimes it won't return from suspend at all; just now even holding the power button down wasn't enough. I had to unplug the machine to recover.


You can use you favourite partition manager to list available partitions which will include those belonging to the Ubuntu installation. Examples are:

GNOME Disks
KDE Partition Manager
GParted

On the command line you can use

parted -l and
lsblk -f

both of which require super-user privileges to run (through sudo).


You can configure lightdm to call your script in /etc/init/lightdm.conf in such a way that it gets executed after starting lightdm. Just open the .conf file, and call your script under the section post-stop script.


you should install gparted "sudo apt install gparted" or install from the softwarecenter then you can follow the ubuntu help page on creating disk partitions at this link
https://help.ubuntu.com/community/HowtoPartition/CreatingPartitions


How to share hotspot through SSH tunnel?

Oh, it works just as that. I didn't notice I have to check the rule specifying the table explicit:

iptables -t nat -L


Bug on Bluetooth settings in Ubuntu 16.04 LTS

I was checking in the Internet and found a similar issue. I solved thus my problem with a very simple and brute way.

Go to Ubuntu Software Centre and search with keyword "Bluetooth". Then install everything :) I know, it's stupid and brute, but it worked for me and never had problems again.


I'm currently trying to solve this problem by using wmctrl the window management controller.

I can switch to a blank screen, swap out the media, then switch back to the original screen.

All I need to do now is get a transition happening when switching screens, but it appears openbox does not support transitions..
I suppose that deserves it's own question.


What is the easiest way to create a meta upstart script

I do this for multiple PostgreSQL instances along with their pgagent instances. Check out this answer.


Where else do applications get the default browser from?

Can you select it in the default application list if you put your desktop file in ~/.local/share/applications instead?

Also, some applications also use the $BROWSER environment variable.


Cannot boot from USB or BIOS, grub rescue

Try to Boot from live Ubuntu CD/USB, Install GRUB2 in proper Partition
To fix the problem.

this link fix my same problem.
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

or if not correct it see
http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd

to manually install GRUB2 in Terminal.


How do I install ia32-libs so I can run yWorks diagrams in Ubuntu 11.10 64bit?

Open a terminal with Ctrl Alt T and paste the following:

sudo apt-get update
sudo apt-get install ia32-libs

First command is only needed if your package index files are not updated. Anyway it is good idea to run it.


Can I make the Windows folder require a password to access it? [Edit/change or add flder and data]

You can download any windows folder lock application that could work with Wine. That's it. Here an app you can give a try.

Now for your fears of virus and malware in Wine, take a look on those:

Do Wine Viruses only work while Wine is running?
Could Autorun Virus, affect my PC via Wine?


Reverting to the default icon of the Trash bin

when the trash icon is changed by right clicking it, Properties and clicking on icon,

the path of this newly selected icon will be saved in ~/.config/nautilus/desktop-metadata

when the icon was not changed, some of the content in this file is

[trash]
nautilus-icon-position-timestamp=1551022571
nautilus-icon-position=56,146
icon-scale=1

for example:

I have changed the trash-icon by right clicking... then the content of above mentioned file changed to

[trash]
nautilus-icon-position-timestamp=1551022571
nautilus-icon-position=56,146
icon-scale=1
custom-icon=file:///home/pratap/Pictures/Screenshot%20from%202019-02-24%2021-09-32.png

to revert the changes..
the below line need to be deleted from the file ~/.config/nautilus/desktop-metadata

custom-icon=file:///home/pratap/Pictures/Screenshot%20from%202019-02-24%2021-09-32.png

to delete the line and save the changes..run the below command, edit and save the file.

sudo -H gedit ~/.config/nautilus/desktop-metadata

Now logout and login to see the change..


How to give full access to my other user for all files

There is  this answer...

give specific user permission to write to a folder using +w notation

And this answer...

Change permissions to a specific user in Ubuntu 12.04

...that are very helpful...


nvidia-settings - "Failed to connect to Mir" - 16.04

Mir is the next-gen graphical display server created by Canonical that in the future will sostitute the X server. Actually in Ubuntu 16.04 Mir is not installed by default (need to install unity8-desktop-session-mir package). However Mir (for me at least) is not working properly with Nvidia binary drivers (need to use Nouveau)


Alleged space problems involving creating files in /tmp

You have a problem with your partitioning. This is your root partition:
/dev/sda1 9,4G 9,1G 0 100% /
It is only 9,4 GB. That is too small for a typical user. A fresh Linux install easily fits on that size, but quickly more space will be needed as you install new programs, and as kernels are updated. Moreover, the root directory also contains the temp files (/tmp, /var/tmp).
You will need to ensure you have a larger root partition. Depending on your current setup, it may be possible to change the size of the current partitions. Else, you may need to reinstall, ensuring that there is sufficient free space for installation to hold a partition of at the very least 15 GB, but better 20 - 25 GB as a minimum.


Does Ubuntu Phone APIs include Qt Mobility?

The Ubuntu SDK uses Qt5, and in Qt5 the QtMobility library was split into several independent ones, like Qt Location, Qt Organizer, Qt Sensors, etc.  Those will be available on Ubuntu Touch.


Will a system restore fix constant crashing/freezing issues?

No, assuming you are a new linux users and didn't changed any setting on your systems that would turn it unstable, no, a reinstall (there is no system restore option) will not help.

You will need to troubleshoot the issue.

Switch to a text console with: CTRL + ALT + F1
login, check the contents of the files under /var/log, there maybe an error related to the hang.


Which is the easiest way to reset the mysql root password?

There's also an administrative user equivalent to root: debian-sys-maint. You can use this account to reset root's password. You can find its password in /etc/mysql/debian.cnf


Find directories that DON'T contain a file

Case 1: You know the exact file name to look for
Use find with test -e your_file to check if a file exists. For example, you look for directories which have no cover.jpg in them:
find base_dir -mindepth 2 -maxdepth 2 -type d '!' -exec test -e "{}/cover.jpg" ';' -print

It's case sensitive though.
Case 2: You want to be more flexible
You're not sure of the case, and the extension might be jPg, png...
find base_dir -mindepth 2 -maxdepth 2 -type d '!' -exec sh -c 'ls -1 "{}"|egrep -i -q "^cover\.(jpg|png)$"' ';' -print

Explanation:

You need to spawn a shell sh for each directory since piping isn't possible when using find
ls -1 "{}" outputs just the filenames of the directory find is currently traversing
egrep (instead of grep) uses extended regular expressions; -i makes the search case insensitive, -q makes it omit any output
"^cover\.(jpg|png)$" is the search pattern. In this example, it matches e.g. cOver.png, Cover.JPG or cover.png. The . must be escaped otherwise it means that it matches any character. ^ marks the start of the line, $ its end

Other search pattern examples for egrep:
Substitute the egrep -i -q "^cover\.(jpg|png)$" part with:

egrep -i -q "cover\.(jpg|png)$" : Also matches cd_cover.png, album_cover.JPG ...
egrep -q "^cover\.(jpg|png)$" : Matches cover.png, cover.jpg, but NOT Cover.jpg (case sensitivity is not turned off)
egrep -iq "^(cover|front)\.jpg$" : matches e.g. front.jpg, Cover.JPG but not Cover.PNG

For more info on this, check out Regular Expressions.


Why doesn't Cheese not allow for multiple effects to be selected at the same time?

This is the way it is designed to work. Cheese at one time could use multiple effects at once, but ever since it changed to the new effects framework, that has no longer been possible.


Mouse acting like left button is held down in some programs

I see this behavior with current versions of VirtualBox (6.0.12). It seems to occur only when using the laptop screen, which is a touchscreen.  The problem goes away once the touchscreen is disabled in the laptop's firmware/BIOS screens.

The problem affects not only the guest VM (Windows) but the VirtualBox manager UI even when no VMs are running.

This problem does not occur when using an external non-touchscreen monitor.


I followed this guide and it worked for me in a KVM with 3 disks in a raidz1 configuration:

https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.04-Root-on-ZFS

There were two caveats:

I had to use non-virtio disks, or else grub (yes, grub), at boot time, would see only one disk instead of 3. Since I was using raidz1, that was not enough to boot.
The other one is that if using disk/by-id devices, you may have to export this variable for grub until bug #1527727 is fixed: export ZPOOL_VDEV_NAME_PATH=YES


Just add a crontab entry, writing down "@reboot" as the time:

@reboot /usr/local/my_script.sh

Source: Cyberciti


Automatically add '.pdf' extension and open resulting file when printing to PDF in Firefox

You can just simply add the .pdf suffix to the file name you chose yourself.

On Linux systems, files are not judged by their extensions, but by their content or actually by the first few bytes of their content. That way it can determine with what applications to open a file without having to rely on the names. This might sound confusing for Windows users but works pretty well.

So as long as you only need that PDF document on your Ubuntu system, there's no need for an extension unless you want it. And if you want to open it on Windows, you could manually rename the file (e.g. with your Files manager nautilus) afterwards.

Or as I already said, just directly enter the full name including the .pdf extension into the print dialogue. It will even remember the name you used last (or default to mozilla.pdf, this probably depends on the version), so that you can just leave the extension there and overwrite the basename only.


Debootstrap - issue trying to start the network

To access the internet through your chrooted environment, please, check the DNS configuration inside /etc/resolv.conf file of your chrooted environment. Copy it from your physical server if its empty.

Now, to accomplish what you want, which is prevent your ssh users to access the real system using a chrooted environment, you shouldnt follow this tutotial you posted. This is to create a isolated environment to build debian/ubuntu packages.

You may want to follow this article.

Regards


Ubuntu 13.10 Wifi Fail after attempting to connect to an ad-hoc network

Open a terminal and type:

sudo nautilus /etc/NetworkManager/system-connections

Then, clean out this directory (delete the profiles).

Alternatively, you could blindly clean out the directory using the following command:

sudo rm /etc/NetworkManager/system-connections/*

note: you will delete your existing wireless profiles

Then, run:

sudo service network-manager restart

and then try to connect to your wireless network.


Problem resuming after suspend in Ubuntu 12.04

Did you tried to use the Gnome-Shell instead of Unity?

If you don't know how to do this, execute this in the Terminal:

sudo apt-get install gnome-shell

If you want to keep with Unity, try to update your Display Driver or to install the Proprietary Drivers (like nvidia or intel graphics).


How to make possible to install Samsung Kies?

Well, if I'm reading this right, you simply want to debug your app on your Android device. If that is correct, then all you would really need is the Android SDK and set up ADB or "Android Debug Bridge". Its not terribly difficult, but may take some work to get usb working correctly. You will also need to go to Settings>Applications>Debugging>Enable USB Debugging. If using Eclipse to do the application development, there are several tools that will automate sending the test version of the app to your phone.

For a more in depth answer, look at the Android Developer Site here: http://developer.android.com/guide/developing/device.html

Also, it appears that there is no solution for kies on linux. I don't know anything about kies, but the standard Android app development method should work just fine and there's plenty of documentation at the developer site.


virtualhost not working in postman but accessible thru CURL

Got this working by following the answer here: https://stackoverflow.com/questions/48986676/ubuntu-apache-virtual-host-site-doesnt-work-in-the-browser

https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/

Chrome 63 (out since December 2017), will force all domains ending on .dev (and .foo) and also .com  to be redirected to HTTPS via a preloaded HTTP Strict Transport Security (HSTS) header.


python-pip package not found on ubuntu 15.04 running as live usb

python-pip package is available in the universe repository but your /etc/apt/sources.list does not contain the entry for the universe repository, as a result you will not be able to download anything from that repo unless you add it.

To add the universe repo to your /etc/apt/sources.list, run:

echo "deb http://archive.ubuntu.com/ubuntu/ vivid universe" | sudo tee -a "/etc/apt/sources.list"

If you are interested in source files, then add this too:

echo "deb-src http://archive.ubuntu.com/ubuntu/ vivid universe" | sudo tee -a "/etc/apt/sources.list"

Run sudo apt-get update and now you can install python-pip by:

sudo apt-get install python-pip


Note that MultiSystem does not work properly within Ubuntu 16.04 or later.  This answer was left as-is for historical purposes.

I tried to find a way to use Yumi on *nix, but I never found a solution that is Yumi-based, unfortunately.

However, the same site also refers to another tool, that is Linux based, called MultiSystem, which I use.  It works similarly to Yumi and other multi boot loaders, but it's a Linux solution, with a Linux flair, and some less niceness on the bootloaders.

This post on PenDrive Linux's website gives you the basics of getting started.  I use it myself, so I can say with some certainty it works to some extent.

  Almost an exactly duplicate copy from the PenDrive Linux Site page on MultiSystem:

  MultiSystem – Create a MultiBoot USB from Linux

  How to Create a MultiBoot USB Flash Drive from Linux:  Multisystem is
  an awesome tool created by LiveUSB.info, that works similar to our
  Windows based MultiBootISOs USB
  creator,
  but was created for use within Linux. It also uses Grub2 instead of
  Grub Legacy, and can be run from within Ubuntu Linux to create a
  Custom Multiboot UFD containing your favorite Bootable Live Linux
  Distributions.

  Official HomePage: http://liveusb.info/dotclear

  Multisystem Prerequisites:

  Ubuntu Linux or Ubuntu Based System (can use an Ubuntu CD or USB)
  A USB Flash Drive (to use for your MultiBoot USB)
  Working Internet Connection
  install-depot-multiboot.sh.tar.bz2

  How to Install the Multisystem LiveUSB Tool

  Download and Open the Script with Ubuntu's Archive Manager

  Extract the install-depot-multiboot.sh Script to your Desktop

  Double Click install-depot-multiboot.sh from your desktop and select the option to "Run in Terminal"

  How to Use the Multisystem LiveUSB Tool

  Insert a USB Drive
  Launch the Script via Applications > Accessories > MultiBoot (or type "MultiSystem" into your Dash).
  Select your USB Device from the list and click Validate

  Now simply Drag and Drop an ISO into the Window to add the Distribution (repeat the process to add more ISOs)

  Once finished, restart your PC, set your boot menu to boot from the USB device, select the Distro you want to Boot and enjoy!


Yes, your computer fit the System Requirements

  2 GHz dual core processor
  2 GiB RAM (system memory)
  25 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach)
  VGA capable of 1024x768 screen resolution
  Either a CD/DVD drive or a USB port for the installer media

You can see them here: https://help.ubuntu.com/community/Installation/SystemRequirements


Can you elaborate on why you think 91.189.92.11 is a russian IP-address?

The whois entry and the IP-addresses on the hops to that IP indicate, that it is owned by Canonical, located in Great Britain and reverse DNSes to productsearch.ubuntu.com

http://www.whois.com/whois/91.189.92.11

https://ipdb.at/ip/91.189.92.11

http://www.dnsgoodies.com/

Though the server being Russia isn't your problem; productsearch.ubuntu.com is questionable anyway. See: https://www.eff.org/deeplinks/2012/10/privacy-ubuntu-1210-amazon-ads-and-data-leaks


How to change the default grub option in Ubuntu 14.04

For example if the desired default kernel to boot was the third one on the "Ubuntu advanced" menu, the the grub line would be:

GRUB_DEFAULT="1>2"

The lines start counting from 0, so the "1" means the second line of the first, or main menu, the "Ubutnu advanced" one. The "2" means the third line of that menu.

By the way, note that there is no longer any difference in Ubuntu kernels between desktop and server, they both now use the same kernel.


Your lxc guest will need a desktop but whether or not a full ubuntu-desktop or not depends on your use.
  Then you might wanta means to access a desktop in the container (VNC, xfreerdp/xrdp, x2go).   In my lxc containers I install x2go server then use an x2go client (mac, pc, linux) to log into the lxc desktop.  x2go clients support unity, gnome others so you can choose.
  Also, you may need/want to modify ssh default port etc for the container (/etc/ssh/sshd_config) to something other than default but that may mean you may need to make a change on your router firewall also.


open terminal (CTRL+Alt+T) and run:

sudo apt-get update && sudo apt-get upgrade

if you got this error

"Could not get lock /var/lib/apt/lists/lock"

Open the terminal and run one of these commands:

sudo rm /var/lib/apt/lists/lock

or

sudo rm -f /var/lib/apt/lists/lock

or

sudo killall -9 apt-get aptitude

Then make an update with this command:

sudo apt-get update


How to configure a Minimal Ubuntu installation?

Your problem is that the display manager you are using -- SLiM 1.3.2 -- DOES NOT integrate with the ConsoleKit/PolicyKit authentication framework used by Ubuntu.

You need to use a display manager which does support CK/PK (e.g. GDM, KDM, LightDM, XDM...), or install the newest SLiM 1.3.4 (from Quantal) which DOES support CK/PK:

Download and install the following debs:

http://packages.ubuntu.com/quantal/fontconfig-config
http://packages.ubuntu.com/quantal/libfontconfig1
http://packages.ubuntu.com/quantal/slim

Answer "Yes" to replacing any configuration files with the default versions. Then reboot.


How to install and run Oracle Solaris Studio 12.3 on Ubuntu 13.04?

Here are the steps for installing Solaris Studio 12.3 on Ubuntu:

Download Tarfile on Linux x86 (390 MB)
Move SolarisStudio12.3-linux-x86-bin.tar.bz2 to a work/scratch
directory example ~/Install
cd ~/Install; tar jxvf SolarisStudio12.3-linux-x86-bin.tar.bz2
Install the 32-bit (libc6, lib32gcc1,lib32stdc++6, etc.) libraries:

sudo apt-get install ia32-libs
sudo mkdir /opt/oracle
sudo mv ~/Install/SolarisStudio12.3-linux-x86-bin/solarisstudio12.3
/opt/oracle/.
Add the executables (/opt/oracle/solarisstudio12.3/bin) to your path.

Hope that helps

For information and complete documentation, see the Oracle Solaris Studio 12.3 Documentation page

Source:Oracle Forums


Binding google-chrome tabs to certain workspaces in i3-wm

It is possible to assign an application to a specific workspace using its window class and instance. For example, for chromium it will be:
WM_CLASS(STRING) = "chromium-browser", "Chromium-browser"

But problem here is that each Chromium tab has the same window class. You could only change it for the whole running instance:
$ chromium-browser --class='new-class'

So you can't assign separate tabs to different workspaces. The only workaround for that is to use Chromium in app mode by launching each tab manually from command line:
$ chromium-browser --app='https://www.linux.com/'

That way each tab will be created as a different instance:
WM_CLASS(STRING) = "www.linux.com", "Chromium-browser"


In short you need to install Ubuntu on the SDHC card using the live CD.

Here is a how to from 2012 where someone used Drapper Drake, Hardy, Feisty and Gutsy (last 3 are stated in the comments). He also claims newer versions of Ubuntu are too much for the WII (RAM seems to be the problem) but in the comments also states downloads for Ubuntu up to Gutsy. Of course you can follow this guide and use one of the newer versions of Ubuntu adjusting the how to as it seems needed.

This how to is from 2010 and uses a patched kernel and debian (Lenny and Etch) with a custom tar ball.

Video demo with download link: http://www.youtube.com/watch?v=f7DBAZuNusE


What are the differences between different releases of Ubuntu?

I'd recommend consulting the release notes page which can be found here:

http://www.ubuntu.com/getubuntu/releasenotes


As always when it comes to backing up stuff, do not fully trust answers from the net (like this one ;-)) and test it yourself before handling valuable data.

Taking a look at http://packages.ubuntu.com/maverick/rsync (and there, specifically, at [rsync_3.0.7-2ubuntu1.dsc]), we see that the maintainer writes

  -- Paul Slootman <paul@debian.org>  Mon, 20 Nov 2006 15:43:12 +0100

  rsync (2.6.9-1) unstable; urgency=low

  * New upstream release.
  * (from experimental version 2.6.9~pre3-1)
    Applied a mix of the patches from Martin Pitt and David H√§rdeman for
    LSBfying init script.
    closes:#375985,#385877
  * Upstream now includes the patch for replacing a dir with a symlink when
    using --delete-after.
    closes:#350522
  * Now includes the ACL patch.

So the package itself supports ACLs since 2006.

As for your second question: I don't know about tar, but as long as you only rsync your files somewhere else, you should not be affected by any possible problems with tar. rsync does not use tar during transfers.


Is there a way to tell Nautilus not to generate previews of PDF files?

Assuming you're using Ubuntu 11.10, running the following in a terminal should do the trick:

gsettings set org.gnome.desktop.thumbnailers disable "['application/pdf']"

Alternatively, you can do this in the GUI by installing the dconf-tools package and running dconf-editor.  In the tree on the left, navigate org → gnome → desktop → thumbnailers, then edit the disable option in the right pane as above.

I'm not sure what specific vulnerabilities you are trying to avoid (if they existed, I'd expect you could avoid them by installing the corresponding Ubuntu security updates), but the above should prevent generation of new PDF thumbnails.


Problem in accessing hard drives by programs

The mount location for user mountable drives has changed from 12.04 to 14.04:

/media/drive became /media/$USER/drive

Irritating at first, but makes sense.


Keyboard shortcut is not working in firefox

I'm running Ubuntu 16.04 with Firefox 47.0. Ctrl + #Number does not work. However, Meta (ALT) + #number works fine.
Try with:

Alt+1 or 2


N: Skipping acquire of configured file 'universe/binary-i386/Packages' as ... doesn't support architecture 'i386'

Uninstall python-datamatrix with sudo apt remove python-datamatrix as it is blocking you from upgrading to Ubuntu 20.04. Then you will be able to run update-manager -d.
python-datamatrix source code is hosted at GitHub. python-datamatrix can be installed in Ubuntu 20.04 with the following commands:
sudo apt update
sudo apt install python2.7 python-pip
python -m pip install python-datamatrix

python-datamatrix is compatible with Python 2.7 or >= 3.4. If you don't want to install Python 2.7 you can also install it with the following commands:
sudo apt update
sudo apt install python3-pip
python3 -m pip install python-datamatrix


Torrent applications getting slow download speed?

I have had similar experience with Transmission, plus I think that Transmission doesn't offer a whole lot of options to configure the client...
So I replaced it with utorrent for Linux (http://www.howopensource.com/2011/08/install-utorrent-in-ubuntu-fedora/). I'm a happy camper ever since. You could give it a try if you're not desperately fixed on using Transmission as your torrent client.

If you're familiar with the Windows version of uTorrent, you won't quite get the same, be warned! Instead, a utorrent daemon is loaded that you can access via your browser. You have a lot of the same options in Linux, but not quite the same amount. The nice thing about it though, is that it's completely ad free (or is it my ad block that kills the ads?).

In any case, the utorrent daemon seems to run a lot smoother than the transmission client that comes as a default with Ubuntu.


Ubuntu 20.04 doesn't wake up after suspend

With Dell notebooks I generally configure them like this:

Open the terminal
Install the necessary drivers with ubuntu-drivers autoinstall
Disable the fallback service with sudo systemctl disable nvidia-fallback.service
Then edit /etc/default/grub and add the line: GRUB_CMDLINE_LINUX="nouveau.blacklist=1"
Update Grub with: sudo update-grub
Reboot

With this my colleagues can suspend/hibernate-resume without too many issues … though there are occasional hiccups for people who suspend for 4+ days.
Hope this works for you, too


This happens because the source package that you've downloaded has pre-set flags that are passed to configure, along with a number of other steps that are laid out in debian/rules.
Prior to building, if you've made changes to the package you should add a new revision in debian/changelog

To build the source package that you've downloaded:

sudo apt-get install devscripts build-essential
cd gtk+2.0-2.24.6/
debuild

This will compile & produce binary packages from the build in the parent directory.


Try this.  You can install the Garmin Ant Downloader, using Synaptic,  if you don't have synaptic installed, you can do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install synaptic

Once installed, you can open the application by searching in dash for it, once open, search for garmin, and one the search is done install the garmin-ant-downloader.

Right click on it, and choose Mark for Installation

Click on Apply to start the installation


"Sound Settings" menu in Xfce4-Panel does not open

Yes, the indicator plugin log can be found in $HOME/.cache directory.

Log file location

The file location may be slightly changed in newer releases of Xubuntu. In Xubuntu 15.04, the location is $HOME/.cache/xfce4-indicator-plugin.log and the example content as below.

DEBUG      libindicator-plugin       Looking at Module: libapplication.so
DEBUG      libindicator-plugin       Loading Module: libapplication.so
DEBUG      libindicator-plugin       Load indicator: libapplication.so
DEBUG      libindicator-plugin       Looking at Service: com.canonical.indicator.messages
DEBUG      libindicator-plugin       Loading Service: com.canonical.indicator.messages
DEBUG      libindicator-plugin       Load indicator: com.canonical.indicator.messages
DEBUG      libindicator-plugin       Looking at Service: com.canonical.indicator.sound
DEBUG      libindicator-plugin       Loading Service: com.canonical.indicator.sound
DEBUG      libindicator-plugin       Load indicator: com.canonical.indicator.sound
DEBUG      Indicator-Application     Connected to Application Indicator Service.
DEBUG      Indicator-Application     Request current apps
DEBUG      Indicator-Application     Building new application entry: :1.29  with icon: nm-no-connection at position 0
DEBUG      libindicator-plugin       Entry added for io=libapplication.so
DEBUG      libindicator-plugin       Entry added for io=com.canonical.indicator.sound

The older log files are found at $HOME/.cache/upstart and kept separately as Gzip compressed files for each type of indicator. I had confirmed this for 14.04, but not sure whether this is still true for 15.04 and newer releases, because I only ran above output from Live USB.

In other words, the older log files are only found in Xubuntu that has been installed to a local machine. The Gzip compressed files are likely not to exist on a Live system.

Sound Settings do nothing

Based on the output from env | grep SESSION, the session is xfce for the current user. That is the reason why the "Sound Settings" does nothing.

This is also a known issue affecting 14.04 release, which was filed as Bug #1359249 on Launchpad in late 2014. Typical users wouldn't notice this, unless the user selected "Xfce Session" instead of "Xubuntu Session" before logging in to the Desktop.

The workaround

Select "Xubuntu Session" before logging in to the Desktop. Then, on Xfce panel, click the Indicator Sound icon > Sound Settings... to open the Volume Control window as usual.


Try upgrading to Ubuntu 18.04 near end of July. My fan works on my Acer Nitro 5 (AN515-53).


Open your terminal with CTRL+ALT+T and do these following commands

To shutdown the system:

sudo shutdown -h now

To restart:

sudo reboot

& one more command for restart:

sudo shutdown -r now

Another way as one of the user mentioned.

For shutdown:

sudo halt

or:

sudo init 0

For restart:

sudo init 6

You can get more info on the shutdown command by using one of the following:

shutdown --help
man shutdown

Please share the results.


unable to find a medium with a live file system in ubuntu 14.04 using wubi Windows installer

Sorry to just link to a bug report, but there were many suggested fixes for your issue there and it's worth it to try each of them out:

https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1241589

For me, I was able to get a 14.04 live USB to boot on my Lenovo Y580 without removing any hardware, using AHCI mode for Sata and no legacy mode enabled anywhere in the BIOS by using the live-media trick mentioned in comment 55 in combination with removing and re-inserting my USB drive soon after boot. Note that the symptoms I was seeing were a bit different; specifically in the initramfs prompt, when I ran blkid I didn't see the USB device (eg my USB was on /dev/sdc and all I saw were /dev/sda* and /dev/sdb*). Thus I edited the boot command (as described in comment 55) to add live-media=/dev/sdc1 and removed the quite splash. After the boot output paused for a bit, I removed then re-inserted my USB and it worked fine from there.


Is there a way to repair corrupt deja-dup backups?

Well, I know that this is an old post, but I was just now able to fix this problem for myself, so I thought I will leave a comment here.

When I tried to backup my data today, deja-dup almost completed the backup but finally during verification gave an error, saying that the data is corrupted and backup must be deleted. In retrospect, I remembered that I had a failed network connection while backing-up the last time and may be that could be the source of error.

So here is what I did, and it seems to have worked:

Using Nautilus I navigated to the network location where I backup my data. (File -> connect to server...)
Made the hidden files visible. (View -> show hidden files)
Changed the view to list (View -> List)
Sorted the files based on modification date, latest files first.
Finally I deleted the recent files (today's date + previous date)
Then I tried to backup again and it seemed to have worked.

Just to test it, I deleted few files and tried to restore them, and it has worked fine. A more rigorous test may be required. I will do that later and update my findings.


Is there a way to set partition to root ('/') without reformatting?

The easiest way will probably be to just move everything to /dev/sda3 since moving your / partition can be tricky (special files, grub, and stuff, see here)

You will need to boot from USB to use gparted to edit the partitions.

Move all the files you need from /dev/sda5 to /dev/sda7, delete
/dev/sda5
You should be able to move /dev/sda4 and expand /dev/sda3 into
the free space
You can then copy the files you moved to /dev/sda7 to /dev/sda3
Then you can delete /dev/sda7, move /dev/sda4 again, and finally
expand /dev/sda3 to fill the space

You will also want to edit the /etc/fstab to remove the reference to /home on /dev/sda5

Since / remains on the same partition, hopefully grub will still boot fine. If not, you should be able to run Boot Repair to fix it.

FYI: grub is installed on the MBR of the drive (which doesn't show up on lsblk or df), and the information about partitions and all is stored in /boot, which in your case will be in the / directory (on /dev/sda3)


You can use:

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get install b43-fwcutter firmware-b43-installer


I can't delete or start/use the pulseeffects package, any help?

Found an answer on this link! I just had to manually remove the broken package.
https://stackoverflow.com/questions/48431372/removing-broken-packages-in-ubuntu


Openshot Video/Audio Preview has no Sound

I had same problem on version 2.5.1, Worked for about 2 hours changing audio settings on pc and then matching those settings to OpenShot. Nothing helped.The solve for me was,in OpenShot go to Edit-Preferences,(Tab) Preview, Playback Audio Device (changed to DirectSound;Speakers.Found this trying each setting as 3 different settings seemed to be the same ,however only the one worked.


Linux: How do I get my Thinkpad L530 trackpoint to work?

The OP found the solution (and originally posted it as an edit):

  WARNING:   By following these steps you will activate your trackpoint and the corresponding keys but disable the touchpad

  Step 1:

echo "options psmouse proto=bare" | sudo tee /etc/modprobe.d/trackpoint-elantech.conf

  Step 2: Open the following file with a texteditor as root

 /usr/share/X11/xorg.conf.d/11-trackpoint-elantech.conf

  then, copy the following text into the file and save it

    Section "InputClass"
        Identifier      "Elantech Trackpoint"
        MatchProduct    "PS/2 Generic Mouse"
        MatchDevicePath "/dev/input/event*"
        Option          "EmulateWheel" "true"
        Option          "EmulateWheelButton" "2"
        Option          "EmulateWheelTimeout" "200"
        Option          "YAxisMapping" "4 5" # vertikales Scrollen
        Option          "XAxisMapping" "6 7" # horizontales Scrollen EndSection

  Step 3:

sudo modprobe -rv psmouse && sudo modprobe -v psmouseenter code here

  Finished, trackpoint and the related keys should work now. If not,
  reboot/log out and try if it works then.


Booting Ubuntu 14.04 Live USB on XPS 13 9343

You do not need to switch to legacy mode to install Ubuntu.
It seems that the bootable USB drive was not created properly.

Try to recreate it using this guide.

When it is done, put your BIOS back in UEFI mode (secure boot disabled). Insert the USB stick, boot your XPS 13 and hit F12. You should now see the bootable Ubuntu entry.

If this still does not work, try to recreate it using Rufus with the following settings :

GPT partition scheme for UEFI computers
FAT32 (Default)
8192 bytes (Default)
Quick format

Hope this helped.


I'm pretty sure what you add to the gnome-session-properties is equivalent to a command run by using Alt+F2 and running a command. You can't run scripts that way as far as I've been aware.

I think the proper way to get a script to run on startup is to add that command in:

/etc/rc.local

Before exit 0. I haven't done it myself though. Take a look here.


Permission denied when downloading with transmission daemon

Assuming the path to the download folder is /home/chen/TV shows, run the following:

add chen to the debian-transmission group

sudo usermod -a -G debian-transmission chen

change the folder ownership

sudo chgrp debian-transmission /home/chen/TV\ shows

grant write access to the group

sudo chmod 770 /home/chen/TV\ shows

Stop the deamon with

sudo service transmission-daemon stop

The last thing to do is change the file creation mask, so that the downloaded files would be writeable by chen.

sudo nano /etc/transmission-daemon/settings.json

… and change "umask": 18 to "umask": 2. Hit Ctrl+O to save and Ctrl+X to exit.

Start the daemon with

sudo service transmission-daemon start


Exclamation point icons appeared next to two disabled Gnome Shell extensions

The warning notification icon next to Ubuntu Dock may be caused by a conflict with Dash to Dock GNOME Shell extension. This extension is a modified version of Dash to Dock with different defaults. Dash to Dock can be installed to replace it and give more (but unsupported) configuration options.
This warning notification will disappear if you uninstall the redundant Ubuntu Dock GNOME Shell extension with the following command:
sudo apt remove gnome-shell-extension-ubuntu-dock
setsid gnome-shell --replace # Press the Enter key again before closing the terminal.

You also have a warning notification in Tweaks application -> Extensions about a possible problem with the Sensors GNOME Shell extension. Uninstall the Sensors GNOME Shell extension in Ubuntu Software and install Psensor instead. Psensor is almost identical to Sensors in appearance and functionality.
sudo apt install psensor

Psensor displays itself on the desktop as a little thermometer icon in the notification area in the upper right corner of the desktop. You can right-click the thermometer icon at any time to display the hardware temperatures.


How to make drag&drop to move files instead of copy on Xfce desktop (Thunar 1.6.2)?

I hope that this is what you want.

Well in Thunar , highlight all the files that you want to move, drag them with the right mouse button, and that will give you a pop up menu, that gives you the option to Move

Also you can use the Shift, while dragging the files, and that will also move them.


Did you try to install this package before libqt4-sql-sqlite?

It looks like you tried to install it before and it wasn't installed correctly.

This doesn't mean that java was not installed try executing java --version on your machine it must work.

To delete this problem try running sudo apt-get autoremove this must remove unconfigured and broken packages from your system.


Is there a video player working in Nexus 7

I haven't tried it myself but there is a bug filed where someone else reports the same behavior.  If you have the same behavior please add any details to that bug.  I know that the HTML5 player in youtube works, but it can be sluggish.  Following that bug will be the quickest way to find out when it's fixed.


The jonathonf PPA you are using has not included Python 3.6.6 yet. However, there is the deadsnakes PPA which is the de-facto standard for installing non-default Python versions on Ubuntu.

Run the following commands to start using the deadsnakes PPA:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update

You should be able to install Python 3.6.6 on your Ubuntu 16.04 after that.

Optionally remove the PPA “jonathonf” from your machine but this should not be necessary.

  Note: I have python which associate to python2.7, python3 which associate to python3.5 and now I'm adding python3.6 - I don't want to overwrite other python installations.

The links python and python3 are system default. A new version added using a PPA should not alter these links, so they will still behave as the system expects. The Python version installed from the PPA should be available as python3.6.

  But according to what I see they both go to /usr/lib/python3/dist-packages/.

These files are installed by the deadsnakes PPA:

$ dpkg -L python3.6
/.
/usr
/usr/lib
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/README.txt
/usr/bin
/usr/bin/2to3-3.6
/usr/bin/pydoc3.6
/usr/bin/pygettext3.6
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/python3.6
/usr/share/doc
/usr/share/doc/python3.6
/usr/share/doc/python3.6/NEWS.gz
/usr/share/doc/python3.6/README.rst.gz
/usr/share/doc/python3.6/ACKS.gz
/usr/share/doc/python3.6/README.Debian
/usr/share/doc/python3.6/copyright
/usr/share/doc/python3.6/changelog.Debian.gz
/usr/share/applications
/usr/share/applications/python3.6.desktop
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/2to3-3.6.1.gz
/usr/share/man/man1/pydoc3.6.1.gz
/usr/share/man/man1/pysetup3.6.1.gz
/usr/share/man/man1/pdb3.6.1.gz
/usr/share/man/man1/pygettext3.6.1.gz
/usr/share/pixmaps
/usr/share/pixmaps/python3.6.xpm
/usr/bin/pdb3.6
/usr/share/doc/python3.6/changelog.gz

The only thing going to the /usr/lib/python3/dist-packages directory is the README.txt file. It won’t overwrite current contents.


Why I can't erase a hidden file with root privileges?

This is not a permission problem. It seems you deleted the PDF while the file is still in use by some application. In this case (on fuse-based file systems), the file is deleted and a .fuse_hidden-file is created and kept as long as someone is using the file (there is at least one open file descriptor referencing the file). This mimics the common concept of delayed deletion (you can delete an open file, it will disappear from the file system listing and is finally deleted as soon as the file is closed).

Close the application that shows the PDF. The file will definitely disappear after a reboot.

One comment to the chmod-command: a implies ugo.


How to archive/play DVD with menus and all to disk?

The best way to do this is to create an ISO file from the DVD. You can then play the ISO file using VLC or mount it and use it as if you had inserted the DVD into the drive.

There is a really easy method that can be used for non evil DVDs. Simply insert the DVD, right click on the desktop icon that appears and click 'Copy Disk...'.

Then choose to output to an image file:

This will create the ISO file. However, some companies feel the need to deliberately corrupt the DVD in a (successful) attempt to stop us making copies (which we are legally entitled to do for personal use) of our DVDs. If they do this, like in the DVD I am using for the screenshots, Brasero, the software used to copy the disk will crash.

There is an alternative method to copy DVDs that uses the command line with this command:

dd if=/dev/dvd of=~/dvd_backup.iso

If this fails also, which is likely for evil corrupted DVDs, you will get output similar to this:

dd: reading `/dev/dvd': Input/output error
572352+0 records in
572352+0 records out
293044224 bytes (293 MB) copied, 145.3 s, 2.0 MB/s

Next step, try using gddrescue. Once installed, you can use this command that will hopefully copy the data from the DVD using a technique that was originally designed for rescuing data from failing or corrupted hard disks:

ddrescue -d /dev/dvd ~/dvd_backup.iso ~/dvd_backup.log

This may work (it has done in the past for me) but it also may fail (which it did this time for me).

If all of these methods are exhausted, it seems unlikely that you will be able to create an ISO file, but you can rip the DVD using various software (I recommend VLC for this). This isn't ideal but is your only option (that I know) left once you have tried all the other options.


My ps3 controller stopped working 2 days ago

Hu guys, the problem is a bug in Linux kernel:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1326725

Please add more info or subscribe to that bug to be acknowledged of any progress.


Both displays crash if I change any display settings

This is not an issue when I use a mini-DP to Displayport adapter instead.  I'm just going to use that solution instead.


How can I save the output of DIG in CSV format?

Enter every dig command like this (replace [HOSTNAME] by the host name you want to DIG):

dig [HOSTNAME] | grep IN | grep -v ";" | tr -s "[:blank:]" "," >> savedoutput.csv

The first grep leaves only the lines containing "IN".
The second grep removes the line starting with ; in the QUESTION SECTION.
The tr command replaces all spaces by commas.
The >> appends all output to the file called savedoutput.csv.


Ubuntu on a Sony xperia c1905? Can this be done?

Having just rooted a Xperia z, I know 4.3 can be rooted so you can put a different os on your phone from there.

Having said that only the nexus 4,5,7 and 10 are officially supported by ubuntu touch.

Unofficially a few Sony models have ports available you can get the full list here (https://wiki.ubuntu.com/Touch/Devices)

And at the bottom of the wiki you will see a link to xda which is the best place to find out if your device has a current working (unofficial) port. The last update for the Xperia z model was in 2013 so I'm not sure if you'll be able to.

Hope this helps in some way, I've typed this on my mobiles Web browser so sorry for any typos etc..


Quickly trying different colours in the GIMP

Ctrl + , is the keyboard shortcut for the 'Fill with foreground color'. Try that instead of the bucket fill.


Text editor with option to enclose selected text in tags

At least kile is able to do this, you can define your own functions in LaTeX→User Tags→Edit User Tags…:

For your example, enter $%M$ as shown here:

As you can see in the first screenshot, your first function is accessible with Ctrl+Shift+1, so just mark your text, press these keys and you're done.


Upgrading to 19.04 Hauppauge Quad HDTV Firmware install

the scriptfile install in this very repository should answer your question: https://github.com/OpenELEC/dvb-firmware/blob/master/install

Excerpt:

FW_DIR="$DESTDIR/lib/firmware"

mkdir -p $FW_DIR
  cp -a firmware/* $FW_DIR


Flickering on desktop environment, No StandBy

I installed the newest Kernel (18.5). Now all the problems are gone:

Standby works flawlessly
No flickering on screen
No blurry text on parts of the screen


Found the solution in a related answer:

#!/bin/bash

echo $( whoami )
echo $SUDO_USER

And the output:

alix@netbook:~$ ./test.sh
alix

alix@netbook:~$ sudo ./test.sh
root
alix


What is the best way to create secure/encrypted system?

You can install Ubuntu on an encrypted partition using dm-crypt. The /boot partition needs to be unencrypted, but the entire rest of the disk will reside in one encrypted volume. Here is a nice how-to.


I have the same problem. I can manage to boot by using an older Linux version from the GRUB menu (try going back 1 version). That should let it boot, but there are obviously other problems which I don't yet know how to solve.

Edit: I managed to solve the problem by reinstalling Ubuntu. I do not know why it was freezing on startup, but a reinstall did fix the problem. If you do reinstall, make sure to backup all your data before doing so.


Retrieving email backup and mozilla bookmarks from command line

Supplement to Firefox backup.

If you want to backup Firefox with everything: bookmarks, history, plugins … do:

Backup /home/USERNAME/.mozilla/xxx.default
Copy it to the new install (Same location)

Now you have two choices.

One

Delete the existing xxx.default folder (added from new install).
Edit /home/USERNAME/.mozilla/firefox/profiles.ini
Change Path to match backup folder.

[Profile0]
Name=default
IsRelative=1
Path=xxxx.default # Change this line

Or two

Edit /home/USERNAME/.mozilla/firefox/profiles.ini
Add entry for backup-folder

[Profile1]        # Profile1
Name=backup       # Give a name
IsRelative=1
Path=xxxx.default # Change to match backup folder

Start Firefox with firefox -p and select backed up profile.


Run anacron even when on battery (laptop)

Please never change any files in /usr!  Instead, you may change a line in the file /etc/default/anacron to

ANACRON_RUN_ON_BATTERY_POWER=yes

Thanks @Teresa e Junior. :)


Error "Media change: please insert disc labeled..." when installing an application

Probably you still have the following option ticked in your Software Sources:

If ticked, Ubuntu will install packages from the installation media rather than downloading from the internet.


Modifying pulseaudio daemon.conf in /ect/pulse

I found that typing Alt+F2, typing gksudo, entering gedit, clicking open, browsing manually to the file, modifying and then saving fixed my issue.

Navigating to it using the terminal wasnt working. AS I WAS MIS-SPELLING ETC AS ECT...

Thanks Eliah Kagan for pointing it out.


Memory is divided into "pages". when memory fills the system will write some idle pages to disk so that it can use active memory for other programs, this is called paging.

Swap Space is the disk area the system uses for paging. on some systems it is a file. Ubuntu and other linux/unix system use a drive partition for swap space.
While a swapfile can grow as needed, it is subject to fragmentation. Since memory pages are all the same size, a swap partition does not have fragmentation issues but is limited to the size of the partition made for it.

Swap space is also used for hibernation. Thus it is recommended that swap space be at least twice the size of your installed memory.

If you can post a screen shot of your partitioning information, I can give more dtailed instructions on adding space if you need to


How do I change dconf keys without a gui (for a post-install script)?

You can use the gsettings tool.

gsettings set com.canonical.indicator.session show-real-name-on-panel false


Error while connecting Ubuntu server from a client

You don't connect using the ip of the client you connect using a user account that is set up on the server, that has also been granted the right to establish a ssh connection.
Then you connect (from the client) with ssh <user name of account on server>@<server ip>


You have to install libdvdcss:

sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh

Reference: https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs


This is the terminal code and you can use it as script.

xdotool search "teamviewer" windowactivate --sync
xdotool key alt+F4

that will close the team-viewer.


Failing to install Allure 2.13.8 on ubuntu 20.04.2 LTS manually

I was using the wrong url.
curl -o allure-2.13.8.tgz -OLs https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.13.8/allure-commandline-2.13.8.tgz
sudo tar -zxvf allure-2.13.8.tgz -C /opt/
sudo ln -s /opt/allure-2.13.8/bin/allure /usr/bin/allure
allure --version


You could try updating your machine through synaptic. if it updates / upgrades through synaptic, restart the computer and your update application will start working again.

regards


How can I solve performance problems of Ubuntu 13.04?

It's generally regarded that the best way to perform an upgrade from one release to another, is to do a fresh install. Upgrading the way you have invites issues such as the one you have.

If you can, do a fresh install - don't forget to back up your ~/home files first. That will mean you'll get the best install possible.

Hope that helps.


Extended Ubuntu partition taking more than it should

I am not sure how you came to this situation.

You have 2 primary partitions and 1 extended partition. These are partition 1, 2 and 0 respectively.

Inside the extended partition 0 (70GB) you have 2 logical partitions. Partition 3 (NTSF D: 41GB) and Partition 4 (ext4 mounted as / for Ubuntu 29GB).

You cannot delete the extended partition without deleting the two logical partitions inside it. If you delete partition 4, your Ubuntu will be gone too.

You don't have a Swap partition. Creating a 41 GB Swap partition is probably a huge waste of your disk space.

You can continue to use the D: (partition 3) as a shared space between Windows and Ubuntu.

You can delete the logical partition 3 and expand the Ubuntu logical partition to fill the whole extended partition. This can't be done from Windows, as Windows doesn't understand ext4 partitions. This can't be done from Ubuntu booted from partition 4. You can't change it while the system is running from it.

You have to boot from a Live USB (Use the Try Ubuntu option). Run Gparted from the Live USB and

Delete the 41GB partition.
Move the 29GB / partition to the left edge of the extended
partition.
Expand the / partition to the right to fill up all the space in the logical partition.
Optionally create a Swap partition of 4GB at the end of the logical
partition.
Boot from Ubuntu and enable the swap partition.

Hope this helps


KDE power management system could not be initialized

I had the same issue (and WiFi was not working). Reinstalling of upower solved it:

sudo apt-get purge upower
sudo apt-get install upower


How do I get the Presentation Minimizer to work in LibreOffice Impress?

You will need to manually add the Sun Presentation Minimizer (from Open Office) e.g. with Tools -> Extension Manager.


Google Roboto Fonts - cannot install due to conflicts

This is a 16.04 bug which is not present in 17.10. I just filed a bug report and uploaded a fix, and it should be fine in a couple of weeks or so.

Edit:

Fixed now:

https://launchpad.net/ubuntu/+source/fonts-roboto/2:0~20160106-1ubuntu0.1


Ubuntu 12.04.3 drivers for Lenovo G500 with i3 3110M CPU

I have Lenovo G500s. All drivers are included in the Linux Kernel. Only for the Graphics card, use this trick. But older Linux Kernel occurs problem with Ethernet driver. But if you update the kernel the driver will be automatically installed. If you use Ubuntu 13.04 or newer then the driver is pre-installed.


Trying to install Ubuntu from DVD get message "No operating system" and everything halts

Like the comments above change the boot order from the bios so that it boots from disk first.


I can't install any packages on Ubuntu Studio 16.04

It seems like you are trying to install vlc, but missing the install in the command line.

The correct way of installing a package using apt-get is:

sudo apt-get install <package-name>

In your case when the package is vlc:

sudo apt-get install vlc

According to VLC site

You should execute the below two commands in order to install vlc:

sudo apt-get update
sudo apt-get install vlc browser-plugin-vlc


Equivalent of hdparm -t for home directory?

You could use findmnt -T ex.
$ findmnt -T /home
TARGET SOURCE    FSTYPE OPTIONS
/home  /dev/sda6 ext4   rw,relatime,data=ordered

or to extract just the block device
$ findmnt -no SOURCE -T /home
/dev/sda6

To use it with hdparm:
hdparm -t "$(findmnt -no SOURCE -T /home)"


3 NICs, one connected to GW, the other two to 1 host each. How to connect hosts?

Sure is.
Gateways should be on the same network as the interface, and in typical setups you should only have one gateway on the interface that goes out to the internet. It's the route of last resort i.e. send everything that's not on my directly connected netowrk/s here. Same with the nameserver it's global for a computer.

So you already have 3 networks set up. Take out gateway 192.168.1.200 and dns-nameservers 192.168.1.200 lines from enp2s1 and enp2s2  /etc/network/interfaces is the configuration for that specific computer. So you're telling your own computer to use it's own ip from another network as a gateway and a dns server. (broadcast and network don't hurt but are not really needed as your PC is much better than you at calculating those).

Now configure PC on 192.168.100.0 255.255.255.0 network with IP and tell the other PC to use your server at 192.168.100.1 as it's gateway, and same with the PC on 192.168.101.0 255.255.255.0 configure it with IP and your server 192.168.101.1 as it's gateway.

Then tell your server to do the routing by uncomenting net.ipv4.ip_forward=1 in your /etc/sysctl.conf

That should be all, but most likely your internet will still not work on your "hosts". Reason being is your router. It only knows of one internal network which is 192.168.1.0/24 and will send EVERYTHING else to it's default gateway which is probably your ISP. e.g. it wouldn't know what to do with packets sent to 192.168.100.X and 192.168.101.0 so it'll forward them back to the internet which your ISP will drop. To fix that you need to log in to your router and add a staic/manual route telling it to forward all packets destined to 192.168.100.0/24 and 192.168.101.0/24 to your server at 192.168.1.200


Wireless problem: Once turned off won't turn on, does not show wlan0

Had the same problem with Lenovo Ideapad S10.
On the terminal:

rfkill list

It showed two devices:

  0:ideapad_wlan:Wireless LAN
  Softblock: no
  Hardblock: yes

  1:brcmwL-0 Wireless Lan  ( I think it is Broadcom WLAN)
  softblock:no
  hardblock:yes

I checked the Bios wireless switch it was ON

Then I did:

rfkill unblock 0
rfkill unblock 1

This fixes the problem, which is strange because it was a hardblock, but it works.


If you start from a server install and continue to install specific packages, your are essentially building the desktop environment yourself and thus responsible yourself for installing and configuring everything that is needed for a functional desktop.The packages you installed may not have installed the necessary icon packages, so you will need to find out which these are an install these.

The easier way to set up a desktop environment on a server installation, is to install one of the ubuntu-desktop pacakges. In your case, install xubuntu-desktop to automatically install everything needed for a xfce desktop according to the Xubuntu developpers. This will bring in everything with a single command.


How to revert USB wifi interface name (from wlxXXXXXXXXXXXX to wlanX)?

You missed one thing from https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

sudo ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules

Then reboot

I think it needs to be the 80-net-setup-link.rules file in /etc/udev/ as the one laptop I updated to Ubuntu 16.04 from 15.10 still contained a file named /lib/udev/rules.d/73-usb-net-by-mac.rules and it contained
# Use MAC based names for network interfaces which are directly or indirectly
on USB and have an universally administered (stable) MAC address (second bit
is 0).

IMPORT{cmdline}="net.ifnames", ENV{net.ifnames}=="0", GOTO="usb_net_by_mac_end"
PROGRAM="/bin/readlink /etc/udev/rules.d/80-net-setup-link.rules", RESULT=="/dev/null", GOTO="usb_net_by_mac_end"

ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", NAME=="", \
    ATTR{address}=="?[014589cd]:*", \
    IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_MAC}"

LABEL="usb_net_by_mac_end"

And it specifies /etc/udev/rules.d/80-net-setup-link.rules

This file does not exist in any of my clean installs of Ubuntu 16.04 but part of this must exist in other source code


How can i update a software without password in 18.04?

You either need to know root password or you need to be authorized to use sudo command if you want to update/install software.

When you are authorized to use sudo there are two possibilities - either you can use it without a password or you have to provide your password, it depends on how admin set up your account.


How to add shutdown option to the Ubuntu lock screen?

You actually don't need to add shutdown to that menu.

You can click on Switch Account and you'll have Shutdown on the new screen's menu.

That way, it's possible to shut the computer down without logging in first. That works on ubuntu 14.04 LTS and 16.04 LTS.


How can I import all my Windows files into Ubuntu?

What I normally do, is inserting a live-medium, DVD or USB-Drive with Ubuntu. Then I attach my external drive to the computer and open a file-browser. After a click on the HDD with Windows you can just copy every file to that external medium.

After the installation is completed you can recopy the files to your internal HDD.

Be aware to copy all files you need, typically folder like musik, documents, own files, desktop,etc.

Linux don't care if there is a working OS in that HDD. But if your HDD failed (Hardware-Defect) Ubuntu will not be able to mount it. Unfortunately it is not a magical unicorn.


Ctrl+Alt+L

The above keyboard shortcut will lock your screen.


open your terminal and do as

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get do-release-upgrade

You might have to remove some repositories if they are failing


instaling uTorrent: No such file or directory

tar: /opt: Cannot open: No such file or directory

Probably /opt doesn't exist, run:

sudo mkdir /opt

to create it and try again.


My microphone has an extra channel full of random noise, how do I disable the extra channel?

Install PulseAudio Volume Control from Ubuntu Software Center. Then go to "Input Devices" tab and silence one of the channels. You can also choose settings per application, start Google Hangouts and go to "Recording" tab where you will find your application, and here you can also change recording settings for specific application. Third way is to choose suitable profile in "Configuration" tab.

I haven't experienced your specific problem, but PulseAudio Volume Control is very good application with a lot of options, it helped me solving various other issues many times, so I am almost sure it will help you with this case as well.


Ubuntu mate 16.04 won't boot into GUI anymore

What do you mean by "The pi won't boot into the GUI and I believe goes into maintenance mode"? Can you describe your environment better?


Cannot boot ubuntu after remove failed data disk (system on different disk)

The bios is failing to boot, which means it's one of two problems:

The boot was installed to your data disk, solution: install grub to sda following this guide https://help.ubuntu.com/community/Grub2/Installing#Purging_.26_Reinstalling_GRUB_2
Your bios requires you to have a full set of hard drives and removing one has scewered up it's internal disk reporting mechanism. this will require you to use the bios disk management tools to sort it out.


I reset password in the recovery mode, but still unable to login in ubuntu

"passwd" in recovery mode will set the root password, which is a bad idea. You need to use "passwd username" instead, where "username" is your actual username. Assuming your username is "u", the following two commands will do the trick:

mount -o remount,rw /
passwd u

Also, you should reset the root password to fix what you've already done:

passwd -dl root