How do i send a message to people joining my wifi?

What app do you want them to receive your message in? Well, let's assume it's a web browser. So, when they ask for their first web page, you instead redirect them to your digital welcome mat; they see it, click continue, and then go to their original destination.

This, however, is not a function of a desktop or laptop machine, this is a server function where you create a Directory Naming Service server for your home network.  Every web request they make goes through DNS (which means that machine must always be on for anyone to use the Internet from your place), and you would need to write custom code for it so their first request is held until they've seen the digital welcome mat.


uname and grub not showing latest updates shown in dpkg -l so can't delete to make space in /boot

I solved this problem by following instructions using a boot-repair tool at
https://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/
Uname is now giving the latest kernel version.


How do I use emerge to install zynaddsubfx presets?

That's because emerge command it is a command from (and will work in) Gentoo and will never work in Ubuntu (see this post in this sense). Its equivalent in Ubuntu is apt-cache. So, you should change emerge -s zynaddsubfx with:

apt-cache search zynaddsubfx


I've recently bought a Epson Expression Premium XP-600, which is the same as the XP-605 except it's black instead of white.

After you've connected your printer to your WiFi network simply go to system settings - Printing, Add Printer, expand Network printer and there you'll find your discovered printer.

The 'proprietary' driver is automatically downloaded and you just have to activate it.

Now printing works and you can use Simple Scan to scan your documents.

So far so good, but Simple Scan is very limited and applications like xsane won't find your scanner.

For more advanced scanning you want to use Image Scan! for Linux provided by Epson which you can find at the already mentioned URL.

You'll need to download iscan-data_1.22.0-1_all.deb and the appropriate iscan_2.29.1-5~usb0.1.*.deb package (pick .ltdl7 for ubuntu 8.10 or higher).

Since the XP-600/605 is WiFi-only you'll also need a network plugin package which isn't offered at the XP-600's download page so you have to 'borrow' this from another model, for example the PX720WD's. Here you can download iscan-network-nt_1.1.0-2_*.deb.

Go to your download folder and doubleclick on the iscan-data package to install it through the Software Centre. After this you install the iscan package and the iscan-network-nt package.

Finally, you have to edit the /etc/sane.d/epkowa.conf file. To do this open terminal and type:

sudo gedit /etc/sane.d/epkowa.conf

Browse down through the file and look for the "#net 10.0.0.1" line, remove the # and change the 10.0.0.1 to the actual ip-address of your printer.

You can now use Image Scan! for Linux and as a bonus other scanner applications like xsane will now work with your scanner too.


Try to install 64 bit version of Lubuntu

Normally, Intel does show what processors have what technical Specs on Processor chips.
This is what you should look at.

I did not see an Intel Chip that wasn't 64 bit.  However your Sempron is a 32 bit and will not accept a 64 bit install.

As a rule of thumb, anything under 4 GB of RAM should have a 32 bit OS installed.


Several different chipsets have been used in that product line, so it's possible you aren't installing the correct one. The WikiDevi page for Archer T2U indicates that it's most likely a Mediatek driver that you'll need, not the Realtek one you installed. I've avoided buying these because some chipsets are easier to get working than others, and you can't be sure which one you'll get when you buy them online.


Ubuntu 18.04 - not using the full WiFi internet speed

You have disabled "partially" 11n rates in your config files.

You replaced the standard iwlwifi.conf with a wrong option.

Run

sudo nano /etc/modprobe.d/iwlwifi.conf

and replace the existing text options iwlwifi 11n_disable=1 with

# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system.  When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

This is what should be there.

For the future I recommend not to run commands that you don't understand.


Disable touch-pad while typing doesn't work in Lubuntu

Touchpad-Indicator does the job. It is not available from official Ubuntu repositories, so you need to add one manually. To ge the latest version, run the following in a terminal:

sudo add-apt-repository ppa:atareao/atareao

To install, run:

sudo apt-get update
sudo apt-get install touchpad-indicator

To disable touch-pad while typing, open the program and select the respective option from Preferences -> Actions.

Finally, don't forget to add the app to the startup list. You can do this within the same program, from Preferences -> General options tab. If that does not work, you might need to add it manually through your settings menu (in Lubuntu, it should be under Preferences -> Desktop Session Settings).

PS: some users mention a restart to make the program work.


SSH locked out need to put files onto server

You have a few options:

Physical access. Go up to it and log in. Or reboot into rescue mode and fix your hosts, set yourself a password, etc. Or boot into a live environment, fix the files or chroot and and set yourself a password. Many options here.
Virtual physical access. If the server isn't physically yours —ie you rent it— your hosts might be able to give you virtual physical access. You'll have to prove you own it but many hosts can give you out-of-band access to a TTY or straight up root access.
Help from your host. Many hosts are understanding. As long as you can prove its your machine (they can email/phone the billing contact) I don't see what incentive they have to not help. A good technician will be able to see an email begging "please can you fix my SSH configuration?!" and be able to help directly.

Short of that you're asking how to circumvent Ubuntu's built in security. Anything that let you do that would be a pretty serious bug, don't you think?


What is the default shell, and are there any other options?

Most users don't need to care about different shells. What you'll probably need is to be able to use it to launch some commands the old way; you can open a text-shell using a terminal emulator like gnome-terminal, xterm, etc. which look like this

Or you can go to a virtual terminal pressing CTRL+ALT+F1 or F2, F3, F4, F5, F6. Yes, you have six of them and they look like this

And log in with your credentials, username and password.

Anyway all of these use BASH as default.
There are many other shells. You can find some info on wikipedia; look for "Unix shell".

Stick with BASH unless you find yourself in a rare corner case, because many how-tos and tutorials out there refer to it.

When using scripts things are a bit different because the default shell, the one linked to /bin/sh is dash


I've heard of the headphone jacks getting jammed and thinking there is still headphones plugged in. You could try wiggling the headphone plug around in the jack to see if it is your problem. I've heard this is a problem mainly on Dell laptops and I'd be surprised if Lenovo's build quality let for a design flaw like this but it's best to cover all bases.


To be honest, the white in both your screenshots look the same to me. This leads me to think that it's a color calibration difference between Ubuntu and Windows.

Look here for instructions on how to calibrate your screen, also how to change the gamma settings, which may be enough for what you want:

How to calibrate the monitor on an Ubuntu system?


How can I automatically create a link on the desktop or in $HOME when USB Stick is mounted?

Your question turns out to exist of two separate questions:

How to automatically create (and remove) a link on the desktop to mounted usb drives
How to run it on guest account

These questions are answered in [1.] and [2.] below.

1. Automatically create a desktop link to mounted usb drives (in general)

With a small background script, you can automatically have a link created on your desktop to the mounted usb drive(s), and automatically have it removed if the drive is removed.

The procedure; how it works

The script below is an edited version of this one. This version:

keeps an eye on newly mounted devices (using the command lsblk)
if a new item shows up, it checks if the newly mounted device is a usb device by the command: find /dev/disk -ls | grep <disk>. If usb in the output, the new mount is valid.
if the mount is valid, a link is created on the user's desktop, with the command: ln -s <new_mount> <target>.
The targeted link is named: [USB] <devicename>.

At the same time

The new mount is added to a list. periodically (once per four seconds), the list is checked. If the mount no longer exists, its corresponding link is removed from your desktop.

How to set up

Copy the script below into an empty file, save it as show_usb.py
create the directory /opt/show_usb (since we want to run it for a guest account):

sudo mkdir /opt/show_usb

Copy the script into /opt/show_usb:

sudo cp /path/to/show_usb.py /opt/show_usb

Test-run the script from a terminal by the command:

python3 /opt/show_usb/show_usb.py

If all works fine, add it to Startup Applications: Dash > Startup Applications > Add. Add the command:

python3 /opt/show_usb/show_usb.py

The script

#!/usr/bin/env python3
import os
import subprocess
import time

def find_dtop():
    # get the localized path to the Desktop folder
    home = os.environ["HOME"]; dr_file = home+"/.config/user-dirs.dirs"
    return [home+"/"+ l.split("/")[-1].strip() \
            for l in open(dr_file).readlines() \
            if l.startswith("XDG_DESKTOP_DIR=")][0].replace('"', "")

def get_mountedlist():
    return [(item.split()[0].replace("├─", "").replace("└─", ""),
             item[item.find("/"):]) for item in subprocess.check_output(
            ["lsblk"]).decode("utf-8").split("\n") if "/" in item]

def identify(disk):
    cmd = "find /dev/disk -ls | grep /"+disk
    output = subprocess.check_output(["/bin/bash", "-c", cmd]).decode("utf-8")
    return True if "usb" in output else False

done = []; check = []
dt = find_dtop()
while True:
    mnt = get_mountedlist(); mount_check = [item[1] for item in mnt]
    for item in check:
        if not item in mount_check:
            try:
                os.remove(dt+"/[USB] "+item.split("/")[-1]); check.remove(item)
            except FileNotFoundError:
                pass
    new_paths = [dev for dev in mnt if not dev in done and not dev[1] == "/"]
    valid = [dev for dev in new_paths if identify(dev[0]) == True]
    for item in valid:
        new = item[1]
        subprocess.Popen(["ln", "-s", new, dt+"/[USB] "+new.split("/")[-1] ])
        check.append(new)
    time.sleep(4)
    done = mnt

2. How to automatically run the script, specifically in guest account

To make the script autostart in a guest session:

Look if the directory /etc/guest-session/skel/.config/autostart exists. If not, create it:

sudo mkdir -p /etc/guest-session/skel/.config/autostart

Now create a startup launcher for the guest account:

sudo -i gedit /etc/guest-session/skel/.config/autostart/desktop_usb.desktop

In the file that opens, paste the code below:

[Desktop Entry]
Name=USB_desktop
Exec=python3 /opt/show_usb/show_usb.py
Type=Application

Save and close the file. Now when you log in on guest account, the script will run.

That's it

Notes

More on how to edit the guest account to be found here.
The script only acts if a new drive is mounted and adds no noticeable load to the processor whatsoever.


For your first try when the DB was not created :

pg_dump database will create all the SQL statements to recreate tables, indexes, functions, ... and data but without the CREATE DATABASE statement.

You use pg_restore with -C to recreate the database, which only works if you also give the name of the DB using the -d switch, like this :

pg_restore -Ft -C -d database database.tar


I had lost contacts

The installation of Skype doesn't have anything to do with it. You must contact Skype support

  all the photos

Skype stores photos somewhere, look at ~/.config/skype, ~/.cache and ~/.skype/

  telling me if people were on/off line and did not offer me the facility to video call.

