I do not think it is possible directly, but I can see 2 ways you could work around it:

1) Proxy

2) Server Managing System

Proxy

You could setup a proxy on each managed server which adds the headers you want before forwarding the requests, so from the managing server side your requests have the required headers. For this you could either use a prebuilt proxy, or use this code as a starting point.

Server Managing System

As an alternative option, you could use a system like Landscape, which have the following features.

You can manage all your servers from one web UI, or using the provided API
You can set update rules
You can push new packages to servers or sets of servers
You can run scripts on managed servers
You can have emails sent automatically and packages applied automatically when you have security flaws affecting your servers.
You can check server status and information

It is free for up to 10 servers, the setup instructions are here

Edit:

Having checked the source it seems it is not possible to set custom headers at this point, only the following headers seem to be set:

Host => Server Host name
Cache-Control => Used for caching
Accept => The type of response to send
Range => Used to request a set amount of data
If-Modified-Since => Used to only get updated data
Proxy-Authorization => Used for proxy connection login
Authorization => Used for username / pass auth
User-Agent => Says what software is used

If you really wanted you could always hide your auth payload in the User-Agent header, but that is not adding a new header as requested.


Unable to boot Ubuntu 12.04 installer on USB Pendrive created with Universal USB Installer.

I am not sure why it doesn't work for you. But this one works simple UI. Easy to use http://unetbootin.sourceforge.net/


Not sure if you already solved this issue. I noticed the same problem today. This is how I fixed it:

Open Unity Tweak Tool. If you have not installed it yet, I would recommend to do it.
Click on Security settings, under System
Make sure that under "Enhance system security by disabling:" is all unchecked. Specially the option for "Desktop lock"


Unable to uninstall PostgreSQL 9.3 from Ubuntu 14.04 without installing PostgreSQL 10

Try to execute the uninstall script inside postgress folder.

In my case:

sudo chmod +x /opt/PostgreSQL/version_here/uninstall-postgresql
 sudo ./opt/PostgreSQL/version_here/uninstall-postgresql


Installing openssh-server on a virtual machine

In software sources settings enable (if not enabled) main, multiverse and universe sources, then run sudo apt-get update, and try it again.


Calling the "history" command within a VIM shell script

By typing sh shellattempt2.sh, you are likely forcing the script to be interpreted using the /bin/sh shell interpreter - which, on Ubuntu, is dash not bash by default

DashAsBinSh

The dash shell doesn't have history so that's why you are getting the error

[filename].sh: 66: [filename].sh: history: not found

Instead, make sure your script has an appropriate shebang as the first line

#!/bin/bash

then make it executable (chmod +x [filename].sh) and then run it using

./[filename].sh

HOWEVER, bash only enables history by default in interactive shells. The simplest way to access the shell history from a script (which runs in its own non-interactive shell) is probably to look directly at the history file itself, ex.

cat "$HISTFILE"


Is it possible to MOUNT and entire external disk and not by partitions?

No, that's not possible. Only file systems can be mounted and there is one per partition.

If you want to mount several partitions at once, that's possible, but they need different mounting points. Please write a comment if that's what you want.

If you want to delete all but one partition and make this one partition as big as the entire external HDD, that's also possible. Again, write a comment and I will help you.


How can I setup 3 monitors so that 2 & 3 are mirrored?

I was unable to solve this via software but I did find hardware that made everything work as desired. I purchased a video splitter box (this one for reference - https://www.amazon.com/gp/product/B01CZAJUCG) & it has solved my problem. Apparently a splitter cable just confuses the computer as to which display identification to believe where a video splitter box only sends one display's EDID to the graphics card. And provided you select a resolution that is supported by both displays, everything should work.


Process id is constantly changing, and it can't be killed with name

As already answered, you are looking at your own grep processes. Thats why there's a new PID for each process. If you want to exclude these lines containing grep, you can execute ps ax | grep [g]eth.


ecryptfs and ssh pubkey login - How automount and other stuff?

As already reported, ecryptfs does use your password to "unwrap" the mount key, and if you don't provide it when loggin in, it won't work.

However...

If you do run ecryptfs-umount-private to unmount the encrypted home, followed by a mkdir ~/.ecryptfs/presets ; ln -s ~/.ecryptfs/presets/.profile ~/.profile and remount the encrypted home with ecryptfs-mount-private. You will have a file in "~/.ecryptfs/presets/" called ".profile" which will be sourced on every connection. (If you it is unnecessary to be able to tweak this file with an mounted private home, you could just as well just create a real textfile called .profile in your unmounted home, instead of the softlink above).

The content of ~/.ecryptfs/presets/.profile (or unmounted "~/.profile"), could be something in the line of

ecryptfs-mount-private && cd ~ && . ./.profile

That will make sure your home is unencrypted, or otherwise ask you of your password to unencrypt it, change directory to your new mounted home, and source the ordinary .profile, which will set up your shell as you are accustomed to.


Wine error: "fixme:win:EnumDisplayDevicesW ((null),0,0x33f4b4,0x00000000), stub!"

Did you look up your application in the Wine HQ database ?

https://appdb.winehq.org

Is your application suppose to run reasonably well in Wine or is it not in the database at all ?

I prefer to use PlayOnLinux instead of plain Wine whenever I would need to run some native Windows application. PlayOnLinux has a nice GUI, and with PlayOnLinux you will be able to switch between different Wine versions quite easily.
Some native Windows programs need a specific Wine version to run well.
In some other Wine version, the native Windows program might simply crash or exit really soon.
Search for PlayOnLinux, and install the deb, and try it.

Good luck!


gtk_widget_reparent is part of the GtkWidget class. If you're missing that, you're missing some GTK development files. Their packages tend to have a -dev tag on the end. You probably just need:

sudo apt-get install libgtk2.0-dev


How to close all wifi password message windows at once?

Killing NetworkManager does the trick. NetworkManager will automatically be restarted by the init system, so there's nothing more to do.


I cannot type in the Konqueror web-browser search bar

The easiest answer to your problems is probably to install a more developed and stable browser such as chromium...

Installing Chromium in the terminal

As you cannot access a Web-browser, I suggest installing Chromium in the terminal... You can accomplish this by simply running the following commands:

sudo apt update
sudo apt install chromium-browser

Then simply launch Chromium and hopefully your issues are resolved, if not please leave a comment.


Software for converting various multimedia file formats?

Searching the Ubuntu Software Center reveals several GUI options:

Transmageddon - Very simple interface for individual files, supports audio and video.
OggConvert - Transcode multimedia into open formats.
Artista Transcoder - Primarily intended for transcoding videos into formats recognized by portable players (which you can select from a list).
Sound Converter - My favorite for transcoding mp3s and other audio files. Takes in whole folders, exactly what you need!


What is the difference between the RSA, DSA, and ECDSA keys that ssh uses?

Do you need all of them?
No, your ssh server only needs one and the client only needs to support that one type of key for ssh connections.

RSA, DSA, ECDSA, EdDSA, & Ed25519 are all used for digital signing, but only RSA can also be used for encrypting.

RSA (Rivest–Shamir–Adleman)is one of the first public-key cryptosystems and is widely used for secure data transmission. It's security relies on integer factorization, so a secure RNG (Random Number Generator) is never needed. Compared to DSA, RSA is faster for signature validation but slower for generation.

DSA (Digital Signature Algorithm) is a Federal Information Processing Standard for digital signatures. It's security relies on a discrete logarithmic problem. Compared to RSA, DSA is faster for signature generation but slower for validation. Security can be broken if bad number generators are used.

ECDSA (Elliptical curve Digital Signature Algorithm) is an Elliptic Curve implementation of DSA (Digital Signature Algorithm). Elliptic curve cryptography is able to provide the relatively the same level of security level as RSA with a smaller key. It also shares the disadvantage of DSA of being sensitive to bad RNGs.

EdDSA (Edwards-curve Digital Signature Algorithm) is a digital signature scheme using a variant of Schnorr signature based on Twisted Edwards curves. Signature creation is deterministic in EdDSA and its security is based on the intractability of certain discrete logarithm problems, so it's safer than DSA & ECDSA which requires high quality randomness for each and every signature.

Ed25519, is the EdDSA signature scheme, but using SHA-512/256 and Curve25519; it's a secure elliptical curve that offers better security than DSA, ECDSA, & EdDSA, plus has better performance (not humanly noticeable).

Other notes
RSA keys are the most widely used, and so seem to be the best supported.

ECDSA, (introduced in OpenSSH v5.7), is computationally lighter than DSA, but the difference isn't noticeable unless you have a machine with very low processing power.

As of OpenSSH 7.0, SSH no longer supports DSA keys (ssh-dss) by default. A DSA key used to work everywhere, as per the SSH standard (RFC 4251 and subsequent).

Ed25519 was introduced in openSSH 6.5.


Modal windows disappear in ubuntu when show desktop button or shotcut is used

My Solution:

Right Click on IntelliJ / Netbeans whatever Icon in the Taskbar and say : "Close / Shutdown". A new modal dialog should pop up and asking if you really want to close the program (or it tell's you that there are unsaved changes / sessions running etc.)


No password prompts in Ubuntu (except login and lock screen)

If you make your own launchers for them in the style sudo update-manager then they will start with full privelidges but not prompt you. The default shortcuts to these programs are structured to prompt you before they run, so just don't use those.


Which release should I install, given my system specs?

You should be able to use the latest Ubuntu on this system.  1GB RAM is fine, and the CPU and graphics should at least work.

Have you tried installing, say, 12.04 and run into any problems?  If so, tell us what they were (possibly start a new question).

I can't explain the issue with your 11.10 install, but if it is getting to the login screen that's a good sign.  It's possible that there is a problem starting compiz, which is the window manager normally started right after login and requires certain 3D hardware (which doesn't necessarily mean your card is not good enough, but that there could be a driver problem or you need a proprietary driver).  At the login screen, after clicking on your username, you could try selecting a different type of desktop session.  I can't remember if 11.10 had Ubuntu 2D or Gnome fallback as session options installed by default.

But again, don't be afraid to try 12.04 as well.  In theory at least, each new release should support more hardware and fix some bugs.


Wifi dosn't work after waking up. Thinkpad X60

This technique sometimes, but not always works. Please open a terminal and do:

sudo gedit /etc/pm/config.d/config

Use nano or kate or leafpad if you don't have the text editor gedit. Add one line:

SUSPEND_MODULES="iwl3945"

Proofread carefully, save and close the text editor. Reboot.


I seem to have solved this problem. It was hardware related after all. After installing iotop and running command

<iotop -o>

the output under IO was: 99.99% mount /media/floppy.

As I had removed the floppy drive some time ago it was never going to find it. The answer was to go into bios and select "none" under floppy drives. Cpu usage is now back to normal after lubuntu loads.
For some reason 12.04 didn't have a problem with the previous settings.

Thanks to jippie for pointing me in the right direction.


unicode characters do not appear in gnome terminal for vim airline

I've uploaded a Unicode test file which you should download and then cat in your terminal.

E.g.:
cat ~/Downloads/Unicode-sample.txt and then use Shift+PgUp and Shift+PgDn in the terminal to verify whether all characters display  correctly.

If you get the same results in your terminal as opening the original source file in your browser, your font is fine; otherwise, it's a dodgy font: use a different one. (I use "Envy Code R")

And once the terminal is fine, all applications running in the terminal will be fine as well!


Which model is the bluetooth chip in bluetooth adapter?

since you are using usb adapter for Bluetooth, it must be [   11.298374] rtk_btusb: Realtek Bluetooth USB driver ver 3.1.244af65.20200812-1956


first of all thanks for helping me. Here is my output:

Chain INPUT (policy ACCEPT 679 packets, 267908 bytes)
pkts      bytes target     prot opt in     out     source               destination
0        0 ACCEPT     all  --  *      *       188.145.11.10        0.0.0.0/0            state RELATED,ESTABLISHED
0        0 DROP       all  --  *      *       188.145.11.10        0.0.0.0/0

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts      bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 693 packets, 300032 bytes)
pkts      bytes target     prot opt in     out     source               destination
0        0 ACCEPT     all  --  *      *       188.145.11.10        0.0.0.0/0            state NEW,ESTABLISHED

