Function Keys Do Not work (Brightness & Sound) Ubuntu 16.04

Edit GRUB config file to pass a kernel boot parameter

Open Terminal
type sudo -H gedit /etc/default/grub
Find this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Add acpi_osi= immediately following quiet splash to give: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
The next line should look like this: GRUB_CMDLINE_LINUX=""
SAVE and CLOSE file
In terminal, type sudo update-grub

Create .CONF file

Open Terminal
type (or copy/paste): sudo -H gedit /usr/share/X11/xorg.conf.d/20-intel.conf
Enter this in the file line for line:

Section "Device"
Identifier  "card0"
Driver      "intel"
Option      "Backlight"  "intel_backlight"
BusID       "PCI:0:2:0"
EndSection

SAVE and CLOSE file

Reboot computer

The above steps fixed my problem and I was able to use the function keys to control brightness and volume on my machine. I tried several things and edited the GRUB file several times, updating and rebooting every time. Some threads suggested edited the BIOS, others suggested installing xbacklight. It took a while to troubleshoot. If my solution doesn't work for you, here are threads that helped me:

This one edits GRUB slightly differently
This is what I used the create the 20-intel.conf file (but the GRUB specifics did not work for me)
Why does the Kernel Boot Parameter Set ACPI OSI Linux
Linux Kernel Boot Parameters


C Library Function Actual Implementation

Obtaining glibc code can be done via apt-get command. Here's basic process done in terminal, which takes no longer than 5 mins:

Create glibc-source directory with mkdir glibc-source and cd glibc-source
run apt-get source glibc
Once apt-get is done, you'll have 3 files and one directory, glibc-2.23/, glibc_2.23-0ubuntu3.dsc, glibc_2.23-0ubuntu3.debian.tar.xz,  glibc_2.23.orig.tar.xz. The file you want is glibc-2.23/stdlib/atoi.c


snap find queries an online catalog of software, so requires an internet connection. Please check your connection is working fine.

One quick check you can make is whether the url it prints is accessible in a browser. Try visiting https://search.apps.ubuntu.com/api/v1/snaps/search and see if you get a response which starts with {"_embedded": {"clickindex:package": [{"anon_download_url": "https://....


Upgrade from 13.10 to 14.04 interrupted - now I click on upgrade and the window closes

I think you need to do a
sudo do-release-upgrade --check-dist-upgrade-only to update it from terminal.


