Your instructions seem to be old, as far as I know glut is provided by the package freeglut3, to get it with the header files for development, install:

sudo apt-get install freeglut3-dev

freeglut3-dev

which should also pull in freeglut3.

To have found this on your own, you could have done:

sudo apt-cache search glut

After you have installed package freeglut3-dev you can confirm it contains the needed GL files by issuing

dpkg -L freeglut3-dev

which will list contents of the package which include :

/usr/include/GL
/usr/include/GL/freeglut.h
/usr/include/GL/freeglut_ext.h
/usr/include/GL/freeglut_std.h
/usr/include/GL/glut.h
/usr/lib/x86_64-linux-gnu/libglut.a
...
/usr/lib/x86_64-linux-gnu/libglut.so


You can get it here: http://releases.ubuntu.com/11.10/

Or after May 9th, 2013 (when support ends for 11.10) it will be available at: http://old-releases.ubuntu.com/releases/

After support has ended soon for 11.10, you won't get security updates. Therefore it's recommended to install a supported release.


Can I set Hot Corners to run custom commands in Unity?

CCSM

Install CompizConfig Settings Manager (CCSM). Run in terminal:

sudo apt-get install compizconfig-settings-manager

Open CCSM.
Go to "Commands"
Enter your desired command in one of the slots. E.g:

Go to "Edge Bindings" tab
Click "None" and set your desired hot corner (or edge), which corresponds to the command you just set

Move your mouse to the corner
Now your command is run!

Confirmed working on 14.04.


Installation of WiFi Epson SX235W, 4in1 printer / scanner, on Ubuntu 12.04, 64 bit?

Printer

For the wifi printer part , insert all cratridges (that's quite obvious :P )
You have two choiches:

You use the Epson disk and setup trough Windows, then you watch in you Access Point or Router the IP the printer received.
Or (preferred) you can use a router with OTS (or WTS) feature (a button you push to setup a secure network):

press the OTS/WPS button on your wireless router
within 30 seconds press and hold the WiFi button on the Printer until wifi light on the printer will starts flashing
light will turn steady green when connected
check on the router interface (presumably web interface) for the ip assigned to the printer

Now in Ubuntu go to Printers, add Printer, Find a Network printer and there should be.

NOTE

If you don't find the right driver - or for a better one - you can download  it here:
http://avasys.jp/eng/linux_driver/download/lsb/epson-inkjet/escp/ and install it with: dpkg -i *.deb

Scanner

Then for the wifi scanner part you have to install some dependencies and iScan

Download and install dependencies (xsltproc and libltdl7):
sudo apt-get install xsltproc libltdl7
Go to http://download.ebz.epson.net/dsc/search/01/search/searchModule and search SX235W for Linux.
Download the "network plugin package" and the "core package&data package". You have to accept the license and then you can download the .deb packages. Be sure to download the right packages (amd64 for 64bit and i386 for 32bit PC). At the end you will have these packages:

iscan_VERSION.ltdl7_ARCH.deb
iscan-data_VERSION_all.deb
iscan-network-nt_VERSION_ARCH.deb

Note that you need iscan for ltdl7 and NOT ltdl3.
Install them with  dpkg -i iscan*.deb
If you connect to the scanner by wireless, then to configure Sane as backend, edit: /etc/sane.d/epkowa.conf inserting net (printer_ip) and then save (where printer_ip is the wireless ip of the printer/scanner)
If you connect to the scanner by usb, then to configure Sane as backend, do:
echo 'SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0885", ENV{libsane_matched}="yes", GROUP="scanner"' | sudo tee -a /etc/udev/rules.d/40-scanner.rules

When at home I can use some screenshots to be clearer if you need.
Best Regards


How to change SDDM login screen after sleep?

"But clearly SDDM is treating these two situations differently" - SDDM is a display manager and only involved in the initial login. The lock screen is part of the plasma desktop, so you'll have to look for a plasma theme that has a lock screen matching your SDDM theme.


Ubuntu 18.04 is not showing desktop - fresh installation

installing lightdm solved the problem.

sudo apt-get update -y

sudo apt-get install -y lightdm
# choose lightdm as default loader when asked & restart.


How do I increase the font size in Ubuntu 18.04 LTS for a HDPI / 4K display?

You may use (GNOME) Tweaks to adjust font sizes of various elements. First install Tweaks by running

sudo apt install gnome-tweaks

(or sudo apt install gnome-tweak-tool).

Then launch Tweaks and go to the Fonts section, you'll get the options to change font sizes.


If you are satisfied with your OS, I don't think that you can't wait with updates until you have normal Internet connection.

But reading this answer:
How can I install just security updates from the command line?

you can do this by going into a terminal (Ctrl+Alt+T) and entering:

sudo unattended-upgrade

and if it is not installed, then first install it, by

sudo apt-get install unattended-upgrade


Is there a way to tell when I unstalled a program?

Pull up Ubuntu's Software Center. It shows the whole history of all packages that were installed, upgraded and removed. Click the "History" at the bottom of the list to show.


Dual boot between Windows 7 and Lubuntu 20.04

None at all. The installation is automated, so the bootloader settings and such will be configured by themselves. The only thing that will be different in the boot process is an OS picker, where you can choose to boot into Lubuntu or Windows.


How do I edit a file / launch an app without having to worry about "permission denied" messages?

You don't need to drop into root everytime you want to run a few applications. You can add new menu items to your system which will launch applications as the root user (via sudo and gksudo) Adding new menu items is outlined in How can I add and change items in my Applications Menu? Just look up the software's command in alacarte, copy it for the new entry and prior to it's command add gksudo IE: gksudo gedit

Typically I make a new folder called "System Tools" and place those under there.

Once you create the entry in alacarte you can then Right Click the file, Open With another Application, and choose the new entry you've create in alacarte as the software to open with.


how to chat between 2 ubuntu machines in network?

The simplest way I can think would be using netcat

try this on your own machine
in one terminal:

netcat 8080 -l

(this will be the server since we used -l to set it in listen mode)

in the other terminal:

netcat localhost 8080

(this will be the client connecting to the server)

try typing in one of the windows.
You can select any port you want for client / server, but privileged ports (below 1024) require root access on the server)

Replace localhost,  on the client, with the ip / dns name of the sever you want to connect to if you want to try this over a network


Deleted NTFS partition to ext4 conversion

The space is probably taken by reserved blocks, which is usually set to 5%. You can check with tune2fs, assuming /dev/sda1 is the right partition.

sudo tune2fs -l /dev/sda1 | grep -i 'block count

To set the percentage of reserved block to, say, 1%, use the following:

sudo tune2fs -m 1 /dev/sda1


How to create a persistent mounting point in Ubuntu app on Windows-10

I'm assuming you're using WSL (Windows Subsystem for Linux) Ubuntu. Then to preserve your mounting points between sessions you need to edit fstab file which is located in /etc directory

In your case you should add to your fstab something similar to:

H: /mnt/h drvfs defaults 0 0

instead of H: (your disk name) you can also use your network location \\server\share\

Please note, you should be using at least 17093 build of WSL in order to fstab to be processed.


Add network printer to Ubuntu Server via command line terminal

You can use CUPS for that.
Install it by typing sudo apt install cups
Here's their documentation on how to set up network printers:
https://www.cups.org/doc/network.html


How to control the screen rotation in ubuntu 12.10 via an icon on the panel?

Here is a launcher using Unity quicklists (right click menus) to provide you with rotation options:

The result will be something like this:

You just need to follow these steps:

Create a new text file with this content:

[Desktop Entry]
Name=Rotate Screen
Exec=notify-send 'Choose an option from the quicklist' -t 2000 -i rotate
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=rotate
StartupNotify=false
X-Ayatana-Desktop-Shortcuts=Normal;Inverted;Right;Left

[Right Shortcut Group]
Name=Rotate Right
Exec=xrandr -o right
TargetEnvironment=Unity

[Left Shortcut Group]
Name=Rotate Left
Exec=xrandr -o left
TargetEnvironment=Unity

[Normal Shortcut Group]
Name=Normal
Exec=xrandr -o normal
TargetEnvironment=Unity

[Inverted Shortcut Group]
Name=Invert
Exec=xrandr -o inverted
TargetEnvironment=Unity

Save the file with a .desktop extension.
Make the new file executable (it will be called "Rotate Screen") through
Right click → Properties → Permissions tab → Allow executing files as program
Click and drag the file onto the launcher.


How do I remove or reinstall Ubuntu in Windows 8 UEFI dual when Ubuntu is set as default?

First backup your documents onto an external disk (USB or DVDs), then boot on your Ubuntu disk and follow this procedure from the Community Documentation.


GNOME Sushi freezes system when previewing OpenDocument in 18.04

Installing the unoconv converter solved the issue for me and other users

sudo apt install unoconv

This package provides a commandline utility which can convert from any document format that LibreOffice can import to any document format it can export. It uses LibreOffice's UNO bindings for non-interactive conversion of documents.

Supported document formats include Open Document format, LibreOffice Writter, MS Word, MS Office Open/MS OOXML, PDF, HTML, XHTML, RTF, DocBook, ODT, ODS, XLS and more.

Original Solution


How to open the "Run Application" dialog from a terminal?

Install the X11 keyboard/mouse input simulator xdotool and run xdotool key Alt+F2.

You can add this alias to your ~/.bashrc file to make typing easier:

alias rd="xdotool key Alt+F2"

Now all you need to do is type rd.

Hacky, but works.


Android SDK - repositories.cfg could not be loaded

I've done the same thing on my Windows 7 dev box and getting the exact same error. I'm thinking it's an issue with the current android dev toolchain - not an OS issue.

I just created an empty text file with that name in the directory listed and the error went away. As the sdkmanager still has access to the repositories seemingly without issue I'm assuming it's an optional file for adding new repos??? your guess is as good as mine!

It's been a while since I've ubuntu'd but I think you can resolve it the same way simply with;

touch ~/.android/repositories.cfg

shouldn't need sudo.


Is FiiO E10K DAC supported on Ubuntu 14.04?

The E10K works well in Ubuntu 14.04.

To have the device recognized I have to reboot with the device plugged in.  I haven't yet figured out how to get the E10K recognized and installed as an sound output option without a reboot.


Place this at the top of your Makefile:

SHELL := /bin/bash # Use bash syntax