And thats my commands:

$IPTABLES -A INPUT -s 188.145.11.10 -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A OUTPUT -s 188.145.11.10 -m state --state ESTABLISHED,NEW -j ACCEPT
$IPTABLES -A INPUT -s 188.145.11.10 -j DROP

This commands result in:

188.145.11.11 sends to 188.145.11.10 DENY

188.145.11.10 sends to 188.145.11.11 ALLOW

but i need it contrariwise.


Inheritable chmod permission from parent directory

This is the intended behaviour of the UNIX umask feature, which is used to control the permissions of newly created files.

For example, with a umask of 0022, the group and world write bits will be masked out.  This likely explains the results you saw with the directories your script creates.

You might be able to adjust the umask in PHP to 0000, but as this is a process global setting and the PHP interpreter is embedded in Apache, it might have security implications beyond your script.  The alternative is to issue a chmod() call after creating the directory, which should be a bit safer and doesn't depend on the umask setting.

You might also want to consider whether you really need to make these directories world writeable.  If the files need to be writeable by the web server and some other script, perhaps you could set the directory to be owned by a common group for those two environments and only make it group writeable.


Try gparted, I had same problem and gparted have helped me.
For install run sudo apt-get install gparted


This worked well for me:

(insert into /etc/apache2/sites-available/<site name>.conf inside the "VirtualHost" tag)

Header Set X-Robots-Tag "noindex, noarchive, nosnippet"

The "mod_headers" Apache Module must be enabled also:

sudo a2enmod headers
sudo service apache2 restart


Indicator-power stuck on the first value after logining

It's really disappointing to seek the help for a problem then even there is no reply, but also down voting for a problem affects my work. However I will leave the workaround in case some one else had the same issue:

The issue is in the GUI. It freezes, so killing it every 10 minutes will force it to update, so I made a cron job to do that:

crontab -e

Add this line to the end of the file witch will do the job every 10 minutes:

*/10 * * * * pkill -f indicator-power-service


Is there an user activity monitor/alarm?

You can define a keyboard lock (typing break) in System->Preferences->Keyboard:

However with this settings the total time a user worked without a break are neither logged nor displayed.


Cant install via Ubuntu Software- "apt transaction returned result exit-failed"

You're having problems with your software sources servers.  Change it from the Software Sources app.  You can get to it by:

(Click) the Gear Icon at the top left
System Settings
Software & Updates
(click the tab) Ubuntu Software
Choose a different server from the Download Dropdown

You'll get the best server if you choose Other, then click Select Best Server.  On that option, the system will run tests and match you with a mirror server with the best performance for your location.


Disable Software Updater pop-up after 14.04 to 16.04 upgrade

lots of people recommend simply removing the update notifier:

sudo apt-get remove update-notifier

But that also removes the ubuntu-desktop package, so it wouldn't work in a secure way. I came up with the simplest and most brutal workaround, which is just not having that program as part of your system startup. For this, open your bashrc file

gedit ~/.bashrc

and add at the end

killall update-notifier

It has worked so far. This file executes those commands everytime you start a new session, so it should kill the notifier as soon as you login.


Booting Ubuntu from USB on Zotac Zbox HD

So i've realize this:

To enter BIOS, you need to press DELETE
To enter Boot menu, you need to press F8

Also, you need to press them repeatedly after you press start button at cold start.


18.04: Install FULL Ubuntu onto 2nd USB from Live USB on Mac?

I was able to solve this with many thanks to @user535733 -- much appreciation.

First, I created a live bootable USB. Please NOTE: if you want to be able to make changes to your Ubuntu environment you will need to make a persistent live usb.

-- to create a bootable live usb that will not remember configurations or changes once you reboot -- follow this guide:

https://ubuntu.com/tutorials/tutorial-create-a-usb-stick-on-macos#1-overview

-- to create a persistent usb that will remember SOME changes when you reboot (like network config, etc) follow any of these guides -- note if you use the last one you will either need to buy the tool or compile it -- I bought it for $4.99...

option 1 -- How do you create a live persistent Ubuntu USB on a Mac that will boot to a Mac or PC?

option 2 -- https://apple.stackexchange.com/questions/285722/persistent-ubuntu-boot-usb-macos-sierra

the source is here if you want to build it yourself:
https://github.com/SevenBits/Mac-Linux-USB-Loader/wiki/Using-Persistence-with-Mac-Linux-USB-Loader

2 -- with a live usb version, boot your mac using the instructions for either option above -- note if using persistent you need to follow the boot instructions to boot persistent

3 -- once your Ubuntu system is up, get networking going (wired ethernet is easiest)

Note -- you will see an Ubuntu installer on the desktop -- you will use this in a future step to install FULL 18.04 onto your new usb

4 -- insert a new USB into the system

5 -- open terminal and run df -h

Note which device is your new usb in my case it was /dev/ssb -- see comments from user535733 in the comments of this post for more helpful info

6 -- start the Ubuntu installer by double clicking on it -- if it asks to unmount partitions, let it

7 -- as the installer runs it will ask you to pick from a drop down which device you want the install to go to -- BE SURE you pick the new usb that you identified in step 5 above.

8 -- let the install go -- it will take a long time. I chose to install updates and complete drivers - pick what works for you.

Once complete power down your system, remove the original live USB (not the new one) and boot your mac by holding down the option key and pressing the power button. Once the boot loader comes up select the new full ubuntu USB to boot from -- it will take some time to come up -- be patient

9 -- post install note -- when I wanted to go back to my mac os the system kept loading a grub boot loader. I was able to get around this by resetting NVRAM (hold option+command+P+R keys and power up) see this Apple note: https://support.apple.com/en-us/HT204063

That's it -- I was able to create a FULL installed 18.04.4 LTS USB that will remember all the software I and and changes I made.

Again, many thanks to @user535733 for the help!


Why are there different versions of a man page in the Ubuntu Manpage Repository?

POSIX stipulates a number of commands are available (see the Shell & Utilities volume) and that they work in a certain way. Here are those commands:

  admin alias ar asa at awk basename batch bc bg break c99 cal cat cd cflow chgrp chmod chown cksum cmp colon comm command compress continue cp crontab csplit ctags cut cxref date dd delta df diff dirname dot du echo ed env eval ex exec exit expand export expr false fc fg file find fold fort77 fuser gencat get getconf getopts grep hash head iconv id ipcrm ipcs jobs join kill lex link ln locale localedef logger logname lp ls m4 mailx make man mesg mkdir mkfifo more mv newgrp nice nl nm nohup od paste patch pathchk pax pr printf prs ps pwd qalter qdel qhold qmove qmsg qrerun qrls qselect qsig qstat qsub read readonly renice return rm rmdel rmdir sact sccs sed set sh shift sleep sort split strings strip stty tabs tail talk tee test time times touch tput tr trap true tsort tty type ulimit umask unalias uname uncompress unexpand unget uniq unlink unset uucp uudecode uuencode uustat uux val vi wait wc what who write xargs yacc zcat

GNU coreutils (what GNU/Linux distributions ship) contains all these commands but they have developed away from the standard POSIX base over time. Some offer better features. Some work in slightly different ways. These coretils versions are what the standard man pages cater for.

But it is still desirable to write scripts that work on many platforms. For example, if you tried to use extended coreutil functionality of grep on OSX, you'd run into syntax errors. And this is why knowing how the POSIX version works is desirable. Install manpages-posix and you know everything.

It's also essential to know this stuff if you're planning on improving GNU coreutils.

Plan9 is different yet again. It was never designed to be POSIX compatible. It strives for an amount of POSIX compatibility through a emulation layer and the man pages for it are again, there as documentation to let you know what you can use.


apt-get install python3-matplotlib ......  it is python 2.7.12 :
  import matplotlib.pyplot as plt

python 2.7.12 is not using 'python3-matplotlib', but python-matplotlib.

Please install python-matplotlib too


This terminology has some problem with transparency settings and breaks. I didn't find the solution so need to run it without transparency (what a shame).Terminology is hard coded so each modification hast to be made directly in the  source code and then compiled again. This issue is not appearing in 14.04.


Brightness keys adjust brightness too many times

I had a smiliar problem:

  I run Ubuntu 12.04 on my netbook (Acer Aspire One D255E) and I have
  the following problem with the brightness settings: If I want to
  adjust the brightness with the fn-key, I can only change between three
  brightness steps, but my netbook has nine brightness steps.

Ruben Bakker gave this instructions, which solved the problem.

  Easy fix. In the terminal:

gksudo gedit /etc/default/grub

  You will find this line in the new opened window:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

  Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

  Save and close the window and type this in the terminal:

sudo update-grub

  Then reboot. Rejoice :)

Link:
Problem with brightness settings with Acer Aspire One D255E in 12.04


Slack fails to open links in Ubuntu 14.04

I'm on fresh Ubuntu/Chrome/Slack and links were opening blank tabs in Chrome. This AskUbuntu answer worked for me:

  Open file: $HOME/.local/share/applications/google-chrome.desktop

  Find the line:

Exec=/opt/google/chrome/chrome

  Add a space and %U:

Exec=/opt/google/chrome/chrome %U

  Then save the file.


You may be in luck with your Brother printer/scanner because the company is great with their Linux support.
https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=dcp7065dn_all
Sorry I posted an invalid URL on my last post.  Please try this one.
I recommend downloading the deb package for their scanners.
https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=dcp7065dn_all&os=128


Max resolution available is 1024x768, while I should expect 1280x1024

You appear to be running into a specific combination of hardware bug. It is already reported as LP Bug #783165 and I think it's caused by something odd in the EDID of your display that confuses the i915 driver. Make sure you mark yourself as affected in that bug report, subscribe to updates if you like and feel free to post a working workaround in the bug report. This could be useful for anyone else running into the same and hitting to the bug report rather than the Q&A here.

Workaround

There's this workaround I spotted on chrisnewland.com:

  Use the xrandr command to get the detected modes

chriswhocodes@debian:~$ xrandr  Screen 0: minimum 320 x 200, current
1024 x 768, maximum 4096 x 4096  VGA-0 connected 1024x768+0+0 (normal
left inverted right x axis y axis) 0mm x 0mm    1360x768       59.8
1024x768       60.0*    800x600        60.3     56.2      848x480
60.0      640x480        59.9     59.9

  Note the name of the screen, here it is VGA-0 but yours may differ

  Use the cvt command to get a Modeline string for the resolution you want (1280x1024)

chriswhocodes@debian:~$ cvt 1280 1024
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz  Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027
1034 1063 -hsync +vsync

  Now copy everything after the word Modeline into the xrandr --newmode command

chriswhocodes@debian:~$ xrandr --newmode "1280x1024_60.00"  109.00
1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

  Now add the mode to your screen

chriswhocodes@debian:~$ xrandr --addmode VGA-0 1280x1024_60.00

  Now change to the new resolution

chriswhocodes@debian:~$ xrandr --output VGA-0 --mode 1280x1024_60.00

  You should now be running at 1280x1024 but you need the next step to make it permanent

From here the posted workaround seems to be out of date. See this answer on how to make it permanent.


For me it seems to be a problem with Compiz because the "Ubuntu Unity Plugin" isn't activated. I think it was the upgrade from your classic session into "Oneiric" so compiz didn't activated the Unity.

But when you prefer the classic session, open up one of your desktop-folders i can see on your screenshot. Here you can navigate to

/usr/share/applications

Here you can find Ubuntu Software Center and the Terminal (and perhaps still Synaptic Package Manager). So, when you have this, open one of your preferred programms. Way 01, the Ubuntu Software Center: Just search for "gnome-session-fallback". Way 02, the Synaptics Package Manager: The same way as in Software-Center,

Way 03, the Terminal:

sudo apt-get install gnome-session-fallback

When you had installed the gnome fallback session try to logout. You'll find a "gnome-classic" session and the same without any effects.

By the way, in the applications folder (mentioned above) you can find "Compiz Config Settings Manager" Here you can activate the Ubuntu Unity Plugin and your unity experience will start.

I hope, I was able to help you correctly


I finally got it working.  I got my X205TA 4 days ago and finally had time to set it up.  Here are the instructions to install 14.10:

https://github.com/lopaka/instructions/blob/master/ubuntu-14.10-install-asus-x205ta.md

Hope it helps.


Ubuntu 14.04 and 15.04 - Realtek USB Wifi not powering on after sleep

One program I like for fixing usb power management and several other settings is powertop. you need to run it in a terminal with sudo powertop move over to tunables and try to turn your USB wifi to bad to disable powermangement after you turn it on.

If this works for you and you want to make it permanent for every time see How can I disable usb-autosuspend for a specific device?


How to add user to sudo group in ubuntu server

but it cannot be change because is read only.

this is because you don't run the command with sudo and thus as normal user and this is not granted for normal user.

From another sudo user or root user run the command replacing ussername with your user:

sudo adduser <username> sudo

The change will take effect the next time the user logs in..

Read this community wiki: https://help.ubuntu.com/community/RootSudo#Allowing_other_users_to_run_sudo


Whenever i do "heavy" suff, PC runs very slow & laggy. Is there a way to solve this by Partitioning?

There isn't a way round that I'm afraid unless you upgrade your processor etc. to complete the tasks quicker. If your recovering the hard disk whilst it's in use it's always going to slow down the system, as you say it's a heavy workload. Partitioning isn't going to give you a magic speed boost I'm afraid because again it's on the disk, again the swap partition is using space on the hard drive as virtual ram so is also going to be significantly slower than actual ram and not really create any boost in speed during any workload and especially not during heavy workloads. Recovering any disk particularly if it's the main hard drive of the system in use is always best done when you can just set it off and leave it to finish by itself.


One answer to solve this is to simply uninstall LTS 14.04.3 and install the old LTS 12.04.5 version of Ubuntu as the problems do not exist on the old version of Ubuntu. I'm not happy with this answer but for now until 14 works as expected or someone posts a better fix I will use 12.


Mono does not appear to be installed error (WineTricks)

http://dl.winehq.org/wine/wine-mono

d/l the latest version and place the .msi into /usr/share/wine/mono

then continue with installation of dotnet45


"E: The list of sources could not be read." while trying to update

You need to edit the file /etc/apt/sources.list and fix (at least) line 61 of it. You can edit it by opening a terminal window and doing:

gksu gedit /etc/apt/sources.list

You can comment out that line by putting a # at the start of the line.


Changing Ownership: "Operation not permitted" - even as root!

Probably the file has the immutable flag set in its extended attributes:

user@user-X550CL ~/tmp % touch immutable
user@user-X550CL ~/tmp % sudo chown root:root immutable
[sudo] password for user:
user@user-X550CL ~/tmp % sudo chattr +i immutable
user@user-X550CL ~/tmp % lsattr immutable
----i--------e-- immutable
user@user-X550CL ~/tmp % sudo chown user:user immutable
chown: changing ownership of 'immutable': Operation not permitted

To fix this, just run sudo chattr -i file:

user@user-X550CL ~/tmp % sudo chattr -i immutable
user@user-X550CL ~/tmp % lsattr immutable
-------------e-- immutable
user@user-X550CL ~/tmp % sudo chown user:user immutable
user@user-X550CL ~/tmp %


Teamspeak Server autorestart when it´s not working or having issues

What are you exactly asking? It's not clear, are you saying you have a service up and running and want to restart if it crashes? Is it started manually by you with a 'teamspeak.starter start' what are you exactly doing?

However assuming you have a systemd .service file you need to add:

Restart=always

and

RestartSec=5

+reload the cache

systemctl daemon-reload

Now you can try killing your teamspeak service and see that it will restart.


Use WebHTTrack Website Copier

Description: Copy websites to your computer, httrack with a Web interface
 WebHTTrack is an offline browser utility, allowing you to download a World
 Wide website from the Internet to a local directory, building recursively
 all directories, getting html, images, and other files from the server to
 your computer, using a step-by-step web interface.

Install it with

sudo apt-get install webhttrack

A good description of the functionality can be found on this link.


With zfs snap rpool@today you only snapshotted the rpool dataset. In general, what you might want is zfs snapshot -r rpool@today for a recursive snapshot. That will create a today snapshot in rpool and all its children datasets. They would all still be snapshots of all the individual datasets, though.

In terms of the Ubuntu dataset layout, tooling is still being developed to make that easier from a user perspective. Remember that the zfs support on the 19.10 installer is experimental, and so is this dataset layout.

Thanks for trying it out!


Workspace switching broken after upgrade to 17.10

Found what was causing the issue. I had a "Workspace Grid" extension installed, and it has a control called "Relative to current row workspace switching". Turned it off and everything's back to normal.


Remove the first part of each line of a text file

You can use awk in the following way:
awk -F "CALL" '{print "CALL"$2}' filename

The result is:
CALL:2017/12/0111:14,00:00:16,008,203,O,208,208,Jon,,,1,,""n/a,0

Details:

Use the -F or --field-separator flag, and setting CALL to be the field seperator
Print the string "CALL" followed by
The second element in the line (when CALL is the separator)

Note: You can redirect the output into another file using:
awk -F "CALL" '{print "CALL"$2}' filename  > newfilename


Nautilus Scripts - Select every second file

Perhaps it would be wiser to move the files to a Trash folder rather than to delete them altogether.You can achieve this by selecting script from nautilus context menu. I can't tell what script you are referring to, but this one will do just fine.

So, create the script, make it executable and place it in the nautilus script folder.

#!/bin/bash
comm_susbst=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS")
files_del=$(echo "$comm_susbst" | sed -n 'n;p')
num_files=$(echo "$files_del" | wc -l)
zenity --question --title="Delete every second file" \
--text="Are you sure you want to delete these files? \n You will delete $num_files files! \n\n $files_del"
    if [ $? == 0 ]; then
        echo "$files_del" | while read; do mv -t /home/$USER/.local/share/Trash/files "$REPLY"; sleep 0.1; done
    else exit 1
    fi
exit 0

After selecting files and running a script zenity window will pop-up for confirmation.If you insist on deleting files than replace the mv line with do rm -f "$REPLY". I hope it works as you imagine it will :)


Configuring an interface to use DHCP (client), just put this in your /etc/network/interfaces:

auto eth0
iface eth0 inet dhcp

to avoid NetworkManager managing it. Restart NetworkManager to pick up on that:

# service network-manager restart

If you need to run dhclient manually after configuring it yourself using ifconfig or ip commands, you just can and I don't see how upstart is involved here.

For example:

Have it configured manually in /etc/network/interfaces:

auto eth0
iface eth0 inet manual

Then the interface is down by default,

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr b4:b5:2f:xx
          BROADCAST MULTICAST  MTU:1500  Metric:1

so, bring it up with

# ifconfig eth0 up
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr b4:b5:2f:xx
          UP BROADCAST MULTICAST  MTU:1500  Metric:1

and start dhclient:

# dhclient eth0
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr b4:b5:2f:xx
          inet addr:192.168.0.134  Bcast:192.168.0.255  Mask:255.255.255.0


update-manager crashes with undefined symbol (libpyglib-gi-2.0-python2.7.so)

update-manager is a Python 3 application. However I suspect your PYTHONPATH contains directories referring to your Python 2 installation. The problematic one is /usr/lib/python2.7/dist-packages, which causes the incompatible Python 2 version of the apt package to be picked up.

Try unsetting your PYTHONPATH or run as

PYTHONPATH= update-manager


The accepted answer did not work for me. What has worked though was adding virtual monitors in XRandR 1.5.

To split the monitor do the following:

Enter xrandr into the terminal to check the output name and current resolution of the display you want to split.
On my system the result was:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+  50.00    59.94
   1920x1080i    60.00    50.00    59.94
   1600x900      60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.08    60.00
   800x600       75.00    60.32
   720x576       50.00
   720x576i      50.00
   720x480       60.00    59.94
   720x480i      60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

We can see that my monitor is connected to HDMI2 and the resolution is set to 1920x1080.
Add 2 virtual monitors with the xrandr --setmonitor command ensuring that they overlap with your physical display and are placed next to each other. The syntax of the command is (without quotes):

xrandr --setmonitor "monitor_name" "width_px"/"width_mm"x"height_px"/"height_mm"+"x_offset_px"+"y_offset_px" "output_name"

For my system it was:

xrandr --setmonitor HDMI2~1 960/254x1080/286+0+0 HDMI2
xrandr --setmonitor HDMI2~2 960/255x1080/286+960+0 none

While the above has already configured the virtual monitors on my system the changes haven't been applied until I have executed (it seems to refresh xrandr):

xrandr --fb 1921x1080
xrandr --fb 1920x1080

To persist the changes after reboot you would want to execute these commands when you login. You can do so by appending the commands at the end of your ~/.profile file.


Maybe not the exact answer, but I am able to use the Serial port 1 on the NanoPi Air. It is

screen /dev/ttyS1

For Serial port 2, that would be ttyS2.


ASUS UX533F temperature too high and fan off on Ubuntu 20.04 LTS

Your case is interresting and looks like mine

Config

Asus UX480FD
Intel UHD 610 x NVIDIA GTX 1050 Max-Q

About fans

My fans don't seems to work proprely, my computer have very high temps quickly and won't cool down

$ sensors
asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

Did you check this GitHub ? I tried for my Asus but it doesn't work, I'm still working on it
https://github.com/dominiksalvet/asus-fan-control

There is maybe a reason why your fans doesn't trun on when your computer is hot
Fans have multiples speed levels, and maybe your first level start at 52° (like me)

More info here : https://github.com/dominiksalvet/asus-fan-control#custom-temperatures

I'll keep you informed if I find more info about it


It should work just fine. The system-wide file that causes your per-user configuration lives in /etc/fonts/conf.d/50-user.conf (actually it's a symlink to a file in conf.avail, but it's its presence in conf.d that makes it work here). Do you have that file?

If you're using 12.10, you'll see in it that the ~/.fonts.conf* locations are deprecated, meaning that support for them will be removed in a future version, so you shouldn't put your configuration there. Put it in $XDG_CONFIG_HOME/fontconfig/fonts.conf instead. On Ubuntu by default $XDG_CONFIG_HOME is ~/.config, so if you haven't changed this (which you probably haven't) the location for you to put your per-user customisation is ~/.config/fontconfig/fonts.conf.

When using 12.04, however, ~/.fonts.conf is the right location as you'll see that 50-user.conf doesn't have the other entries there. You should try to remember to move your configuration to the new location if you upgrade to 12.10, but it should still keep working for this release at least.

Give it a go and let me know how you get on.


You can probably use Kerio from http://download.kerio.com/archive/index.php?type=source, as there seem to be Debian/Ubuntu version.

Have a look at this question Where to find 64-bit version of Kerio vpn client? should be helpful to you.


curl command fails with time out when downloading meteor

You're using sudo in the wrong place, doubly so:

sudo resets some environment variables, so your HTTPS_PROXY is not reaching curl in the first place.
The sh command should be run with sudo, if the script needs it.

Do:

curl https://install.meteor.com | sudo sh


How to repoint home partition in a re-installation

The official answer is documented at https://help.ubuntu.com/community/Partitioning/Home/Moving, from which I will extract the things you haven't already done. It's OK to copy the commands you see below, then switch to the shell prompt and paste them in with Ctrl-Shift-V

1) Find the UUIDs of the Partitions: The UUID (Universally Unique Identifier) reference for all partitions can be found by opening a command line (or shell prompt), then type the following to make a file with a list of all your UUIDs:

blkid > uuid-list.txt && cat uuid-list.txt

2) Back up and edit fstab: This is a file Kubuntu uses to decide what partitions to mount at boot time. The following commands, also executed from a shell prompt, will duplicate your current fstab, append the year-month-day to the end of the file name, compare the two files and open the original for editing.

2A) Duplicate your fstab file:

sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

2B) Compare the two files to confirm the backup matches the original:

cmp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)

3) Open the original fstab in a text editor from the shell prompt:

gksu kate /etc/fstab

and add these lines into it

# (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
UUID=????????   /media/home    ext4          defaults       0       2

and replace the "????????" with the UUID number of your intended /home partition.

4) Save and Close the fstab file, then type the following command from the shell prompt:

sudo mkdir /media/home

This command creates a new directory, later used for temporarily mounting the new partition. At the end of the procedure this directory can be removed.

5) Now reload the updated fstab file with this shell prompt command:

sudo mount -a

to mount the desired home new partition as /media/home. We will edit the fstab again later so this arrangement of the partition is only temporary.

6) Copy /home to the New Partition: Next we will copy all files, directories and sub-directories from your current /home directory into the new partition:

sudo rsync -aXS --exclude='/*/.gvfs' /home/. /media/home/.

The --exclude='/*/.gvfs' prevents rsync from complaining about not being able to copy .gvfs  and, even if rsync complains, it will copy everything else anyway. (For more detail, see http://ubuntuforums.org/showthread.php?t=791693)

7) Check Copying Worked: You should now have two duplicate copies of all the data within your home directory; the original being located in /home and the new duplicate located in /media/home. You should confirm all files and directories copied over successfully. One way to do this is by using the diff command:

sudo diff -r /home /media/home

8) Prepare fstab for the switch: We now need to modify the fstab again to point to the new partition and mount it as /home. So again on a command-line

gksu kate /etc/fstab

and now edit the lines you added earlier, changing the "/media/home" part to simply say "/home" so that it looks like this:

# (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
UUID=????????   /home    ext4          defaults       0       2

Then, press Save, close the file but don't reboot just yet.

9) Moving /home into /old_home: Backing up your old home, just in case things have not gone completely smoothly, is best done right now. Here is how:

As long as you have not rebooted yet, you will still see 2 copies of your /home directory; the new one on the new partition (currently mounted as /media/home) and the old one still in the same partition it was always in (currently mounted as /home). We need to move the contents of the old home directory out of the way and create an empty "placeholder" directory to act as a mount point for our new partition.

Type the following string of commands in to do all this at once:

cd / && sudo mv /home /old_home && sudo mkdir /home

By default, when you open a terminal window it places you within your home directory. Typing cd / takes us to the root directory and out of home so we can then use the sudo mv command to essentially rename /home into /old_home, and finally create a new, empty /home placeholder.

With your fstab now edited to mount your new partition to our /home placeholder and the original /home now called /old_home, re-load the updated fstab

sudo mount -a

10) Deleting the old Home: You can delete your old home directory with:

cd /
sudo rm -r /old_home

Be careful with the above command as mistyping it could result in the deletion of other files and directories.


Basic process:

sudo apt-get update
sudo apt-get install python3

If you want a very specific version:

sudo apt-cache show python3
sudo apt-get install python3=3.5.1*


Ubuntu 18.04 with kubuntu /Plasma enable numlock on login

After trying all suggestions, I switched off Mouse Keys. and numeric keys worked again. The keyboard layout for English UK is very weird.


I cant find any reference to support in jockey for nVidia 375 yet.  But the manual installation isn't as difficult as you might think.

Official Instructions

Download the driver version 375.20 from here
$ chmod 777 NVIDIA-Linux-x86_64-375.20.run
$ sudo sh NVIDIA-Linux-x86_64-375.20.run
$ sudo apt-get update
$ sudo apt-get upgrade

Install via PPA

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update

Potential Issues

Black screen on startup - Add nomodeset to grub - see this answer
Removing nVidia Drivers - Purge - see this answer

Addendum to the Login Loop issue, via @michael__treat :

Make sure that secure boot is disabled in Windows Boot Manager. The walk-through from Ubuntu may be incomplete. During testing, I found that I had to use the Windows System Boot Manager, and manually disable secure boot.

This solved the login loop issue in my case.

TL;DR: Make sure secure boot is actually turned off.

When you reach grub, go to windows boot manager
Press e
change secureboot from enabled to disabled


Ubuntu Wubi install is freezing / stalling / hanging on iso download

can I do a Wubi install with a manual download of the big file that is required and which Wubi seems to hang on?

Yes. If you put the ISO image for the version (and architecture: 32 vs. 64-bit) that you want to install in the same folder with Wubi, and no other ISOs are in that folder that might be inadvertently selected instead, and the ISO is not corrupted, then Wubi will use it instead of attempting to download the Ubuntu ISO itself.

Specific steps:

Make an empty folder in Windows.
Put wubi.exe in it. Make sure it's the version of wubi.exe for the specific version of Ubuntu you're using. (Each release has its own wubi.exe, though 32-bit and 64-bit versions of Ubuntu don't have separate wubi.exe files.)

Here's wubi.exe for Ubuntu 12.04.5 LTS. If you already have an earlier 12.04 ISO image, I still recommend getting a 12.04.5 ISO file and using that.

But if you want to install from an earlier ISO, you can. You should then install updates in the Update Manager, once your Wubi system is installed--which you should do anyway, even if installing 12.04.5.

I don't know if the 12.05.5 version of wubi.exe will recognize the older ISOs as correct.
If not, some of the earlier wubi.exe files are on the old-releases server.
[12.04 (original), 12.04.1, 12.04.2, 12.04.3]
Here's wubi.exe for Ubuntu 14.04.1 LTS. My guess is that this would work with the original release ISOs of 14.04, as well.

The wubi.exe files themselves are small--even if you have a very slow Internet connection (e.g., dial-up), that's no reason to attempt installing with an older (or wrong) wubi.exe.
Put the desktop ISO file in it. (It's fine if you do this before step 2, of course.)

Make sure it's the ISO image for the release and architecture you want to install, and that the release matches the release of the wubi.exe file you are using.

Here's the 32-bit desktop ISO for Ubuntu 12.04.5 LTS. Or you can get it with bittorrent.
Here's the 64-bit desktop ISO for Ubuntu 12.04.5 LTS. (Here's the torrent for that one.)
Here's the 32-bit desktop ISO for Ubuntu 14.04.1 LTS. (Here's the torrent.)
Here's the 64-bit desktop ISO for Ubuntu 14.04.1 LTS. (Here's the torrent.)