If it doesn't offer the video call and you are sure you should have it contact Skype support.

  All it offered me was to call the number, no video and the messages need to pay for!.

If you need to pay for messages and previously no, check your account via browser to know the services are available for you.


to format the disk, firs umount the disk, then open it with fdisk, delete all the partitions and write a new partition table and reformat it. this is a really rough way to do so. but it could be helpful if you don't want the data on your disk.
'sudo umount /dev/sdx' where x is the drive (in your case '/dev/sdc'), then type 'sudo fdisk /dev/sdx' press d to delete (it asks you to select which partition do you want to delete, and again in your case we want to delete all, so press enter and hit d again till all partitions being deleted) now press n to make a new partition, select beginning sector (default values are good to go, so just hit enter) then it asks for end sector (you can type +10G for 10GB partition size or any thing else, again default is the end sector and it's fine for now, hit 'enter'). now you have been created a new partition on your disk, hit w to write changes and then exit the program, to format the disk you can use 'mkfs', i.e mkfs.ext4 /dev/sdc1 hit enter, when it finished, congratulation you have been formatted your disk and now it should work if the disk itself not really dead.
just mount it again or use disks to format, mount or any thing else you want.
i hope this would be helpful.


A .lnk file is just a link to the actual program, just like those shortcuts that clutter your desktop in Windows. Yes you can safely remove those located on your desktop, the program will still be installed.


Trouble With Persistence After Making a USB Live Thumb Drive Using Pendrivelinux

Be sure you have and always select "Persistent" option after booting from usb - if you do not see this option the usb has no persistence: it happened to me often for some reason.
And to be sure that it works, I use, beside FAT32 (as stated in the other answer) a program called LiveUSB Install - here.

It provides a clear and nice interface for selecting the "persistent" boot (cannot give a screenshot of that) - it should be the second in the list after booting from live usb.


Change default text editor to Micro. Doesn't appear in the "Open with" category

Micro is a terminal-based text editor which doesn't come with a .desktop file typical of most graphical applications.
You can make micro.desktop in ~/.local/share/applications with the following content:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=gnome-terminal -x micro %u
Name=Micro
MimeType=text/plain;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-dsrc;text/x-pascal;text/x-perl;text/x-python;application/x-php;application/x-httpd-php3;application/x-httpd-php4;application/x-httpd-php5;application/xml;text/html;text/css;text/x-sql;text/x-diff;

Icon=

(You can point to an icon of your choice and modify the MimeType= line to suit your usage.) Make micro.desktop executable. Now, when you right-click on a file in your file manager, you'll see Micro as an option in "Open with other application".
You can also set Micro as the default application. To do that with Nautilus, right-click on a target file, open its properties and do the needful there:


System tray icons disappeared after upgrading Ubuntu

You may need to do two things:

1. Install the sni-qt libraries.

Install sni-qt  (click on the link), or with sudo apt-get install sni-qt sni-qt:i386 from the terminal, and then restart Skype. The tray/panel icon should now be back!

  The reason this step is required is because sni-qt is installed automatically by the Ubuntu repository Skype package, but NOT by the Skype deb you directly download. Once Skype 4.0 is in the Ubuntu repos, you can install from there and this will no longer be necessary.

2. You may also need to whitelist the indicator

We don't know why, but for some systems this additional step is required before the indicator will show (thanks to Bruno Pereira!)

Steps:

Install the package dconf-tools (click on the link), or from the terminal with sudo apt-get install dconf-tools
Open dconf editor from the Dash (or dconf-editor from terminal):

On the left sidebar, use the triangles to navigate to  desktop > unity >
panel. On Ubuntu 12.10 you instead need to navigate to com > canonical > unity > panel. Double-click on the orange [JavaEmbedded...] part on the right, and add ,'skype' to allow the Skype indicator to show, as below:

Press Enter, close dconf editor, logout and login -- your indicator should now be back!


So you can try to create a group like its said in the links given by you, then add in this group all the users that can modify the files which belong to wp-user. finally all the files creates by wp-user need to let the write permission to this group.

Or create a directory where only users who are authorised to modify the files of wp-user can acces to this directory

so the steps are:

sudo addgroup ftpaccess //create group ftpacess
sudo adduser paul ftpacess // add user paul to the group ftpacess

Or

sudo adduser paul -ingroup ftpaccess --shell /usr/sbin/nologin //command in the first link

then wp-user will create a file you will change the group owner

sudo chgrp ftpacces file

Note: you can put your wp-user in the groop ftpaccess then all the users in this group can modify it. (Dont know if its good for security)


Touchscreen assignment with multiple x-screens

I would try something like

DISPLAY=:0.1 xinput map-to-output 10 DP-1

You can also export the DISPLAY variable

EDIT : This doesn't work on my usecase .. sorry for loss of time :/


I suggest you read this satirical piece, and then ask him.

http://blog.josephliau.com/ubuntu-grievous-goat/

seriously, he's the only one who can answer your question


How do I make gprename to work in Xenial?

In Ubuntu 16.04 and later open the terminal and type:

gprename ~

In order to make this change permanent, run the following command to create a symbolic link to start GPRename from your home folder.

sudo ln -s /usr/bin/gprename ~

Now you can start GPRename from the terminal by running the following command:

gprename

If you want to do it the hard way, here are the contents of my  /usr/share/applications/gprename.desktop file.

[Desktop Entry]
Name=GPRename
GenericName=complete batch renamer for Linux
Comment= GPRename is a complete batch renamer for files and directories.
TryExec=gprename
Exec=gprename
Icon=gprename
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;GTK;

This gprename.desktop file didn't work for me until I made a copy of the GPRename icon and changed the entry Icon=gprename to Icon=/usr/share/icons/gprename.png which changed the GPRename icon, but broke the desktop launcher. Then I had to change that line back to its original Icon=gprename so that a clickable GPRename icon appears in the Dash, and it also shows GPRename's icon in the Dock when GPRename is open.


How do I auto copy CD contents on insertion?

Yes Indeedy!   I got interested so did some head scratching and a good deal of teeth nashing and hair pulling.  Here it is:

#! /bin/bash
# Wait for a CD to be inserted then copy the contents
#
echo "CD copy, press <ctrl>C to exit"
echo "Looking for disk..."
#
# Go into a continuous loop always looking for a new CD
while :
    do
####### Get the mount point of /dev/sr0 out of the mounts file
        TEST=$(grep /dev/sr0 /proc/self/mounts)
####### If it doesn't exist, loop until it does with 1 second pause
        if [ "$TEST" == "" ]; then
                echo -ne "."
                sleep 1
        else
                echo
############### Got it!  Need to strip the mount point out of the string
                TEST2=${TEST:9}
                set $TEST2
                TEST=$1
############### Do the copy process for the disk we found
                echo "Copying from $TEST"
                cp -vr $TEST/* ~/junk/
############### Eject the CD with suitable pauses to avoid any buffer problems
                sleep 1
                eject cdrom
                sleep 2
        fi
######## Still looping! Go back and wait for another CD!
    done
exit()

You'll notice that the script assume that the cdrom is /dev/sr0 so if this is not the case you'll need to change it.  Use the blkid command to find out what your optical device is called.  The script copies everything to your home folder in a subdirectory called junk, and this directory must exist before you run the script.

I found the script ejects the cd/dvd nicely once the data is copied.  If it doesn't eject and stays mounted I think it will try to copy the same disk all over again.  Apart from that it's pretty self explanatory.  Enjoy  :-)


Your best bet may be to treat the remote print spooler as a plain IPP host and create local queues that forward to the remote printers.

Assuming you have created an ssh tunnel forwarding requests to the local port 1631 to the remote system's port 631, try adding a new network print queue locally with the following device URI:

ipp://localhost:1631/printers/$remote_queue

Where $remote_queue is remote queue name.  If CUPS doesn't know about the remote printer model but it had been set up with an appropriate PPD file, you can retrieve that PPD with the following command:

wget http://localhost:1631/printers/$remote_queue.ppd

After adding the local printer queue, click the Change... button next to Make and Model in the queue's properties window and follow the prompts to use the PPD.


Install Ubuntu with Android in Samsung Galaxy Note

First of all,  Ubuntu for Android isn't a 'mobile version' of Ubuntu. ie, After installing 'Ubuntu for Android' you won't be able to use Ubuntu OS in your android tablet. What it does is on connecting your tablet with your PC using and HDMI cable you'll be able to use the desktop version of Ubuntu.ie Your still will be in Android. The image below clarifies this :

Ubuntu For Android

So I assume what you expect is the Ubuntu For Phones :The Mobile OS of Ubuntu.

I don't think Galaxy Note is ready for dual boot.
If you want an Ubuntu only tab, read the following.
Developers are trying to make the Ubuntu Os for a variety of devices. Samsung Galaxy Note is still under testing. Following are the current status.

  What is working?

Touch
Wifi (atm broken?)
both Cameras (atm broken)
Sound
GSM (only mobile network)

  What is not working?

GSM (phone/sms)
Video recording
May be more

  How to install

Download the latest the build for GT-N7000
Download the latest quantal-preinstalled-phablet-armhf.zip
( Afterflash isn't needed anymore with 03-08 build)
Make a Nandroid Backup
Make a Full wipe
Flash the ubuntu_n7000_X-X.zip
Flash the quantal-preinstalled-phablet-armhf.zip
reboot

PS: The Rom will now build daily. Be sure that you use the latest daily rom with latest ubuntu daily.


You can't upgrade from 11.04 to 12.04. You must upgrade to 11.10 and then to 12.04. You can only skip upgrades if you upgrade from an LTS (10.04) to a LTS (12.04). You can't skip in-between.

I suggest you download an 11.10 image from here. And then upgrades via a usb-stick (live-cd). and then upgrades to 12.04, via the same method.


The reason behind this may be that you are not running a stable Os version and Ubuntu 17 has a lot of bugs and even the LTS version is not released so I prefer that you must downgrade your Ubuntu to 16.04 LTS as it is having really less bugs and I am also currently using it and there has been no issues since then.

There may be other Reasons like :-

Incorrect Installation

Drivers Fault

But I insist that you should downgrade your version to 16.04 LTS


How to dowload the last version of maxima (5.43.0) on Ubuntu 18.04 LTS?

Ubuntu uses a rolling-release model. Every six months, an entirely new version is released, coming also with newer versions of  software. Ubuntu 18.04 keeps maintaining the versions of the software which which it was released. Only critical bug fixes or safety issues are resolved. This ensures that a stable system keeps reliably functioning the same way during it's life time.

To upgrade to newer versions of software, either

Upgrade to a newer version of the Ubuntu operating system

or

Manually install newer versions of the software. At that point, you are on your own, because this way of installing software is not supported and, if not properly done, may break your system.

There are many ways to manually install software, some methods ore complex than others. Look first at the website of the software to see how the software could be installed.

On the Maxima website, Downloads page, you see that their first recommendation is to use the regular system of your distribution. Under the section "Manually installing maxima on debian-based systems", there is a link to download *.deb installation files, which then can be installed using the apt-get install ./*.deb command. If you want the newer version on your current Ubuntu version, then follow the instructions given there. Given " Maxima"  is a reputable program, and Ubuntu 18.04 is a long term release that is around for some while, chances that this will work well are good. Bottom line is, however, that you need to mae this evaluation anytime you consider installing software in a different way than through the regular software center or the apt-get command.


I had a similar problem with video and discovered that turning off screen effects- i.e. the compositor, fixed the issue. Go to the Xfce menu and click settings > settings manager > window manager tweaks and click the compositor tab so that it looks like the screenshot below. Now your video should play fine- try it with vlc and smplayer, for example.

The compositor seems to interfere with video playback and particularly hardware accelerated video; as you describe, video will play for a few seconds and then goes black and you are left only with the audio. Your problem seems the same as mine, so this solution will probably work for you. I am running 12.04, but the settings should be in a similar area in earlier versions as well.


Time keeps changing between BIOS/WIndows 7/Ubuntu 14.04

As the amount of minutes is always set correctly, it is probably not battery, but the timezone issue. Windows tries to keep HW clock at the local time. Linux tries to keep them at the UTC.

Your experiment with hwclock --localtime was almost right, but hwclock changes it only for the current boot. You want to save this information permanently.

Set UTC=no in /etc/default/rcS to keep it persistent over the time.

see https://help.ubuntu.com/community/UbuntuTime#Make_Linux_use_.27Local.27_time for more details

After this configured properly, you should again enable automatic sync in both Linux and Windows.


Run command ccsm in terminal (If you don't have that installed, it will show).
Go to Desktop → Ubuntu Unity Plugin and change the "Key to show the menu bar while pressed".

Source: How to stop Alt from triggering Global Menu?


Can't run Virtualbox: The character device /dev/vboxdrv does not exist

Disable Secure Boot from your bios and you'll be able to use VirtualBox


Copy Unity Launchers from 14.04 to 16.04

You need to manually add it to Unity Launcher, it's not enough to just put it in the folder.

browse to your .local/share/applications folder in Nautilus (the folder might be hidden, so you might need to press Ctrl+H)
drag .desktop files from Nautilus to Unity Launcher, it should then appear instantly


Printer stopped working after upgrade 16.04 to 18.04

I had a similar problem after upgrading to 18.04. The steps in this answer fixed it:

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles
sudo apt-get install --reinstall libgs9-common


keyboardlayouteditor

A keyboard layout editor for Linux.

Its designed to be user friendly and easy to use. If you can get this installed, you might just have a blast.

Website

xmodmap

The xmodmap program

Is used to edit and display the keyboard modifier map and keymap table that are used by client applications to convert event keycodes into keysyms. It is a part of the X.Org project.

Website


This a bug of samba:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476
The answer is:

add client min protocol = NT1 into /etc/samba/smb.conf following [global]part

sudo add-apt-repository ppa:sergiodj/samba-bug1872476-v2

sudo apt update

sudo apt upgrade


ffmpeg
I think ffmpeg will do the job it's quite simply copy all the streams and output them in an mkv container. No information is lost/re-encoded.
ffmpeg -i input.mt2s -scodec copy -acodec copy -vcodec copy -f matroska input.mkv


Acer Aspire 1551 Will Not Wake After Suspend

i had the same problem, it's because of ATI graphics  make sure you installed your drivers system -> administration-> additional drivers. the computer will search and refresh then install them. if you have already done this and the problem continues then go to the link, it helped me when i had the problem.
http://ubuntuforums.org/showthread.php?t=1371844


Firefox becomes default browser after upgrade. Cannot revert to Google Chrome

Turns out that there is this little application called "Preferred Applications" and you can set your default browser there. I figured this out, 2 minutes after posting my question. Well, three things are a mystery to me:

Why was my default changed?
How is a "new" user supposed to know about this "Preferred Applications" utility? This utility is not in the launcher, and I only recalled it by sheer luck.
Why are the settings within Firefox and within Google Chrome not working?


Script that will reboot PC on specific GPU temp

Save this a script and make it executable (chmod +x scriptname.sh) and run it with bash using sudo as reboot requires root.

#! /bin/bash
while :
do
    temp=$(aticonfig --odgt --adapter=all | grep Sensor: | sed 's/[a-zA-Z:-]//g'|  tr -d ' ')

    action=$(echo $temp|awk '{ print ($1 < 76) ? "reboot" : "" }')

    $action
    sleep 1
done

I have not tested it with the ATI command as I don't have access to the command, but it works replacing aticonfig --odgt --adapter=all | grep Sensor: with echo 'Sensor: Temperature - 77.00 C'. This was how I tested it.

The 76 is the restart temp. You can edit that.


Updated from 16.04 to 18.04 and having issues booting

I had the same problem after upgrading to 18.04.  The computer would boot into text terminal, and I could start the X Session with startx.  I could resolve the problem with:

sudo apt-get install --reinstall gdm3

It seems this is a problem with the display manager and not necessarily linked to the ecryptfs bug.  I think I was using lightdm before the update which is not the default.


How to exclude/ignore hidden files and directories in a wildcard-embedded "find" search?

This prints all files that are descendants of your directory, skipping hidden files and directories:

find . -not -path '*/\.*'

So if you're looking for a file with some text in its name, and you want to skip hidden files and directories, run:

find . -not -path '*/\.*' -type f -name '*some text*'

Explanation:

The -path option runs checks a pattern against the entire path string. * is a wildcard, / is a directory separator, \. is a dot (it has to be escaped to avoid special meaning), and * is another wildcard. -not means don't select files that match this test.

I don't think that find is smart enough to avoid recursively searching hidden directories in the previous command, so if you need speed, use -prune instead, like this:

 find . -type d -path '*/\.*' -prune -o -not -name '.*' -type f -name '*some text*' -print


Lifted from
Wifi doesn't work after suspend after 16.04 upgrade
I found that first researching which ethernet hardware and driver/module I am running, and then removing and reloading that module, did work for me (though it did not for buzhidao):
Wifi:
$ lspci -knn | grep Net -A2

Ethernet:
$ lspci -knn | grep Ether -A2

The second of these (ethernet) was what I used, and I found:
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
        Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:1944]
        Kernel driver in use: r8169
        Kernel modules: r8169