Ubuntu 12.04 LTS boot problem - (won't startup after install)

I have an ASUS as well and the odd time when I boot, it does the same thing (purple screen) and then reboots, purple screen and cycles forever, never booting. I solved it by connecting my laptop to AC power.


How to replace string with file contents which contains symbols using sed

Maybe:
$ var="$(printf '%q' "$(cat header)")"
$ sed -i "s,test,$var,g" test.xml


Key server times out while installing docker on Ubuntu 14.04

See the repo issue for details: https://github.com/docker/docker/issues/13555

The protocol hkp uses the port 11371 as default.

The pool hkp://p80.pool.sks-keyservers.net is a subset of servers which are also available on port 80. It's more friendly to firewalls and companies.

For some reason, most docker documentations and tutorials are giving that p80 pool for installation, without further explanation.

The thing is, this is a small pool of servers and they fail very often in practice. (The fact that most tutorials are sending people to that small pool probably doesn't help either).

You should use hkp://ha.pool.sks-keyservers.net if you want any of stability. Open the port on your firewall if you have firewalls.

It is a pool with only high availability setup, as the name suggest. Meaning servers MUST be behind load balancers to be accepted.


What spam filter should I use with Evolution: Bogofilter or SpamAssasin?

Well in a perfect world, you'd probably run emails through both before emails got anywhere near a client machine... But that's a discussion for another time.

Simply put SpamAssassin is a safer choice. It might not catch as much spam, (it probably will) but you're probably less likely to get false positives. That for me is a very important part of performance.

But both systems need to be told things to sort the ham from the spam. You can't really expect to just start using something like this and get 100% accuracy. Pull in things like spamhaus to help. Train it by marking files properly.

If you can spare any time to configuration, use this generator to quickly set some ground rules.


How can I exclude . and .. when listing hidden items?

From the second answer in:

How to show only hidden files in Terminal?

This works on my machine (I'm not using SSH like the OP though):

ls -d .!(|.)

If there are no hidden files or directories you will get an error message:

$ ls -d .!(|.)
ls: cannot access '.!(|.)': No such file or directory

The error message occurs on directories with no hidden files because . and .. are excluded.

shopt consideration

From comments:

ls -d .[!.]* works without extglob


Why do I get `$` in prompt instead of `user@hostname:~$` while SSHing into docker container? Am I logged in as user?

When you SSH into your box, a shell is spawned. Which shell this is, is defined in the file /etc/passwd in your Docker image. I suspect it lists /bin/sh and not /bin/bash.
Your Dockerfile lists a command to create a new user in your image. This command is useradd, and that's the command that will alter /etc/passwd inside your Docker image. Try to use useradd --shell /bin/bash remote_user instead of useradd remote_user. Then rebuild your Docker image, and create a new container from that image.


You can add information to /etc/fstab to make this work. But if you need to supply a password to make the remote connection then that is not an option.  You can create a passwordless key to use for ssh, but that comes with security implications and I would not recommend it.  Overally, I would suggest you look into a different protocol like NFS for LAN or DAV for a connection across the internet.


How do I list the public files in my home directory? (mode 777)

From the terminal:

The terminal opens up in your home directory by default. From anywhere else, type cd ~ to return to the home directory.
ls -l will show you the file permissions at the beginning, e.g.

-rwxr-xr-x 1 izx izx  11217428 Oct  2  2011 wkhtmltoimage-amd64

First Method: The watch-and-learn way

You can then filter with grep to get your desired result:

ls -l | grep -P ".{7}rwx.*"

the regular expression here tells grep to only select lines where characters 8-10 are rwx

which in my home directory shows:

-rwxrwxrwx 1 izx izx         0 Jun 15 23:42 sd.png
-rwxrwxrwx 1 izx izx         0 Jun 15 23:42 slashdot.png
drwxrwxrwx 3 izx izx      4096 Jun 15 21:31 src

Second Method: The proper, recursive way

In your home directory, type find . -perm -a+rwx

You're telling find to look through the current (home) directory and all subdirectories, for files that are rwx by all; the results will be displayed with full relative paths, e.g.

./.mozilla/firefox/lr5z24b3.default/lock
./src
./src/accountsservice-0.6.15/src/libaccountsservice/.libs/libaccountsservice.so
./src/accountsservice-0.6.15/src/libaccountsservice/.libs/libaccountsservice.la
./src/accountsservice-0.6.15/src/libaccountsservice/.libs/libaccountsservice.so.0
./src/accountsservice-0.6.15/debian/libaccountsservice-dev/usr/lib/libaccountsservice.so
./src/accountsservice-0.6.15/debian/libaccountsservice0/usr/lib/libaccountsservice.so.0
./src/accountsservice-0.6.15/debian/tmp/usr/lib/libaccountsservice.so
./src/accountsservice-0.6.15/debian/tmp/usr/lib/libaccountsservice.so.0
./.pulse/676238f89edd1f57138b3da400000004-runtime
./sd.png
./slashdot.png
./XnView/lib/libQtGui.so.4
./XnView/lib/libQtWebKit.so.4
./XnView/lib/libQtXml.so.4
./XnView/lib/libQtDBus.so.4
./XnView/lib/libQtNetwork.so.4
./XnView/lib/libQtCore.so.4
./XnView/lib/libQtSvg.so.4

The bold entries in the home directory also showed up in the first method.

For more ways on using find to accomplish what you want, please refer to Eliah Kagan's answer just above or below this one.


Lord of Ultima and Bit trip runner not available in Muon Software Centre

The reason for this is that Muon Software Center hasn't added support for the commercial repositories that Ubuntu Software Center can access.

Due to the fact that these repositories don't contain things that are freely distributable to anyone they don't use the standard repository format that is supported by all package managers (including Muon.) Instead they have a separate mechanism that allows the contents to be searched before the repositories are added, with a mechanism for adding the repositories and taking payment.

Currently Muon Software Center doesn't support this new type of repository and so none of the apps available from these repositories can be accessed using it. At this time you will have to use Ubuntu Software Center to get access to them.

Thanks,

James


Prevent progress bar from covering video

The option you are looking for is boxvideo, which is available for mpv 0.31 and above (see relevant git commit). Just add:
boxvideo=yes

in your ~/.config/mpv/script-opts/osc.conf and your video should be displayed above the progress bar.
Also make sure to change the vertical position of the subtitles, because they will be probably covered from the OSC now, by adding the sub-margin-y option in your ~/.config/mpv/mpv.conf file as:
sub-margin-y=<size>

where <size> represents the top and bottom screen margin for the subs in scaled pixels.

To install the latest version of mpv, if it isn't included in the default repositories of your Ubuntu version, you can add mpv's PPA by running the following commands:
sudo add-apt-repository ppa:mc3man/mpv-tests
sudo apt-get update

Then reinstall mpv:
sudo apt install --reinstall mpv


The nVidia modules are known to behave oddly when interacting with realtime processes, with unpredictable effects on other processes on the system, but the most common issue with starting JACK is not having configured the limits to allow JACK to consume more resources than regular processes.  One solution is to install ubuntustudio-settings and configure the limits therein.  The other is to add your user to the audio group, and create a file /etc/security/limits.d/audio.conf containing the following:

@audio - memlock unlimited
@audio - rtprio 99

Once you log out, and log in again, you should be able to run JACK in realtime (unless the nVidia drivers are indeed the cause of your issues).  Note that both methods to address the issue are identical in final configuration, although the means of achieving that result differs slightly.  Smaller values for memlock are known to work, but the specific value required seems to differ depending on the underlying hardware, the JACK routing map, and the number of filters being applied: if "unlimited" seems too high for you, there are any number of suggestions for specific values on any number of linux audio forums, but I have yet to see any clear guide for calculating the correct value for a given environment.

Be aware that by default pulseaudio-module-jack does not attach to any output devices: when testing, be sure to check your audio routing in JACK to ensure that output is being rendered in a way you can notice (to working audio out or some graphical visualisation tool) before thinking it doesn't work.


Accidentally moved `/tmp` - replacements won't persist

It seems you've stumbled on a persistent part of the Kernel, I believe this is not solvable in the proper way.
In the absence of will to reinstall the whole system, why don't you try creating a symbolic (or a hard) link from /snapshot.0 to /tmp:
sudo ln -s /snapshot.0 /tmp

If that doesn't work, I would make a small daemon to constantly check if /tmp is there and create it, if not found (with lock permissions maybe).
Difficult situation, I sympathize :)


Power Manager Doesn't Show Battery Charging

In 11.10 Icon characteristics have changed a bit. If it is charged or have just started discharging you will see full battery. as it keep discharging you will see the battery icons showing it. When it have been discharged to certain extent and plugin AC power (Adapter) you will see thunder-icon showing it charging. If you want to knwo what currently is happening click the battery icon and it will say something like Battery(charged)


Try unmasking this unit like this:

sudo systemctl unmask mount


Cannot successfully start up command in rc.local

You've two problems there.

/etc/rc.local runs as root, so you don't need sudo
rc.local is a script, these are sequential and each command blocks execution. Run your commands in background by adding & at the end.

Also note that  rc.local  uses #!/bin/sh -e which means it will exit on any error. If you want the script to continue execution even if one of commands fails, use command arg1 arg2 || true type of approach.


How to enable logging for Google Chrome in Ubuntu 12.04?

It seems likely that you're not looking in the right place for the log file.

When you run google-chrome --enable-logging --v=1, the log file will be created inside ~/.config/google-chrome (where ~ represents your home folder). If you're using Nautilus (the graphical file browser), you'll have to press Ctrl+H or click View > Show Hidden Files to see files and folders that start with ., such as the .config folder.

Or, if you're using Chromium rather than Chrome and you run chromium-browser  --enable-logging --v=1, the log file will be created inside ~/.config/chromium.

If you want to send all the output of a command to a file, including error output, use the &> redirection operator instead of just >. So you could run google-chrome &> output.txt.

edit

  you can also see your crashes reports at chrome://crashes if logging was enabled before


T61 Lenovo Laptop overheats - is there a fix?

There are several factors in a laptop overheating. Here is what I did for my Lenovo T410 when it was having this shutdown problem. The steps are generic enough for any laptop.

Configure your bios to be more battery/power friendly

Restart and boot to your Bios (you press some function key or, in Lenovo, the "ThinkVantage" button) and go to the power options and choose more performance friendly ones. Here are the settings I changed in my Lenovo's BIOS. Don't worry if your BIOS settings are different, just hunt around for what sounds Power related and make sure it's not set to maximize performance type options. My laptop's example BIOS settings:

Speed Step Technology set to "Enabled" (I still have a need for speed). But "Mode for AC" and "Mode for Battery" both set to  to "Maximum Battery" (NOT "Maximum Performance").
Adaptive Thermal Management "Enabled". "Scheme for AC" and "Scheme for Battery" both set to  "Balanced"  ( NOT "Maximize Performance").
CPU power Management, PCI Power Management and PCI Express Management to "Automatic" (NOT "Disabled")

Don't forget to save the bios settings before exiting.

Update your BIOS

Sometimes the way the laptop talks to its parts (like the fan) changes in later BIOS versions. If you get the latest BIOS installed, there's a chance that if there was some issue in the BIOS that was causing the overheat, it might have been fixed.

Warning!!! Back up your data before updating your BIOS!

It's usually safe to update but there's a chance things could go wrong.

Lenovo, in your case, makes it easy to update by having a bootable cd. You can google it like this: Lenovo T410 "Bios Update" "Bootable CD" (insert your model number instead of T410). You burn the .iso image and boot off of it and follow the on screen instructions to update the BIOS.

Cut down on heavy graphics effects in your Desktop

Go into your Display settings and make sure that you don't overdo it with effects. If you're running beryl or some other effects engine, consider limiting the number of effects.

Make sure the fan isn't stuck

If you want to maintain it and feel brave, remove the keyboard (typically unscrewing a few screws and gently prying it from the hinges under the bottom keys) and look at the fan and make sure there's no dust blocking it so that it can spin easily.

Monitor the Temperature

On unity there is:

sudo apt-get install indicator-power

For the command line, there is powertop

sudo apt-get install indicator-power

Run it from unity and check the boxes for monitoring the fan  and all the cores.

More great tips here.


Script to upload to Internet Archive (archive.org)

Actually, I should have spent about 30 more seconds on Google ...

http://www.archive.org/help/abouts3.txt says I can use the s3cmd tool:
sudo apt-get install s3cmd
And then edit the configuration file, so ~/.s3cfg looks like:

[default]
host_base = s3.us.archive.org
host_bucket = %(bucket)s.s3.us.archive.org
access_key = key
secret_key = key
use_https = False
verbosity = WARNING

Then use the following script to upload everything to archive.org:

#!/bin/sh
BASE_URL=http://archive.org/details/
BASE_HEADER=something-$(date -u +%s) #something that should be unique
echo Converts to PDF and uploads the contents of a directory given as the command-line argument.
echo Now converting PDF to JPG
for file in `ls $1/*.pdf`
do
   convert $file `echo $file | sed 's/\.pdf$/\.jpg/'`
done
echo Listing JPGs: #make sure the conversion worked
ls $1/*.jpg
echo Making the bucket...
s3cmd mb s3://$BASE_HEADER
echo Sleeping...#sometimes it takes a moment to be processed on their end
sleep 20
echo Uploading files...
for file in `ls $1`
do
        s3cmd put $1/$file s3://$BASE_HEADER/$file
done
echo $BASE_URL$BASE_HEADER

It's run like upload.sh ~/stuff/


The cnijfilter2-5.00-1-deb.tar.gz driver from Canon seems to be the core file for all their new pixma multi-function devices; I would be curious to know if one installed it; if it would drive this E410

one gets it from here http://support-asia.canon-asia.com/contents/ASIA/EN/0100626502.html and one downloads and SAVES it so it should end up in the Downloads folder

commands to install are: .. line by line, hitting the ENTER key after each paste ..

cd Downloads
tar -zxvf cnijfilter2-5.00-1-deb.tar.gz
cd cnijfilter2-5.00-1-deb
sudo ./install.sh

I apologise for not answering directly; but if it worked, it would be very helpful

I see that for the E460, this is the package Canon recommend


Java JOGL file doesnt't compile - I have installed all the non-docs search results for "jogl" from USC

You still need to tell javac to add the jar files containing the JOGL classes on the classpath.

If you use JogAmp JOGL 2 then include the two jar files gluegen-rt.jar and jogl-all.jar on the classpath:

Example download the latest jars from JogAmp and compile a simple application from command line:

#install p7zip-full required to unpack 7z files.
sudo apt-get install p7zip-full
#download and unpack the latest JogAmp JOGL release
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
#download a simple JOGL example application
mkdir -p demos/es2
cd demos/es2
wget https://raw.github.com/xranby/jogl-demos/master/src/demos/es2/RawGL2ES2demo.java
cd ../..
#compile the jogl example application using javac
javac -cp jar/jogl-all.jar:jar/gluegen-rt.jar demos/es2/RawGL2ES2demo.java
#run the example jogl application
java -cp jar/jogl-all.jar:jar/gluegen-rt.jar:. demos.es2.RawGL2ES2demo

Example2 compile a simple jogl application using jars provided by the Debian/Ubuntu libjogl2-java package:
Ubuntu uses the names gluegen2-rt.jar and jogl2.jar

sudo apt-get install libjogl2-java
#download a simple JOGL example application
mkdir -p demos/es2
cd demos/es2
wget https://raw.github.com/xranby/jogl-demos/master/src/demos/es2/RawGL2ES2demo.java
cd ../..
#compile the jogl example application using javac
javac -cp /usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar demos/es2/RawGL2ES2demo.java
#run the example jogl application
java -cp .:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar demos/es2/RawGL2ES2demo

Note that Oracle have stopped supporting JOGL 1 since 2009.
The JogAmp community maintains JOGL 2.
https://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html
http://labb.zafena.se/?p=656 - The JogAmp community now maintains JOGL and Java3D

Most developers use JogAmp JOGL from inside Java IDE such as NetBeans and Eclipse, here is a link on how to setup your development environment.
https://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE


How do I get the microphone on a Sony Vaio cs33g working?

You can also test your microphone in the Sound Preferences.

Click the Indicator Applet's sound icon and select 'Sound Preferences...'
Select the 'Input' tab
In the 'connector' drop down, select one of the microphones and speak.  If it works you should see the 'input level' raise & change color.
If it doesn't work, try raising the 'input volume'.  Also make sure it's not muted.
If it still doesn't work, try another option in the the 'connector' drop down.

Hopefully this helps.  My mic wasn't working yesterday as well, and this is what I did to get it working.


How to batch convert .doc or .docx to .pdf

lowriter can be used as a command line tool (lowriter is a part of LibreOffice)

lowriter --convert-to pdf *.doc
convert /home/bodhi/Documents/testdoc2.doc -> /home/bodhi/Documents/testdoc2.pdf using writer_pdf_Export
convert /home/bodhi/Documents/testdoc.doc -> /home/bodhi/Documents/testdoc.pdf using writer_pdf_Export

evince testdoc.pdf

I do not have windows, so testdoc download from here

www.mltweb.com/prof/testdoc.doc


This is an image of my desktop a bit different from yours because the bar (unity launcher) you see at the bottom of the screen would be found to your left in yours.

At the extreme left side of mine and top of yours you can see the Ubuntu icon. That is called the dash from here you can search and launch items.

Now follow these steps:

click the dash icon and a semi-transparent window or box will appear.
type in software updater
when it searches and brings up the icon for these tool, click on it.

It will search your installed software repositories and update it if it needs to be.

The icon you spoke of should disappear, but if it doesn't please reboot or restart your system.


How to change permissions on a usb stick?

sudo fdisk -l

will tell you what's mounted. Then run:

sudo chmod 666 /dev/sdY

where sdY is the device assignment for your USB drive.That will allow you to read and write.


How to get SD card serial in Ubuntu 16.04

First, find your device name. (/dev/sdb, /dev/sdc, etc.)

Then, run the following command:

sudo udevadm info -a -n /dev/xxx

...replacing xxx with the correct letters.


How to change the behavior of clicking on grouped apps in launcher

You can use gsettings to achieve your goal

If you run

gsettings get org.gnome.shell.extensions.dash-to-dock click-action

you should see different outputs for two different cases you mentioned, for example in the first scenario it should give minimize whereas in the second case it should be previews.

To set the preferred option as per the output of the command above, run

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'YOUR-PREFERRED-OPTION'

In particular, to achieve your goal, run

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'


You could build Chromium from source. There are instructions here.

Brotli can be enabled in Chrome-like browsers via chrome://flags#enable-brotli

Brotli is also in Firefox from version 44 onwards. That's currently Firefox Beta so you could get that from here.


Why I am Getting Lots of [UFW_BLOCK] Logs For Client's and Switches IP Addresses?

For TCP connections, Linux tends to use a "half-duplex" close sequence where either side of the session can initiate connection termination via a single 2 way FIN-ACK handshake (which puts the connection into the CLOSE_WAIT state), instead of a full 4 way FIN-ACK handshake. With a router in between, this often leads to one end forgetting about the connection before the other, leading to the UFW_BLOCK messages you are observing.
You did not provide any examples, so this answer is not for certain. Look at the TCP flags in your log entries to see if they are session termination related. Or edit your question adding some examples.
EDIT:
The example log entry provided is a multicast packet. Completely unrelated to any of your useful client packets.
You might also observe packets to which my the original answer applies.


How do I adjust the resolution on a Dell GX620?

Referring directly to your question, No. I am running 12.04 on a desktop right now.

The problem lies within your graphics drivers. First, consult your manual or computer specifications to find out whether your graphics card or graphics adapter is ATI(or AMD), nVidia, or Intel.Search for Terminal in the launcher. Then, type exactly and press enter:

sudo apt-get update

The next command will be run when you are again given a prompt. It will depend on what type of graphics card you have. If it is Intel, run:

sudo apt-get install mesa-utils

For nVidia:

sudo apt-get install nvidia-current

For ATI or AMD Vision:

sudo apt-get install flgrx

Let the command finish and then reboot.


apt upgrade error 16.04 / hang on "sync" task, after cpio build of initramfs, from postinst.d

If

sudo dmsetup mknodes

does not fix it:

perhaps you have some kind of strange mount locking up-
for example stale cifs...

So try to unmount everything that's perhaps not healthy.
If for example umount of CIFS/SMB fails, then force it

umount -a -t cifs -l


Intel UHD 630 graphics fails after upgrade from 19.04 to 19.10

I have the same or a similar problem and in my case the solution is a simple one:
My boot gets stuck at the purple screen at every 19.10 system update. I found out that the Nvidia card at boot switches to a hypothetical second screen, sets it as primary and shows only the purple-blank secondary. When I move the mouse to the right, the mouse pointer appears coming from the left side of the screen - hence there is a second screen to the left of my laptop that I can't see. But I can access it, typing

Enter
(My login password)
Enter

and Ubuntu starts normally. the first time it happened it also showed me a blank desktop since also in GUI the primary desktop was the not-connected second screen. Changing the screen options on the laptop via shortcut (Fn - F5 or F6 in my case) restored the single screen. I then changed the screen options to single screen again and I'm good until the next update.


Terminal non responsive after installing XAMPP in virtual machine and using sudo

To answer your original question, 'suddenly I cant type nothing'.

Linux Command Line does this whenever a password is needed to be entered.

You are indeed entering a password, it just doesnt display what you type (even as asterisks) to aid security for that password.


How to upgrade libfuse-dev from 2.9.2 to 2.9.4 Ubuntu Server 14.04?

First, since you are on server, not desktop you need to install all the major packages needed by typing on terminal

sudo apt-get install build-essential

that should install needed packages up to libc6-dev. If it doesn't work, try

sudo apt-get update
sudo apt-get install libc6-dev

I also recommend you to remove your current version by typing

sudo apt-get remove libfuse-dev

Second, go to packages.ubuntu.com/it/wily/libfuse-dev (or any other you find)

it has libfuse-dev 2.9.4-1 - then download libfuse2, libpcre3, libpcrecpp0, libpcre3-dev, libselinux1, libsepol1, libsepol1-dev ,libselinux1-dev (install these respectively in their order)

Third open terminal then change directory to where you downloaded them

e.g cd /home/ubuntu/download

Fourth, to install type in terminal, for example,

sudo dpkg -i libfuse2_2.9.4-1ubuntu1_i386.deb

then proceed to installing the others. Dont forget to install them in the above order, libfuse2 then libpcre3...

Fifth, finally install libfuse-dev 2.9.4-1 you downloaded first

And that should do it


Partially blocked out of my system (ports 21, 22 and maybe some others are inaccessible)

The problem was due to blockage of my permanent ip address in the file /etc/hosts.deny. To solve it I ssh'd from my laptop (because I can't copy and paste from clipboard in my hosting platform's console and that's super uncomfortable and illogistical).

Removing the ip from the file is problematic because it could then comeback due to misconfigurations or bugs so to solve it just add your permanent id to /etc/hosts.allow (which is your "always allowed" list). I did so directly from console this way (but ofcourse you can use a text editor or an ftp client like Filezilla):

bash -c "echo 'sshd: IP_ADDRESS' >> /etc/hosts.allow"

This solution deals with ip evaluation: Basically when you try to login into a remote environment, first the list of allowed ip's is checked, if your ip is in the allowed list, you get in, if it isn't, the evaluation continues to the denied list, and if your ip is there - You don't get in. To learn more on this, please see this Q&A session

After doing so, I could ssh from my permanent ip just fine. I than made sure to install CSF-LFD again, and to update everything:

  apt-get install iptables -y
  apt-get install --reinstall openssh-server -y
  cd /usr/src && rm -fv csf.tgz
  wget https://download.configserver.com/csf.tgz && tar -xzf csf.tgz
  cd csf && sh install.sh
  sed -i 's/TESTING = "1"/TESTING = "0"/g' /etc/csf/csf.conf
  csf -r && perl /usr/local/csf/bin/csftest.pl
  apt-get update && apt-get upgrade

Note:

If you prefer making changes from your laptop instead of your hosting platform console, but can't login from the laptop, make sure that your laptop's ip is different from your permanent ip.

I was sure it's different for a few hours and didn't understand why I can't login from the laptop as well but what I didn't know is that While I was away in Germany, my brother setted up a Wifi on my ip (even though I asked him not to do so). This mislead me to think that any ip is partially blocked, but I found that out and chose our other ip network and could ssh regularly to remove blockage of the permanent ip comfortably.


How to correctly detect hdmi port in 14.04 with onboard radeon 1200 to enable hdmi audio?

I know you do not with to install the drivers, but here it is given that the device (Radeon X1200) is fully supported. Try installing the driver...

If you get the drivers, HDMI Audio can be manually set with the following cmd:

echo "options radeon audio=1" | sudo tee /etc/modprobe.d/radeon.conf

There could be a work around if the device was present in the list of playback devices, see this.


Windows does not show in GRUB Customizer

So I found the error and resolved it.

reason: while installing ubuntu I had not deactivated SECURE BOOT. [i think] or it also might have been that asus mobo CRM (legacy mode) was active for USB flash that had ubuntu on it.

this has led that win was in EFI and ubuntu was in legacy.

solution: I followed this guide

$ sudo mount /dev/sdb5 /mnt
$ sudo mkdir -p /mnt/boot/efi
$ sudo mount /dev/sdb2 /mnt/boot/efi
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ sudo mount --bind /run /mnt/run
$ modprobe efivars
$ sudo chroot /mnt
# apt-get install grub-efi-amd64
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --recheck --no-floppy --debug

changed the sdb? accordingly.

it did the trick. computer now shows the boot-manager, with options for win and ubuntu.


I found an answer
make the wp-content directory owned by www-data and ad this line to the end of wp-config

define('FS_METHOD', 'direct');


Ubuntu 20.04 deprecated some more insecure algorithms.
To re-enable them you can create a conf file in /etc/ssh/ssh_config.d/ with the options you need.
for example (based on your router's response).
echo "KexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1" >>/etc/ssh/ssh_config.d/weak.conf


Terminal: Expand list of similar filename shortcut

Type cat foo-*
Press Ctrl+X then * (asterisk/star) to expand the glob

If that doesn't work, run bind -p | grep glob-expand-word and check if it says "\C-x*": glob-expand-word. If not, you can set it:

bind '"\C-x*": glob-expand-word'

The command line should now be cat foo-a.txt foo-b.txt foo-c.txt

glob-expand-word vs insert-completions

OP's answer is about insert-completions (Esc, * or Alt+*), which is similar but different to glob-expand-word:

glob-expand-word expands filename globs.
insert-completions inserts all the possible completions that pressing Tab would show.

So that means you can also use insert-completions for things besides filenames, like options. For example type ls --f, press Esc, *, and you will get ls --file-type --format=, though I'm not sure how useful that is.

And that means that it behaves differently when expanding globs. For example if you type cat foo-* and press Esc, *, it will expand to only the first completion: cat foo-a.txt.


How do you make the contents of ISOs mounted by the Archive Mounter Executable?

I tried to look if gvfs-fuse-daemon uses some kind of "defaults" file to no avail. I know it's not a "gvfs" soluction, but, if it's a problem of exec- property in the mount, you can try the old good command line:

mkdir /tmp/try
sudo mount -o loop,ro,exec,dev /path/to/isofile.iso /tmp/try

I suppose that it could still have problems depending on the type of the filesystem in the iso image.


Ubuntu 19.04 boots to systemd and then freezes after Gnome reload

You may have this problem...

reference: http://askubuntu.com/questions/803640/system-freezes-completely-with-intel-bay-trail

You have an Intel "Bay Trail" processor that has a bug.

In terminal...

We edit a startup parameter in GRUB with:

sudo -H gedit /etc/default/grub

Find the line that looks like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"

Then:

sudo update-grub

reboot


Recurring/repeated tasks in GNOME Evolution

Recurring Tasks has been a long requested feature it seems, but haven't been supported  see here. A simple (and perhaps standard) work around is to schedule a recurring appointment or meeting.

There is a patch to add this functionality see this commit. The patch was committed to the master Evolution branch about 5 months ago and is available upstream (3.29.1+) but it hasn't made it into the Bionic universe repositories yet. You can download the source and build it yourself, or wait till it makes it into a Bionic package.


4K (3840x2160) with GeForce GT 730M (Notebook Acer v3-571g) on HDMI port not working

4k resolutions are only supported in the HDMI spec at 30hz officially, most monitors and graphics cards will stick to the spec by default.

However 30hz is not nice , it feels laggy and slow to use.

I've had some luck using cvt to generate custom modelines which pushed the refresh up to 44hz which seemed to be a sweet spot in terms of being the most my graphics card (intel 4000 + GeForce GT 750M in optimus) could output reliably. It will take around 10 to 20 seconds to sync and if you have the refresh rate too high the screen will periodically blank and resync. If it doesn't work it will not damage your monitor like the old CRT's did so experiment away. I was able to get 44hz to stay synced solidly all day.

The cable that came with my monitor could not handle this but the 'amazon basics high speed hdmi with ethernet' cable i bought for a few quid could so its worth trying a few cables if this isn't working straight away.

Heres the script i wrote for setting up my screen

#!/bin/bash

# setup my massive monitor at 45hz if its plugged in

RESOLUTION="3440 1440 44"
OUTPUT="HDMI-0"

CONNECTED=$(xrandr --current | grep -i hdmi | cut -f2 -d' ')

if [ "$CONNECTED" = "connected" ]; then
    MODELINE=$(cvt $RESOLUTION | cut -f2 -d$'\n')
    MODEDATA=$(echo $MODELINE | cut -f 3- -d' ')
    MODENAME=$(echo $MODELINE | cut -f2 -d' ')

    echo "Adding mode - " $MODENAME $MODEDATA
    xrandr --newmode $MODENAME $MODEDATA
    xrandr --addmode HDMI-0 $MODENAME
    xrandr --output HDMI-0 --mode $MODENAME
else
    echo "Monitor is not detected"
fi


On your TV, you need specialised hardware to do this to turn your TV into a "projector" that just "projects" on its own screen.

For an android device, it depends on the device (whether or not it has any display input ports) and then you use the same technology as above.


How do I enable the Compiz Atlantis effect?

You have to compile compiz-plugins-unsupported from the repos.

Instructions can be found here.
You can download the files you need to compile here: http://releases.compiz-fusion.org/0.8.6/

Ensure that you install compiz* dev packages first, and that you have build-essential installed as well.

See this site for just about everything you need on compiz =)


Bluetooth connection to HC-05 paired but not connected

The suggestion from ubfan1 is complete and uses rfcomm to establish a connection with a bluetooth device. If it doesn't work you should try what follows:

I am using rfcomm and minicom to exchange data between a bluetooth device Hc-06 connected to an Arduino and Ubuntu.

Scan for bluetooth devices:

hcitool scan
Scanning ...
    20:15:12:08:62:95   HC-06

Bind using rfcomm

sudo rfcomm bind 0 20:15:12:08:62:95 1

NB: bind 0 refers to device number 0 (rfcomm0) and 1 is the channel. The red led should now stop blinking.

Then use minicom with sudo and save a configuration in which you specify the baudrate and the port. You can find more informations on this tutorial.

Hope it helps!


I have no idea why your dpkg command didn't return the landscape-common package because it does exist in Raring and owns the /usr/bin/landscape-sysinfo file.

Install it with this command:

sudo apt-get install landscape-common


Cannot find or run Tor Browser on Ubuntu 12.05 after installing it

If you followed the instructions here and installed tor it will not give you tor browser.You will also need to configure your applications to use tor as given in the step 2.

As suggested in the above link, if you want to just surf the web anonymously then installing tor browser directly from the bundle (as you did the second time) is the right thing to do.


How to get my eth0 up and running? I have tried all but none bring this up

What do you mean, "when it gets down"?

NetworkManager and /etc/network/interfaces are two separate ways of controlling the network, you should use one or the other. If you use NetworkManager, the interfaces file should be empty (everything commented out for eth0).

ifconfig -a output may help. Can you ping your default gateway? Or anything at all?


"WiFi is disabled by hardware switch" on Asus X75 VD notebook?

I had problems getting my wi-fi working on my Laptop ASUS X75VB-TY038D, Intel Core i5-3230M. I succeed by following these steps at the Ubuntu Forum.


What programs are used to check free/used memory, disk space, and to manage tasks like the Task Manager in Windows?

You can use the "System Monitor" is the Windows equivalent of the "Task Manager", you can use it to view how much hard drive space you have as well as how much RAM you are using.

You can also use top to find information on running process'.


The solution below applies to versions of VMWare prior to 12.1.0. The 12.1.0 version of VMWare does not require this fix.

VMWare and VMPlayer are in fact looking for a specific library string.  You can execute VMWare/VMPlayer from the terminal by executing

export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH

then vmware or vmplayer

I made this a permanent change on my system by executing instead

executing sudo nano /usr/bin/vmware and adding the line

export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1

after the line export PRODUCT_NAME...

Press ctrl+o to save and ctrl+x to exit:  VMWare will now work.

To perform the same function for VMPlayer, execute the same changes to /usr/bin/vmplayer


What is the KDE equivalent of the Microsoft Windows Alt+Space and Alt+'-' sequences?

Unlike many other desktop environments, KDE Plasma doesn't use Alt+Spacebar as the default keyboard combination to bring up the client window menu to which you refer. One has to use Alt+F3 or one can click on the Menu button (circled) usually at the top left of the window's titlebar:

If you wish to change things, you can via Custom Shortcuts. I've have an answer here that describes changing shortcuts which you may find helpful.

I'm not going into specifics because keyboard shortcuts are a matter of personal choice and they also depend on what other shortcuts you have set up or intend to set up in the future.


You don't have enough RAM memory. Your laptop has 512MB RAM according to Google, and Ubuntu 13.04 needs at least 768MB. Also your CPU is rather small. I recommend that you consider Xubuntu which needs only 512MB RAM and also Xubuntu version 12.04 LTS instead of 13.04 so you won't have to install another Ubuntu release or upgrade the OS until April, 2015.


How do I get a gamepad to work? (Ubuntu 14.04, xbox 360 controller)

For all controllers but the actual Xbox 360 gamepads, you have to do some configuration with xboxdrv first.  By default, xboxdrv has no idea what to do with the data that your controller is throwing at it - you have to tell it "This button maps to the A, this one maps to the X, these two axes are the X and Y of the left stick, etc.".

To do this, I recommend this excellent Steam for Linux forum post.


org.freedesktop.PolicyKit1 was not provided by any .service files

Consider to install the package with needed org.freedesktop.PolicyKit1 file:

sudo apt install policykit-1


How can I install ubuntu 12.10 with a UEFI boot (win8, without DVD driver)?

WUBI is incompatible with UEFI, so don't bother trying it on an EFI/UEFI-based system.

Check your manual to learn how to enter the firmware setup utility or to get the firmware's built-in boot manager. Using the former, you should be able to adjust the boot order to boot from a USB device before booting from the hard disk; or using the latter, you should be able to boot from a USB device first on a one-time basis. Unfortunately, the details of how to enter the firmware setup utility and the firmware boot manager vary from one implementation to another, so I can't say precisely how to do this. On most computers, it's a matter of pressing Del or a function key at a critical point during the boot process. Some systems eliminate or hide this option in favor of a Windows-based interface, though. I don't recall exactly where the option to adjust EFI settings within Windows is, but perhaps a Web search would turn up the answer.


Kernel Update from 4.2.0-30-generic to 4.4

Dunno if it should work any different for Ubuntu users than Elementary OS, but to upgrade from 4.2 (or whatever kernel) to the released "LTS" version of 4.4, you can use:

sudo apt-get install linux-generic-lts-xenial

Use : apt-cache search linux|grep xenial to check what is available. If nothing is found, you have to select the correct sources for your distro :)


Installing Ubuntu 14.04 32-bit without DVD or USB, just CD

You can use the minimal installation CD.  This is an Ubuntu installer CD image that is small enough to fit on a regular CD.

It uses a text-based installer similar to Debian's installation CDs, and it fetches most of the packages over the internet which is why the installer CD image can be so small.

https://help.ubuntu.com/community/Installation/MinimalCD

Normally I wouldn't recommend it to a novice, only because it's slightly less user friendly than the regular installer, but if you managed to get Debian installed, then you should be able to achieve this.


Can't install PHP 5.5 on Ubuntu 12.04 (and 16.04) with ondrej PPA

Follow this step by step:
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Install MySQL
sudo apt-get install mysql-server

Install MySQL Server
sudo mysql_secure_installation

Use MySQL
mysql -u root -p

Enabling mod_rewrite
sudo a2enmod rewrite

This will activate the module or alert you that the module is already in effect. To put these changes into effect, restart Apache.
sudo service apache2 restart
##curl install##
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php-curl

Setting Up .htaccess
First, allow changes in the .htaccess file. Open the default Apache configuration file using nano or your favorite text editor.
sudo nano /etc/apache2/sites-enabled/000-default.conf

Or:
/etc/apache2/sites-available$ sudo gedit 000-default.conf

Inside that file, you will find the <VirtualHost *:80> ..`. Inside of line
<Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

Restart Apache
sudo service apache2 restart
sudo apt-get install php-mcrypt

Create the .htaccess file:
sudo nano /var/www/html/.htaccess

To check your hostname run:
hostname
hostname -f

Reference: https://manishpaneri.blogspot.in/2017/01/install-php-on-ubuntu-1604.html


As specified by the error you're missing dnsmasq in your system.
Just install it and it should works.

$ sudo apt-get install dnsmasq


Desktop icon
It is not possible to add a .desktop launcher to all desktops of different users at once. You need to place a file in the "Desktop" folder of each users. That can be scripted, though, to automate the process.
Application menu
A better way, both from a sysadmin and user point of view, would be to put the launcher in /usr/share/applications. That way, it will be immediately available in the Application Overview of all users. Then the user can decide for himself

whether to put it in the Dock for easy access,
or to copy it to his desktop for easy access.


Clicking on gmail from panel indicator opens new window instead of restoring

It is a  bug similar to Nautilus. Check  this out.

By the way, its a Unity Launcher bug not specific to any app (as in your case GMail).


I used the most basic solution to fix screen tearing with the Intel iGPU (integrated Graphics Processing Unit).

With sudo powers edit/create the file /usr/share/X11/xorg.conf.d/20-intel.conf and copy in the following:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree"    "true"
EndSection

Save the file.

After making these changes you'll need to restart xserver either by logging in again or rebooting. The latter is always preferable for me.

NOTE: Arch Linux recommends putting the file in /etc/X11/xorg.conf.d/20-intel.conf which I've been using for a year. Both locations work.


Help with recoverinig windows Boot manager with kernel-less grub?

Use windows 8 CD or live USB. Boot into CD/USB and select 'REPAIR' windows. Select the repair with Command prompt(CMD).

Type the below commands to get the windows boot loader to normal.

Bootrec/fixmbr
Bootrec/fixboot

After it gives successful message restart.


Lenovo Ideapad built-in mic not working in 12.04

My laptop is a Lenovo Ideapad S210 Touch. My internal mic was not working in Ubuntu 13.10. Adding the line

options snd-hda-intel model=laptop-amic

to the file:

/etc/modprobe.d/alsa-base.conf

fixed my issue. I hope this will help someone having the same issue.


OpenVPN not showing when trying to configure a new VPN

To get the VPN connection to show up in Network Manager, ensure that all these packages are installed:

network-manager-openvpn
network-manager-openvpn-gnome
network-manager-pptp
network-manager-vpnc

(From Ubuntu 16.04 OpenVPN) - this should be closed as a duplicate but can't be yet because of the bounty.


Below a python solution (script).
The script uses the imghdr module to recognize the file type. It will add the correct file extensions (if missing), of the following types:

rgb, gif, pbm, pgm, ppm, tiff, rast, xbm, jpeg, bmp, png

If the file already has a file extension, it will be skipped. In case the file is of an unknown file type (if it is damaged for example), the file is reported as "could not  determine":

could not determine: /home/jacob/Bureaublad/picturetest/blub

The script:

#!/usr/bin/env python3

import os
import imghdr
import shutil

directory = "/path/to/pictures"

for name in os.listdir(directory):
    # combining file+its directory:
    file = directory+"/"+name
    # only files without a dot are subject to renaming (else the file already has a file extension or is a hidden file):
    if name.count(".") == 0:
        # fetch the file extension from the file:
        ftype = imghdr.what(file)
        # if it is impossible to get the extension (if the file is damaged for example), the file(s) will be listed in the terminal window:
        if ftype != None:
            shutil.move(file, file+"."+ftype)
        else:
            print("could not determine: "+file)

Paste it into an empty file, save it as rename.py, set the directory to the pictures in the directory = "/path/to/pictures" -line and run it by the command:

python3 /path/to/rename.py

Rename recursively

In case your images are not in a "flat" directory, but in a layered directory, use the version below. It will check (and repair if necessary) file extensions inside the file's current folder.

#!/usr/bin/env python3

import os
import imghdr
import shutil

directory = "/path/to/pictures"

for root, dirs, files in os.walk(directory):
    for name in files:
        file = root+"/"+name
        if name.count(".") == 0:
            ftype = imghdr.what(file)
            if ftype != None:
                shutil.move(file, file+"."+ftype)
            else:
                print("could not determine: "+file)


How can I remove online accounts in Ubuntu 17.04?

Both Google and Facebook have a Remove Account button...


Snap applications unable to connect to the internet if VPN is turned on?

same issue. As for Spotify do this -> https://community.spotify.com/t5/Desktop-Linux/Spotify-error-code-4-with-ExpressVPN-on-Ubuntu-18-04/td-p/4503841

$ sudo snap remove spotify
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
$ sudo add-apt-repository "deb http://repository.spotify.com stable non-free"
sudo apt install spotify-client

As for the other apps I'm wondering myself. Telegram works but a few others don't. I spoke with ExpressVPN support but it led nowhere.


How to change the key for the latin alphabet key that I got asked to set up whole installing ubuntu 19.10?

Run sudo dpkg-reconfigure keyboard-configuration and change that setting to No toggling.
Run gsettings reset org.gnome.desktop.input-sources xkb-options


How to completely remove ubuntu-restricted-extras

You can use synaptic.  If you don't have it installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install synaptic

Once done, open synaptic, by typing it in dash, and once it opens search for ubuntu-restricted-extras, right click, and choose Mark for Complete Removal, and then click on Apply.


cpu is always at high consumption 50% - 90%, what can be checked for solving?

htop, which can be installed and run from the Terminal, can be used to show you what apps use a lot of the CPU. It has scrolling, which makes it easier to use than top.
System Monitor is a built in application that is the equivalent to Windows Task Manager, and is a graphical alternative to top and htop.


Failing to install driver for wireless pci card

Allright, I managed. Here is what I did: Open terminal, type "gksudo nautilus", go to folder "etc/modprobe.d" and opened "blacklist-native-rtl8192". Then I put a "##" in front of every line (so that they are not processed).


Upgrading from 10.10 to 11.04 (Package Conflicts)

The update manager handles this for you, you shouldn't have to do anything.

Where it becomes problematic is when people start adding third party applications. The upgrader does it's best to cope by disabling PPAs on upgrades, etc. but you should be good to go!


Launch KRunner and click on the highlighted icon

In the new window that opens, click on Clear history

Note that even these steps may not help KRunner see the new location because baloo, which KRunner depends on, doesn't index areas other than the user's home folder unless set to do so.

See https://community.kde.org/Baloo/Configuration in this regard.

It maybe possible to use the GUI provided by System Settings > Search to remove the desired location from the list of excluded items.

In the image below, a USB drive, "TOSHIBA EXT" is not being indexed.

Be prepared for some heavy CPU/RAM usage until the device is fully indexed!


"RTL8723DE" Wireless Card not working in HP-15bs015dx laptop

There is no driver available as of now for RTL8723DE adapter. https://github.com/lwfinger/rtlwifi_new/issues/267


Problem while installing ubuntu with dual boot windows 7. GPT Partition error

I have a GPT 32GB SanDisk USB with ubuntu GNOME installed. Infact, it's my everyday computer.

Try this method to get it installed.

Create a bootable USB drive. If you're uncertain about the process check this post.

Launch USB in Live Mode (try ubuntu without installing).
When it has booted verify disk type by firing up a terminal CTRL + ALT + T and run sudo parted -l. Look for Partition Table which shows the disk type. Make note of that.

The EFI partition (also called ESP) contains some boot files. It is necessary if the firmware (BIOS) is set up to boot the HDD in EFI mode (which is default on more and more modern, > year 2011 computers). It must be located at the start of a GPT disk, and have a "boot" flag.

Launch Gparted and create a partition of size 102MB with FAT32 and a flag of boot since it's gpt partition type. Make sure this partition is created before the first 100GB. To flag partition, right click partition > manage flags > boot. There will be a remaining roughly 249.xGB+.

Begin the ubuntu installation process. On the installation type screen, select Something else. From there select the remaining space 249.xGB+ and make a swap partition (the size of your Memory if you plan on hibernating else 4GB would be fine due to the amount of space you have available) and a root "/ " partition, which is the easiest partitioning scheme. However if you're looking for a more complex scheme, I would recommend this article.

Note: Be carefully when creating the partitions as to not tamper with the boot partition create prior.

This should get you through to an installation. By any chance you don't understand something or you encounter an error please make reference to this article (same posted above), if things still dont work out, post back and I will do my best to assist.


Need USB drive to boot aspire one into Ubuntu

Possibly you have installed grub in the usb not in hard disk.

To install grub in hard disk,

Boot using ubuntu live usb,
install boot-repair by using the following commands.

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

sudo apt-get install -y boot-repair && boot-repair
Launch boot-repair from dash and perform a repair. If it doesn't fix remember the url notified by boot-repair tool (like paste.ubuntu.com/) and post the url.

A detail reading of boot-repair may help you, https://help.ubuntu.com/community/Boot-Repair


For learning yad I found this great reference: YAD - Smokey01.com

As mentioned in comments you want to use the option --search-column=N

Take the following code snippet as an example:

while true ; do
    local Selected INSTRUCTIONS
    INSTRUCTIONS="Click Icon to move and press Enter"
    Selected=$(yad --list --radiolist \
    --image="$ICON" --window-icon="$ICON" \
    --margins=10 --no-click  --search-column=4 \
    --title="$TITLE" "${GEOMETRY[@]}" \
    --text="<big><b>$TEXT</b></big> - $INSTRUCTIONS" \
    --column "Select" \
    --column "Order" \
    --column "Icon Type:HD" \
    --column "Icon name" \
    --column "Linkless name:HD" \
    --column "Modified date" \
    --column "Col Pos:NUM" \
    --column "Row Pos:NUM" \
    --button="_Alpha Sort:$ButnAlpha" \
    --button="_Linkless Sort:$ButnLinkless" \
    --button="_Oldest Date:$ButnOldest" \
    --button="_Newest Date:$ButnNewest" \
    --button="_Test:$ButnTest"  \
    --button="_Apply:$ButnApply" \
    --button="_Cancel:$ButnCancel" \
    "${IconsArr[@]}")

    Retn="$?"

Columns #3 and #5 are hidden but they are still counted. We want to search on Icon Name so it is column #4 as recorded here:

    --margins=10 --no-click  --search-column=4 \

The short .gif clip below shows what happens when we type:

a, Backspace, b, Backspace, c, Backspace, e (then gif loops)


To clarify; add src/tympanis.ui to POTFILES.in.


How do you install a GUI on Ubuntu Server in Google Compute Engine (GCE)?

You can install VNCserver, I use the following link. Hope it helps http://www.namhuy.net/3106/install-vnc-server-ubuntu-14-04.html


No, sudo does not preserve your $PATH environment variable for security reasons. Instead, it gets replaced with a secure_path defined in /etc/sudoers, which you should not change.

$ sudo grep secure_path /etc/sudoers
Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

You think to have verified that the $PATH variable stays the same with your command

sudo echo $PATH

but actually Bash expands variables before starting to execute any (here the sudo) command, which means the line above shows your own $PATH value. To get the one as sudo, use e.g.

sudo bash -c 'echo $PATH'

What you can do is to e.g. resolve the command you want to run (node or npm) in your own user's shell using process substitution with which:

sudo "$(which npm)" install -g angular-cli
sudo "$(which node)" app.js

This first runs which npm or which node as your user, which returns the absolute path of the executables belonging to the specified commands. Then that output is literally inserted into your sudo command, so sudo actually believes it got executed with absolute paths like below, removing the need to look anything up in $PATH:

sudo /home/dc/node/bin/npm install -g angular-cli
sudo /home/dc/node/bin/node app.js


I had a simmilar problem wich i solved creating a file called resolv.conf at folder etc.
After that It starts connecting.

sudo gedit /etc/resolv.conf

The file contain the name servers:

nameserver 127.0.1.1


How do I install pepper-flash on Chromium?

Pepper Flash is now in Ubuntu repositories (14.04). Install it like:

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install


Native resolution not occupying the entire screen

Maybe it's a monitor issue and not a software issue.

Check the monitor user manual http://www.manualowl.com/m/Samsung/S22A350H/Manual/193348 , and more specifically the section "3-1 Setting the Optimal resolution"


Ubuntu One Significantly Slower than DropBox

Please understand that Ubuntu One is a relatively new service compared with Dropbox. A lot of effort has been put in to integration and easiness of use for the end users.

These are normal things to sort out in the close future. I do not believe that there is something actually wrong with any configuration and will gradually improve with time and further releases of the software.


How do I turn off the full file name preview in the file manager (ubuntu 20.04 gnome nautilus)?

There is no option to do this.
The box is shown when you select one or more items in the file list. If your window is not high enough to show some blank space under the last item in the list, the last item will partly be covered by this box.
However (in case you hadn't noticed), the box will disappear when you hover the mouse over it, and return when you move the mouse away.


Bash tab completion appears to read uneeded file system info?

Completion in Bash is a two-stage process - some parts are done by bash, and some are done by readline. In the case of filename completion, bash gets the list of directory entries, and then passes the filenames to readline, where we have:

mark-directories
If set to ‘on’, completed directory names have a slash appended. The
default is ‘on’.

Readline then stats the filenames to decide whether or not to append a slash. On some systems, with some filesystems, this information is already available when bash got the directory entries, but this may not always be the case.
In any case, a quick check of strace -o log bash without and with set mark-directories off in .inputrc shows this is likely the main reason.
Without set mark-directories off:
read(0, "\t", 1)                        = 1
openat(AT_FDCWD, "/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 20 entries */, 32768)  = 488
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
write(2, "\n", 1)                       = 1
stat64("/bin", {st_mode=S_IFDIR|0755, st_size=53248, ...}) = 0
stat64("/bin", {st_mode=S_IFDIR|0755, st_size=53248, ...}) = 0
stat64("/boot", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/boot", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
write(2, "bin/  boot/ \n", 13)          = 13
write(2, "bash-5.0$ ls /b", 15)         = 15

With:
read(0, "\t", 1)                        = 1
openat(AT_FDCWD, "/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 20 entries */, 32768)  = 488
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
write(2, "\n", 1)                       = 1
write(2, "bin   boot  \n", 13)          = 13
write(2, "bash-5.0$ ls /b", 15)         = 15


Like SSH do we have any other remote connectivity software for Ubuntu?

Yes, try mosh.

From the link above:

  Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.

  Mosh is a replacement for SSH. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.

  Mosh is free software, available for GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android.

So simply sudo apt-get install -y mosh.

What more could one want?


fresh install reporting no space (disappearing space!)

My main problem was that my /var/logs/kern.log and /var/logs/syslog had grown to 85 and 45 GB respectively. I deleted them. Then I rebooted and read the entries. I know better than to try to open an 85 gb file!

AHCI USB 3.0 related error appeared over and over. My mainboard has usb 3.1 that I disabled in the bios as a quick fix since I don't need them now. These two logs are not growing now. However something else is slowly (much slower) taking space as the computer sits idle. I will have to track it down.

The USB 3.1 controller is an ASMedia ASM1142 Controller.

Once booted back in to Ubuntu I used the following to commands to make analysis of where the space was going.

sudo apt-get install gksu
gksudo baobab

That is root gui mode of Disk Usage Analyzer


Anyone else having trouble with virtualbox shared folders permissions all of a sudden?

When upgrading Virtualbox from version 6.1.10 to 6.1.16 make sure to also go into your VMs and load up the Guest Additions CD through Devices -> Insert Guest Additions CD
Then in a terminal window in your guest run:
sudo apt install build-essential

Mainly running the above line to make sure all build apps are installed, like gcc, make, etc.
Then install the Guest Additions to help with folder sharing, shared clipboard, drag and drop, etc.
sudo /media/$USER/VBox_GAs_6.1.16/VBoxLinuxAdditions.run


Try to install your video drivers:
You can install all video drivers with the package xserver-xorg-video-all.

sudo apt-get install linux-headers-generic xserver-xorg-video-all libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core


How do I change the color of my RGB LED backlit keyboard?

With help from "jeremy" at lambdalabs, I found a neat solution. I am now able to control the LEDs with no side effects using my Fn key and / * and -.
git clone https://github.com/tuxedocomputers/tuxedo-keyboard
cd tuxedo-keyboard
make && sudo make dkmsinstall
sudo modprobe tuxedo_keyboard

You can even control the keyboard LEDs with the shell:
while true; do for c in 0x{FF0000,FFFFFF,0000FF}; do
    echo $c | sudo tee /sys/devices/platform/tuxedo_keyboard/color* >/dev/null; sleep 0.2;
done; done

Really cool.
EDIT: For anyone getting an error during install such as this one:
$ sudo make dkmsinstall
cp -R . /usr/src/tuxedo-keyboard-3.0.2
dkms install -m tuxedo-keyboard -v 3.0.2
make: dkms: No such file or directory
make: *** [Makefile:42: dkmsinstall] Error 127

It may be obvious to some, but you need to install dkms:
$ sudo apt install dkms

...and you're in business.


Unable to install VBoxGuestAddition 5.1.2 on Ubuntu 18.04

It seems like VBoxGuestAdditions 5.1.2 is not compatible with Ubuntu 18.04. I tried to install my virtual box manager to the latest version and download the latest VBoxGuestAdditions (16.0.4) and now it works.


Ubuntu 19.04 and earlier
Anbox has >=4GB RAM recommended hardware requirements.
The anbox-installer is DEPRECATED.
Please find updated installation instructions for Anbox (64-bit architecture only) at https://github.com/anbox/anbox/blob/master/docs/install.md.

Install necessary kernel modules
In order to add the PPA to your Ubuntu system please run the following
commands:
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt update
sudo apt install anbox-modules-dkms

These will add the PPA to your system and install the
anbox-modules-dkms package which contains the ashmem and binder kernel
modules. They will be automatically rebuild everytime the kernel
packages on your system update.
After you installed the anbox-modules-dkms package you have to
manually load the kernel modules. The next time your system starts
they will be automatically loaded.
sudo modprobe ashmem_linux
sudo modprobe binder_linux

Now you should have two new nodes in your systems /dev directory:
ls -1 /dev/{ashmem,binder}
/dev/ashmem
/dev/binder

Install the Anbox snap
Installing the Anbox snap is very simple:
snap install --devmode --beta anbox

In order to update Anbox to a newer version you can run:
snap refresh --beta --devmode anbox

Ubuntu 16.04-17.04
You got the error error: cannot install "anbox" because anbox is not the correct name of the anbox snap package. The anbox snap package is compatible with 64-bit architecture OSs only. The correct name is anbox-installer. Open the terminal and type:
sudo snap install --edge --classic anbox-installer

Start the anbox-installer script.
anbox-installer

This will add a PPA to your software sources, download 406.8MB of archives and install new Linux kernel packages, all this in order to install anbox which is currently alpha software. To see what happens during the installation you can watch this screencast:
During the installation you will see this warning message:
IMPORTANT: THIS IS ALPHA LEVEL SOFTWARE. EXPECT INSTABILITY AND BUGS !!!!!

I installed Anbox anyway in Ubuntu 17.04, and the built-in Android apps included in Anbox worked out of the box, although the expected bugs and instability arrived as promised.
Reboot to finish the anbox installation.
sudo reboot

Type "anbox" in the Dash and click the Anbox icon to start the Anbox Application Manager. In the Anbox Application Manager you will see a row of application icons. Click on an icon to launch it. The Android application will launch in a new window and you will be able to run it.
Anbox doesn't come with Google Play Store pre-installed (although you can install it) and does not even have a package installer, so the only way to install additional applications in Anbox is through an Ubuntu software package named Android Debug Bridge (adb). You have to download the .apk file of the app you want to install, open the terminal, change directories using cd to the directory of the .apk file, and then install the app with a command that looks like this:
adb install /path/to/file.apk

Downloading an .apk file from a warez website is a miserable security risk, however some applications allow you to download the .apk file from the application's official website, for example WhatsApp Messenger for Android.
Then maybe the app will install or maybe it won't install if the app requires additional dependencies that are not installed in your operating system. For example WhatsApp requires Java as a dependency. I already had Java installed in my Ubuntu, so I tried to install WhatsApp.
adb install WhatsApp.apk

I got an error message that said error: cannot connect to daemon. I closed Anbox and reopened it. I got another error message that said write: Broken pipe. I closed Anbox and opened it again and got the same error message. Anbox is buggy just like the anbox-installer script says it is. I closed Anbox and reopened it again and finally WhatsApp installed in Anbox.

When you open WhatsApp for the first time it shows you a screen with a message that says:
WhatsApp will send an SMS message to verify your phone number.
Enter your country code and phone number.

WhatsApp also asks if you want to give the app permission to access the files on your device which is another security risk in my opinion. I think it's OK to give WhatsApp permission to access the files on my phone, but I don't want to give the app permission to access the files on my computer. Permissions are a matter of fundamental importance in Linux. You should be very careful about giving permissions to an application that it doesn't already have by default, and the telegram-desktop snap package in Ubuntu 16.04 has better support than WhatsApp including Telegram Calls voice calls which are currently available to users around the world.


How to report a crash bug with nothing on screen

Looks like Ubuntu 11.04 and 11.10 have problems with your display.  Now that you can boot with live CD, I suggest that once your tablet is up with the live CD, you mount your system and chroot into it:

$ umount /dev/sda1 # suppose it's your hard disk with Ubuntu on it,
                   # and the mount point is / (root)
$ mkdir /mnt/system
$ mount /dev/sda1 /mnt/system  # if you have other mount points such as /usr, /bin
                               # you have to mount them under /mnt/system/usr, etc
$ chroot /mnt/system

From here on, it's like you are on the shell of your tablet itself, instead of on the live CD.  You can install openssh on your tablet then:

$ apt-get install ssh

and find out the IP address of your tablet:

$ /sbin/ip -f inet addr

then, reboot the tablet from its own hard disk, from another computer in the same network, you can use ssh to log into your tablet once it is up, and check the error logs and dmesg, etc., as the IP address should be the same.

However, if the IP address do change between you shutting down your tablet and restarting it, you need to set a static IP address to your tablet.  Please see this page on how to do it, and make sure you do it after you chroot into your tablet.


Method 1

Simply use DJView and export as PDF

Goto Synaptic Package Manager
Install DJview4
Run DJview (Applications - Graphics - DJView4)
Open your .djvu document
: Menu - Export As: PDF

Method 2

Open the djvu file in evince
Select print ----> print to file
change .ps to .pdf and click print

Method 3

Goto Synaptic Package Manager
Install

djvulibre-bin libdjvulibre21 okular-extra-backends evince libevdocument3 libevview3
Goto terminal and write

 sudo apt-get install libtiff-tools

Goto the directory where the djvu file is present. Click the right mouse button. Goto “Open In Terminal” option. Click on it. A terminal will open.
In that terminal write

ddjvu -format=tiff file_name.djvu file_name.tiff
tiff2pdf -j -o file_name.pdf file_name.tiff

Method 4

There is also an online converter DjVu to PDF converter


is there frame server software for ubuntu(linux)?

you can do this by using ffmpeg, Here are the steps:

First do steps of the second method("Use a frameserver") on  this page ("How to encode with ffmpeg from Adobe Premiere Pro")
Beginng this step you should be streaming your Premier timeline through Debugmode and Avisynth on a specific IP and port. Now open a command line and run this ffmpeg command:

ffmpeg -i frameserver.avs -f mpegts  tcp://[IP address of your server]:[open port on your server]

by running this command you are sendnig Avisynth output(streaming) to a distination machine(your linux server) throught ffmpeg.
After this step all you have to do on the client server(where you edit your videos) is done , now let's go to the server side.

on the server (your linux server) simply run the below ffmpeg command and you are done:(assumung you have ffmpeg installed on your server)
ffmpeg -i tcp://[your server IP]:[The same port you entered in step 2]?listen -c:v libx264 -preset medium -crf 23 -pix_fmt yuv420p -c:a libfdk_aac -vbr 4 output2.mp4

by this command ffmpeg will be listenning on a specified IP and port and recieving sent packets and encode them with your favorite options!


How Do I Sync My Exchange Calendar in Ubuntu (Thunderbird / Lightning)?

The ExchangeCalendar/exchangecalendar plugin for Thunderbird seems to solve this problem gracefully.  Here are some steps to get you going:

Install the Lightning Plugin for Thunderbird.
Download the ms-exchange calendar plugin from ExchangeCalendar/exchangecalendar.  The *.xpi plugin may be inside a zip file.  Save the file to your Downloads folder (or elsewhere).
In Thunderbird, click menu-->Add-ons
Click the icon to install an add-on from a local file (fig 1 below).
Once the plugins are all installed and Thunderbird has re-started, open the calendar tab in Thunderbird.  Right click in the calendars section and choose "new calendar".
Choose "On the network"
Choose Microsoft Exchange.
Choose a name for the calendar.
Now the tricky part.  I could not get the autodiscovery feature to work, but if you enter the correct server url and username, you're good to go.  For office 365, the url is:  https://outlook.office365.com/ews/exchange.asmx.  See figure 2 below.
Click "Check Server and Mailbox".  If you got the server and username right, the folder base input should appear With a Next button (figure 3).  Click Next.  Everything seems to work from this point.  Good luck!

Figure 1 -- Install a the downloaded exchange plugin

Figure 2 -- Configure the Exchange Settings

Figure 3 -- After clicking "Check Server and Mailbox", the folder base input appears with a "Next" button


GODAPP is a website that provides statistics and evaluation of dapps applications.GODAPP provides all the information and analysis about existing dapps! Based on eos, eth, singer, nebula chain, etc., you can find successful and useful decentralized games with just a finger touch.Godapp can't download.You can go to Twitter to find out about the Twitter account Godapp@Godapp6.


can't download music files purchased with ubuntu one from rhythmbox

When you purchase music through the Ubuntu One Music Store the files are immediately associated with your account, and are downloaded in the background automatically. The music is stored in ~/.ubuntuone/Purchased from Ubuntu One/, and it should show up in your Rhythmbox library without requiring a separate import.


Ubuntu 18.04 USB mouse stop working suddenly

I've just found a working solution.
In your case, the correct answer will be:

xinput reattach 13 4

For me it just restored the mouse pointer.


How can I move /var to another harddrive?

The quick and easy way would be to edit your /etc/fstab file and add an entry similar to the one that you should see for the / partition and just put the necessary pointers such as the fs type, ext4 and point it to /dev/sdb5. Reboot and it should work. I would mount it to a temporary mount point and recursively copy or rsync it to that filesystem to ensure that you do not loose any data first.


Trouble installing MATLAB2014B on Ubuntu 14.04

The answer to this question suggests that you have Ubuntu 32 bit, but you are trying to install 64 bit Matlab. You can check your Ubuntu with uname -r.


I have the same issue, with the same behavior described by NOrbert.
But, in " https://github.com/atareao/my-weather-indicator/issues/85 ", I found the right solution and now it works.
Bye,
Piero
the complete text of solution:

jochen-st commented 19 days ago
The fix is already contained in 4bfc87d.
You could download the file
https://raw.githubusercontent.com/atareao/my-weather-indicator/master/src/wopenweathermapapi.py
and store it in
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py"
or edit the file manually to add
CONDITION[616] = 'rain and snow'
in the appropriate place.


Ways to get help in Ubuntu for beginners (Offline)

On 12.10, you can search the dash lens for the word help and by selecting the result it will open up a useful, offline help menu displayed in yelp.  I have tested this offline and it seems that everything in the document is accessible.

Please let me know if this does not answer your question.


How is the filename-search-pattern defined for dpkg -S?

The -S option of dpkg is really a dpkg-query action, as noted in the ACTIONS section of man dpkg:
   dpkg-query actions
          See dpkg-query(1)  for  more  information  about  the  following
          actions.

          -l, --list package-name-pattern...
              List packages matching given pattern.
          -s, --status package-name...
              Report status of specified package.
          -L, --listfiles package-name...
              List files installed to your system from package-name.
          -S, --search filename-search-pattern...
              Search for a filename from installed packages.
          -p, --print-avail package-name...
              Display details about package-name, as found in
              /var/lib/dpkg/available. Users of APT-based frontends
              should use apt-cache show package-name instead.

If you refer to the dpkg-query man page as instructed, you should find the following description:
   -S, --search filename-search-pattern...
          Search  for  packages  that own files corresponding to the given
          pattern.  Standard shell wildcard characters can be used in  the
          pattern,  where  asterisk (*) and question mark (?) will match a
          slash, and blackslash (\) will be used as an escape character.

          If the first character in the filename-search-pattern is none of
          ‘*[?/’  then it will be considered a substring match and will be
          implicitly surrounded by ‘*’ (as in  *filename-search-pattern*).
          If  the  subsequent  string contains any of ‘*[?\’, then it will
          handled like a glob pattern, otherwise any trailing ‘/’ or  ‘/.’
          will be removed and a literal path lookup will be performed.

          This  command  will  not  list extra files created by maintainer
          scripts, nor will it list alternatives.


Default permission of `/var/www` folder in Ubuntu

This is an issue of indexing (and not permissions). This setting can be modified in the apache.conf file.

To change, open the file /etc/apache2/apache2.conf.

You will see this;

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>

Remove the Indexes from the second line and save the file. This way you are disabling directory indexing for the site.

Restart your apache server ( sudo service apache2 restart ) and the new settings will be applied.

After that when you somebody tries to access the folders, the page will say like the following (following is an image).


How to avoid windows to unmazimize when clicking title bar in ubuntugnome

After a few hours of waiting (I'm very impatient), I decided to do a research myself and I remembered that there was couple of extensions I upgraded in the past couple of days so  went ahead and disabled one by one my extensions until I found the offender. Apparently the ShellTile extension recently upgraded and they introduced this very annoying feature, disabling the extension gets everything back to normal.


If you are comfortable in using firefox addon, use DownloadHelper.


How to create a new user defined command to kill processes using process name?

Your best bet would to just use the pkill command instead. It can be found in the procps package. You use it like so:

pkill fir<tab>
pkill firefox

To get completion for nested commands, your shell (bash) needs to be smart and enable autocompletion in those scenarios. Unforunately, it looks like it does not. I believe the alternative shell, fish, does.


How do I stop Thunderbird from checking for new messages at startup?

IMAP is designed to be always-on so when Thunderbird starts, it's only natural that it wants to check what's happened since last time. If you want a polling-based model, you might want POP3 but even then an initial check is the sane thing to do.

By extension, the "check for messages at startup" option only really works for polled email methods like POP3 where the client does have to go out and "fetch" batches of new messages. With IMAP, it's just connecting (as it needs to) and sees them.

I have a few options for you:

You can start Thunderbird in offline-mode by calling thunderbird -offline. You won't go online (so won't have access to most of your messages) until you switch to it from inside Thunderbird.
You could use a timed DNS blocker. Things like Stay Focussed  and Get Shit Done are scripts that block the DNS for certain hosts so you are required to live without those servers. I'm suggesting you add your email host to that list. Might work. See:

How to block websites temporarily?

Use a caching IMAP server. Something that fetches your mail from the real IMAP server and presents it as another IMAP server. You switch Thunderbird to reach into your local server and then it can check as much as it likes and it's not wasting bandwidth.

The obvious problem here is the time spent setting this up. Add the delay you'll get before new messages hit your inbox and you might be less tempted. Oh yeah and you'll want this to be secure. Shouldn't be too much of a pain if this local only, but keep that in mind.

If you want to persue this route, I'd suggest something like fetchmail for the grabbing and dovecot for the local serving.


Unable to install Photoshop on Ubuntu 16.04

That's clearly a windows XP executable (don't ask me what it does). Photoshop 6 will run in Windows 7 as well, so run winecfg in terminal and set the default operating system to Windows 7 before installing. It won't need XP service pack 3 so you might have more luck.


Why I do not have Gnome Shell with Gnome 3?

Gnome shell is an entirely different environment. Kind of like Gnome Classic vs Unity. If you install Gnome Shell you can select it as your desktop session at login by clicking the little gear beside your user name and selecting Gnome. (As opposed to Gnome Classic or Unity). It shouldn't affect anything else. If you don't like it you can just switch back to unity by clicking that same gear at login.


I am not sure if this is too late but you can simply add and install the qpdfview PPA with:

sudo add-apt-repository ppa:b-eltzner/qpdfview
sudo apt-get update
sudo apt-get install qpdfview


The problem that was had here is that the PPA giving mysql 5.6 support to Ubuntu lists a newer package available on the Ubuntu repos. I guess switching between the version supported by the PPA and that of the official Ubuntu realease caused a problem.

Removing all packages shown with dpkg -l | grep mysql and reinstalling worked out. Don't forget to save the list of installed packages if you have any over and above the standard ones ;)


Downloaded Ubuntu for dual boot with windows 10 but not in grub

Update your GRUB boot-manager to add Windows 10 to your Grub menu.
The command to update GRUB is:
(In the commands you see a $ prompt.  That is the prompt you see on the terminal.  It's showing that the commands are typed from a normal user logon which is strongly encouraged by the Ubuntu community.  The # prompt would be showed if the user was at a root logon.  The prompt would also be different if you were in an app such as the mysql> prompt for a terminal mysql session.)
$ sudo update-grub

While you are at it, since this is a fresh install you should update libraries and packages with:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt full-upgrade
$ sudo update-grub

The GRUB update will add all the detected Operation systems to the Grub Menu.  It may not detect the Windows 10 installation if it's in a hibernation state.
To remove Windows 10 from Hibernation, run a Windows 10 repair program.
Install Windows Boot Manager
From the Windows Installation disk, click Repair your computer on the second screen -> (click) Troubleshoot -> Advance options -> Command Prompt -> Run these commands one after the other:
x:\Sources>bootrec /RebuildBcd
x:\Sources>bootrec /fixMbr
x:\Sources>bootrec /fixboot
x:\Sources>exit

(the x:\Sources> is the command prompt.  Type in the commands after the prompt and press enter.  Run each of them in the order presented.)
Click on the option to Turn Off PC.  Then Reboot into Windows.  While in Windows Disable the Hibernation.
After this repair, it may overwrite your Grub installation.  You can fix this by following the steps provided at:
Installing Windows 10 on partition removed Ubuntu option for UEFI


Can I see a log-file of startup applications?

if the startup app is a script, you could add as the last line of the script,

logger "such-n-such script started."

Then, it will appear in /var/log/syslog


It's not entirely clear what the cause of this is, but it seems to affect 32-bit installs from the ISO only. There have been a growing number of reports, but not a lot of detailed follow-up feedback. The suggestions are to:

Run wubi.exe standalone (without any DVD/USB containing Ubuntu present) to allow it to download the diskimage install (which does not have this problem), or...
Install using the 64-bit media (although this doesn't currently work for the latest 12.04.2 wubi.exe unless you use the patched version here: people.canonical.com/~evand/wubi/precise/wubi-r273-signed.exe)
Review bug 1182805 and see whether you have any information you can add (see more information on this below)

Other people have found switching to the console and back can get it re-started: Ctrl+Alt+F1 followed by Ctrl+Alt+F7

When Ubuntu freezes you should reboot safely by holding down Alt+PrntScr and then pressing the following keys (pause between each one): R E I S U B

Here is some general advice:
Hard reboots or shutdowns can damage the file systems. In your case, you can run chkdsk from windows to make sure there is no corruption.

You can drop to a terminal when this happens Ctrl+Alt+F1 and see if there's anything interesting in the logs: cat /var/log/syslog or zip up your logs and file a new bug or - if suitable - attach to the existing bug mentioned above:

sudo zip -r /host/ubuntu/logs.zip /var/log

That command creates a zip file you can find from Windows in C:\ubuntu\logs.zip (assuming you installed on C:. Attach that to your bug report.

If you have a graphics card that requires a closed source driver, you could also try booting with nomodeset.


after power.d error, wlan is extremly slow

Some days ago, I found the solution for this problem. I changed the following lines in the wireless script in /usr/lib/pm-utils/power.d and it works fine. But since I've made these changes, it seems that the battery did not last as long as before (and not just for 10 minutes...). Is there any other solution? Is there any documentation for the power values that are used in the script?

case $driver in
    ipw2100) iwpriv_ac="set_power 0"
        iwpriv_batt="set_power 0"
        iwconfig_ac="power on"
        iwconfig_batt="power on";;
    ipw3945)
        iwpriv_ac="set_power 6"
        iwpriv_batt="set_power 6";;
    iwl*) if [ -f "/sys/class/net/$1/device/power_level" ]; then
             iwlevel_ac=0
             iwlevel_batt=0
          else
             iwconfig_ac="power off"
             iwconfig_batt="power off"
          fi;;
    *) iwconfig_ac="power off"
       iwconfig_batt="power off";;

best regards


You're probably in editing/insert mode. You need to type the following sequence :

Esc, to quit edit mode and fallback to command mode ;
:+w+q, start with a : (colon) then press w and finally q to write and quit (or just :w to write without quitting)
then press Enter to valid.


Where did /usr/lib/X11/xorg.conf.d/10-synaptics.conf go?

This says, you have to edit /usr/share/X11/xorg.conf.d/50-synaptics.conf file.But the lines inside that file says,

# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"

So don't do that.Just copy the contents and then rename this file into xorg.conf.d and it looks like  /etc/X11/xorg.conf.d.Now place the below lines on that file and save it.

Section "InputClass"
    Identifier "touchpad catchall"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Driver "synaptics"
    Option "FingerLow" "10"
    Option "FingerHigh" "20"
EndSection


Upgraded to Ubuntu 16.04 now I can't boot Windows 7 or 10

restart
press the boot menu key(for me it was f10)
select windows hdd
until now I am using these steps
backup your data after going to the windows os
search for more answers after backing it up/else do steps 1 to 4 whenever you want windows
Enjoy


Way to open Applications without using Dash (w/out knowing name)?

This is a kind of emulator for the old gnome 2 menu:
You need  to add this ppa:
https://launchpad.net/~diesch/+archive/testing

Execute in a terminal:

sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install classicmenu-indicator

And then start the program with:

classicmenu-indicator

Good luck!


Does Gwibber/UOA auto-follow people on twitter without my permission?

New Twitter followers are those who follow you and not those whom you follow. It is them who decided to follow you and not the contrary.

If you do not want people following you without your permission, modify your Twitter account's privacy settings. Select the Protect my tweets option under Tweet Privacy.


nautilus: how to show column "modified - time" by default

My attention has been drawn to the fact that the desired defaults can also be set in Nautilus's preferences dialog, and that there is no need at all to use dconf-editor for this purpose.
After setting "modified - time" in the preferences dialog, I see in dconf-editor that what I would have had to enter there is 'date_modified_with_time' - in fact no easy guess.


How do I install sqlite3 ODBC drivers with unixODBC?

In order to deal with configure: error: No usable SQLite header/library on this system, one has to:

sudo apt-get install libsqlite3-dev

You might still get the following error after you do so:

configure: error: ODBC header files and/or libraries not found

In that case, do:

sudo apt-get install unixodbc-dev unixodbc-bin unixodbc

You might already have some of the packages listed there, but if you are getting the error, you are missing unixodbc-dev.

Alright, now you should:

1) ./configure && make without issues

2) instead of make install check out the instructions here to learn all about checkinstall: I installed a program by getting its source code, and then running `sudo make install`; how to make `apt-get` know about it?

Now, reading further into the [instructions] provided for the sqliteodbc driver, we have to:

1) set up odbcinst.ini correctly