This happens because [[ is a builtin command of bash and you're running it with sh. The above line will set bash as default interpreter for the commands ran on makefile.


once my chromecast ultra was successfully set up with WIN7 it could no longer be seen in SETUP in WIN7, not even if you are connected to the casting network (and it successfully casts on that connection). Setup won't find it. In a WIKI I saw one is supposed to be able to reach the Ultra settings in Windows via the "Cast tab", but in Win 7 that doesnt work, likely the same issue in Linux/Ubuntu. Try factory hardware reset of your ULTRA, a small button depress 25 sec, next to the micro USB.


Linux should have no problem accessing a second disk, partitioned with GPT, from a BIOS-mode boot on an MBR disk. The fact that you're having problems suggests something else is wrong, such as:

User error -- You don't say what you're doing to attempt to access the disk or what type of error message(s) you're seeing, so it's hard to judge if you're doing the right thing or making some mistake in your attempt. I suggest you edit your question to post more details about what you're doing.
Partition table damage -- Your partition table might be damaged in some way that's causing Ubuntu to object to it but that Windows takes in stride. You can type sudo sgdisk -v /dev/sdb (or change /dev/sdb to whatever the device file for the disk is) to run a basic partition table sanity check on the disk. This command will not modify the disk in any way; it will just report any problems it finds.
Filesystem damage or unsupported filesystem -- The partition table might be fine, but if the filesystem(s) used on the disk are damaged or of a variety that Ubuntu can't understand, you won't be able to read them. One particularly common problem with Windows 8 and later is in the Windows "Fast Startup" feature, which turns shutdown operations into suspend-to-disk operations. The result is that filesystems appear damaged to Ubuntu. The solution is to disable Fast Startup, as described here (among many other places). Note that the Windows Fast Startup feature is entirely separate from a firmware feature that often has a similar name.

If I had to lay a bet, I'd say that Fast Startup is your problem.

All that said, gdisk enables losslessly converting MBR to GPT or vice-versa, albeit with some caveats. See this gdisk documentation page for details. (Note: I'm the author of gdisk.) I mention this only in the interests of providing a direct answer to your question. I do NOT recommend doing this conversion, at least not unless and until you've better diagnosed your problem.

EDIT:

First, your GParted screen shot shows one normal partition (/dev/sda1) and another thing that is marked "не размечено." That translates as "not marked out," according to Google translate; but I suspect it's unallocated space (it would be marked as "unallocated" when run on a system that uses English). If I'm right in my interpretation, that's not a partition at all; it's just empty space. This is perfectly normal, although 129 MiB of free space is a bit much. Perhaps there was a partition there once but it was deleted.

Second, there's a little alert flag next to your /dev/sda1 in the GParted screen shot. These icons vary so much from one release to another that I can't be sure, but I suspect this icon exists to indicate filesystem damage. This is consistent with my hypothesis that your problem is caused by Fast Startup, which makes the filesystem look damaged in Ubuntu. I'm afraid I didn't quite understand what you were saying about Fast Startup in your second reply; we're hitting language barrier issues. All I can do is to reiterate that Fast Startup can and does cause problems, and you MUST disable it on Windows 8 and later if you expect to share filesystems between Windows and Linux. With Fast Startup enabled, you can select "shutdown" in Windows all you want and the system will not shut down in the conventional sense; it will go into a sleep mode in which the filesystem is in an inconsistent safe, and is therefore unsafe or impossible to use from any other OS.

Third, the sgdisk output you posted indicates that the secondary partition table overlaps the one and only partition on the disk. This is often caused by software ("fake") RAID issues. This can happen even on single-disk systems or on disks that have previously been used in RAID setups but that are now used by themselves, because of leftover RAID data. It could also be that the disk was copied from one that was slightly larger than the current one; depending on the copy method, the result could be a problem like what you're seeing. The output of sudo gdisk -l /dev/sda might help clarify what's going on.

I strongly recommend against doing anything that writes changes to the partition table at this point, because it's not clear what the problem is. Making permanent changes in ignorance runs a serious risk of making matters worse, so it's best to proceed with caution until you understand the cause of the problem.


Kodi package problems after upgrade from 13.10 to 14.04: libsdl2 not found

I think I found the problem, as Kodi is now installing correctly:
First I found all the packages that were still hanging around from saucy by running

dpkg --list | grep saucy

One by one I removed them all using apt-get remove <packagename>.  (I suspect these were old packages that were installed via some weird ppa when I installed gnome.)

After removing all the saucy packages, I ran apt-get autoremove to cleanup the rest of the packages.  Then I ran into what seems to be a libgl1-mesa-dri bug.

dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_10.1.3-0ubuntu0.4_amd64.deb (--unpack):
 trying to overwrite shared '/etc/drirc', which is different from other instances of package libgl1-mesa-dri:amd64

Luckily simple workaround of sudo mv /etc/drirc /etc/drirc.bak2 fixed that and I could install Kodi again withouth further trouble.


To execute a script at shutdown:

Put your script in /etc/rc6.d
Make it executable: sudo chmod +x K99_script
Notes:

The scripts in this directory are executed in alphabetical order.
The name of your script must begin with K99 to run at the right time.

For more info please see this link. Hope this helps.

Sources:

Execute a script upon logout/reboot/shutdown in Ubuntu


How to make Openbox to use my custom config file?

The solution was found. The credit for it goes entirely to @DK Bose. Here are three items that sum up our lengthy exchange of comments:

the file to edit is ~/.config/openbox/lxqt-rc.xml (if it does not
exist, it should be copied from /etc/xdg/openbox)
hotkeys like Win-Left, Win-Up and so on do not work in LXQt (see
the Lubuntu manual); one should stick with alternatives, for
example, Ctrl-Win-Left and the likes or some thing else;
the xml blocks for specific bindings should not be the first lines
after the opening <keyboard> tag (it is failproof to put them at the
end of the keyboard binding section, i. e. right before
</keyboard>).


Ubuntu 16.04 LTS, internet connection doesn't work, but network still can access machine

It's my understanding that /etc/resolv.conf is for public nameservers only. It appears that yours has been modified to use a private nameserver ostensibly over a VPN. If you wish your Ubuntu box to obtain Domain Name Service normally to allow internet access, I suggest that you revert back to the default /etc/resolv.conf file which contains:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

You can revert back to the default /etc/resolv.conf file by either restoring the original from a recent backup from before it was modified, or opening the file the link points to with the command sudo gedit /etc/resolv.conf and pasting the code from the default file above into it overwriting it's current content. You may want to save a copy of the current content beforehand as a backup somewhere you will be able to locate it if you find you need it.

NOTE: /etc/resolv.conf is a symbolic link to the file /run/resolvconf/resolv.conf so file based operations such as editing on /etc/resolv.conf will actually be carried out on /run/resolvconf/resolv.conf

To confirm that the link hasn't been erroneously modified run the command ls -l /etc/resolv.conf which should result in the output below.

lrwxrwxrwx 1 root root 29 Feb 25 2016 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

the arrow indicates it's a symlink.

For more information on resolvconf which modifies this file see the man page.


Use same dns server for all (future) connections

The way I do this is to set supersede domain-name-servers in /etc/dhcp/dhclient.conf. I've tried variety of options, including head or tail files, under /etc/resolvconf/resolv.conf.d/ folder, but only dhclient.conf does the trick for me. I've done it in 13.04, 14.04, and 15.04 versions of Ubuntu – always works.

Basic idea is that when you connect to a wifi access point, you receive certain information from dhcp server. The supersede option tells Ubuntu to replace whatever dhcp server sends you, with your own. In this case we supersede dns server.  So no matter what wifi you connect to, your ubuntu will replace wifi-given dns with its own.

Bellow is the sample of my own dhclient.conf file, notice the line supersede domain-name-servers 208.67.220.220;:

$ cat /etc/dhcp/dhclient.conf
# Configuration file for /sbin/dhclient, which is included in Debian's
#   dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
#   man page for more information about the syntax of this file
#   and a more comprehensive list of the parameters understood by
#   dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
#   not leave anything out (like the domain name, for example), then
#   few changes must be made to this file, if any.
#

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

#send host-name "andare.fugue.com";
send host-name = gethostname();
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
supersede domain-name-servers 208.67.220.220;
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
    domain-name, domain-name-servers, domain-search, host-name,
    dhcp6.name-servers, dhcp6.domain-search,
    netbios-name-servers, netbios-scope, interface-mtu,
    rfc3442-classless-static-routes, ntp-servers,
    dhcp6.fqdn, dhcp6.sntp-servers;

Now, if you'd like you can use prepend option to use both wifi-given and your own server. In case wifi-given server fails, your request will be routed to the prepended dns.


The same thing happened to me and I had to reinstall Ubuntu :( I don't know why it does it but I think the only thing you can do is reinstall. However someone correct me if I'm wrong


Apache Virtualhost keeps pointing to default directory

Your local.test file you put on pastebin looks good, just uncomment the directory part.

The <Directory ...> - by the way - must point to the same path as the DocumentRoot (/var/www/test/ in your case).

Then you need to activate that file through sudo a2ensite test.local and reload your apache with sudo /etc/init.d/apache2 reload.


Run more than one application in the same time

You can background the process by appending a & at the end e.g.:

./forge.x86_64 &

You can do the same for other processes too.

To view the list of currently backgrounded jobs, check the output of jobs command. The jobs will be shown with a job ID on the left, which can be used to get the job in the foreground again by fg %<Job_ID> e.g.:

fg %1

Similarly to kill a job:

kill %1

On a different note, to keep the backgrounder process running after you detached from your current shell session, you can use nohup or disown:

./forge.x86_64 & disown
nohup ./forge.x86_64 & &>/dev/null


You are not alone. I had the same problem 2 weeks ago, I think its the ISO-file we used.
I solved the problem by doing the first update via the terminal, hereafter the software updater worked just fine - every time.

Start terminal, and type or copy / paste the following:
( when asked for password type (blindly) your password)

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

removes the packages from your local repository
fetches the new and updated packages
do the actual installation

As an added bonus you can plainly see whats going on under the hood.


Artful Aardvark (17.10) upgrade - issue with context menu text background color

After some messing about, I solved this by using gnome-tweak-tool to change the font anti-aliasing from Subpixel to Standard.


You can format(delete) the windows partition from Ubuntu (using gparted) but you can't resize an active filesystem!  To add space to Ubuntu you need to do it from "somewhere else" and of course your best option is a live usb. this question may help you I need help with increasing the size of the file-system partition. Partitioning-o-phobia! feed me back :)

p.s: there's no need whatsoever to upgrade Ubuntu. you  wouldn't be doing partitioning from it in the first place.


While btrfs does have an optimized SSD, it is not recommended at this time.

After doing some research, I found a mixed bag of opinions ranging from ext4 without journaling over ext2.

Under ServerFault (another StackExchange site), it was deduced that SSD should be treated like a regular HD.  Choose the file system that meets the type of file needs.

Here is a point of reference: stackexchange


VokoscreenNG offers an option to record a window:

You can install it as a snap package by running the following command in Terminal

snap install vokoscreen-ng

You can also install it with apt on Ubuntu 20.04 and later from the universe repo by running

sudo apt install vokoscreen-ng


Dolphin Search Toolbar is missing its text field. How can I get it back?

other people seem to have the same problem.

http://forum.kde.org/viewtopic.php?f=202&t=91646.

issue #8 on the first post

UPDATE:
they did remove the search toolbar. the option was showing even after updated, but after i deleted my dolphin folder in /.kde (and it generated a new one), the option disappeared.


Solution: Turn on legacy mode in BIOS
Don't know why it worked before and suddenly stopped.
Tried many solutions I found online, only this one helped.


You need to install the Vino package in Ubuntu 20.04:

You must have the Vino package installed for Screen Sharing to be visible.


Netbeans project doesn't run on localhost

The new default root folder of apache is /var/www/html, thus your Source folder should read /var/www/html/PhpProject2.


Is it possible to run pbuilder without root privileges?

Yes, copied from: pbuilder.

It is possible to use user-mode-linux by invoking pbuilder-user-mode-linux instead of pbuilder. pbuilder-user-mode-linux doesn't require root privileges, and it uses the copy-on-write (COW) disk access method of User-mode-linux which typically makes it much faster than the traditional pbuilder.

User-mode-linux is a somewhat less proven platform than the standard Unix tools which pbuilder relies on (chroot, tar, and gzip) but mature enough to support pbuilder-user-mode-linux since its version 0.59. And since then, pbuilder-user-mode-linux has seen a rapid evolution.

The configuration of pbuilder-user-mode-linux goes in three steps:

Configuration of user-mode-linux

user-mode-linux isn't completely trivial to set up. It would probably be useful to acquaint yourself with it a bit before attempting to use rootstrap or pbuilder-user-mode-linux. For details, read /usr/share/doc/uml-utilities/README.Debian and the user-mode-linux documentation. (It's in a separate package, user-mode-linux-doc.)

user-mode-linux requires the user to be in the uml-net group in order to configure the network unless you are using slirp.

If you compile your own kernel, you may want to verify that you enable TUN/TAP support, and you might want to consider the SKAS patch.
Configuration of rootstrap

rootstrap is a wrapper around debootstrap. It creates a Debian disk image for use with UML. To configure rootstrap, there are several requirements.

Install the rootstrap package.
TUN/TAP only: add the user to the uml-net group to allow access to the network
adduser dancer uml-net
TUN/TAP only: Check that the kernel supports the TUN/TAP interface, or recompile the kernel if necessary.
Set up /etc/rootstrap/rootstrap.conf. For example, if the current host is 192.168.1.2, changing following entries to something like this seems to work.

transport=tuntap
interface=eth0
gateway=192.168.1.1
mirror=http://192.168.1.2:8081/debian
host=192.168.1.198
uml=192.168.1.199
netmask=255.255.255.0

Some experimentation with configuration and running rootstrap ~/test.uml to actually test it would be handy.

Using slirp requires less configuration. The default configuration comes with a working example.
Configuration of pbuilder-uml

The following needs to happen:

Install the pbuilder-uml package.
Set up the configuration file /etc/pbuilder/pbuilder-uml.conf in the following manner. It will be different for slirp.

MY_ETH0=tuntap,,,192.168.1.198
UML_IP=192.168.1.199
UML_NETMASK=255.255.255.0
UML_NETWORK=192.168.1.0
UML_BROADCAST=255.255.255.255
UML_GATEWAY=192.168.1.1
PBUILDER_UML_IMAGE="/home/dancer/uml-image"
It needs to match the rootstrap configuration.
Make sure BUILDPLACE is writable by the user. Change BUILDPLACE in the configuration file to a place where the user has access.
Run pbuilder-user-mode-linux create --distribution sid to create the image.
Try running pbuilder-user-mode-linux build.

Extra comments in the link:

pbuilder-user-mode-linux emulates most of pbuilder, but there are some differences.

pbuilder-user-mode-linux does not support all options of pbuilder properly yet. This is a problem, and will be addressed as specific areas are discovered.
/tmp is handled differently inside pbuilder-user-mode-linux. In pbuilder-user-mode-linux, /tmp is mounted as tmpfs inside UML, so accessing files under /tmp from outside user-mode-linux does not work. It affects options like --configfile, and when trying to build packages placed under /tmp.

To run pbuilder-user-mode-linux in parallel on a system, there are a few things to bear in mind.

The create and update methods must not be run when a build is in progress, or the COW file will be invalidated.
If you are not using slirp, user-mode-linux processes which are running in parallel need to have different IP addresses. Just trying to run the pbuilder-user-mode-linux several times will result in failure to access the network. But something like the following will work:

untested


Screen turns black when using launcher icons

OP wrote:

  I figured it out! I had to reset Unity, following the guide here -> http://www.webupd8.org/2012/10/how-to-reset-compiz-and-unity-in-ubuntu.html Note that it will take a bit, so don't be impatient. Wait until your launcher is reset, then you can close out of the terminal. Note that you will need to edit and restore any settings you had before, including those in compiz.


The error with Picasa has an explanation here

"We’ve decided to retire Picasa in order to focus on a single photo service in Google Photos"


With the output of df -h, really the problem is the huge usage on the disk sda1.

Filesystem Size Used Avail Use% Mounted on
 /dev/sda1 146G 138G 554M 100% /
 none      4.0K    0 4.0K   0% /sys/fs/cgroup
 udev      742M 4.0K 742M   1% /dev
 tmpfs     151M 1.1M 150M   1% /run
 none      5.0M 4.0K 5.0M   1% /run/lock
 none      752M 540K 751M   1% /run/shm
 none      100M  80K 100M   1% /run/user

use disk usage analyser to drill down to the locations that have the biggest files and delete them.

If you are worried about the pop-up coming up while updating the kernel, head over to removing old kernels - It saved me from the pop-ups.


Unable to restore specific directory from backup

Déjà Dup is a file back-up program that is quite easy to use and does what 95% of users need 99% of the time.

However, it is not the most intelligent back-up solution around.  As you re-installed your system and you have a different host name and user name, Déjà Dup cannot find the files the new user is looking for…

Therefore, you have to restore all files of a different host from a different user to a different location on the new host/user (very logical when you know about it). Then just copy the needed files over from the total restore to the new location (~/Documents) and delete the total restore.

Don't kill the messenger!  ;-)


Before running the command try entering:

export JAVA_HOME="path_to_java_home"

Where path_to_java_home is the folder where your bin/java is.

If java is properly installed you can find it's location, by using the command:

readlink -f $(which java)

Don't forget to remove bin/java from the end of the path while putting it into JAVA_HOME


How do I detect when all windows/apps are minimized and only desktop is visible?

Find out if all windows are minimized
The existing answer mentions the right tools, but has quite a few issues, and won't work as it is.
A few important ones:

When using:
 s = Wnck.Screen.get_default()

In a "standalone" situation (not from an existing loop), you need to add (see further below)*:
 s.force_update()

is_minimzed() is a method, and won't work without ()

The answer is not usable in another situation than OP's

A general script to just see if all windows are minimized would then be:
#!/usr/bin/env python3
import gi
gi.require_version('Wnck', '3.0')
from gi.repository import Wnck

s = Wnck.Screen.get_default()
# when not run from a loop, tell it to force_update
# else there will be no output
s.force_update()

all_minimized = True

# go through all windows
for window in s.get_windows():
    # exclude windows like the desktop etc.
    if window.get_window_type() == Wnck.WindowType.NORMAL:
        # see if it is minimized
        if not window.is_minimized():
            # if any of the windows is not minimized -> all_minimized = False
            all_minimized = False

print(all_minimized)

from here:
Common Pitfalls
While the API provided by libwnck should be mostly straight-forward in general, a few pitfalls are often hit by users of the library.
Explicit fetching of information
At its creation, a WnckScreen object will not have fetched information from the X server. If queried immediately after its creation (via wnck_screen_get_windows() or wnck_screen_get_workspaces(), for example), the WnckScreen object will look like there are no workspaces nor windows on the screen. This information is fetched in the main event loop with an idle source, to avoid an expensive synchronous operation on startup. If no main event loop is used, or if the information is needed as soon as possible after the creation of the object, wnck_screen_force_update() can be used to explicitly fetch the information.


Error while installing package: installed python3 package post-installation script subprocess returned error exit status4 on Ubuntu 18.04 LTS

Try running sudo apt update first and then sudo apt upgrade. Then try to installing the Python-related package again.


Just "Quit" and run the installer again and it'll continue where it left off. Just be careful not to change the location of the installer, or the folders it creates.


32 bits apps don't work with nvidia 440 drivers

Fixed it by purging all nvidia libraries sudo apt get purge nvidia* libnvidia* and reinstalling the drivers. sudo apt get install nvidia-drivers-440


I usually setup servers like this. I use the mini.iso

http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/installer-amd64/current/images/netboot/mini.iso

This is the smallest you can go with an installer. Anything else will require you to modify the installation.


Navigating to a Shared drive from within applications

It would help if you could give some examples of applications that cannot see the drive, but I could bet these are the ones that are not integrated with Gnome.

In any case, you should try to see whether your NAS has been mounted with gvfs (this should be the case if you mount it from Nautilus). Go to your home directory, and change to a hidden directory called .gvfs/. Your volumes should be mounted here, and all the applications that cannot find it like Nautilus does should be able to navigate to these mount points.

You see, what happens is this: in Unix/Linux, any shares / drives / etc. are mounted within the normal filesystem hierarchy. Nautilus and a couple of other applications additionally show these mounts on the left side of the file selection, but this is an additional behavior. If you can access the shares with Nautilus, then they are mounted somewhere, and any application, even if it only understand local filesystem, should be able to find it.


Apparently upstart isn't included in the server version OOTB even though there are scripts in /etc/init (a bit confusing).

I rewrote the upstart script as a systemd unit file using mostly the Ubuntu wiki page on systemd for upstart users as a guide and enabled it in normal fashion.


New as new can be to this. Needed password reset. Now cant login at all

There is a way of resetting the password if you have physical access, and I'll look that up afterwards. An easier way, assuming that you don't mind changing your user name is to boot a live Ubuntu from a USB drive and them reinstall alongside your existing version using a different username. You should have full access to the data tat is already there.

Before that though, if you think you know what your password is now, after you boot, press ctl-alt-F1 to bring up a terminal session. Type your username, then password and see if you can get in using the console. After that we can see if the problem with graphics can be resolved.


I am recommended to upgrade from 14.04 to 15.04 but it fails

It seems that my apt-cacher install was getting in the way.

I simply removed my /etc/apt/apt.conf.d/01proxy, then proceeded to run

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

and finally when running

do-release-upgrade

it stopped whining about this:

  403  Sorry, not allowed to fetch that type of file: vivid.tar.gz.gpg

NOTE: your proxy settings might be different than mine. Look for the file inside /etc/apt/apt.conf.d/ that contains the string proxy.


How do I programatically add/remove items from Nautilus bookmarks?

Those bookmarks are controlled by ~/.config/user-dirs.dirs and adding new items configures the appearance of the list.

As an example, to add a Cloud bookmark from the list add a line:

XDG_CLOUD_DIR="$HOME/PATHTOCLOUD"


Fixed it! I've just deleted all the .user files in the project folder.


Seeing a package version but not able to install it

The solution was to do

$ sudo apt-get install couchdb=2.3.1~bionic


Wired internet not working with an Intel 82579LM NIC

Try running the following command:

sudo ifconfig eth0:avahi down

and then try connecting again.


Can't generate makefiles in MonoDevelop 5.5

Run

mdtool gsetup

and enable Project Import and Export / Makefile generation.

After this, your command should do something :o) but I've read here that

  Makefile integration in MonoDevelop is kind of an abandoned project


How do I get the full MATE desktop after installing Ubuntu? mate-desktop-environment isn't complete

The metapackages that correspond to the Ubuntu flavour are typically named <flabour-name>-desktop (ubuntu-desktop, xubuntu-desktop, ubuntu-gnome-desktop, etc.). These packages bring in the artwork, customization, etc., added to the base desktop environment (gnome, xfce4, etc.). In the case of Ubuntu Mate, the metapackage is ubuntu-mate-desktop:

sudo apt-get install ubuntu-mate-desktop


Unable to mount the CD/DVD image on the machine Sandbox

I struggled with this for about 2 hours on a Windows 7 host running Ubuntu 13.10 Server guest. In the end, I just copied over the VBoxGuestAdditions.iso to the guest (using WinSCP), mounted it, and then ran VBoxLinuxAdditions.run from the guest.

Here are the steps I took:

Locate VBoxGuestAdditions.iso on your host (in my case, C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso).
Copy VBoxGuestAdditions.iso to your guest (in my case, I used WinSCP).
In the terminal for the guest mount the ISO using the following:

sudo mkdir /media/GuestAdditionsISO

sudo mount -o loop path/to/VBoxGuestAdditions.iso /media/GuestAdditionsISO
At this point you'll probably get a message that the ISO has been mounted as READ-ONLY. That's perfectly fine. If you change into the directory /media/GuestAdditionsISO you should see VBoxLinuxAdditions.run and it should be executable:

cd /media/GuestAdditionsISO

ls -l
Now just run VBoxLinuxAdditions.run:

sudo ./VBoxLinuxAdditions.run

You also have the option of extracting VBoxGuestAdditions.iso in Windows (or whatever host OS you're using) and then SCP'ing (or WinSCP'ing) it over to the Ubuntu guest, and then just running: sudo ./VBoxLinuxAdditions.run

Better doing what I have listed above instead of wasting time and putting faith in methods that may or may not work on your particular configuration.

Hope this helps.


no audio from headset after switching from a2dp to hsp/hfp 20.10 intel wireless ax200

Alright, so an update to bluez and the audio stack that fixes this just came out today(23 november 2020). All one needs to do to apply the fix is:
sudo apt update && sudo apt upgrade -y and your wireless ax200 card should accept hsf/hfp. Note that I'm doing this on groovy gorilla, I am unsure of any support for this in lts versions(but if you do the above step and this dosen't work, you should try using do-release-upgrade). NOTE: the audio is very low quality for the hfp profile, I've made a switcher based on another script, and my switcher is available here
for all interested parties who want to be able to use push-to talk. Just put your headphone's mac address in the textbox and toggle with the button


If you need Windows only to run some apps, not games you can use VirtualBox and save your virtual disk on drive - I use this method and it's cool in such a situation.

Installing Windows next to Ubuntu is worth when you want to play games, or use demanding programs.
The most annoying thing here is other file system in Ubuntu - ext4 and NTFS in Windows. Linux can see Windows files, but from 7 Ubuntu files won't be visible. In the past I made partition in NTFS and put all my datas there. I had to add its to mounting list /etc/fstab but it's easy. If you like my solution you need also third partition for Windows OS, but as well you can put all the data there.

With GParted you will able to create partitions. Grub will add both systems by himself.


Default App for opening videos is SMPlayer, then why videos are being opened in Movie Player?

I believe Ubuntu 12.04 currently does not follow the global defaults set under System Settings->Details->Default applications.

What you can do is go to that video's location in the File Manager, right click, then select Properties, go to the Open with tab, select the application you want (in your case that would be SMPlayer), the click Set as default.

Note that you will have to do this for every extension, if you do this for a .flv file, all .flv files will open in SMPlayer, same for .mp4, .wmv, and others.


Unable to upgrade from Lucid Lynx to Maverick Meerkat

Just because you haven't got random sources enabled doesn't mean you don't have software from them currently installed. Removing a source doesn't remove the software you obtained from it.

I suggest you take a look at the files in /var/log/dist-upgrade/ to see where things are failing.

If you can't figure it out, perhaps post them here so we can take a look.


How to change 'Show Applications' grid-icon in Ubuntu 20.04

This Ubuntu Handbook article  has since shown, for the Yaru theme, the location of this icon, and how it may be edited.

The start menu dot grid icon relies on the view-app-grid-symbolic.svg icon. For default Yaru icon theme, it’s located in /usr/share/icons/Yaru/scalable/actions.

To change it, you can simply replace it with another SVG file.
Make a backup of the original file first:
cd /usr/share/icons/Yaru/scalable/actions/ && sudo cp view-app-grid-symbolic.svg view-app-grid-symbolic.svg.bak

Then copy the SVG file you want to use to the original location:
sudo cp /path/to/your/svg /usr/share/icons/Yaru/scalable/actions/view-app-grid-symbolic.svg


firefox's profile is inaccessible after system reinstallation

Disclaimer: not sure this will work. It might overwrite the current profile. Best to make a backup of the old profile before attempting.

Run firefox -P
Click "Create profile". Follow the instructions.
When you get the option, click "choose folder" and select the location of the old profile. Finish the creation of the new profile.
Once you're back at the "Choose user profile" menu, select the one you just created and make sure "Use the selected profile without asking at startup" is selected, then click "Start Firefox".


If your local keyboard is working, you can try the "magic keys"

First edit /etc/sysctl.conf

# Graphical
gksu gedit /etc/sysctl.conf

# Command line
sudo -e /etc/sysctl.conf

Add in the line (at the bottom)

kernel.sysrq = 1

"To perform a safe reboot of a Linux computer, use  RSEIUB magic SysRq Magic combination key:

Hold Alt+PrtSc then type R+S+E+I+U+B , you need to press each key for 2-3 seconds."

http://www.unixmen.com/use-magic-sysrq-combination-key-to-recover-from-a-frozen-system-in-linux-ubuntu/

If you are not getting a response from the local keyboard or mouse, your only other option would be to try to ssh from another box.

You will need to install openssh-server first

sudo apt-get install openssh-server

You would then ssh in and shut it down. If you can ssh in, it helps to check the logs as well (before you shut down).

ssh user@froxen_box_ip

sudo shutdown -h now
sudo reboot


hard disk free space not increase after delete files from ZFS file system(Ubuntu 20.04.2 LTS)

Some of the data may be tied up in snapshots. You can list them in the terminal with the following command:
zfs list -t snapshot

If there is one that is particularly large, you can remove it like this:
sudo zfs destroy rpool/USERDATA/MHT@FRIDAY04-30-21

Be careful when issuing zfs destroy commands, because there is no undo. You will not destroy your file system, but you will not be able to rollback to a point in time if you need to.


lsblk lists your block devices in a tree.


You can try your luck with Master PDF Editor, which is considered as one of the best free (not open-source) PDF editors for highlighting, annotating and adding/reading comments on PDF files.
To install it, download the .deb package 64 bit - For CentOS/RedHat 7.x, Ubuntu 16.x - 20.x from here and save it (e.g. in your ~/Downloads).
Then open your terminal and run:
sudo apt install ~/Downloads/master-pdf-editor-5.6.80-qt5.x86_64.deb

If you haven't downloaded the package in ~/Downloads, change ~/Downloads to your actual download path in the above command.


Input doesn't work after upgrading to Ubuntu 12.04

The solution to the temperature issue on the Macbook Pro (6,2) was to create a script to self monitor it.  That's the best I could come up with.  First, install lm-sensors via apt-get, and then run sudo sensors-detect and answer yes to all the questions and everything.  Then sensors should return your hardware settings.  The script is something along the lines of:

sensors | grep --color="none" "Core"
sensors | grep --color="none" "side"
if [[ $1 < 6001 && $1 > 1999 ]]
    then
    sudo echo $1 > /sys/devices/platform/applesmc.768/fan1_min
    sudo echo $1 > /sys/devices/platform/applesmc.768/fan2_min
fi

The first command will return both your CPU temperatures, and the second will return your current fan speed.  Then we do a sanity check to make sure that you don't accidentally add a 0 and try to run your fans at 60,000 RPM (the fans might have something built-in to prevent this, but I didn't want to take a chance on blowing them up, because that would be very awkward to explain.

Name that script something like spoolFTL or whatever you like.  Then, you can set the fan speed to a number, x, by running sudo bash spoolFTL 4500.  The directory is relative, though, so you might consider putting it in the root directory so you can run sudo bash /spoolFTL 4500.

apt-get -f install fixed the networking and keyboard and such.  Unity doesn't freeze at login, but it does crash after awhile (usually 10 minutes), and I have to do a hard reset.  Console still works fine, though.

Edit: In my experience, I've been keeping the CPU at around 45°C to keep it happy.  In command line, 2000 RPM has been enough to keep it at this temperature quite easily (as in OSX), but when I start Unity, I have to generally run it about 4000-4500 RPM (probably about the same in 11.10, as well).  I imagine this is due to the high CPU requirements of the Unity desktop.  When I first started Unity, I kept it at 3000 and thought it would be enough.  A few minutes of Firefox browsing later, I checked it and my CPUs were at 75°.


Erratic mouse wheel after upgrade to 12.04

I can't answer what has changed, but I noticed a few things since I installed Ubuntu 12.04 yesterday:

The wheel works correctly in Firefox, but doesn't while browsing files and folders (Nautilus) or editing text in gedit.
If you first place the mouse on top of the scroll bar and then use the wheel, it works fine, even in gedit and Nautilus.


You can download the iso imagen from ubuntu.com page and use Rufus. It is free and easy to use. Rufus is a program that converts your iso image into a bootable usb....you can use any usb you want...Rufus formats it and makes it bootable.

hope it helps


In the BIOS don't disable the hard disk completely just look for boot order, to make it attempt to boot from the CD before the hard disk.


not sure why you would want to use such character in the user name, but here is one way (for username foo@t):

# useradd -m foo@t
# /bin/su - foo@t
$ id
uid=22284(foo@t) gid=22284(foo@t) groups=22284(foo@t)

then to set a password

# passwd foo@t

to delete such user (and all her/his files):

# userdel -r foo@t


Ubuntu fails to boot on Dell XPS 15 (7590)

For some reason, the initrd did not get created by debootstrap.
All the -u flag does is updating existing initramfs. Hence, you have to use the -c flag first in order to create it : update-initramfs -c -k all.


How to route traffic to VPN thru other linux machine

Routing is a two-way deal.

At the moment you have only specified the routing for packets to travel from your PC through the Pi and down the VPN to the destination.  At the other end of the VPN link you also need to specify routing for packets to travel down through the VPN and go via the Pi to get to your computer.

That latter would be a route something like:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   172.16.199.100  255.255.255.0   UG    0      0        0 tun0

I.e.,:

route add -net 192.168.100.0/24 gw 172.16.199.100

(Or whatever IP address is at the Pi end of your VPN).

Your network topology looks like this (the black parts):

The VPN connection is in blue.

The routes you have, or need to have, are in green.  You already have the one on the PC - it is the opposite route on server that you need to add.


Firefox Video Links - Open as VLC Network Stream

I found this vlc contect menu addon that seems to be doing the trick for now. When you right click, you can select add url to vlc playlist.
However, it doesn't provide default functionality for if you click on the link, and you have to make sure to select the right option from the right click menu.


Chat between two people sharing byobu screen

Absolutely!  This we do this all the time.  There's a couple of little, lightweight options:

On a command line, just start with the shell comment character, "#", like: # hey, dustin here, what are you doing with that file?
Open up a text editor like vi(1) or emacs(1) and start typing
Use the wall(1) command to talk to all windows everywhere

Full disclosure: I am the author and maintainer of Byobu.


Reinstalled Ubuntu from back-up.  After fresh install installed K3b from the terminal with no issues.  Must be a problem with the Software Center.


mount a ntfs windows harddrive permanently at startup

Open fstab to edit:

sudo gedit /etc/fstab

Add the following line:

UUID=61EDA0796D906D67 /media/DatenWin  ntfs  defaults,fmask=133,dmask=022,gid=1000,uid=1000  0  0

Also:
You will need to make the directory DatenWin first:

sudo mkdir /media/DatenWin

And enter the following commands into a terminal to confirm that the uid:

id -u {yourusername}

and gid are correct:

id -g {yourusername}

Then reboot. You shlould have the drive mounted and have sane permissions that match your home folder.


The solution here : "sudo apt install appmenu-gtk2-module" and reboot.


How to install Snaps with Ubuntu 16.04 on a custom kernel?

It’s because (afaik) upstream Linux sources don’t work with confinements. You could find the corresponding patch from Ubuntu mainline kernel and build kernel with this patch.
Also, is there really no other kernel that will suit your needs and allow you to mount snaps?


How can I enable audio system on Envy 15t-3200

This link could help u .. http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01912228&lc=en&os=4063&product=5278243&sw_lang=


I use VirtualBox VMs for Windows 10 obtained from here: https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

You can try out Microsoft Office for 30 days here: https://products.office.com/en-us/try

This maynot be a long term solution, as the trial will expire. Unless you have scripted the setup of the VM/Office, it will be pretty tedious to set it up every time.


The FreeBASIC wiki (specifically, http://freebasic.net/wiki/DevBuildLinux) describes how to get FB to compile on Linux, and suggests the following packages:

gcc
make
libncurses5-dev
libgpm-dev
libx11-dev
libxext-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libgl1-mesa-dev
libffi-dev

You can install them all in one command with:

sudo apt install gcc make lib{ncurses5,gpm,x11,xext,xpm,xrandr,xrender,gl1-mesa,ffi}-dev

Some of the packages may only be needed if you actually plan to build the FreeBASIC compiler and runtime libraries from scratch.  But they are at least sufficient for getting programs to compile and run with fbc.


While all the browser processes are runing on the server you need to install the restrictions there. If you set up the iptables configuration to be installed at every boot (on the server: like write all the commands in /etc/rc.local) it should be enough, unless the terminal users have root access on the server.

For scenarios like this denying all web traffic and setting up a proxy server is the usual solution. This is also your path, if you want different permissions for different URLs on the same webserver IP.


Mail not being recieved when sent from Ubuntu 14.04 server with postfix on ServerMania

Figured it out with help of a friend.  Turned out the problem was how I was sending mail to postfix for relay.  I changed the virtual alias from root@something.com to just root.  So entry in /etc/postfix/virtual looks like this now:

root destination@email.com

Now when I send email to this alias I send it to root@server1.mydomain.com.  This resolved the issue as I also did not have the correct address specified.  Mail is now being forwarded.  Not sure why it was even attempting to forward if an incorrect forwarding address was present.  Very strange.


Preparing a service to use upstart and systemD (compatibility)

In case anyone is wondering here is the blog about the announcement that Ubuntu will follow Debian's discission on changing from upstart to systemd.

The thing is: if you code something and want a larger user base than Ubuntu users it might already be wise to always include a systemd script. Redhat, SUSE, Gentoo, Arch already (can) use systemd.

If Ubuntu is the sole target you could stick with upstart and deal with systemd when the time is there to worry about systemd. That is going to take at least 6 more months so there is plenty of time.

And if you are lucky someone creates a conversion tool to automatically create a systemd script from an upstart script.

Basically: what ever you want do that ;-)


Your issue seems to be that you are not in the same folder as the file tor-browser-linux32-5.5.5_LANG.tar.xz, so the file is not found, as you don't say where you downloaded the file, I can't tell you how to get to it but if it is in your /home/downloads run

cd ~/Downloads

then

tar -xvJf tor-browser-linux32-5.5.5_LANG.tar.xz

to extract it, and keep following your guide.

As you are struggling at this stage, building the source may not be the best way to install tor, it will get much more complex.

Instead just open a terminal and run

sudo apt install tor

to install from the repositories.


Open the terminal and type qpdf --show-encryption filename.pdf command to show the document's permission details.


Clicking font selector in portable Photoshop CS4 in 11.04 causes force quit?

Run winetricks atmlib in terminal. I think that should fix this problem. :)


How to check whether module is loaded with custom configurations?

TL;DR: Look in /sys/module/ath9k/parameters/ or do cat  "$(readlink -f /sys/class/net/wlp2s0/device/driver/)"/module/parameters/<param_name>

Apparently such information is contained within /sys filesystem. According to Gilles's answer on the relevant post, in order to find the driver in use by interface you would execute

readlink /sys/class/net/wlan0/device/driver

which would provide the relative path as in

../../../../bus/pci/drivers/ath5k

In my case due to systemd and predictive interface naming, the interface is named differently and produces

$  readlink /sys/class/net/wlp2s0/device/driver
../../../../bus/pci/drivers/ath9k

The resulting directory path contains subdirectories module/parameters/ where there will be files for each parameter containing their current value. Thus, if I edit the /etc/modprobe/ath9k.conf file and reinsert the module, the result is as follows:

# After editing the conf file to set parameter to 1
$ sudo sh -c 'modprobe -r ath9k ; sleep 3; modprobe ath9k'
$ sudo cat  /sys/class/net/wlp2s0/device/driver/../../../../bus/pci/drivers/ath9k/module/parameters/ps_enable
1
# after editing the file and setting parameter to 0
$ sudo sh -c 'modprobe -r ath9k ; sleep 3; modprobe ath9k'
$ sudo cat  /sys/class/net/wlp2s0/device/driver/../../../../bus/pci/drivers/ath9k/module/parameters/ps_enable
0

The command can be combined as well.

$ cat  "$(readlink -f /sys/class/net/wlp2s0/device/driver/)"/module/parameters/ps_enable
0

Alternative /sys path would also be  /sys/modules and probably more preferable if you already know what driver is used by the interface, so you can skip the readlink part. In my specific case

/sys/module/ath9k/parameters/ps_enable

or

/sys/module/ath9k/drivers/pci\:ath9k/module/parameters/

According to sysfs(5) manual, "This  subdirectory  contains one subdirectory for each module that is loaded into the kernel."

There's also another way to figure out what driver is in use by the interface (if necessary, although the fact that I'm editing conf file for the module means I already know what module the interface uses; but in case you do need that I'll leave it as an alternative). If you do have desktop environment and dbus running, as well as qdbus or dbus-send installed, such information can be queried via Network Manager's dbus interface ( though it requires figuring out the object path of each individual device, and probably would be better written in Python or C )

$ qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager/Devices/14 org.freedesktop.NetworkManager.Device.Driver
ath9k


"not authenticated sources" warning on apparently safe packages, Ubuntu Update Manager

The action would require the installation of packages from not authenticated sources

That could mean you have missing authentication keys. To check, open system settings - Software & Updates. Then go to Other Software tab. Uncheck any sources you don't use. Then you need to make sure you have a key (Authentication tab) for each for each source. If you are missing any keys, that is probably the source of the error. You would then go to the corresponding PPA website, click the verification signature, click it again, save the page as a text document. Then go back to the Authentication tab and import it.

After those steps, close Software & Updates and launch Software Update again.

  If I go the command-line route, must I abandon the Update Manager permanently?

No, it will still be available. The Software Updater gui will automatically refresh if you modify any sources or applications.


Append/concat .pdf files from a zip file:

$ > out.pdf; xargs -a <(zipinfo -1 in.zip) -I {} \
  sh -c 'mv out.pdf tmp.pdf; unzip -p in.zip "$1" | \
  gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -o out.pdf tmp.pdf -' _ {}

Using fuse-zip:

$ mkdir -p zip && fuse-zip -r in.zip zip && \
  gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -o out.pdf zip/* && fusermount -u zip


Ubuntu 14.04 wired connection not working

Not hearing anything on the link (not receiving any packets) troubleshoot hardware, cables, router, network card...


Programmatically check unattended upgrades result

Apt does not issue a signal, log entry, or timestamp signifying successful upgrade completion without error. The developers assume that successful completion should follow the linux tradition of feedback only upon error.

Instead of using shell scripts to interact with apt, look into using aptdaemon, the tool intended for the purpose.


Why there are button areas defined for my Apple Magic Trackpad though xorg's default config disabled them?

It turns out the MatchProduct key is interpreted case sensitive. xinput -list gives me

Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ HID 046a:0023                             id=9    [slave  pointer  (2)]
⎜   ↳ HID 04d9:1135                             id=10   [slave  pointer  (2)]
⎜   ↳ Trackpad von apple

The trackpad is listed as Trackpad von apple. For those who don't know: von is a german word. As german is my system language this seems to be the cause my trackpad is listed like that.

Adding apple in lower case to /usr/share/X11/xorg.conf.d/50-synaptics.conf does the trick.

    MatchProduct "apple|Apple|bcm5974"

As I don't want to modify system config files belonging to the root user I configured it by adding the line

Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"

to my /usr/share/X11/xorg.conf.d/60-magictrackpad.conf, which is the recommended way for individual configuration.


I think this link may help you.

Summary:

sudo rm /etc/resolv.conf
sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u

Then refresh your browser or others.


If you want to only have your specific paths in $PATH when running your desired program, then you can do it like this:

PATH=/path/to/bins /opt/my_program

In your case:

PATH=$HOME/yt-conda/bin:$HOME/yt-conda/sbin /opt/hfs16.5.595/bin/hindie-bin

And setting the alias would be like:

alias myprg="PATH=$HOME/yt-conda/bin:$HOME/yt-conda/sbin /opt/hfs16.5.595/bin/hindie-bin"

Now when you use myprg it sets $PATH to your desired paths then runs your program and leaves environment $PATH untouched when you're done using your program.


how to check if zfs is using the kernel module

I solved the performance issue. It was quite simple: Got myself 2x2GB RAM, put it into the computer, voila. It now has 6GB of memory and seems to be happy about it.

  dd if=/dev/zero of=/mnt/Media/testfile.out bs=1M count=10000
  10000+0 records in
  10000+0 records out
  10485760000 bytes (10 GB) copied, 33.828 s, 310 MB/s

  dd if=/mnt/Media/testfile.out of=/dev/null bs=1M
  10000+0 records in
  10000+0 records out
  10485760000 bytes (10 GB) copied, 24.1512 s, 434 MB/s

I never tested if the zfs kernel module did any good.

Why was it so difficult to figure this out? The reason is that the memory never filled up completely when only 2 GB was installed. Also, there was no swapping going on - at least not during file operations. A hint that I better should have paid more attention to, was however to be found in "top" Whenever I was copying files the wait states (wa) raised to about 30 %. After the upgrade this value stays below 5 %.


How to get the latest firefox on 10.04 after EOL?

This appears to be possible by adding ppa:ubuntu-mozilla-security/ppa to software sources and running apt-get update and apt-get install firefox. It also works for Thunderbird.


Lotus Notes 8.5.3 applications not displaying correctly

Got a similar issue (part of the solution is here) on my laptop (not VM)

The libnotesgtkfix.so  to me is the solution (all other parts are for 64bits version)

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


Hybrid USB Install Method - netboot and iso

Unity probably will be too much for your atom based netbook... Try xubuntu/Lubuntu. If you need USB creatro from windows, use one of the tutorials here: (http://www.pendrivelinux.com/). if you need the same from linux, i prefer Multisystem (http://www.pendrivelinux.com/multiboot-create-a-multiboot-usb-from-linux/)


You just need to remove the usb from the machine. So close it down, pull out the usb, then restart, the grub menu should come up with option to boot into ub or dozer.

If that is not the case, you could have damaged grub during a restart. You will have to reinstall ubuntu from the usb. When unetbootin finishes and you get a message asking 'exit now' or 'continue testing', chose the latter, then close it down, then pull out the usb.


convert is a part of imagemagick. Try reinstalling all packages related to it that you have installed - may be one of them got damaged or wrong-linked.


You need to add Kubuntu Backports PPA

Open terminal and type

sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update
sudo apt-get upgrade

It should upgrade yor kde  version to 4.14


Your command came close:

ssh root@ip "tar xzf - -C /home/minecraft/multicraft/servers/server4" | tar zcf - *

But you forgot to switch extraction and creation - now the first command is extracting (from nothing, presumably) and the second command is creation. Try:

ssh root@ip "tar zc -C /home/minecraft/multicraft/servers/server4 ." | tar zxv


Can I use Terminal emulator on the Web Browser in Ubuntu?

You can use node environment for it.

Then install web-terminal

npm install web-terminal -g
web-terminal --port 8088

just open that link in your browser:

http://localhost:8088/terminal/

You can add a new entry to startup applications to launch it automatically at startup.

gnome-session-properties

Open that window, name your entry and add the command in it or add the path of your bash script.

EDIT:

There are many alternatives, one of them I used in the past wetty
You can search for them in  github and nmp

EDIT2:

It's not a good idea to use a terminal emulator on your web browser. If you don't feel secure in your local network and you are not behind a firewall router, attackers may infiltrate in your operating system.

EDIT3:

Closing the assigned port to incoming connection attempts via ufw blocks accession to your computer from local network or  internet.

 sudo ufw enable
 sudo ufw deny in 8088

Check out the status of your firewall:

 sudo ufw status


You would have to re-enable systray through a patch. Try running the following commands to install the appropriate patch for Ubuntu 14.10

sudo add-apt-repository ppa:gurqn/systray-utopic
sudo apt-get update
sudo apt-get upgrade

Then, restart Unity by pressing ALT + F2 and entering "unity" or by logging out. The PPA should then automatically whitelist all applications and show them on the tray.

For more information :

  http://www.webupd8.org/2013/05/how-to-get-systray-whitelist-back-in.html


apt-get update shows "bionic-getdeb Release' does not have a Release file" on 18.04

According to ubuntuupdates.org there is no repo for bionic, hence your error message.


awk buffers the STDOUT stream, you need to flush the STDOUT, make it flush the stream using the fflush() function of GNU awk:

my_function_with_ouput | awk '!seen[$0]++ {print; fflush()}' | while ...

If you don't have gawk, take help from stdbuf, unbuffered STDOUT:

my_function_with_ouput | stdbuf -o0 awk '!seen[$0]++' | while ...

or make STDOUT line buffered:

my_function_with_ouput | stdbuf -oL awk '!seen[$0]++' | while ...


rename is not that tricky :) Just specify the part you want to change and the rest will be left alone. Use g to modify all occurrences in the path (including directory names)

find /path/ -type f -name '*0050ABC_01032013*' -exec rename -n 's/0050ABC_01032013/0044CBA_01011901/g' '{}' \;

Remove -n after testing to really rename the files

find /path/ -type f -name '*0050ABC_01032013*' -exec rename 's/0050ABC_01032013/0044CBA_01011901/g' '{}' \;

If you have a directory somewhere in the path with the same name and you do not want to change the directory name, you can make sure only the basename gets modified like this

find /path/ -type f -name '*0050ABC_01032013*' -exec rename -n 's/0050ABC_01032013([^\/]*)$/0044CBA_01011901$1/' '{}' \;

This avoids matching the string if there is a / character anywhere after it.


Using --perl-regexp (PCRE) works for me:
grep -P -- '"id": \K[0-9]{1,4}' infile.txt

The \K notify will ignore the matched part come before itself (source). If you want only the numbers, you can add the option -o:

grep -oP -- '"id": \K[0-9]{1,4}' infile.json

If you need multiline search add the option -z:
grep -zPo -- '(?s)Another Life.*?"id": \K[0-9]{1,4}\n' infile.json

Where (?s) activate PCRE_DOTALL, which means that '.' finds any character or newline (source).
The above command will output all occurrences of the value of id after the line that contains Another Life. It seems it is not possible to catch only the first occurrence with grep, so we need to process the output with another tool, let's say head:
grep -zPo -m1 -- '(?s)Another Life.*?"id": \K[0-9]{1,4}.' infile.json | head -1


setpci doesn't change the register value for the bridge device (NVIDIA driver black screen issue)

I finally solved the problem when setpci doesn't change the value of PCI-E bridge.

If you are unable to set the value of PCI-E brigde registers using setpci command in order to get nVidia GeForce drivers working on your Apple MacBook machine try these steps:

1. Find your PCI-E bus identifiers

lshw -businfo -class bridge -class display

[root@kernelLinux]# lshw -businfo -class bridge -class display
Bus info          Device      Class          Description
========================================================
pci@0000:00:00.0              bridge         MCP89 HOST Bridge
pci@0000:00:03.0              bridge         MCP89 LPC Bridge
pci@0000:00:15.0              bridge         NVIDIA Corporation
pci@0000:00:17.0              bridge         MCP89 PCI Express Bridge
pci@0000:02:00.0              display        MCP89 [GeForce 320M]

You will need the ID's of PCI Express Bridge and your display in format XX:XX.X

Your ID's can be different.

In this example our ID's are 00:17.0 for PCI-E brige and 02:00.0 for display [GPU].

2. Create a GRUB script

Our script will be slightly different than in mentioned post above.

I have noticed of two things. Grub2 installed using distro (mine is Centos) installation process doesn't contain setpci grub module. It's the reason why grub do not change registers while boot.
Then It is necessary to load setpci module into grub before we run commands to change registers.

Download grub2-efi-modules

Ubuntu Linux

sudo apt-get install grub-efi-amd64-bin

Fedora Linux

sudo dnf install grub2-efi-modules

CentOS Linux

sudo yum install grub2-efi-modules

Modules will be installed in /usr/lib/grub/x86_64-efi/
but the setpci module files needs to be present in /boot/efi/EFI/ubuntu/x86_64-efi/

Create x86_64-efi folder.

Ubuntu folder in /boot/EFI/ can be different on your machine depends how you named it in OS installation process, do not paste it. Replace it with correct path.

sudo mkdir /boot/EFI/ubuntu/x86_64-efi

Copy setpci module files into grub2 folder

sudo cp /usr/lib/grub/x86_64-efi/setpci.* /boot/EFI/ubuntu/x86_64-efi

Create the 01_enable_vga.conf file.

The file should contain these lines of code:

Do not forget replace 00:17.0 for PCI-bridge and 02:00.0 for display [GPU] with your values.

sudo nano /etc/grub.d/01_enable_vga.conf

cat << EOF
insmod setpci
setpci -s "00:17.0" 3e.b=8
setpci -s "02:00.0" 04.b=7
EOF

Then repair permissions

sudo chmod 755 /etc/grub.d/01_enable_vga.conf

and update the /boot/efi/EFI/ubuntu/grub.cfg

Ubuntu Linux

sudo update-grub

Do this command only on other distributions (not necessary on Ubuntu after update-grub):

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

3. Reboot your system and check registers

Reboot your machine and check if it's working. Replace ID's with yours again. Your terminal should finally show 08 (PCI-E bridge) and 07 (GPU).

sudo setpci -s "00:17.0" 3e.b
08

sudo setpci -s "02:00.0" 04.b
07

4. Install nVidia drivers

Screenshot: http://imgur.com/a/YiBXi


sqlcmd not available after installing mssql-tools

Quoting the page you linked to:

  Optional Step: Create symlinks to 'SQLCMD' and 'BCP' under /usr/bin/.

ln -sfn /opt/mssql-tools/bin/sqlcmd-13.0.1.0 /usr/bin/sqlcmd
ln -sfn /opt/mssql-tools/bin/bcp-13.0.1.0 /usr/bin/bcp


when install tablet wacom, with command depmod -a Message permission denied appears

instead of typing depmod you should use sudo sudo depmod -a


Is it possible to switch between headphones and speakers?

If they are on two different interfaces, this should work. Then you can go into the sound settings and select your output hardware.

In case they are the same interface, like plugging in the headphones disables the speakers, this will probably not work. You could buy something like this cinch switch then, though. Or you buy a little USB sound card in order to have two interfaces to use solution 1.


How to enable gmusicbrowser's plugin Gnome mmkeys in Xubuntu?

I don't have exact solution for your problem with gnome-mmkeys, but a little workaround since we only need a few keys, right?

You can set your keys directly, since Xubuntu knows them.


How do I sudo a command in a script without being asked for a password?

Please note: Any method which involves putting your login password in plain text, in a command or in a file, is insecure and should NOT be used!

The correct way to do it to setup sudo such that only the one specific command you need, i.e. echo date... > rtc..., is allowed to run WITHOUT needing the password.

Step 1. Create a shell script with just that command

Open up gedit (or your favorite editor), and create the script e.g. pydatertc.sh
Insert only this line, and save it to, e.g. your home directory:
echo date \'+%s\' -d \'+ 24 hours\' > /sys/class/rtc/rtc0/wakealarm
Quit the editor, and from the terminal, make the script executable and change its ownership to root, otherwise another user with access to your system could possibly edit it and execute whatever commands they want as root without needing your password:
sudo chown root:root /home/username/pydatertc.sh
sudo chmod 700 /home/username/pydatertc.sh

Step 2. Set up sudo to allow pydatertc.sh to execute without requiring a password

Type sudo visudo at the terminal to open the sudo permissions (sudoers) file
Around line 25, you'll see this line: %sudo   ALL=(ALL:ALL) ALL
Below that line, insert the following line, where username is your username:
username  ALL=(ALL) NOPASSWD: /home/username/pydatertc.sh
Exit the editor (Ctrl+X if nano)

Step 3. Modify your python script to call pydatertc.sh

Change the line to:
os.system('sudo /home/username/pydatertc.sh')

Now your script should run without requiring a password AND without compromising the security of your account, your data or your system!

Alternative only for wakealarm (not for general use!):

In this specific case only, since the /sys/class/rtc/rtc0/wakealarm file only controls the wake-up alarm for the system and is otherwise harmless, another alternative to avoid the password is either to take ownership of that file with chown (if you are the only user setting the alarm), or make it world-writeable with chmod +666; in that case, simply remove the sudo from your Python call, leaving sh -c "...." intact.


How to disable two-fingers/right-click in touchpad?

Are you comfortable with the command prompt?

You can configure in detail how you want your touchpad to behave using synclient

You can get a list of current settings by doing synclient -l

For your specific request, you will need to run synclient TapButton2=0 to dissable the feature. To make the feature persistent create a ~/touchpad.sh configuration.

More info...


How should I change the default highlight colour to the colour I want?

unfortunately there is no way to change the default color yellow to other according to this link https://help.gnome.org/users/evince/stable/annotation-properties.html.en

Customize annotations

    In the Annotation Properties window, you can change the author, color, style and icon of your note.

    The annotation properties will be applied to the note for which you made the changes only. Each note can have a different set of properties.

Can I permanently change the default annotation properties?

The default annotation properties (author, colour, style and icon) can only be changed on a particular note as stated above. So if you want all icons for your notes to be red instead of yellow, you will have to change the default from yellow to red individually on each note. There is no way to save different default settings for annotation properties, at this time.


Why does my OpenGL Version String not correspond with my core profile version string?

The core profile version is what version of GL you can use on your card with your drivers. This is what really matters, usually.

The OpenGL version string you can just ignore. It's the compat profile version.

However, the specific issue you are having, seems to be that your system is actually using the llvmpipe renderer, rather than the hardware acceleration for your actual GPU. The vendor string value should be something like Intel Open Source Technology Center with the renderer string something like Mesa DRI Intel(R) Ivybridge Mobile. You may need to make sure you have the intel-microcode package installed.


After uninstalling Samba, can no longer access Windows network

Please make sure that you still have samba-client package installed:
sudo apt install samba-client


How to change default "sort by" to "type" in nautilus

On Nemo (a recent fork of nautilus), I have the following in the menu :

Edit > Preferences
then on the Views tab

I got a section called Default View
with a line Arrange items, there is a select where I can choose the default sort order

Screenshot


updating ubuntu 14.04 without graphics drivers

If you want to set on hold a package, so that it is not installed/updated, using apt:

recover the package name you want to prevent (for example nvidia-346-updates)
run in a terminal the following command :

sudo apt-mark hold nvidia-346-updates

Then you can update/upgrade other packages being sure that this one will not be updated.
They are several other ways to do so (ex: Synaptic). Let me know if you want to know them.


LibreOffice stopped working in Ubuntu 17.04

I faced a similar problem after upgrading. This solution (by disabling java) worked for me:

LibreOffice 5 problems and solutions

Open LibreOffice or any program - Writer, Calc (only one program, settings apply to the whole suite)

Go to Options
LibreOffice
Advanced
Uncheck "Use a Java runtime environment"


Bash on Ubuntu on Windows 10 translate working directory

I eventually found an answer here:
Where is the Ubuntu file system root directory in Windows NT subsystem and vice versa?. The command to access my Ubuntu user's test.txt inside the windows application sublime from the Ubuntu subsystem Bash:

/mnt/c/Program\ Files/Sublime\ Text\ 3/subl.exe C:\\Users\\Mark\\Ap
pData\\Local\\lxss\\home\\mwalle\\test.txt


Gnome session - deleted by mistake the status menu at right in bottom panel

I fount the solution!
http://prntscr.com/2qex3v

I just added the Indicator Applet Complete


Tor started by root although configured as debian-tor

I don't believe it's an interference with the browser.

I have just installed Tor on my raspberry pi with the latest software and I am experiencing the same problem.

I believe there is a bug somewhere...
P.S. I have "Tor version 0.2.9.15 (git-2dc1a1a2abab5403)"


What's the difference between python-minimal and python-all?

python-all, according to the docs, is a minimal package intended to avoid hard-coded dependencies on python versions.

The two packages you would be looking for are probably python vs. python-minimal.  Between those two, the difference is pretty minimal.  For the most part, start tinkering with what is installed.  You'll probably find that everything is there.  If it isn't, look for a package or use easy_install.


How can I permanently grant root access to a user?

To give the user "foo" unlimited passwordless access to root privileges via the sudo command, edit /etc/sudoers and add the line:

foo   ALL = NOPASSWD: ALL

See sudo(8) and sudoers(5) for more information.

As was suggested elsewhere, if you know how to use vi then it's a good idea to use visudo to edit /etc/sudoers.


CheckPoint VPN on Ubuntu without IcedTea plugin

The normal way to connect to checkpoint VPN is to use 'snx'. Yes, it is ancient and requires some fiddling to run. If you have problems with it, you need to address those problems particulary.


Linux does not support this card properly and it never will. I have the same wifi card too,I tried EVERYTHING and yet still doesn't work even with the latest kernel. The card is more than 2 years old. I don't think they will support it properly anytime soon.
I also tried with external wifi cards,none of them did work,the kernel keeps enabling the RTL8723BE.
My advice is to stay on Windows or buy a new laptop.


Accessing my Windows system folder from Ubuntu 18.04

Try with "Files" gnome-disks. Select the partition and mount by clicking on the triangluler sign (as for play in media players). If that works you can edit mount options.


I don't have my laptop with me to try this right now, but I think this should work, or at least get you close:

echo $(date +%s -d"+ $(echo 8*60*60 | bc -l) seconds") > sudo tee /sys/class/rtc/rtc0/wakealarm ; sudo pm-suspend --auto-quirks ; ogg123 ~/Music/*.ogg

That's "8 hours from now" -- 8 hours * 60 minutes per hour * 60 seconds per minute.  Adjust the timing as you see fit. (Yes, you can put 6.5*6*6 if you want 6 and a half hours--that's why I put in bc -l)

What it does is set an alarm for a specific second of time, which it's calculating based off of the numbers you enter, for when it should wake up.  Then it calls the command that does suspending. When it resumes from suspend, it should move on to the third command in the line, which is the command to ogg123 to play all the .ogg's in your ~/Music (feel free to replace with mpg123 and *.mp3 or what-have-you).

You can also try with pm-hibernate instead of pm-suspend, but I'm not sure how well it'll work with the wakealarm.  Even with suspend, how well various hardware supports wakealarm is uncertain until you try it.

Source of wakealarm info:  http://people.canonical.com/~apw/suspend-resume/test-suspend


Upgrading from Ubuntu 10 to 13.04 while maintaining Windows 7 dual boot

Yes, Windows will be preserved. Assuming that you installed each OS on a separate partition, the Ubuntu upgrade will only act on the partition containing Ubuntu. It should not affect the partition containing windows.

(Of course, you should have backups before you upgrade, anyway.)


Camera fails to start on Meizu Pro 5 Ubuntu Edition

OTA 11 has resolved this problem. Camera works now.


Setting up a standalone NTP server on Ubuntu

You can comment out those pool servers list under /etc/ntp.conf and specificity your own server. Let me give the full step:

Server side

First, disable the ntpdate service:

sudo update-rc.d -f ntpdate remove

Install NTP

sudo apt-get install ntp

Open and edit the ntp configuration file:

/etc/ntp.conf

Comment out those pool servers and specifiy your own server address e.g:

server 192.168.20.1

Now, restart the ntp service

sudo service ntp restart

Clients side

Install NTP

sudo apt-get install ntp

And then edit the configuration file /etc/ntp.conf

Finally specify your own server address:

server 192.168.20.1

If you have a DNS entry for the NTP server you can use like:

server et.ntp.org

Restart

sudo service ntp restart

You need to see this for your last question:

How to check if NTPD updates Linux machine's time successfully


Microphone doesn't work until volume is adjusted, regardless of actual volume

Actually for the moment this seems to have been fixed by updating the headset firmware (I didn't know there was such a thing!). If the issue continues to occur I'll update here.


No "ENABLE BROADBAND" option in network settings of ubuntu 12.10

You may try this:

Press ALT+F2 and enter gksu gedit /etc/udev/rules.d/yourtataphoton.rules to create the file we need. Now paste the content below into the file and save it.

SUBSYSTEM="usb"
SYSFS{idProduct}="1446"
SYSFS{idVendor}="12d1"
RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"

Now just plug in your dongle and configure your connection using NetworkManager.

Source


Should I upgrade to 16.04 from 14.04 immediately after it comes out?

You do not have to upgrade. Ubuntu 14.04 will be supported till 2019.

You will get an option to upgrade to 16.04.1 in August 2016.

The applications installed from Ubuntu repositories will be also upgraded.

Regarding other applications, nobody knows if all of them will work OK with the new release.


How can I prevent Ubuntu from mounting particular partitions/devices?

The solution is to add them to /etc/fstab, but with options to prevent them from being automatically mounted.  The option you want is noauto rather than auto.  For example, to prevent a windows partition from being mounted, you could add an entry like the following:

UUID=C2A281E4A281DCF3  /media    ntfs-3g    defaults,noauto    0    0

You can run blkid to retrieve the partition UUID:

sudo blkid

See "Using UUID" in the Ubuntu Docs.

Or, to make it more self-documenting and simpler, although not quite as fail-proof, I have switched to using disk labels rather than UUIDs.  You just need to make sure the label is descriptive and unique; unlike using UUIDs, labels are not guaranteed to be unique, but I've never run into a problem, and it's more convenient, as you can swap a different partition by using the same label, and no need to modify /etc/fstab, or to run blkid.

Contrast the above entry with this one:

LABEL=Win_sys   /media     ntfs-3g   defaults,noauto   0  0

A good explanation of fstab options can be found on the ArchWiki and on the Ubuntu Docs.


pbuilder-dist dh_build fails to find/install debian/control Depends

libflann-dev, libboost-all-dev, libarmadillo-dev should be added to Build-Depends: field.
Depends: is runtime dependencies.

Reference: Chapter 7 - Declaring relationships between packages

Hint: leave "Debian Policy Manual" open.


Loss of Security (Update Manager doesn't ask for a password)

As of a version of ubuntu updates that don't require altering the core system(kernel) don't request for a password. That is because it seems many users clicked cancel instaid of authenticate at the password window mainly because they didn't want to go through the process etc

Also the download certificates are checked before installation so no viruses can enter through the update process UNLESS a program installed doesn't sign its files with a certificate.


Is it possible to have a different keyboard layout when capslock is on?

Changing keyboard layout with Caps Lock works like this: First make sure you have your two keyboard layouts selected in gnome-control-center (aka 'Settings' in the dock):

Install gnome-tweaks:
sudo apt install gnome-tweaks

Then start it:
gnome-tweaks

And find Keyboards & Mouse, click on Additional Layout Options and click on the arrow in front of Switching to another layout. Select the Caps Lock key (or any variant you'd like):

Making your keys behave just the way you like involves changing or making a symbols file (usually) in /usr/share/X11/xkb/symbols. A way to integrate this mapping in gnome is explained at the bottom on the page that describes (the history of) the altgr-intl layout.


Hot tip:  You don't need 'apt-get' in 16.04, only 'apt'.   Example:

sudo apt install aptitude


Which type of terminal emulator installed in my ubuntu 14.04 lts?

Xterm and Gnome-terminal. Use CtrlAltT, or AltF2 + gnome-terminal / xterm.

Bash (Bourne-again shell) is the shell/command processor which these terminal uses.


How to encrypt existing HOME folder on Kubuntu 20.04

There is not a guided installation option that will encrypt only your /home folder:
This is likely due to the false sense of security it offers, since your unencrypted OS and swap can expose data kept this way.
Trying to install Kubuntu 20.04 using "Manual" partitioning to encrypt only /home isn't an option either:
Setting up partitions manually results in a broken installation.  Processes need to access files stored in ~/ immediately after authentication, but it's locked.

There exists a utility to relocate your /home: ecryptfs-utils:
It will attempt to migrate your current /home to an encrypted location.
Check out hhlp's answer on Encrypt home drive after installation for more info on using ecryptfs-utils.
I have concerns using this method because these kinds of relocations can sometimes be messy, since it's hard to account for all variables.  Also, This utility doesn't seem to address the part of your disk where your /home is currently located.  Without securely erasing this data, it could still be recovered without a password.

My suggestion is that you use the guided installation to encrypt Ubuntu entirely.  This is the only way to ensure that if someone gains physical access to your PC, they won't be able to access data without your decryption key.


How do I get i7-1065G7 (late 2019 HP Spectre x360) to identify laptop monitor in Ubuntu 18.04?

Correct Answer

As @Pilot6 said in the above comments, this is the correct answer. All I had to do was install Ubuntu 18.04, plug an ethernet cable into my computer, and run sudo apt install linux-generic-hwe-18.04-edge. This fixes the wifi and screen resolution problems.

I still have the brightness/battery issues listed below and am unable to create/edit /sys/class/brightness as many answer suggest. I'm still looking into a solution here.

Original Answer

I was unable to get the display to work on 18.04. After hours of struggling and reading a slew of posts on ubuntuforums.org, I decided to attempt 19.10. Everything worked on the initial install. I didn't have to do anything extra.

Moral of the story, if you have the late 2019 model Spectre x360, install 19.10, not 18.04.

Edit: I've been using 19.10 on this laptop for about a week now and there are some issues that I haven't been able to work out/haven't had the time/expertise.

I cannot change the screen brightness without using the command xrandr --output eDP-1 --brightness 0.5 (thank you ctrl+r for not making me type this every time). It randomly resets to 0.98, so I do use this command a bit.
Ubuntu randomly freezes up and logs me out. This is definitely a pain as it happens when I'm writing code. I've figured out that this is an issue with OpenJDK 11. I've upgraded to 14 and have yet to run into this problem.
Battery life is 100x worse in Ubuntu than it is in Windows. I think this is directly related to the screen brightness but I'm guessing there are some other optimizations (or lack-thereof) that are also contributing.

All this being said, I do think I'm going to keep this laptop for 3 reasons: Windows 10 works very well on it, 20.04 is coming out in April and these kernel? issues will hopefully be resolved, and emulators run so much better on this laptop than any other I've owned (because of the new G7 GPU).


Ways to make persistent iso-bootings from hard disk

EDIT:

For 12.04 & 12.10  you can access the FAT partition by opening filesystem/isodevice as root, when booting an iso with grub2.

Another option to the 4GB limited casper-rw file is to make an ext2, 3 or 4 partition labeled casper-rw.
A partition labeled home-rw will work as a separate home partition.


clevis/dracut luks unlocker - early dracut unlocker not engaging upon boot

Ubuntu 18 Full Disk Encryption clevis early unlock tested successfully with the initramfs patches; https://github.com/latchset/clevis/pull/35


What's the correct way to change the `PATH` environmental variable?

When it comes to changing the PATH environment variable (say, in "~/.bashrc"), I've seen some different ways of doing it

Some of them are valid ways of setting $PATH, but some of them are not valid ways of setting $PATH; most have the same catch and some differ in their scope;

Speaking of the syntax (in Bash / compatible shells);

PATH=$PATH:/new/path: is ok, but you'll need to escape spaces in "/new/path", if any;
PATH="$PATH:/new/path": is ok, and you won't need to escape spaces in "/new/path", if any;
export PATH = $PATH:/new/path: is not ok, as you can't have spaces before / after an assignment operator (and you'd need to escape spaces in "/new/path");
export PATH = ${PATH}:/new/path: same as export PATH = $PATH:/new/path;
setenv PATH $PATH:/new/path: setenv is a csh built-in; it should be the same as PATH=$PATH:/new/path;

Single / double quotes both prevent Bash from breaking on whitespaces; single quotes prevent Bash from performing parameter expansions, command substitutions or arithmetic expansions, forcing Bash to interpret the enclosed string literally; double quotes instead don't prevent Bash to perform parameter expansions, command substitutions or arithmetic expansions, and in the second case they are needed in order to allow a parameter expansion on $PATH;

Braces are required in case the character following a variable is a valid character for a variable name, however : is not, so in the fourth case they're not really needed;

Speaking of the differences between var=value, export var=value and setenv var value;

var=value sets the value of $var in the current shell; forked shells / processes won't inherit the variable nor its value;
export var=value sets the value of $var in the current environment; forked shells / processes will inherit the variable and its value;
setenv PATH $PATH:/new/path: same as export var=value;

$ foo=bar
$ bash
$ echo $foo

$ exit
exit
$ export foo=bar
$ bash
$ echo $foo
bar

  By the way, my Ubuntu 14.04 doesn't have a manual entry for export, but it has one for setenv. Why?

If you type man setenv, you get the output of man 3 setenv, which is the manual entry of the setenv() function from the "Linux Programmer's Manual"; as said before, there's no setenv command in Ubuntu nor built-in in Bash named setenv, although there's a setenv built-in in csh;

export instead is a Bash built-in, and to get informations about it you'll have to run help export:

$ help export
export: export [-fn] [name[=value] ...] or export -p
    Set export attribute for shell variables.

    Marks each NAME for automatic export to the environment of subsequently
    executed commands.  If VALUE is supplied, assign VALUE before exporting.

    Options:
      -f    refer to shell functions
      -n    remove the export property from each NAME
      -p    display a list of all exported variables and functions

    An argument of `--' disables further option processing.

    Exit Status:
    Returns success unless an invalid option is given or NAME is invalid.


How to download video from arte+7, arte-tv and similar sites?

Depending on the evolution of the website, some of these solutions may stop working from time to time.

A cross-platform solution:

Lately, Arte has posted on its Youtube channel some of the videos. (On that here.)

Another cross-platform solution:

A userscript does the trick. Can be used with Greasemonkey in Firefox and Tampermonkey in Chrome - so this is a cross-platform solution.

It will display download option under the video screen.

After installing Greasemonkey, click here to install the script.

If that stops working, look for an updated version.

Videoob

It is the 'video capability' of the powerful and much larger tool Weboob.

sudo apt-get install weboob weboob-qt

Videoob is not limited to arte tv.

To just search and watch the video (in a rather limited integrated video player), you can use Qvideoob, the qt frontend of videoob.

(The player window shows the url of the video, which can be copied and used in an external player - see below.)

From there you can update and add new 'backends' (tv stations and such). Backends > Add. (The Weboob backends configuration tool can also be launched separately from a launcher like Dash.)

To download:

Open terminal and run videoob. You will see this

videoob>

Type help to see more options.

Type search TERM  in order to find titles, like for example

videoob> search republique

then, after getting a list of titles just type, download NUMBER to download a certain title according to its number (it  should look like so: videoob:/search> download 1). The download goes to ~/.

I use a desktop file to launch the terminal directly with that:

gedit ~/.local/share/applications/TV-download.desktop

with

[Desktop Entry]
Categories=AudioVideo;
Exec=gnome-terminal -e 'videoob' --profile=hold
Icon=qvideoob
Name=TV France (search, then download)
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;System;

Instead of downloading with wget in terminal, you may watch the video in an external player like mpv (with mpv <url>) or SMPlayer (Open-URL). To get the video url use info instead of download and the address will appear after url:

Also, the url of the video is displayed in the window of the Qvideoob integrated player as seen above.

Qarte

(Source) - Also, thanks to Carl for posting an answer on Qarte in September 2015 on the new Qarte versions that work.

sudo add-apt-repository ppa:vincent-vandevyvre/vvv
sudo apt-get update
sudo apt-get install qarte

To download the deb, here.

Qarte has a second part dedicated to arte live web

A very good tool is Captvty from Windows: to install that under Wine, see this separate post; installing it may take some time, but it may be very useful in that it displays all available titles for many stations without the need (and the possibility) to search.


Install brasero  and use that to burn your isos.


Error concatenating directory path in bash script

Tilde (~) will not be expanded by shell when put inside quotes. Just remove the quotes :

#!/bin/bash
dir_path=~/Desktop/param_bind_b
cd "$dir_path"