Whether you should use the 32-bit or 64-bit version is not determined by whether your Windows installation is 32-bit or 64-bit. A Wubi system is installed on a rewritable disk image inside your Windows partition, but it doesn't actually run as a Windows program when you use it. So you can use a 64-bit Ubuntu system with Wubi on a 32-bit Windows system, and vice versa.

Of course, if your computer has a 32-bit processor, you won't be able to run the 64-bit version of Ubuntu. And there are limited circumstances under which you might prefer to run the 32-bit version even when your hardware supports 64-bit. If you're not sure which to get, see What are the differences between 32-bit and 64-bit, and which should I choose?
Run the copy of wubi.exe that you've put in the folder with the ISO image you want to install from.

If Windows is configured to hide file extensions when displaying files, this may appear just as wubi. That's fine.

If UAC is enabled, as is the case on the Windows desktop OSes that support UAC (so far, this is Vista, 7, 8, 8.1), make sure you run wubi.exe as administrator. You can do this by right-clicking the wubi.exe icon and clicking "Run as administrator."

If Wubi still cannot use the downloaded ISO image, and the ISO image version is paired correctly with the wubi.exe version, two problems are likely:

Especially if Wubi failed early and/or still tried to download a new ISO image, check to make sure your downloaded ISO is not corrupted. You can do this by comparing its checksum against the official one. If you're only worried about inadvertent corruption (and not deliberately malicious modification), checking the MD5 hash is sufficient. (See also this article.)

As of this writing, there's been a delay in adding the Ubuntu 14.04.1 and 12.04.5 hashes to the UbuntuHashes wiki page. You can view them

