When ubuntu is installed it overites the bootloader and installs GRUB (the software that offers you the OS selection at boot)

First you need to reinstall ubuntu to have a working OS which you can make the changes on.

To add windows 7 to the GRUB menu:

First, you will need to know which of the NTFS partitions. You can test by mounting each and see what they contain. Generally you're looking for whatever contains Windows/ .

Once you know which partition that is (i.e., /dev/sda5), reduce that number by one. That number will be replaced with the "4" in "rootnoverify (hd0,4)"

Then enter this into /boot/grub/grub.conf [if that doesn't show up, /boot/grub/menu.lst]

title Windows
rootnoverify (hd0,4)
makeactive
chainloader +1


How can I import data from Outlook to Thunderbird?

Thunderbird can automatically import emails etc. from Outlook using Import in the Tools menu -- however, that only works when you're running Thunderbird on Windows.

You could export and import the data manually, but it will probably be easier to install Thunderbird on Windows, used the automatic import and then copy your profile folder to your Thunderbird installation on Linux.

Make sure to check if Thunderbird has imported everything you need before you delete your windows installation, as I'm not quite sure if it will be able to import filters and appointments.


The process involves two steps:

Download the needed files from here or any other location.
Then make file executable with:

chmod +x VNC-Viewer-6.0.2-Linux-x64

Then move it to say your home directory and run it from there, or any other location:

mv VNC-Viewer-6.0.2-Linux-x64 ~/

./VNC-Viewer-6.0.2-Linux-x64

Note: You don't install you just run it.

Source:

https://www.realvnc.com/download/viewer/linux/


utorrent installation - local host page doesn't work

you have to put the settings path after that command, choose the directory which you installed utserver in . the command will be like this :

utserver -settingspath /path/to/utserver/directory/

the command for my instalation is

utserver -settingspath /opt/utorrent-server-alpha-v3_3/

you can also run utserver as a daemon so it can run in the background and  not closing when you close terminal by adding "-daemon" to the command

  utserver -daemon -settingspath /opt/utorrent-server-alpha-v3_3/

browse http://localhost:8080/gui/ or replace "localhost" with your server's IP , the default login is "admin" with no password.


Promiscuous mode not working with ubuntu and wireshark

The question is not about Ubuntu, but what you're trying is technically not a way to sniff your LAN traffic.

You should perform a man-in-the-middle attack to draw all the traffic to your wire then use sniffing in promiscuous mode to capture all the data.

Take a look at this blog for more info.


How do I make a Matlab launcher for Unity?

Garrett's answer almost works for me, but instead I have to use

StartupWMClass=sun-awt-X11-XFramePeer

This still gives an extra launcher icon while the splashscreen is visible (because the WM_CLASS of the spashscreen is just "MATLAB"), but then the window gets properly grouped under the launcher.

New instances of Matlab (started by terminal, or Synapse, or from another tty with export DISPLAY=:0) also get grouped under this launcher, and the launcher's quit option kills all of them.

I found this WM_CLASS value by using

$ xprop WM_CLASS

and then clicking on the Matlab window, a command  I got from Superuser.

To prevent the temporary extra launcher icon, you can also add the -nosplash flag after the -desktop one.

So, my ~/.local/share/applications/MATLAB.desktop looks like this:

[Desktop Entry]
Version=1.0
Type=Application
Icon=matlab
Name=Matlab
Comment=Start MATLAB - The Language of Technical Computing
Exec=matlab -desktop -nosplash
Terminal=false
Categories=Development;
StartupNotify=true
StartupWMClass=sun-awt-X11-XFramePeer
X-Ayatana-Desktop-Shortcuts=New_Window;

Name[en_US]=MATLAB

[New_Window Shortcut Group]
Name=start a new MATLAB instance
Exec=matlab -desktop

This is on Ubuntu 12.10, with Matlab R2012b


Ubuntu 17.10 boots forever after update. Is it normal?

I got bricked yesterday when my HWE kernel updated to 4.13.0-39. It also looked like it was just stuck. It went through a number of various system status lines about two thirds down my screen and then nothing. It looked like it was just going to boot forever. Not so. The system was actually done loading, it was simply unable to start the GUI. When you get to the point where the system appears to be stuck in a 'boot loop', try this key combo to get the text-based login prompt: Ctrl+Alt+F1 or Ctrl+Alt+F7. I know that there may be more than one combination and if there are additional combinations that people know about, please comment. On my laptop it's Ctrl+Alt+F1.

I have a pet supercomputer for scientific computing. There appears to be some kind of a problem with the linux-headers package in that kernel. I have the 1070 video card. I was able to recover from this minor disaster. See if you have the same problem. Try this (if you have this particular kernel, the problem also exists in the -38):

uname -a

if the answer is a -38 or -39 kernel, then you have a problem. If you have the -38 kernel, change the line below accordingly of course.

sudo apt-get install linux-headers-4.13.0-39-generic

If your machine decides to do an installation, then you have a problem. Good, let it install. After that:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-396

Reboot and your system should come back to life. Mine did.


Alternative to Thunderbird which can search for to/cc/from easily

To find something suitable for you go to this site.

I like Geary best:

To install it go to a terminal by pressing Ctrl+Alt+T and copy-paste:

sudo add-apt-repository ppa:yorba/ppa
sudo apt-get update
sudo apt-get install geary


Screen turned off during upgrade from 14.04 to 15.10

As nothing happened for a few hours I shut the computer down.
I couldn't boot to the system any more and was stuck at splash screen, but managed to boot to recovery mode from grub menu (under "Advanced") and figured I'd try to force it to try to complete the upgrade again using:

sudo apt-get update

I got a message that something had gone wrong (obviously) and I should manually reconfigure using:

sudo dpkg --configure -a

This took about 10 minutes and asked a few times about modifications made to some files which it was trying to replace with newer versions. I accepted all newer versions.  After that I tried booting to the system again and it worked!

I had to manually reconfigure repositories as there were some enabled from "trusty tahr" and most others had been disabled during the upgrade procedure.
After doing this I did:

sudo apt-get update
sudo apt-get dist-upgrade

The system is still a bit wonky as in Screen Reader from Universal Access gets activated while booting to lock screen and turns off after logging in and booting up takes a while longer than it used to, but It works and when I get fed up with the wonkyness I can back up the data and do a fresh install.


You are hitting Bug #1247299. I think you are stuck until this is fixed in Juju 1.1.17


How do I create a shared folder/partition for Windows to access over the network?

As I understood, you want to share files from the computer running Ubuntu to other computers running Windows over the network.

In this case you do not need to create special partitions for that. That was a bad idea to create a large FAT32 partition.

I suggest installing Ubuntu a normal way with ext4 partitions for / and /home, and a swap partition.

Then you will be able to share some folders using samba. In Ubuntu it is very easy. You can right-click any folder in Nautilus and select share. Samba service will be installed on the first try to share and then just select a share name and permissions.


I understand you want to add a PPA to your system and automatically install all packages for your release and architecture that it provides.

Disclaimer: I am absolutely unsure if what you want to do is a good idea. But if you're truly insistent and proceed with caution, be my guest.

The lists of packages that can be installed from a repository are downloaded and stored in

/var/lib/apt/lists/

when apt-get update runs.

Those list files contain in plain text basically the information displayed when you do apt-cache show <package>. In particular each package has a field Package: <name-of-package>

Find here a Python script, that extracts all those Package fields and strings the package names together. Save it as whatever.py and run as ./whatever.py <packagelist>. It will print the appropriate apt-get install command, but does not execute it (it couldn't because you're not running this as root, are you...?). This is up to you, and I strongly suggest you try with -s (simulate) first!

#!/usr/bin/env python

import sys
import re

if len(sys.argv)<2:
        print "Usage: "+sys.argv[0]+" PACKAGELIST"
        quit()

try:
        packages = []
        infile = open(sys.argv[1],'r')
        for line in infile:
                p = re.match(r"Package: (\S+)", line)
                if p:
                        packages.append(p.group(1))
        infile.close()
        print "apt-get install -s "+" ".join(packages)

except IOError:
        print "File "+sys.argv[1]+" not found."

For example:

If this produces truly the result you desire depends on the PPA and the packages in there.

Use at your own risk.


I see two options.

Your computer is connected to a local network

This is true if your ip address starts with one of:

10.x.x.x
192.168.x.x
172.16.x.x
172.17.x.x
...
172.31.x.x

Your computer is connected directly to the internet

This is probably bad and you should change it. It's common practice to put your server behind a dedicated firewall and on a local network. This makes it more convenient to manage and secure your computers.

Q: How do you get an ip address?

A: You ask for one.

There is a computer connected to your network that runs ip-address-assigning software, aka a dhcp server. Your computer asks it for an ip address. The dhcp server says "here's an ip address, but you can only have it for so many minutes." Every time your minutes are up, your computer renegotiates the agreement. We call this agreement a dynamic lease.

One way to almost always get the same ip address is to always renew the lease as soon as it expires. But if you turn your computer off, the dhcp server will forget you ever had a lease. (some dhcp servers forget sooner than others). Also, this is kinda like trying to ride the same ride at Disneyland over and over without waiting. If you get to, it's not cause you're special, there's just no one else at the park.

Another way is to configure the dhcp server to always give your computer the same ip address (called a static lease). If you're on a local network, and it's your local network, you can do it for free. You'll just need to know how. If you're on a public network (ie, the internet), you'll want to talk to whoever you're paying for the connection. They'll probably want more money.

How I've had the same public ip address for ages without paying for it

I have a local network. I have a router that handles the local network. It's connected to a dsl modem, which is the box that actually makes the connection to the internet. The dsl modem is what gets the public ip address. That modem is almost never offline. When it is, it's for a reboot, which happens pretty fast. So far, fast enough to always lease the same ip address. But, like I've already said, it's a gamble. There's nothing to guarantee I get the same ip address, and if for some reason I get leased a different one, no one at my ISP is going to care (until I pay for the privilege of a never-changing ip address).


I also had an issue where I had only sound from one channel. It appeared that the other channel had its volume set to 0. I corrected that manually with:

pactl set-sink-volume 10 61604


Simple and convenient programs for blogging

Since you want to keep a local journal rather than a blog on the web with restricted access, you can use a program like Lifeograph or (as Wolter Hellmund suggested) RedNotebook, both of which can be installed in the Software Center.


System network broken, due to wrong installed driver

With some help of a guy on ubuntuforums.org I fixed this issue. I had to reinstall the network manager.

  sudo apt-get install --reinstall network-manager

However due to the fact I had no internet on my OS I started up with ubuntu from USB where internet still worked and then downloaded the package from.

  http://packages.ubuntu.com/precise/net/network-manager

The whole topic can be found at:

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


Converting a video file in arbitrary file format into MPEG4/H.264?

You will need to install these :

sudo apt-get install ffmpeg libavcodec-unstripped-52 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-50 libpostproc-unstripped-51 libswsclale-unstripped-0 x264

In Karmic, Lucid and Maverick you should replace "unstripped" by "extra" but since there is transitional packages this work too.

And then you can use a script with :

for i in *.avi; do ffmpeg -i "$i" -f mp4 "`basename "$i" .avi`.mp4";done

And you can use options like these to set up resolution, video codec and audio codec and audio quality :

for i in *.avi; do ffmpeg -i "$i" -s 352x288 -vcodec libx264 -vpre default -acodec libmp3lame -ab 192k -ac 2 -ar 44100 -f mp4 "`basename "$i" .avi`.mp4";done


Dual Boot Ubuntu Windows 10 stuck at loading

This is an issue with NVIDIA graphics in Ubuntu 15.10 and above. To install, you need to add a special boot flag.

When the GRUB menu comes up, highlight Try Ubuntu and press E. At the end of the line beginning with linux, put nouveau.modeset=0. Press F10 to boot and install.

After you install, there are a few other steps you'll want to take to get Ubuntu working.


Keeps booting into emergency mode, swap errors

You can use

lsblk -f

to find the UUID (it will list all partitions) and

mount -o remount,rw /

to mount the root partition in read/write mode.

Here an example for a correct fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#
PARTLABEL=UbuntuStudio1804      /                   ext4    errors=remount-ro    0       1
PARTLABEL=Swap                  none                swap    sw                   0       0
PARTLABEL=ESP1                  /boot/efi           vfat    umask=0077           0       1
PARTLABEL=DATA                  /media/DATA         ext4    rw,noexec            0       2
PARTLABEL=data                  /media/data         ext4    rw,noexec            0       2
PARTLABEL=StudioBackUp          /media/backup       ext4    rw,noexec            0       2
/dev/disk/by-label/archiv       /media/archiv       ext4    rw,noexec,nofail     0       0

I use PARTLABEL instead of UUID because this is better readable, the important thing I want to show you here is the order of fstab-lines, that's relevant, fstab-lines are processed in line-order, so you must mount / first! Also note that lines starting with a # are comments and not processed.


Will the id Software game RAGE be placed in the Software Centre Shop?

How do you expect anybody here to be able to answer this with any degree of certainty?

If id want to release a Linux version (still not confirmed) and want to sell it through the Software Centre and Canonical are happy to support a 5-8gig game and they can come to an arrangement on the distribution fees, then sure, it could be there.


Why does "Airplane Mode" keep toggling on my HP laptop in Ubuntu 18.04?

In the gnome shell, "Airplane Mode" is automatically activated on boot for many HP laptops, when the screen is tilted sideways, or when the lid is opened/closed. The following is a fix for HP laptops running Linux and using the gnome shell. Keycode 240 is defined as KEY_UNKNOWN (a kind of no-op key) in /usr/include/linux/input-event-codes.h. Also your syslog will no longer prompt you to define the HP e057 and e058 codes, which can be remarkably annoying.

First is a fix using a classic SysV init script, placed in the init.d directory and symlinked accordingly (Basically, we want it to run regardless of runlevel on anything except halt (0) or reboot (6)). Second is a systemd service that is far more reliable and perhaps present with recent systemd changes, which also happens to work on Fedora 28 and other distribution platforms. On Fedora in particular, you will find an almost complete absence of scripts in the /etc/init.d directory, along with a little README detailing the transition from SysV to systemd. The first method will work, but the second method is much more "future friendly" especially considering where Ubuntu is heading, and will also work in a slightly less...annoying way. Systemd init scripts are actually quite handy, and fully implemented and used frequently in Ubuntu 18.04.

Old SysV method:

$ sudo sh -c 'printf "#!/bin/sh\n/usr/bin/setkeycodes e057 240 e058 240\n" > /etc/init.d/hp-keycodes'
$ sudo chmod +x /etc/init.d/hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc1.d/K01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc2.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc3.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc4.d/S01hp-keycodes
$ sudo ln -s /etc/init.d/hp-keycodes /etc/rc5.d/S01hp-keycodes
$ sudo reboot

New Recommended Systemd Method:

$ sudo nano /etc/systemd/system/hp-keycodes.service

Paste the following lines or type them into the file:

[Unit]
Description=HP setkeycodes fix

[Service]
Type=oneshot
Restart=no
RemainAfterExit=no
ExecStart=/usr/bin/setkeycodes e057 240 e058 240

[Install]
WantedBy=rescue.target
WantedBy=multi-user.target
WantedBy=graphical.target

Save and confirm the filename with ctrl-x, y.

$ sudo systemctl daemon-reload
$ sudo systemctl enable hp-keycodes.service
$ sudo reboot

And that's it, no more annoying weird stuff when you tilt your screen or close/open the laptop lid!


Change Bluetooth Headphones default audio mode (A2DP Sink vs HSP/HFP)

I had the exact same problem. My Sony WH-1000XM2 used to work only when initially paired with Ubuntu 18.04. After a reboot or headphones off/on they used to connect automatically but the sound was awful. I had to remove the Bluetooth device and pair it again. I tried all of the solutions on the Internet which claim that configurations in:

/etc/bluetooth/main.conf

or

/etc/bluetooth/audio.conf

should do the trick. Well, they don't. The headphones keep working with the 'HSP/HFP' profile and the 'A2DP Sink' can not be set until the phones are repaired.

The more convenient way is to use the command line instead of physically pressing buttons and reconnecting through the UI. So this answer helped me achieve this.
However, this looks like a lot of commands to me, so I scripted them in this gist. It should work out of the box.

Whenever the phones get automatically reconnected (after the initial pairing) and they start using 'HSP/HFP' just execute this script and the profile will be set to 'A2DP Sink'. You may have to tweak the sleep intervals according to your headphones.

I hope this is getting fixed in upcoming releases of PulseAudio and Ubuntu.


why argue with stupid...
i solved it by creating another folder, copying the content of the downloads to the new folder, deleted the downloads folder and renamed the new folder downloads, and BAM:

drwxrwxrwx 1 knoker knoker 98304 Sep 2 00:07 downloads

this is not the perfect solution but it works tho... As of why i was having the problem in the first place is still a mystery...


Window List on my Gnome Panel doesn't respect all of my icon theme

Windows list is by no means perfect answer because of different GTK versions and Icon settings across the board. Themes icons are different that Faenza icons and are mixed. All applications will not use the same set of icons all the time.

You may have to edit each application to gain a cohesion among your desktop theme / icons.

Try visiting Gnome look for Icons and Themes

How to Windows List Guide

Might try http://nuovext.pwsp.net/


Trigger capture of screen using a mouse click

This is a default option in Shutter.

Easily:

if you set selection to window, easily just click on the mouse on the window you want to take a screenshot of.
If you choose user selection then once you setup the are you have to double click and thus you can take the shot.


Avoid apt-get update while installing softwares on ubuntu, possible?

The packages for ubuntu are all also available under http://archive.ubuntu.org.

Your desired package might be here:
http://us.archive.ubuntu.com/ubuntu/pool/main/libu/libunity/

I personally don't think this will be enough to resolve the dependency stuff. But you could certainly try it.


Just go to xorg-edgers ppa and read the instructions carefully.

If you want to install the newest Nvidia driver, you should install a new kernel version>=3.6 as you may use Ubuntu 12.04 LTS.


sed: -e expression #1, char 5: unterminated `s' command

If you want to replace H with q run it this way:

sed 's/H/q/' myout00

You didn't terminate the substitution command.


There is a application named as Apache-scalp. It is a Apache log analyzer .

  Scalp! is a log analyzer for the Apache web server that aims to look
  for security problems. The main idea is to look through huge log files
  and extract the possible attacks that have been sent through HTTP/GET
  (By default, Apache does not log the HTTP/POST variable).

You can download it from : http://code.google.com/p/apache-scalp/downloads/detail?name=scalp-0.4.py

Usage Example:

./scalp-0.4.py -l /var/log/httpd_log -f ./default_filter.xml -o ./scalp-output --html

Features:

Scalp has a couple of options that may be useful in order to save time when scalping a huge log file or in order to perform a full examination; the default options are almost okay for log files of hundreds of MB.

Current options:

exhaustive: Won't stop at the first pattern matched, but will test all the patterns
tough: Will decode a part of potential attacks (this is done to use better the regexp from PHP-IDS in order to decrease the false-negative rate)
period: Specify a time-frame to look at, all the rest will be ignored
sample: Does a random sampling of the log lines in order to look at a certain percentage, this is useful when the user doesn't want to do a full scan of all the log, but just ping it to see if there is some problem.
attack: Specify what classes of vulnerabilities the tool will look at (eg, look only for XSS, SQL Injection, etc.)


For ftp access you need to install ftp server on those windows system.

Based on your clarification, I think following is the answer to the question.

In nautilus, press ctrl + L

On the location bar type like

smb://HOST_IP_ADDRESS/


Can't install wine1.7 on Ubuntu 15.10 due to a broken dependencies

You install Wine 1.6 first then install wine 1.7 though play on Linux

Open up a terminal and type in:

sudo apt-get install wine1.6

Install play on Linux

Download the latest version of play on Linux.

wget https://www.playonlinux.com/script_files/PlayOnLinux/4.2.9/PlayOnLinux_4.2.9.deb

Then install it.

sudo dpkg -i PlayOnLinux_4.2.9.deb

Open play on linux

playonlinux

Click then configure then click on New to create a new Virtual Drive

When you have done that. Click on your virtual Drive that you just created:

Select the wine version you want installed then click on the > to install the wine version.

When the wine version is installed it should show up like this.

To run applications using wine 1.7 click on configure and then click on a virtual Drive

Change wine version from system to 1.7


I am assuming, although you have been unable to confirm it, that this command:

lspci -nn

...shows your wireless device as 14e4:4315. If that is not true, please post the result. If it is true, please get a temporary wired ethernet connection and do:

sudo apt-get remove --purge bcmwl-kernel-source

If it is not installed, that's fine, just proceed with the next steps:

sudo apt-get install firmware-b43-lpphy-installer

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


New virtual hyperv ubuntu 18.04 server installed but wget command not working?

This was difficult to solve, as you posted a picture of your text windows rather than pasting the text.  However

Your problem is one of capitalization. "v" is different than "V" in many places, and this is one.  The correct command is

wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.27.tar.gz

Please note the "V" in "versions" and the "v" in "v3" - you have them opposite in your text window image.


How do I pick where the Software Center will install a package, specifically Steam?

Steam is not located together with the Steam games. The Steam application will be located in your system area and available to all users. Your Steam games will be located in your /home directory.

If you installed Ubuntu using LVM, you can use the Disk Utility to add another disk to the volume. This is the easiest option if LVM is already set up, though not as safe as many others. If you lose one of the disks, your data will be gone. If you didn't set up LVM already, you can't (AFAIK) add it after the installation.
You can migrate your /home to a separate disk. This is option is popular among experienced users during installation because your personal data becomes portable and persists across reinstallations. It's a little like having a D: disk for data on Windows, but not exactly. It will be completely transparent to you as the user. You will need to format a new disk using the Disk Utility, mount it, migrate all the data in the current /home to the new disk, unmount the disk, and permanently mount that disk on /home during boot.
See also: How do I use a different drive as an installation location for Steam?


Is it possible it run VMware Player 12.5.9 on Ubuntu 20.04?

Yes, it is possible:
after having installed VMware Player (VMware-Player-12.5.9-7535481.x86_64.bundle or your preferred version!)
make a backup of a library installed by vmware installer:
cd /usr/lib/vmware/lib/libz.so.1/

sudo mv libz.so.1 libz.so.1.orig

make a symbolic link to the library of the linux distribution:
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 .

At github.com Michael Kubecek maintains a patch project for the vmware host modules
 sudo apt-get install git

change to the directory where you would like to store the sourcecode:
 cd <a directory of your choice>

make a local copy of the repository
 git clone https://github.com/mkubecek/vmware-host-modules.git

checkout your preferred version!
 cd vmware-host-modules git checkout player-12.5.9

The steps above need to be made only once
make && sudo make install

sudo depmod -a

sudo /etc/init.d/vmware restart

The last three lines need to be run after every kernel update
(you need to be in the <directory of your choice>/vmware-host-modules)
It also works on Debian 10.


Unable to view mounted drives in Samba when mounted to /mnt/ instead of /media/

Pretty sure these are three different problems.

[1] You are mounting it at /mnt/storage but your path in smb.conf is /mnt/Storage - with a capital "S". To Linux these are two different locations.

[2] Even if you change the spelling it still won't show up in "Other Locations" because it's not mounted under /media. It's a udisks2 thing.

You can either mount it as /media/storage or "force" it to "show" up by adding x-gvfs-show in your fstab declaration:

UUID=bunch-of-numbers /mnt/storage ext4 defaults,x-gvfs-show 0 0

[3] None of that will have any affect on a samba client being able to resolve the "super-server" host name - if the error persists after fixing [1].

Remember Ubuntu 20 disables SMB1 so there is no Netbios and no netbios name resolution. What version of Windows are you using on the client?

If it's Windows 10 access the server by it's mDNS name:

\\super-server.local\nas

If you really are running Ubuntu 20 server you will need to install avahi:

sudo apt install avahi-daemon

If you are running Ubuntu 20 Desktop - as a server - it's already there.

If you are running something prior to Win10 I would suggest accessing the server by ip address - something like:

\\192.168.1.101\nas


Installing Non-Repository Program in Windows Subsystem for Linux

I advise you NOT to copy the executable to that directory.
You can use sudo to copy it to /usr/local/bin/.
It would be better to add the directory of the executable
to your PATH in ~/.bash_profile or ~/.profile.


How to view joint words of devnagari fonts?

It worked after setting up  Noto Sans Devnagri font on a whole system including Chromium.

For system: Install Unity Tweak Tools and setup 'Noto Sans Devnagri' font there.

For Chrome/Chromium: Go to settings, select fonts and choose 'Noto Sans Devnagri' there.

You can download the font for free from here: https://www.google.com/get/noto/


Recovering system after deleting old files in /boot

I can not write all the details as I do not know your partitions.

You should be able to reinstall kernels, and other packages, from the knoppix live media via chroot.

Obtain a root shell as we are running these commands as root

sudo -i

Now mount your server root partition and if you have a separate /boot at /mnt

sudo mount /dev/your_root /mnt
sudo mount /dev/your/boot /mnt/boot #this may not be necessary

Setup chroot

mount -o bind /proc /mnt/proc
cp /etc/resolv.conf /mnt/etc/resolv.conf

chroot and reinstall kernels

chroot /mnt
apt-get --reinstall linux-image-version_here

exit chroot and reboot


High memory usage with little swap space used

If you'd run the top command, you'd see something in line with this:

KiB Mem:  32868436 total, 32695528 used,   172908 free,       20 buffers
KiB Swap:        0 total,        0 used,        0 free. 31194124 cached Mem

In this particular case, we have 32 gigs of RAM, of which just 172 MiB is shown as "free".
We do not have swap at all in our case.

Yet, to calculate the "real" free memory, add "cached Mem" to "free" and you would see that almost all of the memory is free.
The trick is that "cached Mem" is basically disk cache - Linux would use most of available free memory just for that to speed up disk operations. Do not worry - should a necessity for extra memory arise, Linux can instantly reduce the disk cache and use that for whatever purposes are needed. You only need to start worrying once both "free" and "cached Mem" are very small - that would mean you probably need a RAM upgrade to keep things running smoothly.

As to swap, I would agree with the previous replies that you don't want to use it in vain in cases where you have plenty of RAM. And 8 gigs are plenty for a desktop, if you are not using some heavy graphics processing software or such.


Assuming you have:

In Windows you shared the resources/folders you want other LAN computers to see
The Ubuntu computer is on the same network LAN
The Ubuntu computer is on the same workgroup (Easier to search for other computers)
From Ubuntu you can ping the computer that is sharing the resources or any other computer on the same LAN.
In Ubuntu you have samba installed.

Then simply open Nautilus and on the left panel you should see an option that says Browse Network. Click on it and it will show you all workgroups on that LAN. Then simply go into the workgroup where the computer you want to access is.

Remember that if you do not see it and you are using Windows Vista, 7 or 8 you need to make sure what options you have set in the Firewall, Network Options, User permission and a bunch of other layers Windows adds. For this cases, for LAN cases, I disable the Windows Firewall, make sure the Network security does not ask for a password, offers sharing the resource in the network and I even activate the guest user. My idea is to leave Windows Vista, 7, 8 to look like Windows XP when sharing something. But this is more of my opinion on the subject.


Xubuntu 16.04 doesn't boot; hangs after fsck

Hold Right-Shift to access GRUB-bootloader. Go to advanced options and start recovery-mode. When recovery mode menu opens, select to continue normal boot. Now if you get to login open terminal and type sudo nano /etc/default/grub

This is what I did.

I changed "splash quiet" part to "nomodeset radeon.modeset=0 systemd.recover_state=0"
if I'm correct nomodeset deals with intel or nvidia cards, could work with ati too. I have old ati card so radeon.modeset=0 seemed right but I did not play with these more to be really sure.
save file in nano by pressing ctrl+o and then exit ctrl+x
back in terminal again run sudo update-grub

Now  try to do normal reboot by sudo reboot and see if this got your system booting normally.

ps. So maybe the problem is with display drivers??


Upon system restart, dconf editor doesn't save changes

Lock down specific settings

  cited from GNOME Help/Sysadmin Guide/User Settings/Lock down specific settings

  To lock down a dconf key, you will need to create a locks
  subdirectory in the keyfile directory. The files inside this directory
  contain a list of keys to lock. Just as with the keyfiles, you may add
  any number of files to this directory. Here is an example of what one
  might look like:

  How to lock the default wallpaper

  First, set a setting, such as a default background which will be used    for this example.
  Create a directory named /etc/dconf/db/local.d/locks.
  Edit /etc/dconf/db/local.d/locks/00_default-wallpaper, listing one key per line:

# prevent changes to the background
/org/gnome/desktop/background/picture-uri
/org/gnome/desktop/background/picture-options
/org/gnome/desktop/background/primary-color
/org/gnome/desktop/background/secondary-color

  Update the system databases:

# dconf update

    As of dconf 0.7.4, lockdown is only supported on a per-key basis for
    performance reasons; you may not yet lock entire subpaths. There are
    plans to address this in future releases.

Your Solution

For adding to your new /etc/dconf/db/local.d/locks/00_default-touchpad file:

    # prevent changes to the touchpad
    /org/gnome/settings-daemon/peripherals/touchpad/natural-scroll

gnome dconf gsettings lockdown


Installing separate+ plug-in to GIMP 2.8, help me resolve an error.

These kind of errors usually mean that you have to install foo-dev packages.
In this case try installing liblcms2-dev.
There will probably be other errors of this kind after you got that. Just search for the basename of the missing header (in this case "lcms") in Synaptic and install any -dev package that sounds similar.

EDIT: It seems seperate+ 0.5.8 wants liblcms1(-dev). That was removed between 14.04 and 16.04 in favor of version 2. You could try downloading the packages from trusty. May work, may not work or could get messy.


Have you tried whereis deja-dup ?
By the way removing Déjà Dup shouldn't erase your backups as they are stored where you told Déjà Dup to store them.


Simple script for monitoring wireless status

This should do:

#!/bin/bash
printf '%s\nTIME (s)\tSIGNAL STRENGTH (dBm)\tBITRATE (MBit/s)\n' "$(date --iso-8601=seconds)" >>log
for ((i=0; i<=60; i=i+5)); do
    iw dev wlp3s0f0 station dump | awk -vt=$i '$1=="signal:"{s=$2} $2=="bitrate:"{b=$3} END {printf "%d\t%d\t%.1f\n", t, s, b}' >>log
    sleep 5
done

It will append the current time in ISO 8601 format followed by that header to a file named log in the current working directory and append the relevant output of iw dev wlan1 station dump in that format to it every 5 seconds, for 60 seconds.

Sample run on my machine:

% bash script.sh
^C
% cat log
2016-03-29T20:00:22+0200
TIME (s)    SIGNAL STRENGTH (dBm)   BITRATE (MBit/s)
0   63  54.0
5   40  54.0
10  63  54.0

To print also the RX bitrate:

#!/bin/bash
printf '%s\nTIME (s)\tSIGNAL STRENGTH (dBm)\tTX BITRATE (MBit/s)\tRX BITRATE (MBit/s)\n' "$(date --iso-8601=seconds)" >>log
for ((i=0; i<=60; i=i+5)); do
    iw dev wlp3s0f0 station dump | awk -vt=$i '$1=="signal:"{s=$2} $1="tx"&&$2=="bitrate:"{tb=$3} $1="rx"&&$2=="bitrate:"{rb=$3} END {printf "%d\t%d\t%.1f\t%.1f\n", t, s, tb, rb}' >>log
    sleep 5
done


How can I listen on global keypress event?

Here's a method that in theory should work.

If you visit the "Accessibility" tab in System>Preferences>Keyboard then you can enable the "Slow Keys" "Only accept long keypresses" option. Turn the delay all the way down and you basically null the effects of this option. Then go to "Audio Feedback..." and enable "Beep when a key is pressed" under the "Slow Keys" section.

This method SHOULD work. I couldn't get it to work, honestly. I do have the sound-theme-freedesktop sound theme installed and enabled. Perhaps it's a bug with gnome 2.32.0.

These configuration options simply play the system bell.  On Ubuntu the system bell does not work when desktop effects are enabled.  Turn off desktop effects, or on Ubuntu 11.04 login as "Ubuntu Classic (No effects)", and your system bell should work again.


Need help turning off the backlighting of My Sony Vaio laptop

I belive the following should do it, I found this solution to enable it for me (with a 1 instead of the 0). A reboot will be required too.

$ echo "options sony-laptop kbd_backlight=0" > /etc/modprobe.d/sony-laptop.conf


How to display specific number of lines of .log file in terminal?

The right syntax is:    tail -n 5 access.log

Or just tail -5 sccess.log


When using Ubuntu 32bit you don't install Adobe Flash Player the same way you do when using Windows. To install Flash player plugin for Firefox in Ubuntu you have to open Synaptic package manager, and type in the search field these keywords: flash player.

To open Synaptic, press Ctrl+Alt+T to open a terminal window, and in that window type this code:

  sudo synaptic

Enter your password when prompted for it and wait for the application to load. Do not close the terminal window. If synaptic is not present on your system, you need to install it by running this code in the same terminal window:

  sudo apt-get install synaptic

After you open Synaptic Package Manager, go to Settings - Repositories - Other Software and check the Canonical Partners and the Independent repos. Close the window for repositories and reload your software sources with the reload button from Synaptic menu.

Next you can type in the search field flash player as keyword and after getting the results look for and install the following packages: adobe-flashplugin and adobe-flash-properties-gtk. And you're done, you can use flash player in firefox.

If you run Ubuntu 64bit, a solution for installing Flash Player 64bit can be found on this page.


mysql service can not start automatically at boot up

A thousand ways to kill a rat.The mysql server can be started manually by running the following commands:

sudo service mysql stop
sudo /etc/init.d/mysql stop
sudo killall -KILL mysql mysqld_safe mysqld
sudo /etc/init.d/mysql start
sudo service mysql start

Automate these series of commands by putting them in Ubuntu rc.local file. A crontab at boot up may execute the commands prematurely.


How to append multiple lines of text to a file?

This syntax is called "HERE documents":

sudo tee -a /tmp/file <<EOF
<Directory "/var/www/*">
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>
EOF

This solution is better than using ctrl-d since it can be used inside shell scripts.


Ubuntu 16.04 Cannot Install Owncloud server

You can make sure that you are installing

sudo apt-get install owncloud owncloud-deps-php7.0 owncloud-files

Maybe just install owncloud doesn't install owncloud-deps-php7.0

When I was having the issue that you linked here ... I had the 15.10 repository installed not the 16.04 .. there wasn't a 16.04 when I was trying to fix it. If the above doesn't work. I would try going into your

/etc/apt/sources.list.d

find the owncloud one and change the number from 16.04 to 15.10  or maybe even 15.04 and then

sudo apt-get update

and then try to install

sudo apt-get install owncloud-files

first and if that doesn't work try installing

sudo apt-get install owncloud

If it will install that way .. after install I would go back and re-update your owncloud.list back to 16.04 and another apt-get update .. then see if there is an update to it and try to update


How to avoid seeing GRUB menu after replacing windows 10 with Ubuntu (Ubuntu is the only OS installed)

If you're not comfortable with editing configuration files, then I'd suggest installing Grub Customizer:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Go to General settings tab. Then set the Boot default entry after field to 0. And press Save as shown:

Please don't change anything else, as it may break your system.


Ubuntu Touch usually runs inside an android container to access its drivers, which usually also contains proprietary blobs. There is currently no phone available with completely free drivers, so the only way to fix this is by doing a lot of reverse-engineering for every single phone.

Apart from the drivers, the OS itself (as it is distributed by UBports) is completely free and open-source software. On the devices that were sold by BQ and Meizu, there were licensed proprietary bits, like the Nokia HERE AGPS, that UBports replaced with the Mozilla Location Service.


AFAIK OpenCV in the Ubuntu repos are compiled without OpenGL support. When compiling from sources make use of the cmake flag

cmake -DWITH_OPENGL=ON ..


Denied access to an ext4 partition after doing a `mount -a` command

You should create the folder /mnt/films using the command (in a terminal):

sudo mkdir /mnt/films

Then you need to change permissions so that you have read access to the folder:

sudo chown root:users /mnt/films

This allows group use by the users group which your logged in user should be a member of (it will be as standard). So make sure that the group permissions include read and write:

sudo chmod g+rw /mnt/films

If ther are folders and/or files already on the drive, you may need to adjust their ownership and permissions too.

I assume that you have formatted the drive as ext4? By default it probably came formatted as FAT32.


"Couldn't find support for device", cannot log in or access network after removing python2.7

Open a text-only virtual console by pressing the keyboard shortcut Ctrl + Alt + F3.
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
Reinstall Python by running the following command:

sudo apt install python-all python3-all

Switch out of the virtual console and return to your desktop environment by pressing the keyboard shortcut Ctrl+Alt+F7.

After you have installed Python, you need to get back your default Unity desktop. In order to avoid messing something up, do it in the following order:

First install the terminal from the console using the command: sudo apt install gnome-terminal. If you can't install gnome-terminal at all, skip this step and go to step 2.
Return to your desktop and open the terminal using the keyboard shortcut Ctrl + Alt + T. From the terminal install the Ubuntu Software Center using the command:

sudo apt install software-center

If you still can't open the terminal, run the same command from the console instead. If you can't install the default software application at all, skip this step and go to step 3.
Open the terminal and try to open the Ubuntu Software Center from the terminal by running the software-center command. From the Ubuntu Software Center install the Ubuntu desktop system or else open the terminal (or the console) and install the Ubuntu desktop system by running this command:

sudo apt install ubuntu-desktop


Resolving Ubuntu release version to release code name

If you need to know only your OS version's name, use /etc/os-release file:

$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

There exists /usr/share/distro-info/ubuntu.csv file, which you can parse via text processing utilities , such as AWK , grep, python, perl , or any other.

Actually, there is  a command ubuntu-distro-info. It is not installed by default but you can obtain it via sudo apt-get install distro-info. The command itself is a shell script, and relies on the mentioned ubuntu.csv file. So if you don't want to think too hard and write scripts yourself , use that:

$ ubuntu-distro-info --all -f
Ubuntu 4.10 "Warty Warthog"
Ubuntu 5.04 "Hoary Hedgehog"
Ubuntu 5.10 "Breezy Badger"
Ubuntu 6.06 LTS "Dapper Drake"
Ubuntu 6.10 "Edgy Eft"
Ubuntu 7.04 "Feisty Fawn"
Ubuntu 7.10 "Gutsy Gibbon"
Ubuntu 8.04 LTS "Hardy Heron"
Ubuntu 8.10 "Intrepid Ibex"
Ubuntu 9.04 "Jaunty Jackalope"
Ubuntu 9.10 "Karmic Koala"
Ubuntu 10.04 LTS "Lucid Lynx"
Ubuntu 10.10 "Maverick Meerkat"
Ubuntu 11.04 "Natty Narwhal"
Ubuntu 11.10 "Oneiric Ocelot"
Ubuntu 12.04 LTS "Precise Pangolin"
Ubuntu 12.10 "Quantal Quetzal"
Ubuntu 13.04 "Raring Ringtail"
Ubuntu 13.10 "Saucy Salamander"
Ubuntu 14.04 LTS "Trusty Tahr"
Ubuntu 14.10 "Utopic Unicorn"
Ubuntu 15.04 "Vivid Vervet"
Ubuntu 15.10 "Wily Werewolf"
Ubuntu 16.04 LTS "Xenial Xerus"
Ubuntu 16.10 "Yakkety Yak"
Ubuntu 17.04 "Zesty Zapus"

It has many other command-line flags, like -y for checking how many days are left until next milestone, be it reaching release stage or End-of-Life status. For example, this: distro-info --all -f -y"eol"
 will tell you negative values for those that have reached  End of Life status and positive for those that haven't.


How can I make Ubuntu compatible with baudline?

My fix was to run it like this

parec --format=s16le --channels=1 --latency-msec=5 | ./baudline -stdin

This uses parec to read from pulseaudio and pipes it to baudline.


I'm afraid you can't have the snap  package installed at the same time as the snapd  package. In fact, I think the fact that apt didn't warn you about this is a bug in our packaging. Sorry. (this is bug 1571989)
So, to fix your issue: sudo apt install snapd snap- should do the trick.


Eclipse auto shutdowns when creating new project

I had the same issue as well on Kubuntu 14.10. I wasn't even able to change the theme under System Preferences -> Application Appearance because eclipse crashed as soon as I tried to click "Application Appearance".

But editing the gtkrc file under /usr/share/themes/oxygen-gtk/gtk-2.0/ as explained in https://stackoverflow.com/questions/26436009/eclipse-luna-crashes-on-new-project-in-ubuntu finally did the trick.
Change this line:

 GtkComboBox::appears-as-list = 1

to:

 GtkComboBox::appears-as-list = 0


In your dmesg, we see:

e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid

A Google search finds many examples of the error and subsequent failure to load the driver. What I will propose here is assumed to have some risk of failure. I have, however, found no reports of trying it and failing. If you have the slightest doubt after your own Google search, then I suggest that you contact the manufacturer of your laptop and ask for support.

If you wish to proceed, download this file to your desktop. You need the tar.gz file.

Right-click it and select 'Extract Here.' Now, in the terminal, determine if yours is a 32- or 64-bit installation:

arch

If yours is a 64-bit installation, as I assume, the terminal will return x86_64. If so, we will use the 64-bit utility.

In the terminal:

cd ~/Desktop/Preboot/APPS/BootUtil/Linux_x64/DRIVER
chmod +x bootutil64e
sudo ./bootutil64e -NIC=1 -DEFAULTCONFIG

Reboot and let us hear the result.

Reference on Super User: How to repair the checksum of the non-volatile memory (NVM) Intel Ethernet Controller I219-V of an ASUS laptop?


Is that good to have both SDD point to root

Most important things first:

Backups should always be stored in another place than the system they were created from.
Transfer them to your local box or a backup space or even some cloud storage like box.com or Dropbox or similar.

Now to the discs:

Both discs are in a raid setup. This allows the system to work even if one of the discs fails. It is not a backup, though. Performance is not enhanced due to raid level 1 being used.
If the file system gets corrupted it is corrupted on both discs. So make sure you're backups are stored elsewhere.


How can I safely confirm Intel Management Engine status Disabled or Enabled

To verify ME I used: https://github.com/corna/me_cleaner/wiki/Get-the-status-of-Intel-ME
This tool (Linux & win versions available) can detect if Manufacturing Mode is enabled, which makes ME vulnerable to code execution even if the system has been patched.
BTW IME can also access your networking interface adapter in a way transparent to the OS, I don't think PSP does that.


How can I change the colour/icon of an app on the Unity Panel?

Looks like what you're using there is Radiance theme.  Technically, what you want to achieve is doable with Unity Tweak Tool by changing Transparency Level under Panel menu.

In the screenshot below you can see that my Transparency is set to minimum, so it will look dark. You can also see that it raises another problem - font is not readable

I would recommend you change the icon theme instead of tweaking the panel opacity. A lot of themes pack icons for commonly used softweare such as steam, and you can use one icons from one theme while using completely different theme for window decorations. Here's for example Numix Circle theme for icons, but still keeping Radiance as overall desktop theme

Again , all this can be edited via Unity Tweak Tool or CompizConfig Settings Manager ( under Unity Plugin ).


W: Duplicate sources.list entry http://downloads-distro.mongodb.org/repo/ubuntu-upstart

It seems like you still have at least one MongoDB-related entry in your apt sources list, otherwise you would not see the error message.

Try running:

grep -r "mongodb" /etc/apt/sources.list*

to see which files still reference the MongoDB apt repository.

Note that the instructions in the MongoDB documentation tell you to put the repo definition in its own file under sources.list.d, rather than in the default sources.list file. It's a cleaner solution; I mention it in case it helps you track down your problem.


Problem was solved by going to the path:
 /usr/bin/java

and there  i found a file with the name
 "jdk-14.0.2_linux-x64_bin.deb"

removing the java folder form there fixed the issue and now everything is ok .
Regards


Bootmgr is missing when booting with Ubuntu LiveUSB

There is a problem in  bootable media. Make linux bootable media by unetbootin or linux live for avoiding boot problems. You are getting this message because your USB is not made bootable perfectly. By just copying files  with mounting iso not makes USB bootable.


Video editor to create professional appearance

kdenlive

  Kdenlive is a free open-source video editor for GNU/Linux and FreeBSD, which supports DV, AVCHD and HDV editing. Kdenlive relies on several other open source projects, such as FFmpeg, the MLT video framework and Frei0r effects.

Kdenlive is easily the best video editor currently available for Ubuntu. There is also a GTK frontend for MLT framework (OpenShot) but it has less features and worse user interface.

Kdenlive supports a wide array of video formats, images and transitions. The rendering tool has ready presets for most situations like Youtube, DVD, different mobile devices, etc. so you don't need to be an expert on video compression.

You can get it from Ubuntu's repository, but I'd suggest you get the latest version from project site. They even have a repository set up for Ubuntu.


Freecom external USB disk shown as two different devices 2TiB and 746GiB

I ended up sending an email to Freecom, and they sent me a Windows executable called Freecom Mode Change Tool.exe. I asked for a Linux version but they told me:

  Malheureusement non, le seul outil disponible fonctionne sur Windows uniquement.
  [Unfortunately no, the only available tool works on Windows only.]

I had a hard time finding a Windows machine but when I did I executed the tool and was able to change it from "Split Mode" to "Standard Mode":

The disk now shows correctly as a single 3TB device:

Any Ubuntu-only solution would be very welcome!


Downloading youtube playlist with youtube-dl, skipping existing files

With the option --download-archive FILE youtube-dl both reads and adds to a list of files not to download again.  Every time a file is successfully downloaded, that video id is added to FILE.

You can use it as follows:

youtube-dl --download-archive downloaded.txt --no-post-overwrites -ciwx --audio-format mp3 -o "%(title)s.%(ext)s" [path here]

It will redownload any videos from before that you didn't keep for one last time as it creates the list.  You can now delete them.

If your MP3 files had been named with the default format of %(title)s-%(id)s.%(ext)s, you could have avoided the redownload by creating downloaded.txt from the youtube %(id)s in a bash terminal as follows:

for n in *.mp3
do if [[ "$n" =~ -[-_0-9a-zA-Z]{11}.mp3$ ]]
   then echo "youtube ${n: -15: 11}" >> downloaded.txt
   fi
done


Ubuntu supports Oracle Berkely DB........?

The Oracle Berkeley DB is here. This says the documentation is under the open source license. Aha! The Open Source license also applies to the software too.

Storage limits:  An individual DB database can store up to 256 terabytes of data. By using multiple databases, it is possible to use DB to store and manage petabytes of information. Within a single database, individual record keys or record data can be used to store up to 4 gigabytes of data.

NOTE: This looks different than the Berkeley DB that comes with Perl, which has a limit of 1009 bytes for the length of data and key combined.


I had the same problem. For me removing the cache at ~/.cache/software-center and then opening the Software Center, did the job.
Just open your home folder, press ctrl+h to reveal hidden files, open .cache and delete the folder software-center (or, safer, rename it, e.g. to software-centerDeleted). It seems no root permissions are required.


Geany is crashing with segfault during startup

This is a bug and some kind off topic here. However, there are 2 things to do:

1: Run Geany with gdb and send a backtrace to Geany devs. Do it like this

Install gdb from repository
Run gdb Geany followed by pressing r for
running
When Geany is crashing, type bt  and send the out to
Geany devs (e.g. via GitHub) or report a bug against Ubuntu
(Really, it's a bug for sure)

2: Most likely one of the plugins is buggy or another setting you have done is faulty. Move ~/.config/geany/geany.conf out of the way -- e.g. renaming is ok -- and start Geany. It should start with defaults. Don't delete old geany.conf as it might be should included to the bug report from step 1 later.


Which file explorer has Mercurial support?

Kate editor has a plugin that supports mercurial git and subversion. I did not try it personally with mercurial but I guess it should work if they say it supports it.

You can search your self for more editors, here is a list with some text editors:


I'm using the kernel version 3.9 for raring, and the crashes are really gone.

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9-raring/


Please run the following commands one line at a time and just copy and paste for accuracy:

echo "options rt2800pci nohwcrypt=1" | sudo tee /etc/modprobe.d/rt2800pci.conf
sudo modprobe -rfv rt2800pci
sudo modprobe -v rt2800pci

This command changes encryption from hardware to software and in many cases corrects the issue you are having.

Wep is not very secure and ubuntu will connect to wpa2 (AES) (CCMP) better then any other settings,  not mixed mode or especially (TKIP).


Screen problems - Ubuntu 14.04, Radeon HD 4850, Gallium drivers and 50 inch TV

I just figured it out - I disabled overscan in my TV setup menu.


It does not matter what permissions are on that file. You need to have write permissions on the directory that contains the file.

(You can even remove files not owned by you if you have write permission for the directory. A confirmation question will appear and by answering with yes, the file will go away.)

So while impersonating the root user will remove the file, you could do that by your own if you could write to the file's parent directory.

Could you list the permissions + owner for that?

On the reappearing problem:

Please execute sudo crontab -l to see if there are any cron jobs for root, and include the output in your question.

Update 2

Your response was:

  found this: * * * * * touch /home/chimp/Desktop/hardcore_porn_xxx

Your output states it is a cron job.

Now please execute sudo crontab -e, pick your editor (e.g. mcedit) and delete the whole line containing touch.... Exit the editor, remove the file with any method and wait. It should not reappear anymore.


This happened to me a couple of times too, this is probably because there is little space on your machine or an issue with LightDM or Xauthority but most probably xauthority. Here is what I did;

I simultaneously pressed Ctrl+Alt+F1,
Login with your user name and password, and enter following command:

sudo mv .Xauthority .XauthorityBak

then

sudo reboot

After that try again.


When you log in, you can choose which session to use. Make sure it's set to Ubuntu and not something else.


Well looked around and found a answer

https://superuser.com/questions/929566/sha256-ssh-fingerprint-given-by-the-client-but-only-md5-fingerprint-known-for-se

It is still possible to create a md5 key with this command

ssh-keygen -lf ssh_host_rsa_key.pub -E md5


Sometimes you need this keyboard shortcut
Ctrl+Alt+PrtScr+O
for shutting down desktop, if you have a problem like slower at shutting down or pc can't shut down.


Strange "gap" at the top of windows when first opened?


What's the difference between dev package and ordinary package?

In maximally simple terms:

-dev packages contain files needed for writing code that links to the program
-dbg packages contain debugging symbols, which as the name implies are used when debugging the program

You don't need these in order to use the program, just as you don't need the -doc package if that shows up.

For more info, see:

How and why to create -dbg, -dev, -doc packages?
https://stackoverflow.com/questions/19032398/what-does-the-dev-dbg-and-utils-mean


Ubuntu Server : extra drivers during install

Do you want to use the package in Live Ubuntu you use during the installation or the one you actually install ?
For the first, just press Ctrl-Alt-T to get to Console and do

sudo apt-get update
sudo apt-get install whatever

For the second, complete the installation procedure. However, when installer prompts you to do the reboot, don't. Instead, use this instruction to get into you fresh ubuntu without reboot, and do the above commands there.
Finally, if you don't have Internet access during installation, just download the package from here. Put it somewhere you can reach during installation. Use

sudo dpkg -i package.deb

to install it.


It's copying a 500MB file over to your sdcard and it takes a while.  You can open up android terminal emulator and do an 'ls -la /sdcard/autodeploy.zip' to see how much has been copied over.


"update-rc.d: error: cannot find a LSB script for libvirtd"

in the doc you linked this is in the section "In case libvirtd service is not started and enabled" which should not be the case. So you should not need this command anyway. But if it is disabled after install please file a bug with steps to recreate so I can sort it out.
And even if your service isn't running, the update-rc is outdated, probably a copy forward from an old howto. Even if it would not be enabled due to systemd in Xenial and later the command to enable it would be like:
systemctl enable libvirt-bin.service

And while I think people should adopt to the new tools, in case you insist on using update-rc.d, then the problem is that libvirtd isn't the right name - the following would have worked (but eventually does the same as the more modern command above):
update-rc.d libvirt-bin enable


I can't install PhpMyadmin after upgrade from Ubuntu 19.04 to 20.04 via 19.10

I managed to solve my problem with a few pointers. Thanks to those who took the time. These are the steps I followed to manually install PhpMyadmin:
From a mysql console:

create user phpmyadmin

CREATE USER 'phpmyadmin'@'localhost' IDENTIFIED BY 'yourpassword';

Grant privileges (you might not want that level of grant):

GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost' WITH GRANT OPTION;

Create database with the SQL query create_tables.sql from PhpMyadmin download (resides in folder sql):
mysql -uroot p<pass> < create_tables.sql (I know it's not safe but...)

Run configuration again, skipping creation of phpmyadmin database.
sudo dpkg-reconfigure phpmyadmin
You should now be able to connect to the web interface. Done.

If you have the two error messages:
mysqli_real_connect(): (HY000/1045): Access denied for user 'phpmyadmin'@'localhost' (using password: YES)
and
connection to controluser as defined in your configuration failed
you might need to edit another file to solve a password discrepancy between mysql and PhpMyadmin:
sudo nano /etc/phpmyadmin/config-db.php
and make sure you type the password you defined when creating the user phpmyadmin from within the msql console:
$dbpass=password_defined_in_mysql

Problem solved for me.


Is Ubuntu 12.04 a Plug and Play OS in BIOS?

Linux is capable of doing the most hardware configuration via ACPI. You can handle this like you do for Windows, so enable PnP in BIOS.


Can you use Ubuntu and Ubuntu Gnome (or more desktop enviorments) without dual booting?

Each of the distros you mentioned is in fact Ubuntu, just shipped with a different desktop environment.

You can install just one of them, then install the different Desktop Environments any time.

To install them, open a terminal, and run apt-get install with the appropriate package name. For example

GNOME Shell

    apt install ubuntu-gnome-desktop

MATE Desktop

    apt install mate-desktop-environment

Here is the list of several other Desktop Environments: What kinds of desktop environments and shells are available?

You can also search the Software Centre or Synamptic package manager if you have it installed, for "desktop environment".

Once installed, you will be able to choose one from your login screen, typically an icon representing the Desktop Environment will be available.


command line autocomplete does not work in ubuntu 19.10

As you can read here:
bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1845529

sudo apt install gawk can avoid this problem

In the last answer of this report a guy pointed out to the debian bug, also already reported: bugs.debian.org/cgi-bin/bugreport.cgi?bug=933934


To update use :

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

To check if a new version is available type:

do-release-upgrade -c

Run this command and the upgrade will begin:

sudo do-release-upgrade

To force upgrade pass the -d option to sudo do-release-upgrade command:

sudo do-release-upgrade -d

To verify use:

lsb_release -a
uname -mrs
tail -f /var/log/app/log/file


How do I install a USB Wifi driver on Ubuntu 16.04?

The mediatek chipset from your device is not supported with generic wifi drivers. One solution I am aware of is to install the drivers from ulli-kroll repository in Github: MT7610U driver for linux
You will probably need to install linux-headers-amd64 in order to install the drivers.
The process is explained and it is straightforward:

  For compiling type   make   in source dir
  To install the firmware files   sudo make installfw
  For install the driver use sudo insmod mt7610u.ko


been fighting the NVIDIA drivers myself....

I tried to install an NVIDIA driver, and it bailed on me -- Hung before beginning lightDM. Luckily, it should back up your xorg.conf automatically, which is what causes the problem.  When it boots and begins to hang, do control+alt+f1 to make a terminal.  If you tried to isntall an NVIDIA driver from their site and after running, it would not start LightDM, Login and run the following two commands.

sudo rm /etc/X11/xorg.conf

sudo mv /etc/X11/xorg.conf.backup /etc/X11/xorg.conf

Hope this helps!


I did the same thing with Ubuntu Tweak Cleanup Janitor and had to re-install the ATI/AMD proprietary FGLRX graphics driver.  I had to install the post-release updates, which never works for me, and then I was able to install and activate the working driver.  Thank you, chazdg, for pointing me in the right direction.


Cannot ping machine on ethernet while having two interfaces active (Ethernet and Wifi)

Are you ping-ing using hostname or IP? Could be your hostname is not resolved when WiFi is enabled.


Left Ctrl Key doesn't work (but right one does)

Can't add comment to the other answer.

Switching of the ctrl and fn should be available in BIOS. OEMs may have Windows apps to change it, but it's just another way of changing the same setting.


How to create an auto executeable file of some terminal commands used for running any specific application

An .sh file is already a shell script. It contains readable commands that are executed line by line.
Make your own shell script so you can execute all commands you want to run with a single command.

If you did not already, create a directory bin under the hidden directory .local. You can use your file manager. Set it to "show hidden files" so you can see the .local folder. Then log out and back in: Ubuntu is automatically configured to include .local/bin in the search PATH for executable files. (Note: if you prefer, it works the same with a folder bin directly in your home folder - the latter will not be hidden by default).
Open your text editor, and enter as the first line #!/bin/bash. On the subsequent lines, enter your three commands. As a detail, I can mention you that your second command, chmod +x Pentablet_Driver.sh, is not needed: this needs to be done only once, and not every time you run the script.
Save the file in the folder .local/bin under a name that you want to use to run the commands. Let us for example assume it will be pentab.
Now make that file executable. You can do this in your file manager from the dialog you get after right-clicking the file, then selecting "Properties". You could also use a command similar to the one I told you to leave out: chmod +x ~/.local/bin/pentab.

That is it. Now, typing the command pentab in the terminal or in the run dialog (Alt+F2 will run the three commands contained in the script (two only if you follog the advice to remove the second one).


To troubleshoot this is easy, to solve a bit less so...

Boot your Ubuntu Live CD, double-click on the system partition icon and have a look at

/media/ubuntu/SomeWeirdNumber/var/log/syslog

and

/media/ubuntu/SomeWeirdNumber/var/log/kern.log

There you will find most information to trouble-shoot this.


The --purge option will remove config files installed system-wide by APT itself. But there are also per-user config files created by Tilda. On my system (20.04.1), I can see:
$ find ~ -iname \*tilda\*
~/.config/autostart/tilda.desktop
~/.config/tilda
~/.cache/tilda

In ~/.config/tilda, you should see several files starting with config_, these are different versions of Tilda's preference. You may try a diff between these files and look for something related to zsh.
Also, after you've quit tilda, you can safely remove ~/.cache/tilda, then restart tilda and hope that it will fix your problem...


Alternatives to Rhythmbox to record Streaming Audio

Command line with ffmpeg  / avconv
We can save internet audio streams to disk with the following commands:
ffmpeg -i <IP>:<port> <filename>.mp3
avconv -i <IP>:<port> <filename>.mp3

Replace <IP> with the Internet address of your station and <port> with the port they are streaming. The applications will convert the stream to any known format given by the resulting filename's extension (.mp3 will write mp3 files, .ogg will write Ogg Vorbis files).
Example for a recording of Gold FM Radio via internet.radio.com:
ffmpeg -i http://uk2.internet-radio.com:30092 recording.mp3

Radio station IPs and ports may change so the above link may not always work


wifi connection slow and weak on ubuntu 14.04

I was experiencing issues with extremely slow wireless to no wireless. The fix for me was to install a newer kernel.

My basic specs:

Linux Mint 17 cinnamon 64 bit

Kernel: 3.14.5-031405-lowlatency (low latency for audio mixing)

Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter (rev 01)

Mint 17 comes stock with the same kernel as Ubuntu 14.04

I downloaded the following kernels from

http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.5-utopic/

linux-image-3.14.5-031405-lowlatency_3.14.5-031405.201405311735_amd64.deb linux-headers-3.14.5-031405_3.14.5-031405.201405311735_all.deb
 linux-headers-3.14.5-031405-lowlatency_3.14.5-031405.201405311735_amd64.deb

That location also has generic kernels as well, which should work just fine.

You should be able to install those with gdebi without any issues.
 Let me know if that works for you.


It's how the cp command is designed to work; it accepts multiple sources but only one destination. So your expansion looks like:

cp test prod1/2_bas prod2/2_bas prod3/2_bas .... prodN/2_bas

and what you're telling cp is to essentially copy everything into prodN/2bas (the last directory in the expansion). This is certainly not what you want. The error message you see is because you're telling cp to copy directories, and by default it refuses to do so (unless you specify, for instance, -r for recursive copying. Don't do it, though; it will still not do what you want).

Have a look at cp man page, it states what the command does:

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Another solution:

find ./ -type -d exec cp test {} \;


sudo vim /etc/modprobe.d/ath9k.conf

then add

  options ath9k nohwcrypt=1


These problems do not appear to be connected other than they are both bugs.

If you are affected by the create gallery problem I suggest that you subscribe to this bug report.

If you are affected by the take screenshot problem I suggest that you subscribe to this bug report.

Update:

It appears that the gallery option will be removed from the documentation for totem-video-thumbnailer and the gallery code has been split in a different binary

Update 2: An upgraded package has been accepted into cosmic (18.10) proposed. as well as bionic proposed. It should make it's way into updates soon.


My (older) computer has become unbootable except for Ubuntu minimal CD - RAID mdadm

The worst enemy of RAID is faulty hardware on data transfer line. So if you really value the data on your RAID the first thing you should have done is plug those HDDs off the faulty machine. (From power lines too). Bad RAM can ruin metadata even on read access. (something too clever for it's own good may kick in, like disk checker)
Use USB live stick or another HDD to test your hardware, and only when you are sure all other equipment is fine you may plug your RAID back.


How do I recover data from a Logical Volume on Linux after deleting it?

If you can still login then get a terminal and run sudo gparted. If you cannot, which is more likely, make a bootable USB with gparted. It has an attempt data recovery under the Device menu. This is a very slow process. Backup whatever you can first. You probably only have a 5% chance of recovery I am afraid.


Does Evince support javascript in pdf files?

Essentially, it doesn't support it, so you can't turn it off.


Wireless disconnects when laptop unplugged from power source

The Power Manager is invoked when you switch to battery. /usr/lib/pm-utils/power.d/wireless (part of the pm-utils package) is what caused the same problem for me (Dell D630). I looked through the files in dpkg -L pm-utils, read man pm-powersave and found that I could disable the "feature" by creating /usr/lib/pm-utils/power.d/wireless.

So to fix this, open a terminal (Ctrl+Alt+T) and type:

sudo touch /usr/lib/pm-utils/power.d/wireless


Could you tell how and from where did you try to install the Kdenlive ?

At here

From the Ubuntu repositories: http://packages.ubuntu.com/search?keywords=kdenlive&searchon=names&suite=oneiric&section=all

Package version is 0.8

Browsing to the Kdenlive home: http://www.kdenlive.org/

Binary section for Ubuntu: http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/pre-compiled-packages/ubuntu-packages

They are recommending Sunab's PPA.

That is: https://launchpad.net/~sunab -> https://launchpad.net/~sunab/+archive/kdenlive-release

Adding the ppa:sunab/kdenlive-release:

sudo add-apt-repository ppa:sunab/kdenlive-release

.

[sudo] password for ...:
You are about to add the following PPA to your system:
 kdenlive-release

 More info: https://launchpad.net/~sunab/+archive/kdenlive-release
Press [ENTER] to continue or ctrl-c to cancel adding it

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.1Qn6lZTaZ6 --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 6976C1CEB06586061C2C0472B5115B98AA836CA8
gpg: requesting key AA836CA8 from hkp server keyserver.ubuntu.com
gpg: key AA836CA8: public key "Launchpad PPA for C.A.B/sunab" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

Updating the package database:

sudo apt-get update

Installing:

sudo apt-get install kdenlive

.

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  dvdauthor dvgrab frei0r-plugins kdenlive-data libgavl1 libmlt++3 libmlt-data
  libmlt4 melt recordmydesktop xine-ui
The following NEW packages will be installed:
  dvdauthor dvgrab frei0r-plugins kdenlive kdenlive-data libgavl1 libmlt++3
  libmlt-data libmlt4 melt recordmydesktop xine-ui
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 68.4 MB of additional disk space will be used.
Do you want to continue [Y/n]?

Launching the Kdenlive...

Seems to work.

Edit - the libmlt++3/libmlt4/libmlt-data/melt version

The kdenlive, version: 0.8.2.1-0ubuntu0~sunab~oneiric1, is depending the libmlt++3/libmlt4/libmlt-data/melt, without any package version restrictions.

apt-cache show kdenlive

Package: kdenlive
Priority: optional
Section: video
Installed-Size: 4144
Maintainer: Olivier Banus <****>
Architecture: i386
Version: 0.8.2.1-0ubuntu0~sunab~oneiric1
...
Depends: ..., libmlt++3, libmlt4, ..., melt, libmlt-data, ...

If you have those installed then those won't be upgraded with the install kdenlive.

To fix this, run the upgrade:

sudo apt-get upgrade

or

sudo apt-get dist-upgrade

It should upgrade those packages to the latest version from the Sunab's PPA.

Other options

  Is there any other video editing program that lets me cut a part of
  the video.

Yes there are many video editing programs. I'm using the Avidemux.

Avidemux home: http://avidemux.berlios.de/
Wiki: http://www.avidemux.org/admWiki/doku.php

It is available from the Ubuntu repositories:

avidemux-qt: http://packages.ubuntu.com/oneiric-updates/avidemux-qt

  Description: a free video editor - QT version

  Avidemux is a free video editor designed for simple cutting, filtering
  and  encoding tasks.
  It supports many file types, including AVI, DVD compatible
  MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be
  automated  using projects, job queue and powerful scripting
  capabilities.  .  This package contains the QT4 version.

There is also a GTK version - package: avidemux.

Few editors available from the Ubuntu repositories:

kino: http://packages.ubuntu.com/oneiric/kino
openshot: http://packages.ubuntu.com/oneiric/openshot


check this
https://help.ubuntu.com/community/Grub2/Passwords

grub-md5-crypt was for older versions of grub .
ubuntu 13.10 uses grub2


Go to their website:

https://www.virtualbox.org/

Then choose linux host

see 12.04 then choose either 32 bit or 64 bit

wait until download finishes

install virtualbox by clicking on the downloaded file

After that launch the program

Click on New and a window will show up

Choose a name and a version

click next

Now choose the amount of Ram. Red is danger. Green is OK

click Next

choose create virtual Drive

click create and a new windows will show up

Choose the 1st option and click next

Now either choose fixed or dynamically. I prefer dynamical so you can change the size later

Click next

Now choose the amount you want to allocate for your harddisk give it a name and click create

Now we need to configure it so Click on settings

Ignore the error and click OK

choose storage on the left panel and choose the CD icon that says Empty

Now Click on the CD icon on the far right and choose DVD/CD and Click OK

Now Click on the Start Button and boot from your CD

Do not forget to insert your CD


How to make Fluxbox stop making annoying sound effects?

This was annoying me also! I solved it by doing the following on my system:

Opened 'gnome-control-center' via the terminal.
Selected the 'Sound Effects' tab.
Clicked the slider to 'Off' to the right of the 'Alert volume' slider.


How to fix black screen after install nvidia driver?

I think problem might be with optimus. It means your pc has 2 graphic cards, one this NVIDIA and second is Intels integrated card. If so, you should take a look at bumblebee-project because linux does not support nvidia drivers, as far as i know. Guess you should reinstall ubuntu and this time avoid installing NVIDIA drivers, but instead install bumblebee, otherwise pc would heat a lot. Hope I helped.

Actually I think you can test for optimus by writing:

lspci | grep VGA

in console. If it shows intel and nvidia controllers like:

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor       Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev ff)

then you have optimus.


Here is how I did it.

Download XAMPP from here.  Choose you correct version, 32bit or 64bit.

Once downloaded, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was downloaded, probably the Downloads folder, by typing cd Downloads and then run the command(s) below:

sudo chmod +x xampp-linux*installer.run
sudo ./xampp-linux*installer.run

And that should start the installer.


Wired connection keeps shutting down randomly Ubuntu Server 18.04

It was just a cable issue, I changed my Ethernet cable and it was all fixed, as suggested in the comments of the question.

I did not know that a cable could make data transfer intermittently disconnect at random intervals, I thought it should either work or won't.


IRC client that automatically associates with IRC URI

There is console version: IRCII

I do not know about DCC (to be honest), but I have used pidgin many times and had no issues with it: Pidgin

I have found this which seems to have support:Smuxi


How to create a .deb package from compiled source files?

checkinstall, as per tip from Tachyons

apt-get install checkinstall

checkinstall -D make install

See here for further information:
http://www.falkotimme.com/howtos/checkinstall/


How do I make sure the touchpad is enabled on reboot?

I am not aware of any way to simulate the Fn key through using like xdotool or something similar.  However, that being said, you can write a script that you can run at startup to enable your trackpad.

This is an alternate way to do this.

For this, we are going to use xinput.  Unfortunately, I do not have a trackpad on this system, but the commands should be used the same way.

First, run from a terminal the following command:

xinput --list

you are going to be looking for your trackpad in the list.  I am just going to use my mouse as the example.

terrance@terrance-ubuntu:~$ xinput --list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Kensington      USB/PS2 Wheel Mouse       id=8    [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]

My mouse is shown as Kensington      USB/PS2 Wheel Mouse so that is what we are going to get the props for.  Run the next command to see the props that you can set for the device:

xinput --list-props '<device name>'

Example: (Mine gives a ton of information, so I truncated it to the information we need.  Device Enabled is really what we are looking for.)

terrance@terrance-ubuntu:~$ xinput --list-props 'Kensington      USB/PS2 Wheel Mouse'
Device 'Kensington      USB/PS2 Wheel Mouse':
    Device Enabled (152):   1

The Device Enabled (152): 1 shows that my mouse is enabled.  To disable my mouse it would be just to set that to 0, but in your case you want it enabled or set to 1.  The command to enable it would be:

xinput --set-prop '<device name>' 'Device Enabled' 1

My command to enable my mouse would be:

xinput --set-prop 'Kensington      USB/PS2 Wheel Mouse' 'Device Enabled' 1

Then you can add the command with the full path to the xinput command to the /etc/rc.local file.  You need to make sure that you keep the exit 0 as the last line in the /etc/rc.local file.

which xinput

will give you the full path to the file.

terrance@terrance-ubuntu:~$ which xinput
/usr/bin/xinput

After you have that, now add your line to the /etc/rc.local file:

/usr/bin/xinput --set-prop '<device name>' 'Device Enabled' 1

That should now run before you get to the login screen.

It has been brought to my attention that it can get overruled after login.  So, you can add a .desktop file to the /etc/xdg/autostart/ folder that will launch with every user that logs into the system.

I called my file mouse_enable.desktop and I added the following lines to it:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=mouse_enable
Exec=/bin/bash -c 'sleep 15 && /usr/bin/xinput --set-prop "<device name>" "Device Enabled" 1'

Make the file owned by root:

sudo chown root:root /etc/xdg/autostart/mouse_enable.desktop

Make the file have the correct permissions:

sudo chmod 644 /etc/xdg/autostart/mouse_enable.desktop

Now when logging in it should keep the device enabled.

Hope this helps!


You will have to set up the screen size and position offsets on the television.  This is normally buried in the screen configuration menus somewhere.  The may be an auto configure in there, same as there is for a monitor.

The reasons are the same as they are for a computer monitor - differences in sync and refresh timings.


Is there a way to have the login password different from the su password?

Technically, they are already different, only the root account is disabled. That's really the difference. Ubuntu has a rather strong stance on this subject, and they insist sudo is the way to go, rather than having a separate root account. So they disable it.

If you really want to have a root account like Debian, it's quite easy:

sudo -i
sudo passwd root

and then set a password. This will be the password you use when you do su.

If you want to go crazy with it, you might be inclined to remove yourself from the sudo group with:

sudo deluser username sudo

Please make sure you understand the implications of these changes. Read the wiki page linked above.


Which files refer to unallocated partition?

You don't.  You create a partition using the free space, and format that.


20.04.1 Another kernel 5.8 update victim. Lost all network devices!

I had the same issue and it was solved by also installing linux-modules-extra package (i.e. linux-modules-extra-5.8.0-34-generic)


If you install a debian package, you can see where everythings are located by issuing the dpkg with -L

dpkg -L <package name>

That will list where all files in the package are installed. For metapackages, you it will not show you much beside a copyright file and change log. So you need to issue the above to the actual packages.

Note: If that doesn't help, try locating studio.sh, the start script for studio.

locate studio.sh


How to monitor 20+ xubuntu computers with vnc

You may want to try Epoptes.

It usually works together with LTSP, but you can try to setup it for you needs, I hope.

Epoptes scalability is great, I monitored >40 machines with it.


Can't play 1080p/Blueray films without lag

Well, i already had that problem in my pc. what i did was to install SmPlayer and configuring it. Going menu, preferences,general, and in the video tab, select (gl- fast- Ati cards). then when you want to see a movie open it with smplayer and i think it will be fixed.
If not, tell-me something.


Enable SPI and I2C on Ubuntu 20.04 Raspberry Pi

Update, a step-by-step guide to enabling I2C:
Last week my last parts came in, so I finished the hardware and configured Ubuntu 20.04. I was about to start tinkering with I2C, when Thomas commented on my original answer, linking this article written by Alexander Rüedlinger. With that missing piece in hand, getting I2C up was a breeze. The below should be adaptable to SPI as well.

Navigate to raspi-config on archive.raspberrypi.org. Pick the latest version.

Download that file to /tmp and try to install using dpkg.
wget https://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_*INSERT DATE*_all.deb -P /tmp
sudo dpkg -i /tmp/raspi-config_*INSERT DATE*_all.deb

This results in an error, reporting missing dependencies. Read the output and install the dependencies:
sudo apt-get install *INSERT DEPENDENCIES*
This botched the install of alsa-utils, one of the dependencies. To fix, run:
sudo apt-get -fy

Now install raspi-config:
sudo dpkg -i /tmp/raspi-config_*INSERT DATE*_all.deb

Run raspi-config, navigate to 'Interfacing Options', enable I2C.

Install relevant packages. You'll want i2c-tools at least, but I'd recommend getting libi2c-dev as well and python3-smbus if that's your language of choice.

Try probing the bus as user and root:
sudo i2cdetect -y 1 (or 0, I2C bus number is hardware-dependent)
If this gives you an address matrix, I2C is on and working.
i2cdetect -y 1 (or 0)
If this gives you a permission error, perform the next step. Otherwise, skip it.

Create an I2C usergroup, apply it to the bus and add your user to this group:
sudo groupadd i2c (group may exist already)
sudo chown :i2c /dev/i2c-1 (or i2c-0)
sudo chmod g+rw /dev/i2c-1
sudo usermod -aG i2c *INSERT YOUR USERNAME*
Log out and log in. I was connected via VS code's SSH extension and needed to reboot. Then retry:
i2cdetect -y 1

A few comments:
The instructions provided by anvoice in this question were essential, but the actual dependencies are a few years out of date. So I suggest you try step #1 and read the dpkg output to tailor dependencies to your version of raspi-config.
It appears that raspi-config may not be necessary, but you might only need to add the dtparam=i2c_arm=on flag to /boot/config.txt (see the official docs). I haven't tried (yet). If you want to try, sudo nano /boot/config.txt, add the flag on a new line, CTRL-X, confirm with Y, then start at step #6.
Original answer:
I've been looking at a similar issue over the past few days. There appears to be no official support, unofficial packages appear to be largely out-of-date.
Installing raspi-config
Given that both RasPi OS and Ubuntu are Debian-based, it could easily work. I have formulated the following approach for myself, but may not get to test it within the next few weeks:

I will attempt the approach suggested by anvoice in the question you linked.
Note that his answer links to this script by EmilGus on Github, it specifies a number of dependencies.
As suggested by nc4pk in this question, I'll grab the latest version of raspi-config from the official RasPi repo.
I think that's in this folder.

Permissions issue
So that is as far as the installation process, which you might have nailed already. From the error, I'd guess that the user running testwind.py needs additional permissions to access that interface - or that the interface must be accessed differently under Ubuntu. I hope someone can chime in on that.
Context
I am planning a project that implements SLAM on an 8GB RasPi 4. I'm using two Arduinos as additional GPIO and to run HW control loops: I.e. PID to control PWM, so that RPM is approximately constant even if the terrain differs. Using I2C with the RasPi as master; not looked into SPI yet.
Given that SLAM algorithms have a few more memory-intensive (but less compute-heavy) implementations, I opted for the new 8GB RasPi 4. The 3GB per-process memory limit could get in my way, so I'll run Ubuntu 20.04 LTS 64-bit server.
If I can't get it working, I'll test I2C under Raspberry Pi OS. Once I have a working test script, I'll move back to Ubuntu.


Program to automatically generate subtitles using speech-to-text?

I used Aegisub on Windows some years ago, and was really happy with it. Apparently it is available for Linux. It is pretty self explaining.
Aegisub only creates the subtitles file, e.g an .srt file. To combine the video and the subtitle to create a hard-coded subtitle you still need to use a second program.
On Windows I used VirtualDub, but it is not available for Linux. You can use VLC to do this on Linux:

Create your subs in Aegisub, saving it as usual as a .ass file.
Use VLC to add that subtitle track to your video. Subtitle -> Add subtitle file...
Configure the subtitle display style and settings so they display to your liking. Tools -> Preferences -> Subtitles/OSD
You can now watch the video to make sure the subs are displaying as you intended. For example I can check certain subs that I've specified in Aegisub to be displayed at the top of the screen rather than the bottom.
The output will be identical to how it looks now, so make sure all is good.

Go to Media -> Convert/Save... (Ctrl + R).

Under File Selection, add your video file. Tick "Use a subtitle file" and browse to your .ass sub file.

Click the down arrow on the Convert/Save button and click Convert...(Alt + O).

Under Settings, ensure the Convert option is ticked. Tick the Display the output option. Subs aren't added for some reason unless you tick this.

Edit the profile so the video and audio settings are what you want. Under the subtitle tab, tick the Subtitles box, and use DVB subtitle codec. Make sure you tick 'Overlay subtitles on the video'. Press save.

Enter a destination folder and filename in the Destination box.

Press start.

Wait for it to be done, and that's it. The caveat with this method is that the encoding will happen in real-time with the video, so if you have a 2 hour video, it will take 2 hours. This is due to ticking the 'Display the output' box. But for some reason it only works when you tick this.

There are also other subtitle-editors.
Update:
I don't remember Aegisub having a functionality to automatically set beginning and end of a spoken sentence in the subtitles file. And I don't see a mention of such a function anywhere on the site. It is however with (key-combinations) pretty easy to set those times manually.
Is there even any program which has such a function (in any OS)?


Unmount

You can unmount all partitions without trying to unmount the device itself with

sudo umount /dev/sdx?*

Replace the device letter x with the relevant device letter, for example b

Clone

It is a good idea to use a cloning tool with a final checkpoint,

Accidentally did dd /dev/sda

Scroll down to 'Safer tools to create USB boot drives with Ubuntu'

In Ubuntu you can use 'Disks' alias gnome-disks or mkusb
In Windows you can use Win32 Disk Imager

Sync, Partprobe, Mount

sync
sudo partprobe

Try mounting after creating the new system on the USB stick

This command line should work with one or more partitions,

for i in $(lsblk -l -o name|grep -E "sdx.{1,}");do sudo mkdir -p /media/$USER/"$i";sudo mount /dev/"$i" /media/$USER/"$i";done

Replace the device letter x with the relevant device letter, for example b


Synaptic: Could not download all repository indices

Searching for "add i386 repositories", I stumbled across the suggestion to specify an architecture in the sources.list file to prevent these warnings.

I placed [arch=amd64] after the word deb on each line of the file.

I did not add anything to the deb-src lines.

This solved the problem.


Does Ubuntu One for Windows start automatically?

The Ubuntu One application for Windows has an item under the settings, "Connect automatically when the computer starts." I had this option checked and yet Ubuntu One still did not seem to start when I started the computer - there was no icon in the system tray. I am using Windows 7 64-bit.

I got it working by running the Ubuntu One application as Administrator (right-click on it in the Start menu and choose "Run as Administrator"), then turning this option off and clicking "Apply these settings", then turning the option back on and clicking "Apply these settings" again. Next time I rebooted the computer Ubuntu One was in the system tray when I logged on.

I am guessing that unless you explicitly run it as administrator it's unable to save its own settings. That's just a guess though.

Really the Ubuntu One file sync process ought to run as a Windows service, but it does not seem to.


There is some help in the Release Notes

You should be able to find help in applications by pressing F1
(you'll need an onscreen keyboard )

Also, you should be able to use the desktop Ubuntu help, because as far as I know it might be the same in some areas - most likely the documentation for 12.04, or 13.10 - as Ubuntu Touch is still fairly new, I don't think their is much actual help or documentation for it.

 (Sadly, I don't use touch - I am not brave enough to try installing it on anything)


There's a fundamental concept you need to grasp first: PolicyKit only handles authorisation, not privilege escalation. PolicyKit will answer the question: "is the user authorised to do this task?", but it will not give you root privileges.

The commonly-used model is to create a DBus system service, which runs with root privileges. It will take requests from non-root processes, use PolicyKit to determine whether that process is authorised to make that request, and then do the task requested.

I wrote a tutorial on PolicyKit and DBus with Python on ubuntuforums.org a few years back. The principles are the same, although it might need some updating. I need to go to bed now, so have a look and let me know if it needs updating.


PhpMyAdmin installation throws an 'Can't connect to local MySQL server through socket' w/ MySQL 5.5

That guide suggests that you use 'alien' to get mysql installed. But the RPM binaries use a different socket path than the mysql client libraries which phpmyadmin ends up depending on.

Unless you have a specific reason to update to mysql-5.5, you're better off using the mysql-server package from the Ubuntu archives and connecting to that. 5.5.20 is in Ubuntu precise, so when you upgrade to 12.04, you should get 5.5 then.


Installing ARM Development Studio on Ubuntu 12.10

The ARM DS-5™ toolchain installer is available for Windows 32/64-bit, Linux 64-bit and Linux 32-bit hosts. you need to visit ARM Development Studio download page sign-up and download the software with 1 month free licence.


Xubuntu Thunar "Open Terminal Here" opens konsole in homefolder

I found solution!!!
In Thunar Edit>Configure custom actions...
then edit "Open Terminal Here"

and replace:

exo-open --working-directory %f --launch TerminalEmulator

with this:

konsole --workdir %f


Apache2.4.10 on Ubuntu returning Internal server error on running CGI scripts

Saw the error logs in /var/log/apache2/error.log and saw that there is an indentation error because of the cgitb.enable().

Corrected the indentation and now its running fine.


There are some problems in Ubuntu 14.04 related to OpenVPN, a bug has been opened in Launchpad: #1294899 Import saved VPN connection has been Recently Broken
The problem has still not been repaired, so you need to install a package named network-manager-openvpn (which you can do in the Ubuntu Software Center).


I hate that I'm typing this in the answer box, but seeing that you HAVE declared a few things that are a must... I believe its warranted. My suggestion to you, with all things considered (your needs), would be Xubuntu. It will be familiar, great on low-spec hardware and once you're ready to go further with Linux, its VERY customizable. Thats only if you stick with it, and don't go to another DE (desktop environment) before then!

If you're feeling open, and would like to try a more (if a bit weird at first) productive workflow, with things like out-of-the-box easily accessible work spaces (think your windows in all four corners, but in a whole new window that you get to smoothly with two buttons on your keyboard), and things like a straight forward "doesnt take a hacker to use it" UI (user interface), then go with our beloved Ubuntu.

All in all though, my friend, it will be up to you one which one you choose to go with. There are so many different configurations here on this side of the fence, that there is no way in the world that one of us will be able to tell you which one makes you more productive. That's up to you.

Ciao!