Open up the odbcinst.ini in an editor (you will probably need superuser abilities, and you will need to know where the file is -- usually it is in /etc, so we can do: sudo gedit /etc/odbcinst.ini), and add the following:

[SQLite3]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=4

Set up Description with any string you'd like, but make sure Driver and Setup have the right paths to the *.so provided by install the sqliteodbc driver. In order to figure out/confirm which *.so were provided: either grep or just open up /usr/local/lib/ and check out which *.so files you have. For instance, according to the example in the instruction, you should point to /usr/local/lib/libsqliteodbc.so, but I only had /usr/local/lib/libsqlite3odbc.so. If you have both, you could make two entries like so:

[SQLite3]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=2

[SQLite]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqliteodbc.so
Setup=/usr/local/lib/libsqliteodbc.so
Threading=2

Also, make sure you choose some decent value for threading. For instance, if you have 8 cores, maybe Threading=4 will make sense.

For the sake of step 2, I am going to set up things as:

[MYGOOFYSQLITE3DRIVERTAG]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=2

2) optional: setup a DNS in ~/.odbc.ini --- just follow the instructions, but note that you can also use SQLite/3 DNS-less. For instance, using pyodbc and Python:

import pyodbc

connection_string = "Driver=MYGOOFYSQLITE3DRIVERTAG;Database=/path/to/database.db"
connection = pyodbc.connect(connection_string)