so i reloaded the 'r8169' driver:
$ sudo rmmod r8169 && sudo modprobe r8169

and voila! This worked. My ethernet port / connection came back alive (after suspend/wakeup) without having to reboot.
in my case the driver was different, but the same commands rmmod and modprobe did the trick


Public key SSH authentication broke on all my ubuntu servers

Welp, figured I'd let everyone know just in case they ran into the same issue. Seems that the firewall appliances that we use were intercepting and deep-scanning SSH. That was breaking public key auth. Disabled the SSH deep inspection and the issue was resolved.


Howto add start-up option / command-line option to Google Chrome

Big thanks to dessert for solving my problem. I want to quickly share my "config" with you:

[Desktop Entry]
Name=Google Chrome
Exec=/usr/bin/google-chrome-stable %U --ssl-version-min=tls1.2
StartupNotify=true
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;

Note you can also edit /usr/share/applications/google-chrome.desktop to make the change affective system wide (But keep in mind you have to change it for incognito and new tab in this file as well). :)


Check out Ubuntu on Windows Community Preview and Microsoft/WSLg for latest updates on this topic. Note that WSLg can run single apps but not a full distro under WSL2 (yet), except you install a separate Xserver and Client for that.


This is what worked for me;
clear Lock
keycode 66 = Escape


Network services not compatible after update

Network not starting after update. Some Ubuntu systems do not work any more after the latest Kernel update to 3.2.0-60-generic, especially the Network interface. Here is how to fix this:

sudo dkms remove e1000e/2.5.4 –k 3.2.0-60-generic
sudo dkms build e1000e/2.5.4 –k 3.2.0-60-generic
sudo dkms install e1000e/2.5.4 –k 3.2.0-60-generic
sudo modprobe e1000e


How to extract characters from a filename

You can use grep to only show the first (up to) 4 characters of each line:

grep -Eo '^.{,4}' /PATH/TO/FILE

-E enables extended regular expressions, which is needed for the curly braces quantifier here.
-o makes grep output only the matched part, not the whole line on which it was found

The pattern ^.{,4} matches at the beginning of a line (^) a sequence consisting of any character (.) and being up to 4 characters long ({,4}).

To save the output as a file, simply use redirection:

grep -Eo '^.{,4}' /PATH/TO/FILE > /PATH/TO/OUTPUT-FILE

Follow-up:

For a generic pattern to match a specific range (from x-th character to y-th character), consider this example, which displays the 10th through 18th character of each line:

$ echo 123456789abcdefghij | grep -Po '(?<=^.{9}).{8}'
abcdefgh

This is achieved by skipping the 9 first characters without matching them using a so-called lookbehind ((?<=...)). This feature is not included in the extended regular expressions understood by grep, therefore we need -P instead to enable PCRE.

After exactly 9 characters have been skipped, it matches the next exactly 8 characters. If the line is shorter than that, it will not match. To match up to 8 characters again, as in the first part of this answer, write {,8} instead of {8}.


Memory is not released from swap when a program is terminated

I don't remember if the Gnome System Monitor includes cache files in its memory calculation (I think it doesn't), but you can run free -m to see the actual free memory (on the second row).

             total       used       free     shared    buffers     cached
Mem:          7915       7180        734        134        197       4581
-/+ buffers/cache:       2401       5513
Swap:         4024         87       3937

In my case, I have 5513 MB of RAM free, which 4581 MB of it being pre-cached with files.

Anyways, running sudo swapoff -a && sudo swapon -a when there isn't enough RAM available will just cause the command to fail, and won't do any harm to your system.

To find out what process might still be taking up RAM, sort the column by memory usage, or use top or htop.


Ubuntu or Xubuntu for old PC with P4 2.8Ghz, 2GB RAM?

Xubuntu, or possibly Lubuntu, but Xubuntu has a nice look and feel. I run Xubuntu on my 1Ghz 1GB RAM machine, and it runs wonderfully. On the other hand Ubuntu with Unity runs noticeably slow on it (maybe this would be less of a problem on a 2.8 Ghz machine). Anyways, Xubuntu is a very nice lightweight desktop system.