in the MD5SUMS file for 12.04.4 and 12.04.5 (if you're installing Ubuntu 12.04.5), or
in the MD5SUMS file for 14.04 and 14.04.1 (if you're installing Ubuntu 14.04.1).

For convenience, the relevant lines are:

12.04.5, 32-bit
09eb43dcfce2b7246bdd6e8108e755df *ubuntu-12.04.5-desktop-i386.iso
12.04.5, 64-bit
48b4edf237c489eebbfef208c2650d11 *ubuntu-12.04.5-desktop-amd64.iso
14.04.1, 32-bit
a4fc15313ef2a516bfbf83ce44281535 *ubuntu-14.04.1-desktop-i386.iso
14.04.1, 64-bit
119cb63b48c9a18f31f417f09655efbd *ubuntu-14.04.1-desktop-amd64.iso

Anyone verifying the ISO images based on security considerations should use the official sources linked above and not rely on the copied hashes in this post. In that case, you should really verify the SHA1 hash (12.04.5, 14.04.1) or SHA256 hash (12.04.5, 14.04.1) instead of relying on MD5.

If you know your ISO file is correct (for example, by checking its MD5 hash yourself) but the Wubi installer keeps rejecting it, you could run the Wubi installer with:

wubi.exe --skipmd5check

This makes it attempt to proceed with the installation even if it thinks the local ISO file is wrong. One way to do this is from a Command Prompt launched as administrator. (The .exe extension in the command is optional.) You'll have to cd to the appropriate directory first:

Having put wubi.exe and ubuntu-14.04.1-desktop-amd64.iso in a folder by themselves, I start a Command Prompt as administrator (since UAC is enabled on this Windows system) and run cd C:\Users\ek\Downloads\wubi (you'll have to replace this with the correct location on your system) followed by wubi.exe --skipmd5check.

Another way to run wubi.exe --skipmd5check is to make a shortcut to wubi.exe (right-click it wubi.exe, click Create shortcut). Then right-click the shortcut and click Properties. In the textbox labeled "Target:" add --skipmd5check to the end (make sure there's a space between ...wubi.exe and what you added).

Running wubi.exe with the --skipmd5check command-line option by creating a shortcut and modifying the Target field in its Properties window.

Then run the Wubi installer through the shortcut you created.
Wubi doesn't work on UEFI systems with GPT disks. If your computer shipped with Windows 8 or Windows 8.1, you can't install Ubuntu with Wubi inside those Windows systems. (If your computer came with a different OS and you installed 8/8.1 yourself, you probably can.)

For these UEFI systems, you'll have to install Ubuntu in the "regular" way. (That is, to coexist with Windows it will have to be installed with its own partitions, alongside Windows, and not as a Wubi system existing inside a partition belonging to the Windows system.)

You might succeed at creating a Wubi system inside a UEFI/GPT Windows 8/8.1, but it wouldn't boot once you created it. (This is not specifically a Secure Boot problem; even with Secure Boot turned off, it should not be expected to work.) I'm including this information not out of suspicion that this is the cause of your current problem, but because it's highly relevant today--that is, mainly for the benefit of other readers who come along.

On the other hand, if you are using a preinstalled Windows 8 or 8.1 system, maybe Wubi did actually get past downloading the ISO automatically and failed while installing.

Further reading:

WubiGuide, especially How can I use a manually downloaded ISO?
Windows installer for Ubuntu 14.04 LTS onwards, specifically Rinzwind's answer (and the post by Dima it cites)


gRsync set permissions same as when copying

rsync has an option to keep permission

 -p, --perms                 preserve permissions

If you use gRsync, the same option is under Basic Options tab, mine is in spanish and looks like this:

gRsync Basic Options

Hope it helps.


How can I kill an application after a specific amount of time?

It can be done with a simple command. Once Totem is running, open up the terminal and enter the following line:

$ sleep n && totem --quit

Where n is the number of seconds you want to have elapsed before Totem is closed.

Explanation of the command

This is a very simple command, and if you want to learn more about using the terminal you should consider reading a bash tutorial, like this one.

The sleep n command waits until n seconds have elapsed and then the next command can be run.

Writing && after it tells the terminal to run another command as soon as the previous is finished, which is why I have written totem --quit after it.

You can do many more actions and not just quitting. Many applications in linux have a command line interface, which allow you to do this. To see what actions you can do on them through their interface, it is a good idea to check its manual, by running in a terminal $ man <application>; or help text, which is usually shown by running in a terminal $ <application> --help.


Can't Install 12.04 on Dell Latitude C400

First when you download ubuntu 12.04 .iso file, You should check md5sum.

If md5sum isn't Correct then you have corrupted .iso file and you have to download it again and make USB or burn disk. If md5sum is correct than there are no chances of occuring such problems.  You can't find util-linux_2.20.1-1ubuntu3_i386.deb as you mentioned in question, because they are inside larger file named filesystem.squashfs.


Is it possible to disable the video output in a video player but keep the audio enabled?

I don't think you can do this with the default video player on Ubuntu (totem) but with VLC media player you can easily disable the video stream of a media file and only let the audio play (or vice versa):

With this method settings won't be preserved across different files/loops of the same file. A more permanent solution is disabling video playback from the preferences menu:


Installing Ubuntu with Windows 8 on a separate partition

Use GParted (available on the Live CD) to resize the partition, and when running the installer, at the partitioning screen, click "Edit" and use / as the mount point.


The comand:

sudo apt-get install linux-lowlatency

works a treat.

In the old days, you had to do it by hand which was a lot more error prone. Yoshimi plug in synth had lagged noticeably from a qwerty keyboard, just as much as from my USB MIDI keyboard input.  Now, it responds practically instantaneously.

Well explained at https://help.ubuntu.com/community/UbuntuStudioPreparation


Application For Quick Translation of Selected Text? (2018)

you can use goldendict and then activate "scan popup feature".


Actually dpkg does not support wildcards
So if you need that feature you need this

dpkg --get-selections | grep "open-office" >list.txt

this file contains package and status you need to parse it and then feed to dpkg


can I get rid of the open/new/save toolbar in gedit 3.18.3?

At the moment there is a bug which isn't fixed yet.

You could use templates to start your files :

mkdir ~/Templates
touch ~/Templates/Text/File.txt


Delete your /etc/X11/xorg.conf

It will make the FGLRX driver to default itself to the HD 7640G after reboot and you'll get working VAAPI with HD 8500M being completely disabled.
It seems that "aticonfig --initial" command is unable to generate a proper and valid xorg.conf on a dual-adapter systems regardless of it's additional parameters.

PS You may also need to "apt-get purge" the ubuntu-drivers-common package as it will auto-generate an equally broken and non-functional xorg.conf each time you reboot.


Unknown file system, unable to boot from live cd

To put it simple, you obvoiusly wrecked your bootloader big time. How you did it, I don't know, but I can give you directions how to fix it.

Get an Ubuntu live CD an chroot into your system.

And yes, I strongly suggest you check, how to boot another device, like the DVD-rom.
In most BIOSes you press something like F5 or F8, or ESC, ENTER.

Chroot means, you mount your hdd partitions to the loaded live cd session using your own folder e.g. like /mnttmp.

You can do this like this...

Open up a Terminal and become root

sudo -i

Create a mountpoint

mkdir /mnttmp

Mount your hdd root fs to the new mount point

mount -t <fstype> /dev/<root partition> /mnttmp

If you have other partitions then that, mount those too AFTER you mounted the root partition, like so

mkdir /mnttmp/<home or else partition>
mount -t <fstype> /dev/<home or else partition> /mnttmp/<home or else mount point>

Once your finished you need to mount /proc /sys /dev to chroot

mount -o bind /proc /mnttmp/proc
mount -o bind /dev /mnttmp/dev
mount -o bind /dev/pts /mnttmp/pts
mount -o bind /sys /mnttmp/sys

Then chroot in your old Ubuntu-System

chroot /mnttmp

With this you can regain access to your running system. From here you can try to fix your grub mistake, or just reinstall grub from the system.

This should bring back Ubuntu as a loadable option in your grub.

sudo grub-install /dev/sda
sudo update-grub

And from there you can ask your next question... How do i add my Windows System to my grub list.

HTH,

s1mmel


Make sure you don't have another update application open: eg Synaptic, Software Updater, Ubuntu Software, another terminal. Then, as @Dave Sha points out, try using sudo apt-get -f install.


Writing a script to go through directories?

No script needed, just find:

find /media/shamsad/1E8A00A88A007E91/ -name '*.json' \
    -exec  mongoimport --db twitter --collection twitterCol --file {} \;


Add Unity Entry for Locally Installed Program

Place the installation to a common area (/opt).

$ sudo mkdir /opt/eclipse
$ sudo mv  /home/USERNAME_HIDDEN/eclipse/java-neon/ /opt/eclipse/

make a common link to the eclipse program to /usr/local/bin/eclipse.

$ sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse

Test running eclipse from the commandline..  Type this without a path:

$ eclipse

If it doesn't work the exec program might be at:

/opt/eclipse/eclipse/eclipse

Fix this by removing the previous link and linking the exec with:

$ sudo rm /usr/local/bin/eclipse
$ sudo ln -s /opt/eclipse/eclipse/eclipse /usr/local/bin/eclipse

When you can bring up Eclipse from the commandline, you can make a desktop entry by creating a desktop program with.

Create the GUI Launcher

$ gedit  /home/USERNAME_HIDDEN/.local/share/applications/eclipse.desktop

copy and paste this into the editor then save it:

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Eclipse
Exec=/usr/local/bin/eclipse
Comment=Eclipse Integrated Development Environment
Icon=/opt/eclipse/eclipse/icon.xpm
Categories=programing;IDE;utility

Now eclipse should appear in your Ubuntu Launcher search button.


How do I add a windows 8 user to Linux standalone SAMBA server

I assume that you have a central windows server with central user profiles (active directory). To integrate these workstations you have to mount the user home directories into /home on your linux machines and hook up the active directory into linux.

The keywords that you want to search for are: ldap pam active directory integration.  Useful links:

Ubuntu Active Directory Howto
Debian LDAP/PAM

note that integrating a windows machine into linux/ldap is generally not recommended (unless you have lots and lots of spare time on your hands). It might work satisfactorily with Samba 4.0. I haven't tried since it provides its own ldap...

Edit: I think I might have misunderstood you. If you want to access a linux samba share from windows simply follow the Ubuntu Samba Server Guide. If you want to login with as $user to the server simply create $user on the server. And set a samba password for the user:

smbpasswd -a $user

the configure the samba server according to your needs. Note: You don't need ldap/kerberos for this kind of setup. It usually helps to use your windows username and password as username/password for the linux user $user. In that case you won't need to configure any passwords on Windows.


Upstart job should look like this:

chdir /home/application/bin
exec /home/application/bin/startup.sh

Of course, the necessary start on and stop on sections need to be added, and a description is advisable. Consult the Upstart cookbook for guidance there. (http://upstart.ubuntu.com/cookbook/)


Why does pip not install the latest CMake on Ubuntu

Turns out the default pip version is old, see https://github.com/scikit-build/cmake-python-distributions/issues/88.


In Ubuntu, you should the apt (Advanced Package Manager) to install related libraries without breaking the system, since pip may not know where exactly it should be look for dependencies, libraries and such. Simply running:

sudo apt-get install python-nose

should be enough. You can also check the libraries section in the Ubuntu Software Center for more... libraries. If you aren't sure if Ubuntu includes the library, you can search the package list here: http://packages.ubuntu.com/


Ubuntu can't login after set LD_LIBRARY_PATH for CUDA

I didn't solve the problem. But I have a workaround for you.

1. edit /etc/default/grub

Modify GRUB_CMDLINE_LINUX_DEFAULT to

GRUB_CMDLINE_LINUX_DEFAULT='pcie_port_pm=off acpi_backlight=none acpi_osi=Linux acpi_osi=! acpi_osi="Windows 2009"'

This step is to prevent blank screen after logging in.

2. move nvidia library directories to /etc/ld.so.conf.d/nvidia.conf

The content of nvidia.conf is

/usr/lib/nvidia-390
/usr/lib32/nvidia-390

These directories depends on driver version on your computer.

3. create /etc/init.d/nvidia

To disable and enable nvidia runtime libraries.

#!/bin/sh
### BEGIN INIT INFO
# Provides:          nvidia
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     5
# Default-Stop:      0 6
# Short-Description: load/unload nvidia library
# Description:       load/unload nvidia library
### END INIT INFO

PRIME=$(prime-select query)
if [ "$PRIME" = "nvidia" ]; then
    exit 0
fi

case "$1" in
  start)
    sleep 10
    cd /etc/ld.so.conf.d
    mv nvidia.conf.bak nvidia.conf
    ldconfig
    nvidia-smi
    ;;
  stop)
    cd /etc/ld.so.conf.d
    mv nvidia.conf nvidia.conf.bak
    ldconfig
esac

4. execute update-rc.d nvidia defaults

You should find SXXnvidia in /etc/rc5.d/ and KXXnvidia in /etc/rc6.d/, /etc/rc0.d/.

Try to execute /etc/init.d/nvidia stop and nvidia-smi, you should see error messages of libraries not found.

Try to execute /etc/init.d/nvidia start, then nvidia-smi is fine again.

If everything is OK, you can reboot now. You are expected to login to desktop.

5. If anything goes wrong

The most possible problem is nvidia script not executed. If it happens, you can press Ctrl+Alt+F1 to tty mode, execute /etc/init.d/nvidia stop; reboot. Then you can go back to unity desktop to debug.

6. known side-effect

When use intel as prime GPU, unity-control-center(system settings) will be failed to start.

GLib-CRITICAL **: g_strsplit: assertion `string != NULL' failed.

Note: my system spec

# uname -r
4.13.0-32-generic
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial
# dpkg -l | grep cuda
ii  cuda-9-0                                    9.0.176-1                                    amd64        CUDA 9.0 meta-package
ii  cuda-command-line-tools-9-0                 9.0.176-1                                    amd64        CUDA command-line tools
ii  cuda-core-9-0                               9.0.176-1                                    amd64        CUDA core tools
ii  cuda-cublas-9-0                             9.0.176.1-1                                  amd64        CUBLAS native runtime libraries
ii  cuda-cublas-dev-9-0                         9.0.176.1-1                                  amd64        CUBLAS native dev links, headers
ii  cuda-cudart-9-0                             9.0.176-1                                    amd64        CUDA Runtime native Libraries
ii  cuda-cudart-dev-9-0                         9.0.176-1                                    amd64        CUDA Runtime native dev links, headers
ii  cuda-cufft-9-0                              9.0.176-1                                    amd64        CUFFT native runtime libraries
ii  cuda-cufft-dev-9-0                          9.0.176-1                                    amd64        CUFFT native dev links, headers
ii  cuda-curand-9-0                             9.0.176-1                                    amd64        CURAND native runtime libraries
ii  cuda-curand-dev-9-0                         9.0.176-1                                    amd64        CURAND native dev links, headers
ii  cuda-cusolver-9-0                           9.0.176-1                                    amd64        CUDA solver native runtime libraries
ii  cuda-cusolver-dev-9-0                       9.0.176-1                                    amd64        CUDA solver native dev links, headers
ii  cuda-cusparse-9-0                           9.0.176-1                                    amd64        CUSPARSE native runtime libraries
ii  cuda-cusparse-dev-9-0                       9.0.176-1                                    amd64        CUSPARSE native dev links, headers
ii  cuda-demo-suite-9-0                         9.0.176-1                                    amd64        Demo suite for CUDA
ii  cuda-documentation-9-0                      9.0.176-1                                    amd64        CUDA documentation
ii  cuda-driver-dev-9-0                         9.0.176-1                                    amd64        CUDA Driver native dev stub library
ii  cuda-drivers                                390.12-1                                     amd64        CUDA Driver meta-package
ii  cuda-libraries-9-0                          9.0.176-1                                    amd64        CUDA Libraries 9.0 meta-package
ii  cuda-libraries-dev-9-0                      9.0.176-1                                    amd64        CUDA Libraries 9.0 development meta-package
ii  cuda-license-9-0                            9.0.176-1                                    amd64        CUDA licenses
ii  cuda-misc-headers-9-0                       9.0.176-1                                    amd64        CUDA miscellaneous headers
ii  cuda-npp-9-0                                9.0.176-1                                    amd64        NPP native runtime libraries
ii  cuda-npp-dev-9-0                            9.0.176-1                                    amd64        NPP native dev links, headers
ii  cuda-nvgraph-9-0                            9.0.176-1                                    amd64        NVGRAPH native runtime libraries
ii  cuda-nvgraph-dev-9-0                        9.0.176-1                                    amd64        NVGRAPH native dev links, headers
ii  cuda-nvml-dev-9-0                           9.0.176-1                                    amd64        NVML native dev links, headers
ii  cuda-nvrtc-9-0                              9.0.176-1                                    amd64        NVRTC native runtime libraries
ii  cuda-nvrtc-dev-9-0                          9.0.176-1                                    amd64        NVRTC native dev links, headers
ii  cuda-repo-ubuntu1604                        9.1.85-1                                     amd64        cuda repository configuration files
ii  cuda-runtime-9-0                            9.0.176-1                                    amd64        CUDA Runtime 9.0 meta-package
ii  cuda-samples-9-0                            9.0.176-1                                    amd64        CUDA example applications
ii  cuda-toolkit-9-0                            9.0.176-1                                    amd64        CUDA Toolkit 9.0 meta-package
ii  cuda-visual-tools-9-0                       9.0.176-1                                    amd64        CUDA visual tools
ii  libcuda1-390                                390.12-0ubuntu1                              amd64        NVIDIA CUDA runtime library
ii  libcudnn7                                   7.0.5.15-1+cuda9.0                           amd64        cuDNN runtime libraries
ii  libcudnn7-dev                               7.0.5.15-1+cuda9.0                           amd64        cuDNN development libraries and headers
# dpkg -l | grep nvidia
ii  nvidia-390                                  390.12-0ubuntu1                              amd64        NVIDIA binary driver - version 390.12
ii  nvidia-390-dev                              390.12-0ubuntu1                              amd64        NVIDIA binary Xorg driver development files
ii  nvidia-modprobe                             390.12-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-opencl-icd-390                       390.12-0ubuntu1                              amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                0.8.2                                        amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                             390.12-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver


Failed to download repository information, software & update useless

I can't check this on my laptop, but your game' site after click on Linux recommends the following for installation on Linux:

sudo -s -- << EOF
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
mkdir -p /etc/apt/sources.list.d
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
apt-get update
apt-get install -y runescape-launcher
EOF

If you do not need this game anymore you can remove its APT sources.list file with

sudo rm /etc/apt/sources.list.d/runescape.list
sudo apt-get update
sudo apt-get install -f


How to change Host (IP address) and port number to connect to wifi internet in Xubuntu 16.04?

The firefox browser will allow you to easily set the Proxy if browser access is all you need. Click on the menu button ( top right of browser) and select preferences. Scroll down to network settings.
Click on settings.  Click on the manual proxy configuration button. Enter the 192.168.48.1 in HTTP proxy box,
enter 8282 in the Port box. Check the Also Use this proxy button
Click OK and you are done.


Try this (as root)

adduser <username> sudo


Server is broken after do-release-upgrade from 18 to 19

Solved

The German wiki from starkus helped me find the solution!

I added a config file in /etc/systemd/network containing

[Match]
Name=eth0
[Network]
DHCP=yes
Address=[my address]/22

It shouldn't work, as another (working) system lacks this file too, but it does, so I'm gonna quickly snapshot it before I do anything else. Everything works, nothing seems broken, my understanding is still minimal, but my relieve is huge.

Thanks for the input, if someone can formulate it in an answer that explains it I can accept that as answer.

(Now let's hope this time it keeps working)


Why does every window fade when I rotate the desktop cube?

Uncheck General Options -> Display Settings -> Lighting & you're good to go!  I'm just setting up my own 10.10 box & found the same problem.  Apparently it doesn't annoy some people.  Go figure.


How can I assign win-e to open my home folder?

In the Keyboard window, on the Shortcuts tab, select the line that says Home folder and hit Enter. Then input your shortcut: win+e


Firefox is pounding my system what should I do

It's possible that something in your browser profile is causing the problem.  One possible solution is to use the fairly new "reset firefox" process, which will create a new firefox profile for you with most of your settings preserved.

Warning: not all settings will be preserved, read the link below carefully first!

At the top of the Firefox window, click the Help menu and select Troubleshooting Information.
Click the Reset Firefox button in the upper-right corner of the Troubleshooting Information page.
To continue, click Reset Firefox in the confirmation window that opens.
Firefox will close and be reset. When it's done, a window will list the information that was imported. Click Finish and Firefox will open. That's it – you're done!

More information:

http://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems#os=linux&browser=fx17


Which port and ip addresses are used while installing new ubuntu system

You may view which servers will be queried by taking a look at /etc/apt/sources.list.  Your computer will query a DNS server (port 53) for each of these domain names.  After the DNS has been resolved, your computer will access via whatever protocol is mentioned in the sources.list file.  Typically, this is HTTP (port 80).

By default, your computer will query the servers, and then you will be redirected to another mirror (based on round-robin or possibly geo-location) and your computer will download the latest information.

When you download information from the servers, or you download packages from the servers, all the data downloaded is verified using GPG/PGP verification.  This way, you can trust the packages from any server from which you download them.


What is the correct way to ensure `mongod` starts on system startup in 16.04?

Installing

This is the method I ended up using (from user Adam C's comment re: using more up to date version of mongodb).  It worked for me but I'm not an authority on the matter.

https://askubuntu.com/a/757385/367134

Then I had to make a service file, see:

https://askubuntu.com/a/694226/367134

And edit the path in that service file from:

/etc/mongodb.conf

to:

/etc/mongod.conf

And then make mongodb start on system startup with:

sudo systemctl enable mongodb

see:

https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units

Now mongodb is starting on 16.04 system startup.

Uninstalling Old MongoDB

Before I did that however, I had to remove the existing installs and directories, which i did like this (steps mainly from https://askubuntu.com/a/497144/367134):

# go to /etc/apt/sources.list.d and remove any mongodb lists, then:

# sanity check - see what is installed
sudo dpkg -l | grep mongo

# remove all packages
sudo apt-get remove mongodb* --purge
sudo apt-get autoremove

# remove old directories
sudo rm -r -f /var/lib/mongodb/
sudo rm -r -f /var/log/mongodb/


How can i fix steam installation on ubuntu 14.04.3LTS

You can try sudo apt-get install -f steam.
The -f option resolve dependencies and fix broken packages.


You can customise window switching using CompizConfig Settings Manager (CCSM) .

If you launch CCSM, you will find the relevant options (highlighted) in the 'Window Management' section. The 'Switcher' options are all a variation on the traditional Alt+Tab behaviour but they are much more customisable and you can use any keyboard shortcut you want.

You can enable them by ticking the checkbox next to the option. Click on the option to configure it. To get Alt+Tab behaviour you need to set the keyboard shortcut for the 'Next Window' action to Alt+Tab.

To set the keyboard shortcut, click the button to the right of 'Next Window' and follow the dialog to grab the key combination that can be Alt+Tab, Super+Tab or any other combination you prefer.

You may use any number of these window switchers but you must use different keyboard shortcuts so that they don't conflict.

As for:

  make it behave more like it is in Windows 7

I have never used this operating system so I don't know how it behaves. I assume it is a window switcher with eye candy - this is what these Compiz Plugins provide.

Note: you need to run Compiz (desktop effects) for this solution to work. This requires the appropriate drivers and a sufficient graphics card to work.


Using xrdp from Windows host to Ubuntu 18.04 Hyper-V VM, I cannot modify files

Still don't know what the problem was, but a "custom" install of xrdp (so, compiled from source) using the script described here: https://c-nergy.be/blog/?p=14093 fixed it (although I no longer can get "Enhanced session" from Hyper-V and have to use the normal RDP client.

But I can read, write and modify files on the Windows host from the Ubuntu guest so I'm OK for now.


Trouble with dual boot Ubuntu and Windows

Boot into ubuntu and run

  sudo update-grub

Restart your pc. Windows should now be listed.


Bash scripting issue for a bifurcation diagram data generation

Problems with your version:

for i in $(number) does not run NUMBER times, but once with i=NUMBER.
./home/antoine/... starts with a ., so is interpreted as a path relative to your current directory. Since you probably run it from /home/antoine, it will interpret it as /home/antonine/home/antoine/..., which probably doesn't work. Delete the leading . to make it an absolute path.
Using a loop and sed to extract the last 200 lines could be done more efficiently with tail.
Mathematics needs to be enclosed in $(( ... )) or it will not be correctly interpreted.

Try (not tested):

#!/bin/bash

echo "enter starting value"
read start
echo "enter size of steps"
read steps
echo "enter number of steps"
read number
echo "enter the suitable pecisiion"
read precision

for i in $(seq $number); do
    /home/antoine/Bouncingball/bin/Debug/Boungingball 0.9 120 $(($start+($i*$steps))) 3.5 0.95 "$precision"
    tail -n 200 impactMap.dat >> diagbif.dat
done


Would Dual boot with Ubuntu 16.04.01 LTS 64 bit and 32 bit clash?

You can boot any multitude of Linux OSes together as long as you give them each their own / partition and they all use GRUB2

In the case of Ubuntu 64 and 32-bit I would keep the /home partition in common as long as you use different users in the unlikely case that applications running on both systems use different configuration files. (so not the OS would be the problem, but some applications might be...)

E.G. admin64 & user64 and admin32 & user32

That way you can still access the user files of the other users transparently, whereas the config files are kept separate.


Wifi not working Ubuntu 14.04 Hp Pavililon 2015

Connect your laptop to the internet using a lan cable then look in the additional drivers pane in settings (System Settings -> Software & Updates -> Additional Drivers). You can choose to use a proprietary driver for your sifi card from there.


This turned out to be a hard drive failure - I booted into a live CD and ran badblocks on the SSD whilst it was unmounted - there were lots of bad sectors.

Bought a new SSD and it works fine now.

Lesson learned: you can't properly check an SSD whilst it's mounted and in use.


FGLRX Intel/ATI Hybrid Video, Dual-Display Flickering

xorg.conf is obsolete now in Ubuntu 14.10 and I'm running a catalyst drivers without it.

I also had flickering with dual screens and I'm hoping I can fix it with something like:

xrandr --output DFP10 --primary
xrandr --output DFP9 --same-as DFP10

Still experimenting to see if that would fix the problem.


I made symbolic links to my zsh files in my home dir, that seems to work fine:

ln -s $HOME/.oh-my-zsh           /root/.oh-my-zsh
ln -s $HOME/.zshrc               /root/.zshrc

Disclaimer (Updated 2020-3-9): Only do this on a single user machine as it will make a user able to run programs as root (see comment by Eliah Kagan).


Running the script in the terminal is working perfectly but after creating .sh file run throws error

There are 2 issues.

1 Line endings

syntax error near unexpected token `$'do\r''

It looks like you used Microsoft-style line endings (\r\n or CR-LF) instead of Unix-style (\n or only LF). Most shell interpreters don't like those.

You can convert the line endings with dos2unix:

dos2unix bulkCopyFiles.sh

2 Interpreter choice / Shebang

You need to put a Shebang at the beginning of your Bash script to indicate that it should be interpreted by Bash.

#!/bin/bash
for file in Cadence*
do
  mv -i "${file}" "${file/John/Krishna}"
done

Otherwise Linux will default to the /bin/sh interpreter which is not Bash in Ubuntu but some other Bourne-like interpreter with a smaller language feature set (in Ubuntu it's Dash). In this case Dash is unfamiliar with Bash’s pattern replacement parameter expansion.

Appendix: Shellcheck

Use Shellcheck (also available in the eponymous package shellcheck) to verify the syntax of your shell scripts. For yours it suggests:

Line 1:
for file in Cadence*
^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.


After updating from Ubuntu 17.10 to Ubuntu 18.04 I lost my desktop

Not pretty sure, but if you could install GNOME environment on your desktop, you can get back your desktop. I presume you have unity environment installed previously.


While the contents of a directory become inaccessible when you mount a file system over the top, they aren't lost.  Unmounting the file system should make them visible again.  Something like the following:

sudo umount ~


These errors indicate that the X server is unable to load the Extended Display Identifaction Data record from the monitor during setup.  In practice, this means that X will attempt to pick what it thinks is a sane resolution based on some probing, rather than autoconfiguring to the best setup available for your specific monitor.  That you get reports from two different search subsystems is just evidence that X is trying really hard.

Ensuring these messages do not appear is somewhat difficult: it requires troubleshooting precisely why the EDID could not be read (the get-edid utility from the read-edid package may be useful).  If the issue is that the EDID is in a new format not yet understood by your computer, then you'd want to file a bug with lots of information, probably first against the read-edid package, after which the solution would propagate to other software.  If the issue is that the EDID is corrupt in some way, or otherwise unreadable, you would need to update the firmware of your LCD and/or display controller, which may or may not be supported by your hardware.  Whether there exists some firmware that produces sensible EDID is another matter :)

In practice, if your screen is not corrupted, these errors are unimportant.  If the resolution is undesireable, you can force a resolution by creating an /etc/X11/xorg.conf file.  Start by running sudo Xorg -configure, and then edit to have your preferred configuration for your LCD.  Unless you are very motivated, it may be safer to ignore these errors, as adjusting firmware or agressively testing software-during-development to troubleshoot EDID detection may impact other workflows on your system.

This error is typically observed on all-in-one systems (of any form-factor) where the manufacturer has prepared special drivers as part of the default installation, rather than using standard drivers for the hardware and operating system selected.  While the "optimised" drivers can often work around specific implementation issues with the hardware, they unfortunately offer a temptation to work around compliance with common standards as well.  Happily, the tendency for systems to be shipped in this condition has been markedly reduced in recent years, as more and more ODMs and OEMs validate their hardware against multiple operating systems.


"Reboot and select proper boot device" error after clean Ubuntu 13.04 install

Solution: Update the ASUS BIOS with a newer version.

The great support team at Boot-Repair concluded this was a UEFI bug with my BIOS.  I did update the BIOS near the end of all this, so apparently that did something good.

I also seemed to have better luck generating the installation USB from within Ubuntu itself rather than from a Mac using UNetbootin, but that may not have anything to do with it.


3840x2160@60hz recognized during install, but not after install complete on 14.04.2

Try sudo apt-get install nvidia-current
As that will install nvidia drivers.


Please Help: Nvidia Drivers on Optimus Laptop Ubuntu 15.10

You need to fully uninstall the drivers, you installed before and then install them again.

Run in terminal

sudo apt-get purge 'nvidia.*'
sudo apt-get purge bbswitch-dkms
sudo dkms remove bbswitch/0.7 --all
sudo apt-get install nvidia-352 nvidia-prime

then reboot.


Ubuntu 16.04 LTS 32-bit fails to boot when I installed ubuntu kernel 4.13.0.26. What do I do?

Yes, there have been booting issues with the update, but then it seems like the latest update fixes it (there's an official bug report at launchpad, see here).

Try removing the non-booting kernel (refer here) and re-updating your kernel to the latest version.


duplex (double sided) print not available

Just worked this out! Ignore the "duplex" section of the print dialogue. Instead:

Print dialogue > Device > Two-sided > Long-Edged Binding > OK

Using Evince, for example:

Select File > Print.
Click the Page Setup tab.
Set Two-sided to: Long Edge (Standard)
Click Print.


whenever i use sudo apt-get remove/install, reply is Error

Your errors said:

  No space left on device

Open System Monitor from Dash and select the Filesystems tab.

And if the problem is only related to /boot partition try this:

sudo apt-get autoremove

If it didn't work then It seems you have no space in /boot

You've a lot unused kernels. Remove all but the last kernels with:

sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")


Multiple networks connected.Which is considered?

The one with a 'better' gateway metric will be chosen.  To find out which one it is, open terminal and type this:

route -n

I see that I have a gateway with metric 0.0.0.0:

0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

So eth0 is my preferred adapter.

Another (probably easier) way to find out is to look at the route to Google's DNS server (8.8.8.8)

ip route get 8.8.8.8

This is my output:

8.8.8.8 via 192.168.0.1 dev eth0  src 192.168.0.2
    cache

You can see that it is going via eth0.  Try this on your machine and have a look at the results.


Skype 4.1.0.20 - pulseaudio is correctly set, but the microphone doesn't work

You should try to install pavucontrol.

sudo apt-get install pavucontrol

Then do the following:

Launch pavucontrol
pavucontrol
The volume control window will open
Launch Skype
Call someone or call the Echo
Go back to the volume control window and click the Recording tab
Choose your microphone


transfer okular annotations to extended pdf

All I had to do is to merge the annotated OLD.pdf with the extra part of the NEW.pdf . Then I opened the resulting file with okular and the annotations where there and I could  edit them . That worked at least for me .


GIMP installed via FlatPak asks me to install DarkTable, but I've already installed it. (not via Flatpak). How can I get GIMP to find it?

Installing Gimp plug-ins isn't a matter of PATH contents. To add plugins to Gimp you put the executable (a file-* in it can load/save files) in specific directories:

/usr/share/gimp/2.0/plugins (for "regular" installs, not flatpak ones)
the plugins directory in your Gimp user profile

The equivalents for flatpak installs would be:

/var/lib/flatpak/app/org.gimp.GIMP/current/[...]/files/lib/gimp/2.0/plug-ins/
.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins

But the problem with flatpack-ed Gimp is that it has its own runtime, so using executables not compiled for the flatpak environment isn't guaranteed to run smoothly.

IMHO, flatpak is just a stopgap measure for people stuck on 16.04, since you are on 18.04 you should add the Gimp PPA to your software sources and do regular installs from that.


Trying to Dual Boot Kubuntu and Windows 10

First you install window 10 in primary partition after that one drive separate for Linux this is secondary drive, if you follow these rules and system only NTFS otherwise generating error.


System Cannot boot when trying to install 12.04

Try typing F12 in the first booting, But first you must copy the installation file in USB or CD. It should be appear ubuntu complete installation proccess


Install a new system but keep intact previous folders like Desktop, Documents, Downloads, Music etc

A setup where you can reinstall and at the same time keep your user data (and only that, i.e., no config data) on the computer would involve putting the folders inside of your home folders on a separate partition. To maintain the same easy access to these folders, put symlinks in the home folder that refer to these folders that now reside on the other partition. Instead of using symlinks, you could mount bind folders in your home folder to the respective folders on another volume.

There are also other options that allow preserving the user data, although these also preserve user configuration data in hidden folders. Having a separate partition for /home allows for a clean install of the system, while leaving data and user configuration data alone, because you can have the system partition reformatted during the reinstall, but leave the separate /home partition alone. Just delete all hidden folders to remove the majority of user configuration.

Even if you have only a single partition, is actually also possible to install while preserving your user data. It involves manual partitioning, which you get by selecting "Something Else" in the installer. You assign the existing partition of your old install as the root (/) partition. The trick is then to uncheck the "Format" checkbox for the partition. At that point, the existing partition will not be reformatted, and the new system files will overwrite the existing files. Again just delete all hidden folders to remove the majority of user configuration. This way of installation may leave unused files from the old system lingering around, and is therefore less ideal than a reinstall where the partition is reformatted. I consider this a very good way to restore your system by reinstalling the same version this way in case some mistake as administrator badly damaged the system.


So the problem was that the swap partition was in use by my regular OS. The solution was to use SystemRescueCD and boot it from the USB into memory usingdocache. Then i was able to overwrite the swap partition.


What desktop environment is best suited for small children?

If you want a fully designed system  for children Qimo is ideal.

It is  designed visually for children and can not be afraid to break it since it has not the potential of a professional platform.

Images:

Qimo web pages


How can I debug the unity launcher where it sometimes causes a system freeze?

I also had system freezes with with Unity. Must have something to do with the graphics card and 3D support. I switched to Unity 2D and it is as stable as ever. Unity 2D makes use of Qt metacity in stead of compiz and is much lighter. Looks more or less the same as Unity 3D and you can alway's switch back. I would give it a try:
https://wiki.ubuntu.com/Unity2D

Cheers,
Maurice


Add persistance on bootable flashdrive from the bootable flashdrive

Yes it is trivial to add.

Add a casper-rw . https://help.ubuntu.com/community/LiveCD/Persistence#Creating_the_.22casper-rw.22_File_System

This can be on your hard drive or usb. If needed resize your usb partition and add  a second with the file.

To use it is a boot option. Hit F6 and add it in

https://help.ubuntu.com/community/LiveCD/Persistence#Booting_the_Live_CD_in_Persistent_Mode


How to open Ubuntu GUI from Command line Interface? (Ubuntu 14.04)

Read

http://linuxcommand.org/learning_the_shell.php

and especially

http://linuxcommand.org/lts0020.php

You could install a gui, but you probably shouldn't.


Awk programming: Split large file into smaller ones based on pattern

This can be done entirely in awk:

$ awk '$1 ~ /kpoint[0-9]/ { file = $1 ".dat" } {print > file}' file
$ head kpoint*
==> kpoint1.dat <==
kpoint1 :       0.0000    0.0000    0.0000
  band No.  band energies     occupation
      1     -52.8287      2.00000
      2     -52.7981      2.00000
      3     -52.7981      2.00000

==> kpoint2.dat <==
 kpoint2 :       0.0000    0.0000    0.0000
  band No.  band energies     occupation
      1     -52.8287      2.00000
      2     -52.7981      2.00000
      3     -52.7981      2.00000

Awk also supports > file for redirection, with some subtle differences (see GNU awk's manual for more).


Application/Port specific Network shaping tool?

I have used Trickle which is a lightweight bandwidth shaper.

It works by setting the upload and download parameters of the application you want to throttle.  I don't know if it can help you with specific port throttling, but I believe by using it with an application, it will work for how you need.

Installation

sudo apt-get install trickle

Basic Use

trickle -d download-bandwidth -u upload-bandwidth command

Example Use

trickle -d 25 -u 15 firefox


How to open aptitude downloaded packages?

If you only want to know what files are the package contains you can use

dpkg-deb --contents /path/to/your.deb

if you want to extract the files use

dpkg-deb --extract /path/to/your.deb /path/to/folder/you want them.


How can I create a new user with the equivalent of a Windows guest-user's permissions?

I don't know anything about that other operating system's "guest user permissions" but for Ubuntu you can create users with any privileges you like. On the other hand, there exists a "guest session" which can be accessed from an already started session. Both are described here.

Other than the permissions you give to the new users which you create, I advice you to set your home directories access permissions from your side (in a positive way, in some sense; by setting your rules for your your directory itself; don't rely on the guest users' "less-privileged" situation.) To do that, go to /home, right click the home directory you like to set, go to properties, go to permissions and set them as you like. This can be done via command line as well.


How to install VMWare converter on Ubuntu 12.04

The issue, which I experienced, appears to be related to a lack of 32bit libs.

Running strace shows a large number of system calls looking for libraries in '/lib/i686' and '/usr/lib/i686' etc, when i can see that the (64bit) libraries are exclusively installed into /lib/x86-64-linux-gnu/.

To fix you may need 32-bit libs on a 64bit Ubuntu, located in the right directories (I am using 14.04 LTS).

If you are running 64bit Ubuntu, run these (as root):
    apt-get install libxrandr2:i38
    apt-get install libxcursor1:i386
    apt-get install libxinerama1:i386

The installation of these allowed me to run VMWare Converter standalone on Ubuntu 14.04 (satisfying the 32bit library dependancies) by placing the 32bit libs in /usr/lib.

Simon


New to Ubuntu. What do I do for my display to work properly?

Since there are no proprietary drivers for Radeon GPUs, you may try to add
amdgpu.dc=0 to the kernel command line at boot, to see if it works.

In case of success you could add this command to grub, by editing the /etc/default/grub file. Add it behind the "quiet splash" entry...


how to install plugins to play media files of the following type: MPEG-1 Layer 3 (MP3) decoder?

Open a terminal and run

sudo apt-get install ubuntu-restricted-extras

Now it will work.

What is ubuntu-restricted-extras?


What version of Ubuntu do you have? Can you see your music files through console?

ls -l ~/Music/

Did you try alternative file manager and music player (mocp for example)? If not I would recommend to check this first.
Few words about MOC. MOC - Music On Console, official page,
sudo apt-get install moc - to install it.