Note that for Driver key, I referred to the tag I gave the driver in odbcinst.ini. Maybe you want to be goofy, maybe you don't -- the point is that the key depends on what you set up, or what some other program automatically set up, so if you need to know what the Driver is called, look it up in odbcinst.ini.

Further details regarding what can go into the connection string can be found in the instructions for the sqliteodbc driver which we have referred to before.


snap packages are installed through the snap command. More information is here and here.

  Search for available snap packages

  To see a list of all available packages in the store, open a terminal
  and run the following command:

snap find

  To search for a specific package by name, just add your search term to
  the end of the snap find command:

snap find name

  For a more complete search–searching package descriptions as well as
  package names–just pipe the output of the snap find command through
  the grep filtering tool, like so:

snap find | grep search

  How to install a snap package

  To install a snap package, use the following command, specifying the
  package by name. Because this makes changes to the system, you have to
  add sudo before the command to run it with root privileges.

sudo snap install package-name

  The snap command will download and install the snap package you
  specified, displaying the progress in the terminal window.

  You can launch the application you installed like any other
  application. If it's a graphical application, it should appear in your
  desktop's applications menu. Otherwise, just start typing the
  application's name at the terminal and press the Tab key to
  automatically complete it. You can then press Enter to
  launch the application or run the command you installed.

  How to update a snap package

  To update an installed snap package, run the following command,
  specifying the package's name. If a new version of the snap is
  available, it will be downloaded and installed.