Installer won't let me continue, forward and skip buttons greyed out

I think you are meant to create a password and it won't let you proceed without one for Unix security reasons


gedit: is there a keyboard shortcut in gedit itself to insert date and time?

In Gedit click the cog-wheel and choose Preferences

Open the Plugin-tab  and enable External Tools.

Close the Preferences-window and click the cog-wheel again, you will find the option
Manage External Tools... now, select it to open the Manage External Tools-window:

Click the + button to add a new function and give it a name, add the date-command with the options of your choice, click the Shortcut key-button and assgin a shortcut and in the Output-field choose Insert at cursor position from the drop-down-menu.

Close the Manage External Tools-window and test the new keyboard-shortcut in the main gedit window.

Reference: Timestamp Keyboard Shortcut In gedit


The default color for the Ubuntu bash is #8AE234


Bash does not predefine DAY. As Jos says, the error message you're getting is the same as the message obtained when it is omitted altogether:

ek@Kip:~$ [ -eq 1 ]
-bash: [: -eq: unary operator expected

The command date +%d outputs the current day of the month. If you want DAY to hold that value, you can use:

DAY="$(date +%d)"

But you can also just place the command substitution in the [ command:

if [ "$(date +%d)" -eq 1 ]; then
        rclone copy "/tmp/$MONTH-$YEAR.tar.gz.gpg" /server2/archive
fi

date +%d always outputs two digits, so when it is the first day of the month it outputs 01, but that is no problem. Arithmetically, 01 is equal to 1, and you're rightly using -eq, which performs numerical comparison (unlike =, which performs textual comparison).

You will notice that I have enclosed $(date +%d) in double quotes in the [ command. This prevents globbing and word splitting.

It is a good idea always to enclose parameter expansion ("$DAY"), arithmetic expansion ("$((3 + 4))"), and command substitution ("$(date +%d)" or the less preferred form `date +%d`) in double quotes except in the fairly uncommon case that you actually want globbing and word splitting to be performed.

If you had written "$DAY" originally, instead of $DAY, then you would have gotten this error from [:

-bash: [: : integer expression expected

That error makes much more sense.

I've also enclosed your path, /tmp/$MONTH-$YEAR.tar.gz.gpg, which contains the parameter expansions $MONTH and $YEAR, in double quotes.


Adjustment of konsole (and other CLI app) vertical line spacing, is it possible?

To anyone interested, I have figured out a way to do this, but it does involve font editing. This should save you hours if not days of googling and frustration , because I know I spent an inordinate amount of time trying to figure all of this out. Please do not be discouraged by the wall of text that are the steps. The entire process takes literally less than five minutes. I've just gone through great lengths to completely spell it out, so that it can take five minutes :) and there is as little ambiguity as possible with regard to what to do and in what sequence.

Here is how you can adjust the vertical line spacing to your heart's content, across all Linux GUI apps:

Download and install FontForge (the package should be called fontforge with yum, apt-get, dnf, or whatever your package manager you use). It's also available in github if you like doing things manually: github install details
Open the font you would like to change (Inconsolata in my case). Note: Before changing a font or even creating a new font, which I highly recommend, copy the old one(s) from /usr/share/fonts/... to ~/.local/share/fonts and make all changes (or new font additions) in your local fonts directory, which as a bonus you will have write privileges to, without the need for root access (to /usr/share/fonts).
OK, back to FontForge, which you can run as: fontforge after installation. Start by opening the font from the .local/share/fonts directory that you copied the original font to. Just type .local/share/fonts assuming you started fontforge from your home directory, and it will take you to that directory. Note that fontforge does not like the ~ character in place of your home directory, so use relative or absolute paths, but do not use ~ when opening the font file. If you have a subdirectory for your font there, just click on that to open it and finally select and open the font itself. Before we change anything else, we should rename the font. From the menu, select Element/Font Info... to open the Font Information dialog. Go to the General category on the lefthand side and let's change the name of the font by putting a suffix after it (e.g., I changed Inconsolata to InconsolataDense80, to indicate that I will be reducing the vertical line spacing (i.e., leading) to 80 percent of its present value). Make sure that you make this change three times for each of the Fontname, Family Name, and Name For Humans fields, respectively.
Next, select the OS/2 category on the left (who would have thunk it???) and on select the Metrics tab at the top.
We will be modifying the HHead Ascent and Descent values, the only two values that affect the vertical spacing on Linux. Good luck figuring this one out on your own. It took me ages to find these proverbial needles in the haystack, diamonds in the rough, your analogy of choice :) !
Be sure to record (e.g., write down) the current values, before you make any changes.
Now to change the vertical spacing, we need to multiply the two values by a factor depending on the amount you want to reduce the vertical spacing by (for me, I used 80% of the current values). You probably want to use the same factor for both for 99% of all cases. If that doesn't work out or causes display artifacting, you can later use different factors to fine tune the individual values as an absolute last resort. Artifacting could also mean that you've reduced the values too much, and by reduce I mean move toward zero (i.e., reduce their magnitudes, their absolute values, since the HHead Descent may be negative, so you will actually be increasing it in a numerical sense if you multiply it by a positive percentage scaling factor).
Set each of the HHead Ascent and Descent to the values you calculated in step 7 (e.g., 80% of their former values is a good start)
We are done with the Font Information dialog, so let's click on the OK button

At this point, let's save our font as a .SDF file, so do a File/Save As... and it should remember the new name of the font you set previously.
Now to apply our changes, we need to (re)generate the font. Select Font/Generate Fonts... from the FontForge menu. If you are dealing with a TrueType font, make sure that TrueType is selected under the font filename. Then click on the Generate button. You may get various Errors Detected which you can safely ignore - click the Generate button on that dialog, if it appears to continue with font generation.
You are good to go at this point, but will need to reset the font cache. Do this by typing fc-cache -v -r.
Open up a new konsole window (the new font or possibly even changes to an existing font will not show in any windows you already have opened).
Select the new font by going to Settings/Edit Current Profile and selecting the Appearance tab. The font selection options are at the settings page. Click Select Font... and you should see your new font listed and be able to select it. The change will be enacted immediately after you click OK.
Congratulations, you are done! If the lines are still too far apart or too close, go back to Step 7 and tweak the HHead Ascent/Descent values to some other multiples of their originals. Don't forget to change (all three) of the font name values to be descriptive of the percentage you multiply by, for future reference and then be sure to save the font under a new file name (and generate it as a new font under the new name, as well). Finally, don't forget to update the font cache and open up a new window to see the effect(s).

I usually do an ls -l or ls -lR before changing the font in Konsole so that I can see the effect on the line spacing between the listed filenames. It is a good idea to have filenames that use ascenders (such as l) and descenders (such as 'y') that are above/below each other, so you can make sure that the lines are not too close and that the ascenders and descenders do not intersect. You can do this easily by creating three files: 'agjpqy','mbdfijlt', and 'zgjpqy'. The first letter of the filenames is just to order the files alphabetically as expected. The rest of the letters contain ascenders, descenders, or both. You can see if they intersect and adjust the vertical spacing of the font accordingly to what subjectively pleases you (reminds me of the story of Goldilocks and the Three Bears).

I hope this helps and saves you a proverbial boatload of time and frustration. Users with OCD will appreciate this the most!


Finally I found a solution:

Enter with a live Xubunto usb-disk
Thinking in a probable bug when update from kernel 3.13.0-43 to 3.13.0-74, using gparted, I reformat sdb1 and flag as boot partition
I reboot and re-enter with SuperGrub usb-drive to my sdb2 system with the 3.13.0-74 kernel.
I mount efi running sudo /dev/sdb1 /boot/efi without problems and then install grub using sudo grub-install --bootloader-id xubuntu /dev/sdb
Before reboot, disable quiet splash
While reboot a message say /boot/efi not found appears, but still can boot pressing S. I compare the UUID of fstab and blkid and ofcourse, after remove and recreate boot partition, id was not the same. So, I remove the old line from fstab and reboot.

Voila...it's work!


What is the cni0 interface seen on ifconfig

Edward Collins...  I am duckduckgoing right now for a clear answer for this question. cni0 is the device related to bridge interface in many unix flavors. Its name PROBABLY stands for Computer Network Interfaces.


You have the stream redirection command in the wrong place. Redirections get parsed from right to left, therefore you need to first write the > /tmp/tmp.txt and then the 2>&1. As you wrote it, it first redirects STDOUT to the file and afterwards redirects STDERR to STDOUT.

This is the correct command:

sudo apt-get -qq -y --force-yes remove cowsay > /tmp/tmp.txt 2>&1

But there's a simpler alternative! You don't necessarily need to redirect STDERR into STDOUT to get both written into a file, there's also an operator that directly redirects both STDOUT and STDERR to a file: &>

sudo apt-get -qq -y --force-yes remove cowsay &> /tmp/tmp.txt

Explanation and further info:

> filename redirects STDOUT (stream 1) to filename
2> filename redirects STDERR (stream 2) to filename
&> filename redirects STDOUT and STDERR to filename

Similarly if you want to pipe the output to a second command:

| redirects STDOUT (stream 1) to the second command's STDIN
2| filename redirects STDERR (stream 2) to the second command's STDIN
&| filename redirects STDOUT and STDERR to the second command's STDIN


Installing Ubuntu 14.04 on Dell Inspiron 5548 - Ubuntu works fine with Live USB but after installation run in low resolution/graphics mode

After installing Ubuntu search in system settings for 'Additional Drivers' or something like that. In that panel you can search for missing drivers. Often nVidia or ATI drivers are not open source and their drivers must be manually installed. See that link 'https://help.ubuntu.com/community/BinaryDriverHowto/AMD'


SSH disconnects after OpenVPN connection using PureVpn

is it vital that you can SSH into the machine? if not, try using the console directly:

https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-console-to-access-your-droplet


He we noticed the same problem: Linux 3.2 kernel on Ubuntu 12.04 worked without any problems, Linux 3.13 on Ubuntu 14.02 had the same problem.

I am not sure if this is really a bug in the kernel, to me it looks more like a problem with selective ACKs (SACK). You can workaround the problem by disabling TCP SACK with:

sysctl net.ipv4.tcp_sack=0

This worked around the problem. In our case it was happening that clients with lossy or far-away connections (e.g., different data centers, DSL lines) were no longer be able to download large files. After approx a few megabytes downloading the HTTP connection stalled. TCDump showed a lot of selective ACKS (SACKs) transmitted.

And yes, booting the 12.04 kernel in 14.04 helped, too.

I think we should open an issue in Ubuntu. I was just not sure if the problem only happens because of our network/router hardware, but it seems to generally a problem that TCP SACK is wrong.


You can use scponly shell for the user. It will install two new shells on your system.

Scponly. Allows only scp ans sftp access. But to the entire system.
Scponlyc. The same but also jails a user to the login folder as the top level.

https://www.howtoforge.com/using-scponly-to-allow-scp-sftp-logins-and-disable-ssh-logins-on-debian-squeeze


2 days ago, Canonical closed down Ubuntu One file services. For more info, here is the blog post


Desktop missing after update of graphics driver

I finally get it to work by reinstalling the ubuntu-desktop package. Here is what i did:

Booted into recovery mode with the most recent kernel (something like Ubuntu with Linux 3.2.0-25-generic-pae (recovery mode))
After the recovery mode has finished loading the recovery options, I chose to boot with networking on and then selected Drop to root shell prompt
I entered the command

sudo apt-get install --reinstall ubuntu-desktop

I rebooted

And bingo that did it. Thanks to this article too


Ubuntu - How to disable internal wifi hardware and use USB wifi

Please check to see if two possibly conflicting drivers are loaded:

lsmod | grep rtl

If you find that both rtl8192cu and rtl8xxxu are loaded, then blacklist one:

sudo -i
echo "blacklist rtl8192cu"  >>  /etc/modprobe.d/blacklist.conf
exit

You will also need a change to Network Manager:

sudo nano /etc/NetworkManager/NetworkManager.conf

Add a new section as follows:

[device]
wifi.scan-rand-mac-address=no

Proofread carefully, save and close the text editor.

After making these changes, reboot and let us hear the result.


Why we can't run commands with gnome shortcuts?

You can. You've just shown you can! You can even simplify it a little:

gnome-terminal -x bash -c "sudo apt-get update"

It needs a terminal because it's interactive (because of sudo). If you just want to suppress the password request, you could edit your /etc/sudoers file so it doesn't require a password for apt-get. In my opinion, this isn't great because it might be abused.

For this command there is another option: Aptdaemon. This is what the Software Centre and Update Manager now use for permissions (it uses PolicyKit and it's designed on PackageKit). To update apt, just run:

aptdcon -c

That shouldn't require a password and if it does, it should be able to pop up a PolicyKit box without needing a terminal to be spawned.


You have removed all Windows partitions.

This probably happened because you misunderstood the warning by installation program. It warned you that all data from disk was to be removed. But after using Windows, people do not quite see the difference between disks and partitions.

Ubuntu meant physical disk, not something like "Disk D:".

You can try to restore important data by using testdisk Utility.


I updated to Ubuntu 11.04 and It broke my installation

Let me say it a little bit different: if you dont have the knowledge to help yourself out of such problems, you should NEVER upgrade to a developing version, especially if it is such an early one


Installing Ubuntu 18.04 stuck on boot menu

Finally i have managed to install ubuntu 18.04 on my Thinkpad T580. The issues addressed were as follows;
Rufus 3.1 asked to download some syslinux files, these files were placed on ‘rufus files’ folder; i had to copy them back to my bootable ubuntu usb (already created using rufus).

enabled secure boot - this automatically disabled legacy boot and the only option is ‘uefi’ only.
enabled ‘usb uefi support’
disbaled ‘quick’ boot to diagnostic
while creating the bootable usb using rufus, i chose GPT partition type - same as my hard disk partition. Flashdrive file system remains default- fat32.
also i changed my ‘hp’ flash drive and used ‘sandisk cruzerblade’

This worked flawlessly.


LUKS/clevis fstab: "A start job is running for dev-mapper-encryptedfs.device (5min / no limit)"

RESOLVED!

/etc/fstab entry also needed _netdev, i.e.

/dev/mapper/encryptedfs /home/user/luks/encryptedfs ext4    defaults,x-systemd-device-timeout=10,_netdev   0       0

I think what was happing with the old configuration;

clevis required _netdev
/etc/cryptab entry /dev/mapper/encryptedfs required _netdev
/etc/fstab entry started before _netdev but depeded on /dev/mapper/encryptedfs
i.e. process started before _netdev, waited on _netdev, and prevented _netdev from starting
deadlock


If I understand this correctly, you are trying to configure a 'homebrew' kind of thin-client setup.

Ubuntu server will need to have xorg server running first before being able to start remmina.

Taken from this how-to: https://linuxconfig.org/how-to-run-x-applications-without-a-desktop-or-a-wm

Install your xorg server:

  sudo apt-get install xorg

Test start your application:

  xinit remmina $* -- :0 vt$XDG_VTNR

If that works, then you would want to look at having this start automatically. I would think that the login prompt in the RDP window would be enough security, so I would have the local linux user login automatically, and then start the xorg server with remmina.

Auto login taken from here: How can I get autologin at startup working on Ubuntu Server 16.04.1?

Setup autologin:

  sudo systemctl edit getty@tty1.service

Add this in the editor (Change "myusername" to the username on the machine you want to autologin.):

[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
Type=idle

Auto start application taken from here: Start ubuntu without a desktop environment but start an X application

Auto start remmina:

To start the X session automatically, open your user's .bashrc file nano ~/.bashrc and add something like this to the end of the file:

if [ $(tty) == "/dev/tty1" ]; then
    while true; do xinit remmina $* -- :0 vt$XDG_VTNR; echo "Again [$?]..."; done
fi

This will respawn the X server, so if your application quits for any reason, it will restart the X server automatically.


Best practices for installing Java on secure server running Ubuntu 14.04 LTS

100% security isn't possible. For the 99.9% install Java from the Ubuntu Standard repositories. If you really need Oracle Java, avoid a PPA and install Java manually and you have also 99.9% security.

Using a PPA is always a security risk, a low risk but a risk.

The latest OpenJDK release for Trusty is 7u79-2.5.5-0ubuntu0.14.04.2, to install OpenJDK 8 you need at least Utopic.

The installation of  Java 7 instead of Java 8 isn't a security risk because Java 8 is an update with new features and not a security update.

An if there is a security risk, there would be an update also for Java 7. In any case, for the time in which Trusty will be supported by Canonical.


I was having problems with "click focus" as well, mainly with Chrome (not using system title bar) and Guake and what did the trick for me was setting from dconf-editor, org.gnome.desktop.wm.preferences values as follows:

auto-rise: on
focus-mode: click
focus-new-windows: strict (*)
mouse-button-modifier: default

(*) It seems to affect the focus behaviour of windows with no title bar (such as Google Chrome and Guake).

Hope it helps.

Edit: Ubuntu 16.04 w/ Gnome-shell 3.18.4


Why does the music in the game "Oh, Deer!" work in 16.04 but not 18.04?

so, I found a 'fix' for this issue.

I have an Optimus laptop. It's a bug after installing Nvidia drivers on Ubuntu. When you install nvidia prime for the first time and then reboot, Nvidia is the default profile. Then if you want to play "Oh, Deer!", the music suddenly stops.

The fix is, change your nvidia profile to Intel, logout, change it back to Nvidia, logout and just play the game again, then the bug goes away. The music is working flawlessly now.


How to install Spanish language capabilities to swap with English

For Libre office, you can install a spell-checker with:

sudo apt-get install hunspell-es


Visit Ubuntu Official Website (click here) and download the Ubuntu Touch for Android.

Note- In Order to Install Ubuntu Touch for Android, you need to have Ubuntu Installed onto your PC to Root the device with Ubuntu Touch OS.

Before you go any further, check if your device satisfies the laid down minimum requirements for Ubuntu Touch.

Should have a min of 1Gb RAM
Device must have dual core processor or greater.


Thers is a very easy way to do so for any and all programs.

Just copy the below command and paste in a new file naming somthing.sh

gnome-desktop-item-edit --create-new ~/Desktop

Now edit properties of the file and make it executable.
And thats it you are done with your custom-desktop-launcher-maker

Now double click on the file and click onRun in terminal on prompt. You will be greeted with a window similar to this

Enter the command for the application you want to make a launcher in the command field. you can fill other as to your desire. You can also choose your icon. and after finishing hit ok. thats it!

SEE YOUR DESKTOP

Hope it helps.


Tkinter on Ubuntu 14.04 seems not to work

Just install the tkinter

sudo apt-get install python-tk

or if you choose python3

sudo apt-get install python3-tk

http://tkinter.unpythonic.net/wiki/How_to_install_Tkinter


How do I install and configure a DHCP server?

The first thing You need to do is install the packages we need.

Open up a terminal and type:

sudo apt-get install isc-dhcp-server

There are two main files /etc/default/isc-dhcp-server and /etc/dhcp/dhcpd.conf which we will need to configure so lets take the first.

Open up a terminal and using your favorite text editor type:

sudo vim /etc/default/isc-dhcp-server

You should get the following:

#Defaults for dhcp initscript
#sourced by /etc/init.d/dhcp
#installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
#This is a POSIX shell fragment
#
#On what interfaces should the DHCP server (dhcpd) serve DHCP requests"
#Separate multiple interfaces with spaces, e.g. “eth0 eth1".
INTERFACES="eth0"

Replace eth0 above with the name of your network interface that you want the server to lease addresses on. Onto the next file.

Open up a terminal and type:

sudo vim /etc/dhcp/dhcpd.conf

which should give you the output below.

#
#Sample configuration file for ISC dhcpd for Debian
#
#Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
#configuration file instead of this file.
#
#
....
option domain-name “example.org”;
option domain-name-servers ns1.example.org, ns2.example.org;
option domain-name “comtech.com”;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.150 10.0.0.253;
option routers 10.0.0.2;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.254;
option domain-name-servers 10.0.0.1, 10.0.0.2;
option ntp-servers 10.0.0.1;
option netbios-name-servers 10.0.0.1;
option netbios-node-type 8;
 ......
}

This needs a little bit of explaining.

  Adjust your settings according to your network requirements.
  The option domain name is your dns zone name. For example mine is set to comtech.com.
  Range should be the range of ip addresses that you want the server to give out to clients.

Now restart the dhcp service by typing:

sudo service isc-dhcp-server restart

Thats it!! Your dhcp server should be running, however it is best to check. Open up a terminal and type:

sudo netstat -uap

which will show you something like the following (look for dhcpd, nmbd, and named):

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address State PID/Program name
udp        0      0 10.0.0.255:netbios-dgm  *:*                   1016/nmbd
udp        0      0 10.0.0.255:netbios-ns   *:*                   1016/nmbd
udp        0      0 *:bootps                *:*                   4525/dhcpd
udp        0      0 *:netbios-dgm           *:*                   1016/nmbd
udp        0      0 *:netbios-ns            *:*                   1016/nmbd
udp        0      0 chris-desktop:domain    *:*                   1273/named
udp        0      0 chris-desktop.lo:domain *:*                   1273/named
udp        0      0 chris-deskt:netbios-dgm *:*                   1016/nmbd
udp        0      0 chris-deskto:netbios-ns *:*                   1016/nmbd
udp6       0      0 [::]:domain             [::]:*                1273/named


Why is my Ubuntu share seen as a printer in Windows 7?

Samba server by default, shows a printers/print$ resources to anyone that browse the server shares. Samba actually doesn't know if cups, or other print server has actually a printer, but still show the shares. Actually, is quite weird that Windows 7 try to install this "printer" without asking you first, or without you asking Windows do so.

Since this is a Ubuntu site, I'll tell you how to resolve this from the Ubuntu/Samba perspective:

In your /etc/samba/smb.conf file, you will see entries like this:

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

What you have to do is, comment out or delete this lines. For commenting out just add a # or ; at the start of the line. After modifying this line is recommendable to run testparm so you make sure that you didn't mess up.


How to make my Windows software run on Linux?

If Wine doesn't work, try a VM, like VirtualBox


Check security mode of connected Wi-Fi network

I got it! :)

sudo wpa_cli status

command gives me information exactly that I want.

Selected interface 'wlan0'
bssid=80:1f:72:95:d2:b2
ssid=whatever
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=TKIP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.25.27.111
address=a4:4f:31:15:5f:44
uuid=6099d6ff-4b7d-538a-9e69-3479e250e401

Output of that command is easy to grep.


ubuntu 16.04 doesn't recognise wireless card after a while

Try the following first:

sudo rmmod -f iwl3945
sudo modprobe iwl3945 disable_hw_scan=0

If it solves the problem, run the following to make it permanent:

echo "options iwl3945 disable_hw_scan=0" | sudo tee /etc/modprobe.d/iwl3945.conf


How does Linux pick which modules to load?

AFAIK, modprobe loads only same running kernel version modules, ie from:

/lib/modules/<kerne-version>/

modinfo shows the full path of the SUPPOSED module to be run by current kernel (not the one which currently running really). So you can't relay on it. I'm using Ubuntu 14.04, Example:

$ modinfo e1000e
filename:       /lib/modules/3.13.0-38-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
version:        2.3.2-k
license:        GPL
description:    Intel(R) PRO/1000 Network Driver
author:         Intel Corporation, <linux.nics@intel.com>
srcversion:     FAFC167239309C03F11F440
alias:          pci:v00008086d000015A3sv*sd*bc*sc*i*
alias:          pci:v00008086d000015A2sv*sd*bc*sc*i*
alias:          pci:v00008086d000015A1sv*sd*bc*sc*i*
[...]
alias:          pci:v00008086d000010A4sv*sd*bc*sc*i*
alias:          pci:v00008086d0000105Fsv*sd*bc*sc*i*
alias:          pci:v00008086d0000105Esv*sd*bc*sc*i*
depends:        ptp
intree:         Y
vermagic:       3.13.0-38-generic SMP mod_unload modversions
signer:         Magrathea: Glacier signing key
sig_key:        2A:DE:ED:EA:6C:BA:0B:95:A6:22:22:40:71:1F:49:C8:72:07:BB:F6
sig_hashalgo:   sha512
parm:           debug:Debug level (0=none,...,16=all) (int)
parm:           copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm:           TxIntDelay:Transmit Interrupt Delay (array of int)
parm:           TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm:           RxIntDelay:Receive Interrupt Delay (array of int)
parm:           RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm:           InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm:           IntMode:Interrupt Mode (array of int)
parm:           SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm:           KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)
parm:           WriteProtectNVM:Write-protect NVM [WARNING: disabling this can lead to corrupted NVM] (array of int)
parm:           CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)

If it doesn't show it try: modinfo -n e1000e or modinfo --filename e1000e

/lib/modules/3.13.0-38-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko

It is possible to use insmod to load a specific module by full path. But this could be harmful and it could damage hardware. However, in most cases kernel will apply strict checks, raising some errors like (notice 3.13.0-37-generic loaded successfull):

$ sudo insmod /lib/modules/3.11.0-24-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
insmod: ERROR: could not insert module /lib/modules/3.11.0-24-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko: Invalid module format
$ sudo insmod /lib/modules/3.13.0-30-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
insmod: ERROR: could not insert module /lib/modules/3.13.0-30-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko: Invalid module format
$ sudo insmod /lib/modules/3.13.0-36-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
insmod: ERROR: could not insert module /lib/modules/3.13.0-36-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko: Invalid parameters
$ sudo insmod /lib/modules/3.13.0-37-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
$ sudo rmmod /lib/modules/3.13.0-37-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
$ sudo insmod /lib/modules/3.13.0-38-lowlatency/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
insmod: ERROR: could not insert module /lib/modules/3.13.0-38-lowlatency/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko: Invalid module format

I think sysfs shows the actual loaded module:

$ more /sys/module/e1000e/version
2.3.2-k
$ more /sys/module/e1000e/srcversion
FAFC167239309C03F11F440

I couldn't check it as 3.13.0-37-generic & 3.13.0-38-generic in my case have same versions.

Note:

Just to be complete, dynamically loaded kernel modules are handled by dkms, loaded from:

/var/lib/dkms/<driver-name>/<driver-last-version>/<kernel-version>/<kernel-arch>/module/


Ubuntu 12.04 Fullscreen Video Dual Screen

so the issue  I am having the newest flash plugin is causing the issue which version 11.3

That being said what you need to do is go to chrome://plugins in your browser and disable all the flash plugin and re-enable the previous version which is 11.2


Sluggish performance in ubuntu terminal?

Does your problem reproduce under different conditions?

Can you reproduce the problem under different conditions and benchmark the time it takes to perform various operations (ex: time cat largefile.txt). Example scenarios:

using GNU screen instead of tmux;
without using a terminal multiplexor;
using another terminal emulator (tilda, terminator, rxvt or xterm for example);
using a different font such as Envy Code R, DejaVu Mono or Droid Sans Mono;

I personally like tilda quite a lot as a terminal emulator (fullscreen and all) and don't experience any kind of performance problems. You can bind it to a hotkey like Ctrl + `, similar to the terminal in Quake.

I'm sure you can get a lot more scientific with SystemTap or Valgrind, but depends how much effort you want to invest in this...


Right Click at the Desktop, Unlock Widgets. Or Lock Widgets, and then Unlock Widgets back again.

Then Pull not by the icon itself but by its little horizontal panel.

See at the picture:


If you have multiple disk you may have to change in your bios the default one to boot in.
The disk you have selected has only BCD (windows boot chain loader) so it uses that. Btw linux is not installed on windows bootchainloader, if you want to you can try to use EasyBCD (http://www.majorgeeks.com/files/details/easybcd.html) to edit this.

Otherwise you may try to select a different disk (the one you have installed linux on), so you will boot on grub2 winch has an automatically add entry named "Windows".


Where to find the config-file for ProFTP?

Try /etc/proftpd/proftpd.conf - see the Ubuntu Community documentation on ProFTPD.


I've been battling the same issue for quite some time now and no answer in sight.

I did however install tlp and powertop and I've noticed a funny thing:

When you run sudo powertop --auto-tune and then sudo powertop for me it shows nvidia card to 0%.

Later Edit *

It is all related to tunables in powertop more specifically "Sata link power management" which TLP does not activate by default. When that is set the card seems to power off.


Need to change default boot order. Instead of Ubuntu 21.04 to Windows 7

You can convert an existing installation of Ubuntu from legacy to UEFI and vice versa.
You need to reinstall GRUB to the device hosting grub, in my case this is /dev/nvme0n1
Legacy to UEFI
sudo grub-install --boot-directory=/boot --bootloader-id=ubuntu  --target=x86_64-efi --efi-directory=/boot/efi  /dev/nvme0n1

UEFI to Legacy
sudo grub-install --boot-directory=/boot --bootloader-id=ubuntu /dev/nvme0n1

Then update grub sudo update-grub
Now you can list grub entries by using this command:
grep -E "^(menuentry|submenu)" /boot/grub/grub.cfg | cut -d"'" -f2 | nl -v0

In my case it will show the following
     0  Ubuntu
     1  Advanced Options for Ubuntu
     2  Windows Boot Manager (sur /dev/nvme1n1p2)
     3  UEFI Firmware Settings

After you have to edit /etc/default/grub and set the corresponding number  to GRUB_DEFAULT=0.
In my case Windows is entry n°2 so it will be GRUB_DEFAULT=2
Then you have to use sudo update-grub to update your grub, and now your computer will always boot windows by default.
Cheers


Grant different levels of access to a file for three different users

The permissions tag wiki is a nice short reference on classic Linux file permissions.

As a brief demonstration of the simplest usage of these permissions on files only, let's create a file, which I am going to call shiny

touch shiny

let's take a look at the permissions of the file we just created

$ ls -l shiny
-rw-rw-r-- 1 zanna zanna 0 Feb 26 21:54 shiny

The string at the start shows the permissions in sets of three. After the permissions string, there's a number that isn't interesting to us, then the word zanna repeated twice. zanna is my username. Since I created the file, I am the owner, and it belongs to my group too.

r = read w = write, x = execute - = no permission

Looking at shiny now we can see it is a regular file (- at the start) and the owner, zanna, may read and write to the file. Members of the group zanna may also read and write to the file, and any other user may read, but not write. No user has execute permission for this file.

The stat command gives much more detail about file metadata, including permissions, and we can format its output in various ways. For example, my favourite way:

$ stat -c "%n %a" shiny
shiny 664

This shows us that the file has octal permissions 664 - read-write for owner and group, and read-only for others.

On my system I have created three user accounts, zanna, pixie and mermaid

Let's change the permissions of shiny to grant different levels of access to each user.

First, we'll create a new group (we could just add a user to the zanna group, but I would rather not do that, as that would give them access to lots of my personal files)

sudo addgroup unicorns

And now we'll use the unicorns group to control access, by making this group own shiny:

chown :unicorns shiny

Please do not forget the colon : in this command, as this allows us to change only the group, and always type carefully when using chown (change owner) or chmod (change mode), especially with sudo.

Now make one user a member of this group:

sudo adduser pixie unicorns

Now pixie is a unicorn a member of the unicorns group.

Now we just need to change the file mode. There are two ways to do this, the octal way, which I prefer:

chmod 764 shiny

and the symbolic way:

chmod u+x shiny

I trust you to read the chmod wiki to learn more about these. After running one of these commands, you can check again with stat or ls -l.

$ ls -l shiny
-rwxrw-r-- 1 zanna unicorns 0 Feb 26 21:54 shiny

Now:

zanna has read, write and execute permission because she is the owner
pixie has read and write permission because she is in the group unicorns
mermaid has read permission because shiny is readable to all.


You can use Brasero for this by going to tools->cover editor.

Optionally you can install glabels 3.x from source (it's available on the glabels home page), or try making something custom in the GIMP.

Unfortunately none of these pull in data from the CDs afaik. You can report this as a wishlist bug against brasero, however.


Note: The PPA is no longer current. See the edit below for current instructions.

The install from the PPA for 18.04 should "just work" TM. ;)

That's where I installed mine from recently (before I switched to a newer version that isn't in the PPA yet.) I'm running kubuntu 18.04 which is essentially the same as your environment - except with KDE.

However, that's not where you got yours (even though you were probably trying to.)

The current version is based on Python3 and those messages show Python2.7. That means you have a much older version.

Since, you are installing for the first time, you don't have to worry about saving your phrases and scripts because you don't have any yet.

For others who find this later, be sure to copy everything - including hidden files under

$HOME/.config/autokey

to another location before following these steps.That's where all your phrases and scripts are stored by default and purging AutoKey will erase them. You don't want that to happen!

After a successful (re)install, you can copy them back where they were before under $HOME/.config/autokey/data being sure to copy the hidden files too.

Scripts and phrases stored outside of the autokey directory sub-tree will not be affected by a purge, but you may have to convince AutoKey to look at them again by adding empty folders with the correct paths/names to AutoKey and then putting the scripts and phrases back in those folders. Hopefully this will be corrected soon.

The first thing to do is open a terminal and uninstall AutoKey completely.

sudo apt purge autokey-common autokey-qt autokey-gtk

I'm including both front ends because you mention you tried them both. Usually you just install the one that best matches your environment and that pulls in the common package automatically.

Next, you install our 18.04 PPA and update your package lists.
After you install a new software source like a PPA, your system has to update its package indexes or it still won't see the newer version(s) which the PPA or other source provides.

sudo add-apt-repository ppa:sporkwitch/autokey
sudo apt update

(I just tried this on my system and it doesn't seem to hurt anything if you run it when the PPA is already installed.)

Next, install AutoKey.

sudo apt install autokey-gtk

If you want to, you can also install autokey-qt in the same command, but it's really not necessary and will pull in a ton of QT libraries which you don't need unless you need other QT applications anyway.

Swap the two front ends in the above command and paragraph if you prefer the QT version.

The two versions are almost identical, but since they're different code bases, they occasionally show small differences and different bugs. Installing either of them will cause autokey-common to be installed as a dependency. That's the code that does all the actual work and both front ends use the same version.

Once this is done, you should have an entry for AutoKey in your program launcher.
In KDE, it's in the Utilities section. It should be somewhere similar under Gnome or in whatever desktop environment you are running. If you don't immediately find it, then try searching for it if your Launcher supports that function.

Because you've had difficulties in the recent past, we're going to launch AutoKey from a terminal the first time to see if there are any error messages which would be invisible in the GUI.

In the terminal type

autokey-gtk &

If all goes well, there may be a few messages or nothing followed by something like

[1] 10825

That's AutoKey's process ID (pid). It will be a different number every time. It shows up because we ended the command with an ampersand which causes AutoKey to be launched in the background. This way it won't tie up your terminal. You'll be able to type other commands if you want to.

If all went well, you should see an A icon in your panel. That tells you AutoKey is running and lets you access several of its functions.

Now, left click on the A icon in your panel. This should launch the AutoKey Main window.

In AutoKey's main window, left click on Help on the top menu bar and then select AutoKey. This will launch a pop-up window which displays the AutoKey version and says whether you're running the GTK or QT front end.

The version you should now see should be 0.95.1 or greater.

Close the pop-up and open another application like a text editor (gedit is probably installed on your system). We'll use this as a safe place to expand some sample phrases to make sure everything is working correctly. Try to size and position both windows so you can see them both at the same time.

On the left side of the main AutoKey window, you should see a panel titled Name.
AutoKey comes with sample scripts and phrases preinstalled. They're listed in this panel in a file tree.

I deleted my samples long ago, so I'm going from memory for this part.

You should see a folder named Sample Phrases click on it to see the sample phrases. Pick one (no clicking for this) and scroll the pane to the left.

The next two columns should become visible. These list the trigger phrase and hotkey which is associated with that phrase (not all will have both). Note what the hotkey is for the phrase you picked, Pick a different phrase if the one you picked doesn't have a hotkey assigned.

Click somewhere in the edit space of the text editor (the place where you would type the code or text of a document) then press the hotkey combination that was listed with your phrase. The text of the phrase should now appear as text in the edit window.

Do the same thing again, but this time type the trigger phrase for your phrase or another one and then type a white space character such as space, tab, or Enter.
The text of the associated phrase should now appear as text in the edit window.

If you get this far, everything works and you can start exploring all AutoKey's other features and capabilities. (We're done.)

If it doesn't work, then we have to take it step by step, doing things in a terminal so we can see if anything complains along the way.

We could do that here, but it's not really Q&A material, so it would probably be better if you come on over to our email support list and I or someone else can take you through it.

AutoKey is kind of like the TV remote control. When it was new (I've been around awhile ;) ), people didn't think they'd ever need it for anything. Now people get divorced over who gets to use it!

Once you get used to it, it will be hard to do without it.

Edit ----------------

The above PPA is very old now and we do not have access to update it, so please follow our installation instructions.

If you have any issues or questions, we're happy to help on our support list.


2017-11-15 Update
It seems like 4.3 is now officially dead and the following instructions are no longer going to install a working version of skype.
RIP Skype 4.3

Original Post

I have both the old (4.3) and new skype (5.4) (aka "skype for linux beta") installed and they both work. The new one tends to have issues with video so I still use the old one mainly.
I believe the old way of installing should still work. Worked for me at least.

Edit after discovering skype no longer exists in ubuntu partner apt repo:

It seems that it is still available from a download link, may not be there for long though.

cd ~/Downloads
sudo dpkg --add-architecture i386
sudo apt-get update
wget download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb
sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb
sudo apt-get install -f

I just tried on a work pc running Ubuntu 16.04 and it installed fine. Ignore the errors that may appear after running sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb until you run sudo apt-get install -f (which fixes the dependency errors)

Credit goes to this question


Try Ubuntu MATE 14.04 LTS.

Download it here


How can a share storage between Linux, Windows, and Mac

I use Samba for sharing files between Windows and my Linux machines, I can't speak to OSX, however.


try to run this command:

$ sudo apt-get i
$ sudo apt-get install libbison-dev bison

Then, try again.


Cannot connect to wireless network with a Broadcom BCM4311 802.11b/g WLAN card

OK, I will try to keep the terminal to a minimum because you are new to linux, but trust me it is a wonderful tool once you get used to it.

First we need to determine if Ubuntu 'sees' your wireless card. This is kind of like drivers in windows, except they are called kernel modules. Open a terminal (either by the unity menu or by pressing CTRL+ALT+T) and type this:

username@computer:~$ sudo lspci -v
[sudo] password for username: <type your password here>

Then copy all the output and paste it to a pastebin so that we can see if the correct kernel module is being used.

If it turns out to be the wrong one, you will either need to check out which one to insert (insmod) or check out a tool to 'wrap' the windows driver into a linux compatible version (ndiswrapper).


How can I resolve the disabled Bluetooth on resume/power issue on Lenovo laptops?

I have a Lenovo T410 with Ubuntu 10.10.  I just tested it and my bluetooth starts successfully on a reboot and on resuming from standby.  For reference, here's what my bluetooth adapter is called in the lsusb output:
0a5c:217f Broadcom Corp. Bluetooth Controller


There may be two cases:

You system is up to date.
You may have unchecked the options to update from Update Manager->Settings

So, you should go for 2nd option to be sure that everything is alright.

Open Update Manager
Click Settings... button ( it may ask your password ).
Select(tick) all the Check Boxes on the tabs Ubuntu Software, Other Software and Update. On Update tab Chose Automatically check for updates: Daily. Then Close
It should scan the available updates and will list all. Click Check to scan again. Install Updates would update your system.

Hope it works for you.


I've discovered the problem and have found the solution (See Below).

The Problem

A Windows directory needs to exist:

C:\Users\USERNAME\appdata\LocalLow\Sun

On your box, you have the following directory structure, most likely:

/home/USERNAME/.wine/drive_c/users/USERNAME/

*Where USERNAME is your actual user name

The Solution:

Make the subdirectories

(Point and Click Method)

Open Home Folder
Open .wine
Open drive_c
Open users
Create Folder appdata
Open appdata
Create Folder LocalLow
Open LocalLow
Create Folder Sun

(Console/Terminal)

cd /home/`whoami`/.wine/drive_c/users/`whoami`/
mkdir -p appdata/LocalLow/Sun

*NOTE: appdata/LocalLow/Sun IS case sensitive, so type it exactly as is shown
Double click on the JRE executable (I used 32 bit, but I believe 64 bit works too. Be sure to check winehq's website and your version of Ubuntu to be sure)
Install away :)

Importance/Relevance

As there are some programs that are Windows specific, and only partially use Java, I found that I still needed a solution to this problem. Therefore, I have provided the aforementioned procedure to solve the problem.

Reference

JAVA won't install - Wrapper.CreateFile failed with error 3 | Windows 7 Forums


I think i deleted some important applications , i cannot see them in the applications menu in top left corner

You're lucky, apt-get  / apt writes a log at /var/log/apt/term.log.

So you can find all your removed packages and reinstall them.

As you pressed Ctrl+Z, apt-get is a stopped process in the brackground. So, frst of all, you should properly end apt-get. Simply run fg and wait until apt-get is done (Yes that will finish removing the packages, but we will be able to get them back).

For others that might find this answer: If you pressed Ctrl+C instead, you might need to run sudo apt install -f to fix unfinished removals etc.

Then, to get back your packages:

Find out the exact log time

# If it just happened:
apt_date=$(sudo grep 'Log started' /var/log/apt/term.log | tail -n1)

# or find manually ...
sudo less /var/log/apt/term.log
# ... and set the result as variable, we need in the next step.
apt_date="Log started: 2019-08-26  16:26:27"

Get all removed packages and reinstall them:

# Get all removed packages for this date and reinstall them:
sudo sed -n "/${apt_date}/,/Log ended/p" /var/log/apt/term.log \
| awk '/^Removing/{print $2}' \
| xargs -r sudo apt install


How to recover data I lost while installing Ubuntu 18.01?

First make sure that you don't damage the data any further by using the system on it - so turn of your PC and either find another PC or another disk to run the system on, and with enough space to recover your data.

Next you read the tutorials for TestDisk. This program can be used to recover data from NTFS drives. If you are lucky, most of your data is still there.


yes, there is. you can get bios info from smbios, and dmidecode.
dmidecode will tell you everything about your bios,  and smbios utilities will tell you specific sub components reading from the smbios table.

some examples for smbios-commands:

smbios-battery-ctl      smbios-rbu-bios-update  smbios-token-ctl
smbios-get-ut-data      smbios-state-byte-ctl   smbios-upflag-ctl
smbios-keyboard-ctl     smbios-sys-info         smbios-wakeup-ctl
smbios-lcd-brightness   smbios-sys-info-lite    smbios-wireless-ctl
smbios-passwd           smbios-thermal-ctl

did you also seach for ACPI when searching for power management?


Same issue on Kubuntu 15.04, Realtek ALC282.

Here is a workaround:

Suspend/resume: no sound threw the speaker
Mute the audio with the keyboard (no GUI) : Fn + Mute
Increase the audio  with the keyboard (no GUI) : Fn + VolumeUp
Sound is back!

The bug has been reported :
bugs.launchpad.net and bugzilla.kernel.org


how to delete a user from ubuntu with the same uid of myuser

That's the same user. You can use vipw and vipw -s commands to remove the line that points to the Uclone user. Vipw command use vi as default editor, so you can replace it with some easier, like for example is nano:

sudo EDITOR=nano vipw


useradd doesn't allow the user to log on

This might not be working because your password bar is not encrypted. The man page for useradd states:

  The encrypted password, as returned by crypt(3).

This question on Stack Overflow has a few answers which might help you with your script, as the question asks about adding a user along with a password.

As the accepted answer was not updated on that question based on user comments, I will reproduce the solution here:

echo -e "bar\nbar\n" | passwd fu

That command will change the password for a user fu to bar. The user needs to have been created using useradd, of course.

Another solution would be to use chpasswd, as the second highest voted answer suggests:

echo fu:bar | chpasswd

I have tested both of these solutions, and they both work.

Edited to remove adduser info and indicate which suggestions from linked question actually work.


How do I install a new version on top of an old version?

Boot Ubuntu 14.04 live disk  then format /dev/sda1 and install Ubuntu on the same partition by choosing something else option.

After the installation completed, run boot-repair.


Get in touch with the Ubuntu Basque Translators team.


I am also using Intel Wireless 3160 with Ubuntu 16.04.

Intel CPU microcode updates are not meant to affect the wireless device. It will improve and fix issues with processing behavior, and is recommended.

This problem is usually replicated after resuming from sleep/suspend.
OK. First things first. Add SUSPEND_MODULES="iwlwifi" to the empty file /etc/pm/config.d/config. You can use nano: sudo nano /etc/pm/config.d/config. This has prevented loss of connection after resuming. Thanks to this thread.

Next, edit/create the file /etc/systemd/system/wifi-resume.service to add the following script (couldn't paste it here). Thanks to Joakim Koed. Save the file. Now run sudo systemctl enable wifi-resume.service to activate the service.

This will automate the sudo systemctl restart network-manager.service and display the correct wireless state after sleep/suspend, also showing available connections. During my tests, I was even able to switch connections without issues.

EDIT: Although it is now less frequent, wireless connection is still being affected by this issue.


Ubuntu 12.04.5 LTS screen blank after regular system update - NOMODESET boot option doesn't resolve?

You could try this from tyy:

    sudo apt-get install --reinstall ubuntu-desktop
    sudo bash
    grub-mkrescue
    update-grub
    update-grub2
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    sudo apt-get install -f

and it might work fine this way.


How to get Linksys WUSB54Gv2 working with Ubuntu 12.04.5 (32-bit)

Try To Install Ubuntu 14.04.1 It has got new kernel with more drivers, So That might work. Else Look for instruction for updating the kernel in ubuntu 12.04.5.


Making Flash work on Firefox Quantum 57 (PPAPI, NPAPI, pepper), Ubuntu 16.04

I cannot make sense of your observations that adobe-flashplugin works without browser-plugin-freshplayer-pepperflash but flashplugin-installer does not. adobe-flashplugin and flashplugin-installer provide the very same NPAPI plugin. Maybe you simply forgot to restart your browser or something...

This page provides a concise summary on the topic, including an attempt to explain when browser-plugin-freshplayer-pepperflash may be a useful.


Unable to install AMD Radeon HD 5450 on Ubuntu13.04 due to no display

I hope this helps, it worked for me on my HP laptop with ATI Raedon Graphics.

Install the below packages

  sudo apt-get install build-essential cdbs fakeroot dh-make debhelper
  debconf libstdc++6   dkms libqtgui4 wget execstack libelfg0
  dh-modaliases linux-headers-generic xserver-xorg-core libgcc1

Additional packages for 64bit architectures (has to be installaed along with above packages):

sudo apt-get install ia32-libs lib32gcc1 libc6-i386

Remove old fglrx drivers

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

sudo rm /etc/X11/xorg.conf

  sudo apt-get install --reinstall xserver-xorg-core
  xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri
  libgl1-mesa-glx:i386 libgl1-mesa-dri:i386

sudo dpkg-reconfigure xserver-xorg

Then Reboot

sudo reboot

Downloading and building ati driver package

  Download the driver from Official ATI Driver

cd Downloads
Now extract the ati driver in the current folder i.e. Downloads folder, then
sudo sh ./amd-*.run --buildpkg Ubuntu/raring
sudo dpkg -i fglrx*.deb
sudo aticonfig --initial -f
sudo reboot

If compiz/unity is not starting then, switch to terminal and type the below commands:

cd ~/.config
rm -rf compiz-1 dconf gnome-session

It worked for me, I hope it works for you as well

Test :
You can test, whether the drivers installed by issuing following command on terminal

fglrxinfo

Testing Speed

fgl_glxgears

Uninistall

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo rm /etc/X11/xorg.conf
sudo apt-get install --reinstall xserver-xorg-core xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-glx:i386 libgl1-mesa-dri:i386
sudo dpkg-reconfigure xserver-xorg
sudo reboot


How can I install a free VPN for Ubuntu in a VM?

The VPN software is free (like OpenVPN), but the providers worth trusting are not.

You're using a VPN for privacy reasons, so if you're not paying the provider for the service, who is? What interested would someone else have for paying them? The provider could be passing your data onto someone else, which goes against the reason you're using a VPN in the first place.

A Google search will uncover "free vpn" providers quickly. Like anything, do your research to make sure that you're comfortable with who you choose.

I've not given any personal recommendations as I wouldn't use one myself for the reasons I've just mentioned.


How do I know if my serial adapter card is working?

The way you've got Ubuntu setup is correct, the serial port at /dev/ttyUSB0 is the right serial port. You can test the port by piping some data into it and if it doesn't return an error, then it's working as a serial port:

ls > /dev/ttyUSB0

Now to get it working you may have to find out what the right settings are. Or you may have to switch on serial port communication on your cisco router (it's not always switched on).

If you want you can use ttywatch to do some serial port debugging. But it might be beyond your scope.


How do I open Chromium in incognito mode by default?

I assume you mean the Chromium Web Browser.

You have to change one line in the chromium-browser.desktop file. The best is to do that locally:

Copy the file from /usr/share/applications to /home/yourname/.local/share/applications
Open the file with gedit (open gedit and drag the local desktop file on to the gedit window)
Find the first line in the file that begins with Exec=
Replace the line by Exec=chromium-browser --incognito

a few remarks:

The folder /home/yourname/.local/share/applications is a hidden folder by default. To make it visibe: go to your home folder, type ctrl + h, the .local folder will appear.
You can copy the chromium-browser.desktop file to your local folder with the command: cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications/chromium-browser.desktop
You might have to log out and back in before the changes to take effect.


How can I add space from unallocated to extended?

Using Gparted from a Live CD:

Select the swap partition
In the Partition menu, click on "swapoff"
Delete the swap partition
Recreate swap at the end of Unallocated (faster than moving it)

Optional: Turn swap back on
Resize sda5 as desired


Why is my /etc/network/interfaces not connecting to my WPA wireless network?

In /etc/network/interfaces, the declaration wpa-psk expects the password in clear text, not a 64-bit scrambled version. I suggest you amend your file to:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
wpa-essid myssid
wpa-psk mypasscode

Restart the interface:

sudo ifdown wlan0 && sudo ifup -v wlan0

The '-v' for verbose should produce some output indicating what's happening behind the scenes.

NOTE: "auto lo iface wlan0 inet dhcp" is incorrect. See my suggestion above.


/etc/resolv.conf" E166: Can't open linked file for writing

This is an assumption that you're asking about a vim error message (you didn't specify where you got the error message).

Vim documentation reports E166 as

E166  Can't open linked file for writing

  You are trying to write to a file which can't be overwritten, and the
  file is a link (either a hard link or a symbolic link).  Writing might
  still be possible if the directory that contains the link or the file
  is writable, but Vim now doesn't know if you want to delete the link
  and write the file in its place, or if you want to delete the file
  itself and write the new file in its place.  If you really want to
  write the file under this name, you have to manually delete the link
  or the file, or change the permissions so that Vim can overwrite.

http://vimdoc.sourceforge.net/htmldoc/message.html

guiverc@d960-ubu2:~$   stat /etc/resolv.conf
  File: /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
  Size: 39          Blocks: 0          IO Block: 4096   symbolic link
Device: 801h/2049d  Inode: 130757      Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-09-03 12:34:28.189468370 +1000
Modify: 2017-11-16 12:32:04.777265492 +1100
Change: 2017-11-16 12:32:04.777265492 +1100

A stat of my /etc/resolv.conf confirms the file is a link.

I can happily write to that file (using sudo) so you have an issue beyond what you've provided.


How to create udev event that runs a command for mx510 usb mouse?

I managed to write a working udev rule.

# udev.rules file for Logitech mouse control using lomoco
#

ACTION != "add", GOTO="lomoco_end"
SUBSYSTEM == "usb", ENV{DEVTYPE}=="usb_device", GOTO="lomoco_start"
SUBSYSTEM != "usb_device", GOTO="lomoco_end"

LABEL="lomoco_start"

# "M-BS81A",  "MX510 Optical Mouse"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c01d", RUN+="/usr/bin/lomoco -8"

LABEL="lomoco_end"