sudo snap refresh package-name

  There doesn't appear to be a command that updates all installed snap
  packages at the moment, but we wouldn't be surprised to see one added
  in the future.

  How to list your installed snap packages

  To list your installed snap packages, run the following command

snap list

  You can use this command to search your installed packages, too –j ust
  pipe the output through grep again:

snap list | grep search

  How to remove a snap package

  To remove an installed snap package from your computer, run the
  following command:

 sudo snap remove package-name

  View recent changes

  Run the following command to view a list of system changes. This
  displays a list of the snap packages you've recently installed,
  refreshed (updated), and removed, along with the times those
  operations took place.

snap changes

  See more operations

  To see more snap command operations, view the snap command's manual
  with the following command. Use the arrow and page up/down keys to
  scroll through the manual. press the q key to quit when
  you're done.

man snap

In effect, a .deb package includes an executable plus the information needed to install it into the system: where it goes, what it depends upon, etc. Compare this with a snap package, which includes the executable and any necessary dependencies - think of it like static linking of libraries versus dynamically calling in what's installed elsewhere on the system.

The idea is that you could have a stable version A library on the OS, but a new application might demand version B. With a .deb, you'd need to upgrade A, and that might in turn impact some other packages; with snap, the application would come bundled with version B for its sole use, so the system-wide version A remains untouched.


This link explains how to disable wayland on boot for Ubuntu 19.04.
It only requires the wayland driver disabled. The nomodeset does not have to be applied.

Once editing is complete, you can install the Nvidia driver from a terminal as follows

sudo ubuntu-drivers autoinstall

or

sudo apt install nvidia-driver-(driver number to install)


To completely remove the bottle for your used,open a terminal and type rm -rf ~/.wine


Battery Power when running Ubuntu 14.04 LTS in dual boot

No it has nothing to do with dual boot.
Most probably there are drivers that's work is not fully optimized like in windows 8 which make it consume power, I had this problem with my AMD driver, on windows battery keep working for 4H but in Ubuntu 12.10 it was like 1H.

Problem with me was fixed when i used Ubuntu 14.04LTS , and also a power management that can extend the battery life

You can install TLP power manager

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw

and start using it by :

sudo tlp start

It should write in the terminal

TLP started in ac/battery mode.

Wish it help you