Bash history search, partial + up-arrow I have searched, but not found anything on this. I am looking for a functionality in bash, using a terminal.

Way back when, I had a user on a debian system, and a friend set me up with a convenient history search feature (I believe I used tcsh then), where I would type the beginning of a previous command, hit up-arrow, and it would do a search, based on the partial string.

E.g. if my history is:

./script.pl
./script.pl arg1
cat output
cat output | grep yada

And I type ., and press up-arrow, it would show me: ./script.pl arg1. Press it again and it would show ./script.pl, etc.

Very much like it would perform a grep on .bash_history. Is there a way to get this functionality?

Open your ~/.inputrc. If you don't have this file, see the end for how to create it. Add these lines:
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward

Lines starting with # are comments. I can't remember what is backward and what forward. Experiment with it. Maybe you have to switch backward and forward.
Just re-open possibly open terminal windows for the new behaviour to become effective.

A bit background information:
Bash is using readline to handle the prompt. ~/.inputrc is the configuration file for readline. Note that this will also take effect in other software using the readline library, for example IPython.
Read the bash manual for more information about readline. There you can also find more history related readline commands.
To get the escape codes for the arrow keys you can do the following:

Start cat in a terminal (just cat, no further arguments).
Type keys on keyboard, you will get things like ^[[A for up arrow and ^[[B for down arrow.
Replace ^[ with \e.

For more information about ^[ and \e see here: https://unix.stackexchange.com/a/89817/380515

If you don't already have a ~/.inputrc file, copy the default settings over, or all the other default key bindings will be overridden:
cp /etc/inputrc ~/.inputrc

or begin your ~/.inputrc file with the following line
$include /etc/inputrc

[1]:

There is an alternative similar to what @lesmana mentioned above, but you do not have to create a new .inputrc file.

Instead, if you have sudo permissions, you can enable this in the /etc/inputrc file. In this file are various keyboard settings including the history search feature (for 18.04 at least). The excerpt from /etc/inputrc is:

# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward

Uncomment the bottom two lines using a sudo file editor (e.g., $ sudo vim), and a new terminal session will have the history search feature (for all users). This way, you do not have to worry about creating a ~/.inputrc file, nor will you have to add an $include statement as @Tulio Casagrande mentioned in the comments to preserve your ctrl-arrow inputs.


start openvpn client automatically at certain time? I have an Ubuntu 14.04 Server with an OpenVPN Server running on it.

I would like to have an OpenVPN client from this machine connect to a remote machine in order to save backup files on the remote machine.

I already read that it is possible to have server and client and I have config and certificate files for the client in a folder seperate from the normal openvpn folder.

The big problem is that the Backup-User has no root priviledges and is not supposed to receive any either. As a result this user cannot create a VPN connection.

The OpenVPN client connection should only be active when needed, so I can't just activate it and leave it be.
Is there maybe a way to start the VPN client connection automatically at a certain time and same with closing the connection?

One way to solve your problem might be to use a cronjob. Run crontab with the command crontab -eand insert your command and the desired timing. To run a job at a certain time as root, just run sudo crontab -e when creating the rule. Rules follow the following scheme:

minute hour day month weekdays yourbashcommandhere

For example, if you wanted to run the job every wednesday at 10am, your rule should look like this:

* 10 * * 3 yourbashcommand

More info on timing options can be found here: http://www.adminschoice.com/crontab-quick-reference

You can either run crontab scedule a certain command
    Sudo crontab -e
Then edit it like this

  Minutes hour day month weekday

To connect to openvpn server at every mondat 9 am

* 9 * * 1   openvpn --config server.ovpn

Or use at its easier but it works once untill you set it again

Sudo apt-get install at
at 09:00
"Your commands press enter for multiple commands and ctrl+d to apply the job"

atq
"To see sceduled jobs"

atrm "jobnumber to delete the job"


How to measure "millisecond" timing in videos like Youtube (incl. frame by frame advance video)? I do some "kitchen science" at home. I would like to measure the timing of movements in YouTube videos. YouTube only has a counter of seconds.

My first thought is to use a screen recorder program and have a timer running beside the video.

I don't know frame rates and details yet, but I want to measure the speeds of some movements. I hope to be able to measure within a few hundreds of a second, Or I will have to settle for tenths of seconds maybe.

How should I do this?

What programs are simple to use for screen recording and timer? (and give reasonable detail)

Is there any other method that could be simple or useful?

You can increase the fps of RecordMyDesktop to get finer control frame by frame. as noted here. Sadly this appears to currently be limited to 50 fps which at best will result in one frame every 1/20th of a second. You'll have to play with the settings to accommodate the limits of your system.

You'd need to be able to record 1000 fps to get millisecond frames. While 1000 fps recordings are possible the hardware is pretty cost prohibitive.

Playing the resulting video with the command ffplay videoname will give you not only a window to watch the video in but also a terminal output showing duration accurate to 1/100 th of a second.

You can also get the duration of the entire video with mediainfo as in mediainfo videoname which appears to have results accurate to 1/1000th of a second.

You can use ffmpeg to break a video into frames that you can examine seperately to determine the timing (frame 990 @ 1000 fps would be 990 ms from the beginning)

RecordMyDesktop is available in the Software Center if you don't have it and ffplay is part of the ffmpeg package also available in the Software Center

I run a timer at the side of the video and record the screen at the same time. I use programs stopwatch and recordmydesktop.

I then play back the recording using the default video player totem and can read the timer and watch the video at the same time.

[It is possible to advance frame by frame in totem, using the "."-key. It occasionally hangs, but it works if you redo it a few times. It will usually also make each jump longer and longer.]

Edit: Use VLC for frame by frame advance. The option is not in the menu and I have not found a keyboard shortcut for it. But setting "advanced controls" and clicking the red and blue icon works perfectly.

That's the easiest (and also only) way I found to measure short time intervals in videos.


unable to install ubuntu 14.04 server in hp proliant dl580 g7 I am getting error message while installing Ubuntu 14.04 server in HP Proliant DL580 G7 server.

the error is:-

warning: The following packages cannot be authenticated
linux-header-3.13.0-24 linux-headers-3.13.0-24-generic
linux-header-generic linux-header-server
E: there are problems and -y was used without --force-yes
base-installer:error: exiting on error base-installer/kernal/failed-install

error I am unable to install Ubuntu 14.04, i am stuck with this error

I ran into the same problem, and found the cause was that I did not enter the "http://" prefix in the proxy setting when selecting the Ubuntu mirror.  I only entered the hostname and port, e.g. "proxy.example.com:3128".  Entering the full proxy URL "http://proxy.example.com:3128" worked, and the problem went away.

Had the same error when installing from behind a proxy server (squid3 without authentication).
Connecting the machine temporarily directly to the router fixed it for me.


18.04 headphone jack no sound after installing remotemouse So recently I was able to plug in my headphones to my Ubuntu 18.04 laptop, but now I am not getting any sound. I think it may because I did an apt install of "mono-complete", "xdotool" and "libappindicator3-0.1-cil-dev". I have purged all of these, and it still will not allow me to hear what is going on in my headphones. I am also using ubuntu-unity-desktop instead of the 18.04 default desktop as well.

Yes, I have checked if things are muted, autoremoved and cleaned apt-get, removed /usr/share/pulseaudio/alsa-mixer/paths/*, did 'alsa force-reload', rebooted computer, removed ~/.conf ~/.pulse etc. that is already online.

Here is what /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf looks like (after I tried editting it and rebooting): http://paste.debian.net/1048009/

Here is also what /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones-2.conf looks like after editing and rebooting: http://paste.debian.net/1048010/

I do get a bunch of mentions in the ....paths/analog-output-headphones.conf about "mono". If "mono-complete" package is breaking pulseaudio, then I don't know how to get rid of it.
Here is the

I was trying to use RemoteMouse, which required those packages to be installed, if that helps anyone.

I had the same problem.

Here is the way that I found which may work for your system, as I have Ubuntu 18.04 with ubuntu-unity-desktop too.
Type in your cmd prompt:
    alsamixer
It will show you system sound control, where you can try to play, and adjust around. Try to turn on all the MM bars (which is muted) or switch to other sound cards if you have.

While you are adjusting them, go to Setting>>Sound>>Test Sound, try to test it if it works.

Good luck.

After 3 hours of troubleshooting:
Open terminal:

sudo apt-get purge pulseaudio alsa-base
sudo apt-get clean
sudo apt-get autoremove
sudo rm -rf ~/.conf/pulse/
sudo rm -rf ~/.config/pavucontrol.ini
sudo apt-get purge pulseaudio utils
sudo reboot

(wait for reboot, log back in and open terminal)

sudo apt-get install pulseaudio pulseaudio-utils alsa-base ubuntu-desktop ubuntu-unity-desktop
sudo reboot

Not sure if all those steps were necessary, but after 3 hours, I'm fed up with trying minimalist solutions. Hope this helps!


How to get fancontrol running? Possible Duplicate:
  How do I get fan control working?

I am using fancontrol to make sure that nothing makes more noise than necessary. But since I updated to Oneiric it does not work anymore. The problem is, that the hwmon devices changes any time I boot my machine, so that I have to run pwmconfig any time to get a new configuration file for fancontrol. Does anybody know how to fix this?

Read this forum. It seems to be solved:
FanControl Ubuntu


How do I increase the hard disk size of the virtual machine? I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.

The suggestion below gives this error

wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000
VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp

Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:

By the way, it says FATAL: Could not read from the boot medium!  System halted.

The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:

I was able to resize the partition easily using a bit of freeware called EASEUS Partition Master 9.1.0 Home Edition.

Open a terminal and navigate to the folder with the VirtualBox disk image, then use the following command:
VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

replacing YOUR_HARD_DISK and SIZE_IN_MB with your image name and desired size. sudo might be necessary in some machines or you might encounter an error. This answer and a fuller explanation are here, on webupd8. Credit to Andrew there for posting this answer.
After resizing, the extra virtual hard drive space needs to be partitioned and formatted for the guest to use it. This can be done with gparted by booting the guest from a live ISO. We can also resize the existing partition using gparted. For this we may need to disable /swap and create a new swap partition.
In case if VBoxManage is not found in your system, just set the path to:
set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox"

and it should resolve path issue. Do make sure "VBoxManage" is present at this path before setting it.

As a matter of fact, it seems that modifyhd alone doesn't do you any good in some cases. I actually expanded my WinXP vdi by cloning the image after expansion.

Here's the complete step-by-step guide that worked for me a couple of weeks ago: http://libtronics.com/2011/07/resize-virtualbox-disk-for-winxp-guest/


How to invert fn keys on Dell Laptop? My Dell laptop (XPS 15z) has special keys on the F1 to F12 keys. If I want to disable keyboard backlight, for example, I must type Fn + F6.

Is it possible to invert it?

In fact, I don't often use the F* keys.

How can I only hit F6 to disable the backlight and Fn + F6 to type F6?
Is it possible?

Thanks.

I am not sure if it works for all models, but on mine if you press Fn+Esc it changes the Fn lock so that F1+F12 work as normal and when you hold Fn+(lets say F11) it will change the brightness or whatever that keys secondary function is. Pressing Fn+Esc again reverts it back to default. Hope this helps.

On mine, the problem was that the NumLk key had been pressed. Pressing it again holding the Fn key reverted the Fn key back.


Copy file via terminal with wildcard in command like cp /path/*.dat /dist/path/ I want to copy a file via terminal using a command like
cp /path/*.dat

As I don't know the full name of the file and I want to copy it to a certain path.
This is the command:
sudo cp /home/ubuntu/test/*.dat /opt/myAppFolder/License/

Will this command work?

Your syntax is okay:

cp /path/to/directory/of/file/*.dat /path/to/destination

But note make sure it's the only file with that .dat extension else all such files with that extension will be copied also.

Note:

If already in the folder and the destination is outside that folder then the command would be [note without the "/"]:

cp path/to/directory/of/file/*.dat /path/to/destination

#or simply

cp *.dat /path/to/destination

If already in the folder and both file and destination folder are in same folder location then the command would be [note without the "/" on both source and destination]:

cp path/to/directory/of/file/*.dat path/to/destination

#or simply

cp *.dat path/to/destination

It depends at what directory you are right now. If we are already at that directory, we do not need to include that into the path while using sudo cp command.


Why are graphics so slow/jerky/lagged with an ATI 4250? Never had a problem with Maverick, always very fast. I upgrade to Natty and the graphics seem to be very lagged. CPU, load, and memory usage is low, all graphics are choppy and lagged though. I have the proprietary driver installed and everything.

Alt-Tabbing takes 3-5 seconds for the dialog to popup, zooming in with compiz zoom makes things very slow. I never had any of these problems with 10.10

Hey, if you install compizconfig you can try unchecking the V-Blank in general options, as in the open-source ATI driver in natty there is already V-sync activated. It did the trick for me so you can try it

Had the same problem, but using this info solved it:
http://www.linuxinsight.com/your-ati-radeon-very-slow-on-xorg-x-server-1.3.html
Now my Ubuntu is snappy beyond my imagination


Package dependencies cannot be resolved for VLC I tried to install vlc media player on my ubuntu 12.04 using terminal by following command:

    sudo add-apt-repository ppa:videolan/stable-daily
    sudo apt-get update
    sudo apt-get install vlc

and got an reply of

Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

    The following packages have unmet dependencies: vlc :
Depends: vlc-nox (= 2.0.5+git20130123+r508-0~r42~precise1) but it is not going to be installed
Depends: libavcodec53 (>= 4:0.8-1~) but it is not installable or libavcodec-extra-53 (>= 4:0.8-1~) but it is not installable
Depends: libavutil51 (>= 4:0.8-1~) but it is not installable or libavutil-extra-51 (>= 4:0.8-1~) but it is not installable
Depends: libsdl-image1.2 (>= 1.2.10) but it is not installable
Depends: libtar0 but it is not installable
Depends: libva-x11-1 (> 1.0.15~) but it is not installable
Depends: libva1 (> 1.0.15~) but it is not installable
Depends: libxcb-composite0 but it is not installable
Depends: libxcb-keysyms1 (>= 0.3.8) but it is not installable
Depends: libxcb-randr0 (>= 1.1) but it is not installable
Depends: libxcb-xv0 (>= 1.2) but it is not installable
Recommends: vlc-plugin-notify (= 2.0.5+git20130123+r508-0~r42~precise1) but it is not going to be installed
Recommends: vlc-plugin-pulse (= 2.0.5+git20130123+r508-0~r42~precise1) but it is not going to be installed

then i tried it using software centre then here comes its reply
The following packages have unmet dependencies:

vlc: Depends: vlc-nox (= 2.0.5+git20130123+r508-0~r42~precise1) but 2.0.5+git20130123+r508-0~r42~precise1 is to be installed
     Depends: libavcodec-extra-53 (>= 4:0.8-1~) but it is not going to be installed
     Depends: libavutil-extra-51 (>= 4:0.8-1~) but it is not going to be installed
     Depends: libc6 (>= 2.15) but 2.15-0ubuntu10 is to be installed
     Depends: libfreetype6 (>= 2.2.1) but 2.4.8-1ubuntu2 is to be installed
     Depends: libgcc1 (>= 1:4.1.1) but 1:4.6.3-1ubuntu5 is to be installed
     Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.1-0ubuntu4.2 is to be installed
     Depends: libqtgui4 (>= 4:4.7.0~beta1) but 4:4.8.1-0ubuntu4.2 is to be installed
     Depends: libsdl-image1.2 (>= 1.2.10) but it is not going to be installed
     Depends: libstdc++6 (>= 4.6) but 4.6.3-1ubuntu5 is to be installed
     Depends: libtar0 but it is not going to be installed
     Depends: libva-x11-1 (> 1.0.15~) but it is not going to be installed
     Depends: libva1 (> 1.0.15~) but it is not going to be installed
     Depends: libxcb-composite0 but it is not going to be installed
     Depends: libxcb-keysyms1 (>= 0.3.8) but it is not going to be installed
     Depends: libxcb-randr0 (>= 1.1) but it is not going to be installed
     Depends: libxcb-xv0 (>= 1.2) but it is not going to be installed
     Depends: zlib1g (>= 1:1.2.3.3.dfsg) but 1:1.2.3.4.dfsg-3ubuntu4 is to be installed

now what to do pls help me

First a question:
Is there a reason you are trying to install VLC from it's daily PPA?

Why not simply remove or disable that PPA, use the Ubuntu Software Center and search for vlc then install? You will get the latest supported build.

If you must use the daily ppa, then you need to dig into the 2 unmet dependencies to understand where to get them from since they are not readily available to you for whatever reason.

PPA are private repos.

In this case it may require software available in Ubuntu 12.10

So either do not use that PPA (and maybe download generic binaries) or upgrade to Ubuntu 12.10.


Suspend when critically low power 11.10 Is there a way to suspend when Ubuntu is at critically low power. The only option in Ubuntu 11.10 power setting is to shutdown or hibernate. I run my battery all the way down till it suspends then i plug it in. It gets annoying when my computer hibernates at critically low power.

Thanks in advance for the help

Not sure why power settings only offers hibernate or shutdown.
You can change the option to suspend using dconf-editor:
Browse to org->gnome->settings-daemon->plugins->power, and change the value of critical-battery-action to "suspend".

See my comment on Touchpad stopped working on an Acer AspireOne D255E - I think your problem is with the pm-utils package, too.


Any way to search for text within nano? Nano is the editor I use in command prompts.

When I open a large file I would like to search for some text (think Ctrl + F).

Is there a way to do this?

Ctrl + W is the shortcut for searching. The same effect can be achieved by pressing the F6 key. After entering the search term, press Enter. To repeat the search, issue Alt + W. In this menu, you can select earlier searches using the arrow up/ down keys.

To toggle backwards searching, you need to press Alt + B in the search dialog.

For more shortcuts, press F1

You can search for text in nano using Ctrl W.

Alt W (or Esc, W) will repeat the find.  (Alternatively, leaving the box blank will default to the last text searched for.)

Pressing Ctrl R while in the Find prompt will activate Replace mode.

As of nano 2.8.2 (May 2017), searching also works in nano's Ctrl G help screen.


Make script executable from within script itself I would like a script that will show me the percentage of reserved blocks.
If it can done another way, that is good.

This works if I manually make it executable. Can I make it executable from within the script itself?

cat > somescript.sh << \EOF
#!/bin/bash

block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}')
reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')

perl -e 'printf("%.1lf%%\n", ($ARGV[0] * 100.0 ) / $ARGV[1])' "$reserved_block_count" "$block_count"
EOF

Answer to your question
Of course that’s possible – but I’d not consider it good style. See below for a better solution.
If you run a shell and give it the script file as an argument it will execute it regardless of the absence of a shebang or any execution bit:
$ cat no_script
chmod +x /path/to/no_script
$ ls -l no_script
-rw-rw-r-- 1 dessert dessert 24 Jun 12 22:59 script
$ bash no_script
$ ls -l no_script
-rwxrwxr-x 1 dessert dessert 24 Jun 12 22:59 script

If the script is executed multiple times you probably don’t want to call chmod without any need every time, so just test for the file being not executable:

[ ! -x /path/to/script ] && chmod +x /path/to/script

As for your script, awk can do the whole thing in a single call:
#!/bin/bash
tune2fs -l /dev/sda1 | awk '/^Block count:/{a=$NF}/^Reserved block count:/{b=$NF}END{printf "%.1f%%\n", b/a*100}'

I removed the sudo because you don’t use it in a script – run the whole script as root instead.
Solution to your problem
I read from your question that you’re bothered by the two steps necessary to set up a script. Let’s write a script that helps with that:
#!/bin/bash
cat <&0 >"$1" &&
chmod +x "$1"

cat <&0 >"$1" makes cat read from stdin and write to the script file you give it as the first argument. Save this as e.g. makescript and make it executable with chmod +x /path/to/makescript. Now if you want to write a script, simply do it like that:
/path/to/makescript /path/to/new/script <<EOF … EOF

If you don’t want to type /path/to/makescript every time, define an alias like makescript=/path/to/makescript in your ~/.bash_aliases or ~/.bashrc or move it to a directory in your PATH.
Example run
$ echo -e '#!/bin/bash\ncat <&0 >"$1" &&\nchmod +x "$1"' >makescript
$ chmod +x makescript
$ ./makescript a_test_script <<EOF
> #!/bin/bash
> echo a script
> EOF
$ ls -l *script
-rwxrwxr-x 1 dessert dessert 26 Jun 13 12:44 a_test_script
-rwxrwxr-x 1 dessert dessert 43 Jun 13 12:44 makescript
$ ./a_test_script
a script

The sky is the limit.

cat > somescript.sh << \EOF
#!/bin/bash
# Show percentage of reserved blocks

block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}')
reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')

perl -e 'printf("%.1lf%%\n", ($ARGV[0] * 100.0 ) / $ARGV[1])' "$reserved_block_count" "$block_count"
EOF

chmod +x somescript.sh

somescript.sh


Ubuntu 18.04 DisplayLink high cpu usage I recently upgraded to Ubuntu 18.04 and now my multi-monitor setup with DisplayLink is no longer working properly.

CPU usage is almost at 100% all the time where DisplayLinkManager is using about 80% of it.

Did some one managed to setup DisplayLink on Ubuntu 18.04 and got it working smooth? I would love to play videos on the second screen like I could before.

I am using a Zenbook ux31a.

If you have any peripherals plugged into the dock like say a usb mouse, move your mouse around really fast while watching the process. It will jump from 20% to 150% cpu. Anything plugged into the dock seems to lag the cpu depending on usage. I switched to an older dock that your laptop snaps into and no issues. But if your dock is using usb3, your peripherals are going to blow up your cpu.. especially the mouse while it is in use.

I run mine on a Zenbook UX330ua running 18.04. Make sure you have the most recent drivers (https://www.displaylink.com/downloads/ubuntu). To be honest though, while the newest drivers do help decrease the CPU usage, it will still occasionally go really high and my computer will stop responding entirely.

If the computer still somewhat responds, you can kill displaylink and let it restart. I added this to my ~/.bashrc to do it in one command:

alias stopdisplaylink="sudo kill -9 $(ps -A | grep -i displaylink | awk '{print $1}')"

FWIW, DisplayLink also has some troubleshooting posts... but none of them have fixed my issues so far: https://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu


Wubi - Download stops when in middle of download I'm trying to download Ubuntu 14.04 LTS using Wubi from the official site of Ubuntu. But in the middle, it just stop downloading but still responsive but doesn't make any progress.

since I can't find solution on the Internet I close it, and now it wants to uninstall the previous installation progress

Is there a way to resume what I already download?
or can I download Ubuntu 14.04 LTS in torrent and link it in wubi?

I had the same problem and got a great answer. You can download the iso file with a torrent client or your browser or a download manager. Then do your own MD5/SHA-1 check using Microsoft File Checksum Integrity Verifier. Put the iso file in the same directory as wubi.exe and it will use that instead of trying to download. Unfortunately there is another bug that prevents it from successfully checking the MD5 sum. So you have to open a Windows command prompt and type wubi --skipmd5check.

For me that got the install to go, however I personally ran into what I think is another bug. The install says (on both of two attempts) that "Serious errors were found while checking the disk drive for /".  There is forum discussion on this and even a youtube video on how to fix it and says that "This happens when you use the Wubi installation method with Ubuntu 14".

Wubi is no longer an option of installing Ubuntu. Anything after WinXP is going to create issues for you. It is much better to boot from USB Drive or create a bootable DVD. Download the actual Ubuntu Software from the home website (Ubuntu.com/desktop (avoid WUBI)). If you have done either of these 2, just reboot and hit F12, change the boot order to USB or DVD and off you go. Much simpler to just install it yourself.


How can I hide a running program icon from the notification bar and Launcher? What can I do for hiding a program icon from the notification bar and Unity Launcher?

You can hide icon of running program from Launcher using CompizConfig Settings Manager.
To install it run: sudo apt-get install compizconfig-settings-manager
To launch run: ccsm
Then go to section Windows Management, enable Windows Rules. Then choose it, and add this line into "Skip Taskbar":
title=nameofwindow
Replace nameofwindow with the title of the window you want to hide.

To remove an entry from the launcher, right-click on the icon and select "Unlock from Launcher". To remove items from notification bar, see handy tips from this post.


Spotify crashes opening Ubuntu 20.04 I just installed Spotify two days ago and it worked perfectly. After one day, when I started my computer and opened Spotify, it worked ok, but after closing it and opening it again it crashes. A blank screen appears for 1 second and then closes. I have the free version of Spotify and I'm running Ubuntu 20.04.
edit: If I open Spotify from the terminal this happens:
Gtk-Message: 09:29:30.910: Failed to load module "gail"
Gtk-Message: 09:29:30.910: Failed to load module "atk-bridge"
Gtk-Message: 09:29:30.918: Failed to load module "canberra-gtk-module"
[1012/092931.627932:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap (core dumped)

I forgot to say that I recently used an ad blocker. I saw that it's illegal and I removed it. Firstly I tried to remove ads as shown in this video. It didn't work, so I installed "Spotify adkiller", then I saw it's illegal to remove ads from Spotify and I removed it (at least I think so).
I want to mention that if I turn on my computer, the first time I open Spotify it works perfectly, but if I close Spotify and open it again it crashes. It looks like Spotify wants to open but another application opens over Spotify and closes it. Llike a Spotify closer.

I had a same problem but got a fix. Here are some solutions that might work.

spotify --disable-gpu --disable-software-rasterizer
spotify --no-zygote
sudo spotify
Or a reboot

while true; do spotify && exit; done eventually loads but most probably you will get black screen and if this happens then second one will work for you.

Yes, I also experienced the same thing, then I reinstalled it. In my experience, don't open spotify via the Linux terminal, you can open it via the application menu. It worked for me.


Lenovo G700: no sound in headphones I have Lenovo G700 and have no sound in headphones :(

Lenovo G700, IDT 92HD95, Kubuntu 14.04.

Alsa updated from "ALSA daily build snapshots", kernel updated to 4.0rc6, alsamixer checked. Internal speakers are working fine. No same problem on Windows 7.

Any ideas?

Use command gstreamer-properties in terminal, in the window it opens you can select the interfaces for audio/video input and output. It helped me with a similar problem. To use that command, if you haven't, you have to install gnome-media package.


How to prevent a program from being uninstalled by a user with root permissions? In order to solve my need to a website blocker software on Ubuntu to fight self-temptation, I've decided to take a compound approach:

Install a website blocker app
Put password on that app to access the setting or to uninstall

Is there a way to do so?
I have the root access and I'm the only user of the software. Can I prevent my self from uninstalling an app with a password?

No. Root can not be restricted on a running system. You have to show at least that bit of self-control yourself.

Otherwise you have to create a new admin user, give its password to a friend and remove admin rights (sudo group membership) from your own user.

Wait, could you still bypass this and boot into a root shell in rescue mode? Yes. But if even that is not enough to stop your temptation for whatever, you should probably physically remove all computing devices from your reach.

Put the app on a CD-ROM mounted on your system!


apt install crashed because of full hdd and dpkg --reconfigure does not work anymore (because of full hdd) The title says it...
Is there any way of removing programs without needing tu reconfigure before?
I don't know how to fix this issue. Is there a lockfile or so that i can delete?

I already tried to delete stuff but there is only Software on it! It is running Ubuntu 18.04 Server!

SSD: 8GB
Fujitsu Futuru 700S
/dev/sda1        7624872 7608488         0  100% /

Try to do some clean up

sudo apt autoremove && sudo apt autoclean

If you are using LVM on this server you could extend your HDD space on a different drive like an UBS-drive. How can I extend a hard disk in Ubuntu logical volume


unable to locate libcurl4-gnutls-dev:i386 on ubuntu14.04.3 [don't starve server] And i need it for a don't starve server

apt-get update && apt-get  install   libcurl4-gnutls-dev:i386
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates Release.gpg
Hit http://archive.ubuntu.com trusty-security Release.gpg
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty-updates Release
Hit http://archive.ubuntu.com trusty-security Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/restricted Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-security/restricted Sources
Hit http://archive.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcurl4-gnutls-dev

I dont know why you are unable to locate the package, but you could download it from packages.ubuntu.com and install it manually.
Go to the location of the downloaded file and type:

  dpkg -i libcurl4-gnutls-dev_7.35.0-1ubuntu2.5_i386.deb

I had to install the i386 architecture.

sudo dpkg --add-architecture i386

then update apt and try the install again

sudo apt-get update
sudo apt-get install libcurl4-gnutls-dev:i386

APM


How to auto mount my external hard drive? On login, ubuntu 10.10 would not mount external hard drives automatically, While ubuntu 10.04 mount them on login.
I've tried Storage Device Manager but it give error when external hard is not plugged.

any idea or suggestion?

I'm in a similar situation, except that my system worked just fine with 10.04. I have an external mybook hard drive that I use for backup using nfs4 and grsync. At the end of fstab I have these mount commands:

/media/mybook/laptop_backup /export/laptop_backup none bind 0 0
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0
/media/mybook/laptop_www /export/laptop_www none bind 0 0

In 10.04, boot completed with these directories mounted and accessible over the network. When I upgraded to 10.10, the boot pauses with an error message regarding each one giving me the option to press S to skip or some other letter to manually fix the problem. Since I don't know how to fix it, I just skip (once for each directory) and boot completes. Manually executing sudo mount -a succeeds in mounting the directories. I guess the timing changed from 10.04 to 10.10 or something.

Note that there is no mount command for the mybook external USB 1 TB hard drive in /etc/fstab. So I guess the drive automounted in 10.04 and that's not happening in 10.10. I tried adding:

 /dev/sdd1 /media/mybook type ext3

But that failed in the same way that mounting the directories did.

Adding the nobootwait option fixed it. Oddly, it looks like nobootwait apparently causes the system to wait until the mount is completed, even though the man page says the opposite. Here's the commands from /etc/fstab:

/dev/sdd1 /media/mybook ext3 nobootwait
/media/mybook/laptop_backup /export/laptop_backup none bind 0 0
/media/mybook/laptop_D610 /export/laptop_D610 none bind 0 0
/media/mybook/laptop_www /export/laptop_www none bind 0 0 –

You have to add a line in /etc/fstab with the option "auto" at the end. I'm not at home, else I would copy-paste you my line... I've Ubuntu 10.10 and an external USB hard disk.


How to make ubuntu support touchpad scrolling? I have a dell (inspiron n5110) laptop and manual book said that i can scroll using two fingers on the touch-pad and scroll up, down, left, and right it workd in windows but that didn't happen in Ubuntu 11.10.how to make this enable ???

Did you try to open "System Settings"

and click on "Mouse and Touchpad", then select the "Touchpad" tab

and there select "Two Finger scrolling" and possibly "Enable horizontal schrolling"?

deselecting the "two finger scrolling" actually allows you to scroll. Seems backwards.


driver for Atheros AR5B22 wifi card My Vizio ct14 has an Atheros AR5B22 wifi card.  It was found by, and worked under the 'Try Ubuntu before loading it' on Ubuntu 14.04.3.  It would not work on Ubuntu 15.1 'Try Ubuntu before loading it' or when I installed 15.1 on the hard drive.

Is there a driver that will let me get Ubuntu communicating on the net?  I am downloading drivers onn windows 7 laptop onto usb thumb drive, then will try to transfer them to the ubuntu machine.  Can that work?

Try this :

sudo apt-get install firmware-atheros


How can I get the latest unity updates? Well, I've tried using the PPA posted in OMG UBUNTU! . But nothing appears in the update manager.

So how do I get the updates without adding the ppa for unity 3.8.16?

looking at the ppa - although the package is "natty" - its only available to oneiric... looks like the development team havent yet published it for natty.

Maybe an oversight or is it deliberate?

It could be that OMG Ubuntu jumped in too fast announcing this one when the devs havent actually got a natty repo ready.

I'm not going to test this myself, but if you definitely need this version then maybe edit your sources.list for the PPA and change the source distro from natty to oneiric.

Then hit that check button in update-manager one more time.

Confirm the unity version by running

unity --version

Looking at the comments on OMG! Ubuntu - there is a comment from Jorge Castro who said that 3.8.16 is going to be available in Natty Proposed either now or very soon.  Perhaps better to wait until there is an official Repository of the Natty Desktop PPA.

Follow these steps:

   sudo apt-add-repository ppa:ubuntu-desktop/ppa
   sudo apt-get update
   gksu update-manager


Ubuntu isn't starting after unexpected shutdown Due to power cut, My PC went off. Then, when I opened it, Ubuntu wasn't starting. I tried to run Ubuntu from live CD, it's not working. Now, what should I do?  I can access BIOS and terminal from recovery mode.

Update:

I have 256,256 & 512 MB RAM installed in my PC. After unplugging two 256 MB RAM. I've only 512 MB RAM now and my PC now working fine.

Thanks.

If you can still access your PC's Boot Menu you could try loading Ubuntu onto a USB and running it off there (Check my answer here if you don't know how to do it) if you're fortunate that could work, otherwise could you please go into further detail:

Firstly does you PC load to the boot screen when you turn it on? (if your hardware was damaged during the power cut as it,you're probably going to have to send it back to the manufacturer)
Do you have access to the grub screen if you're dual booting?
If you are dual booting can you still access your files from another OS?
Does anything come up when you try running the live CD? Or no response at all?

Edit: I stumbled accross a fix for people who tried launching Ubuntu and ended up with a black screen, not sure if your issue is similar but this might be worth a shot if your graphics drivers had a bug because of the power-cut: Potential fix

you need to turn the power back on or the computer will not start, and if it is a laptop make sure the battery is charged or if you don't have a battery plug in the ac adapter, if your trying to turn it on then make sure the power adapters are in, and you are getting electrical currents to your house.


How do I completely remove geckodriver? I have tried removing the files and uninstalling Firefox but when I do a version check for it in terminal, it still lists it.

This worked for me:

whereis geckodriver   to find the location(s)
sudo rm <location_from_previous_command>

Using apt from command line. Just use the command
sudo apt-get remove package_name

If you want to also remove user data and configuration files
sudo apt-get purge package_name

Using --auto-remove parameter will also remove package dependencies.
Using dpkg from command line
Just use the command
sudo dpkg -r package_name

To remove a package and its configuration files
sudo dpkg -P package_name

Files in your home folder are not part of the package so they will stay on your system until you remove them by yourself.


Xubuntu: Disks utility (palimpsest) and Gparted not showing up anywhere after installation So I've downloaded Gparted and Disks from the software center. According to software center, they've both installed successfully... but they're nowhere to be found.

Even in my terminal:

$ palimpsest
palimpsest: command not found

I've looked in usr/bin... no "palimpsest", no "gnome-disk-utility".

In usr/share/gnome-disk-utility there's a bunch of .ui files.

According to Software Center, both programs are now installed in my computer, but it seems I've no way to find them. I've tried re-installing and restarting.

I'm on Xubuntu 32 bit.

As in AJefferiss's answer, it's gnome-disks, nowadays.

Compare the file contents list of the package in 12.04 with the one in 12.10. It appears that palimpsest has been renamed to gnome-disks, without leaving a symbolic link behind. I'm surprised to see that last part has happened.

Usually, the developers leave a link there to preserve compatibility. Well, my feeling about this is right, because, there you go, it's a bug!

LP Bug #1041665: gnome-disk-utility is missing palimpsest (renamed to gnome-disks)

Make sure to mark yourself affected there by this bug if you feel this should be solved. At the moment of writing this has a very low priority and is unassigned...

Settings-Manager > Panel > Select "Panel 0" > Click on "items".

Select "Application Menu" and click the little gear to edit the currently selected item.
On the new window, click "Edit Menu" button.

And then, everything you ever wanted happens! Simply add the software you want in the various menu items.


How can two users share one folder? Can I put a folder in the top of the main drive (is that the root?) so that the two users of the machine can use it freely. For example, I'd like to put music in it so that both users can import to Rhythmbox. We also need to keep other various files and docs there and we need to edit files created by eachother.

I'm not magnificently knowledgeable of term commands, so if someone could give me reasonably detailed instructions, I'd be very grateful.

If there's a better way to do what I want; I'm listening...

Many thanks.

Using Ubuntu 18 (if you want to help with my Ubuntu<>MacOS filesharing problem, please look for my other post).

ACL can help:

# Create shared directory
sudo mkdir -p /media/Shared

# Give user1 and user2 rwX access to /media/Shared
sudo setfacl -m u:user1:rwX '/media/Shared'
sudo setfacl -m u:user2:rwX '/media/Shared'

# Make rwX access the default for new files and folders for both users
sudo setfacl -m default:u:user1:rwX '/media/Shared'
sudo setfacl -m default:u:user2:rwX '/media/Shared'

Change user1, user2 and /media/Shared to your needs.


Lenovo Yoga 2 Ubuntu 14.04 occasionanal blank screen I have a new Lenovo Yoga 2 with Ubuntu 14.04. On every 3rd or 4th boot, the screen goes completely blank after the grub screen and the backlight seems to ramp up to maximum intensity (I see a faint growing white glow). I can hear the drums beat for the login, but nothing shows up on the screen. This seems to be random--I cannot figure out a way to bypass this without rebooting several times. It also seems to randomly happen while waking up from suspend.

I have the acpi_backlight = vendor in the grub boot line. This does not seem to make a difference as I get this random behaviour with and without the boot flag.

--prasanna

I have the same on 14.04. On 13.10 it worked well. I can't fix it, but there is a little workaround. When screen goes black press the F9 key (switch the screen off), close the lid  and don't move the laptop*. It will go to sleep. Then open it and wake it up by pressing any key. My Yoga 2 Pro wakes up with the screen working fine.

Y2P has a movement sensor, so if you move it when it goes to sleep it fail to do so.

If your screen acts strange after suspend, it's usually enough to switch to console (Ctrl+Alt+F1) and back to graphics again (Alt+F7).


Accessing Ubuntu Files from a Wubi Installation within Windows Right now I'm dual booting between windows and ubuntu (using Wubi).  How can I grab some files from my Ubuntu root drive within windows?

You would require a ext filesystem driver for windows to access ubuntu files from windows.Download ext2 driver from the below link:

http://sourceforge.net/projects/ext2fsd/

Unfortunately,  I don't think you can. Unless you use a 3rd party program, Windows can only read NTFS, FAT, or FAT32 type drives. Ubuntu is installed on an ext3 or ext4 type drive. This is why Ubuntu is more popular amongst giant businesses, it can use hardware more effectively than any other kernel and operating system.


Suspension on my computer under Ubuntu 14.04 LTS 64 bit won't work properly I have a problem about suspension procedure under Ubuntu 14.04. It won't work properly; that is I can activate it, but when trying to resume the system it restarts, as if I had turned it off and then on again. Any ideas about possible actions in order to solve the problem?

Some commands about the hardware:

sudo lshw -C video

*-display
description: VGA compatible controller
product: RV620/M82 [Mobility Radeon HD 3410/3430]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=radeon latency=0
resources: irq:48 memory:c0000000-cfffffff ioport:d000(size=256) memory:d0020000-d002ffff memory:d0000000-d001ffff

uname -a

  Linux tryitandsee 3.16.0-45-generic #60~14.04.1-Ubuntu SMP Fri Jul 24
  21:16:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

By editing the /etc/default/grub file I succeeded in resolving the issue:

First of all backup your file on your Desktop:

sudo cp /etc/default/grub /home/username/Desktop/grub
Then edit the /etc/default/grub in order to change two lines
in the way below ; so run:

sudo gedit /etc/default/grub

  GRUB_CMDLINE_LINUX_DEFAULT="quiet"
  GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"

Run:

sudo update-grub
Restart your pc. You could need restarting it a few times before
suspension comes back working properly.
Should anything go wrong or this method not work, run this command:

sudo cp /home/username/Desktop/grub /etc/default/grub
sudo update-grub

I hope this solution can help as many people as possible. See you around. Bye.


Ubuntu 18.04.1 LTS don't install Conky Manager I need to install Conky Manager to add themes and change settings  to make my own preferences on a desktop screen. However when I type:

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt update
sudo apt install conky-manager

My Ubuntu says to me that I'm unable to find conky manager package. Can anyone help me to install Conky Manager to personalize my desktop screen properly? Thanks!:)

Let's start with analysis of this PPA problem. You are going to install conky-manager package, so you know exact name and target Ubuntu version.
In such case you should use special PPA search page on launchpad.net - https://launchpad.net/ubuntu/+ppas with the corresponding search query "conky-manager". This page will return search results. You should click all these links one-after-one and select Published in: Bionic filter. You can choose any PPA which you trust more.
Other way is to use Y PPA Manager.

I ended with this one (ppa:mark-pcnetspec/conky-manager-pm9) as it has realpath package in PPA:

sudo add-apt-repository ppa:mark-pcnetspec/conky-manager-pm9
sudo apt-get install conky-manager

After installation you will get Conky Manager 2.4 running on your Ubuntu 18.04 LTS:

Note: packages from two other PPAs (ppa:marius.quabeck/nerdzoom and ppa:tomtomtom/conky-manager) are really depends on realpath package (as were noted by @OrganicMarble), but do not include it.

Try this instead. Worked for me in Ubuntu 20.04, as of April 6, 2021.
sudo add-apt-repository ppa:tomtomtom/conky-manager
sudo apt-get update
sudo apt-get install conky-manager

Link to PPA: https://launchpad.net/~tomtomtom/+archive/ubuntu/conky-manager


Can't find/remove online account from Evolution I have two accounts set up in evolution that I'm not able to remove nor from Evolution itself neither from the online account panel.

In evolution the "Delete" button is disabled when I select those two accounts

In Online Accounts they are not present in the list so I can not remove them.

The accounts I wish to remove are the ones with the half-globe icon

This is because the default "Ubuntu Online Accounts" (uoa) are different than "Gnome Online Accounts" (goa).

GOA have a little halfglobe-plug icon
UOA have a little globe-with-keys icon

Yours are GOA accounts, so they do not show in the UOA (default) online account interface.

Here is how you can get to them.

Go to a command line prompt and run the following, which will bring up the standard System Settings inteface, however it will now contain the GOA and UOA icons.

env XDG_CURRENT_DESKTOP=GNOME gnome-control-center

This is clearly confusing as noted in:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1040193

My issue is that GOA is what evolution now uses as the UOA package seems to have disappeared from current saucy as of 3.8.5-1ubuntu3.

evolution-data-server-goa  (adds GOA accounts to evolution, as in your example above).
evolution-data-server-uoa  (adds UOA accounts to evolution, which is more desirable IMHO).

killall evolution &&
rm -r ~/.cache/evolution

greetings


13.04 installed on Parallels on OSX. Very slow graphics performance I installed 13.04 on my MacBook Pro running Parallels.
Everything works pretty well but when showing and hiding windows the performance is very slow.
I read around a bit.

I'm running 64 bit, 3.9 GiB memory, Intel® Core™ i7 CPU M 620 @ 2.67GHz

I ran /usr/lib/nux/unity_support_test -p and got:

Not software rendered:    no
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       no

Older solutions to this problem for previous (12.xx) versions do not apply here since there appear to be no unity controls in the system settings.

So my question is this. What do I need to do to get these window fades to speed up or how do I simply turn off this somewhat redundant feature without screwing other stuff up?

Thanks for your ideas.

Parallels 9 for Mac OS X: In the settings of virtual machine (VM must be shut down), go to Hardware -> Video -> 3D acceleration (On) and start your VM:

OpenGL vendor string:   Parallels and NVIDIA Corporation
OpenGL renderer string: Parallels using NVIDIA GeForce 320M OpenGL Engine
OpenGL version string:  2.1 NVIDIA-10.0.19 310.90.10.05b12

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes

Now Unity 3D is working on my MacBook Pro.

I'm running Ubuntu 13.04 on Parallels Version 8.0.18608 (Revision 898384; Wed, 17 Jul 2013).

Here an output of /usr/lib/nux/unity_support_test -p command:

OpenGL vendor string:   Parallels and NVIDIA Corporation
OpenGL renderer string: Parallels using NVIDIA GeForce GT 330M OpenGL Engine
OpenGL version string:  2.1 NVIDIA-8.12.47 310.40.00.05f01

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes

Try to upgrade your Parallels version, it should work.


Mouse button click not working during Ubuntu 20.04 LTS dual boot installation My machine configuration:

iBUYPOWER - Gaming Desktop - Intel Core i7-9700K - 16GB Memory - NVIDIA GeForce RTX 2080 SUPER - 1TB HDD + 480GB SSD

I am using a logitech MK520 wireless keyboard and  mouse combo. The mouse has two buttons, a scroll button, two buttons on the side (for scrolling webbrowser history), and one more button on top (I don't know what it is used for).

The mouse and keyboards work fine in Windows 10. I am trying to do a dual boot installation by installing Ubuntu 20.04 LTS. The machine boots into Ubuntu (the iso is on a bootable flash drive). Then Ubuntu can detect both the keyboard and mouse. However, the mouse clicks don't work. I am able to use keyboard enter, right, left arrows to navigate. Also I used CTR+ALT+T for opening a bash shell and was able to shutdown using Shutdown -r now command.

Is there an advice on how to make the mouse clicks work?

I had this during my install. The issue was that I had two monitors and the mouse pointer was actually on the opposite monitor that was displayed. I was able to move the mouse over and guess what fields it was on as the pointer changed.


Text-only login after 13.10 upgrade After upgrading from 13.04 to 13.10 I no longer get the GUI login. After I login I can run startx and the GUI login eventually comes up. How do I get the GUI login back by default?

Apparently if I just wait long enough, the GUI login comes up.

I think you forgot the dist-upgrade and created inter-process communication irregularities. On a terminal, use :

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
# And just to make it clean :
sudo apt-get clean
sudo apt-get autoremove

For more info : Gnome 3.8 (Ubuntu Gnome 13.04) won't start after boot. Where to look for logs of this kind?

(don't hesitate to give share logs, see previous link)


Cannot run update due to a dpkg error with burg-theme-minimal-sir I cannot run an update or indeed run $: apt-get remove  due to a dpkg error with a package that's a part of super-boot-manager. Running an update returns:

dpkg: error processing burg-theme-minimal-sir (--configure):  subprocess installed post-installation script returned error exit status 1

I tried removing this package alone, with the same error, also trying to remove super-boot-manager returns:

(Reading database ... 225474 files and directories currently installed.)
Removing burg-theme-minimal-sir ...
Generating burg.cfg ...
/usr/sbin/burg-probe: error: cannot stat `/boot/burg/locale'.
No path or device is specified.
Try `/usr/sbin/burg-probe --help' for more information.
dpkg: error processing burg-theme-minimal-sir (--remove):
subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                          Removing super-boot-manager ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
burg-theme-minimal-sir
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm sort of stuck now and Google has failed me. Has anyone encountered this problem before? Or does anyone know a way for fixing this?

After looking through the error logs I realized I just need to create a locale directory in /boot/burg/. After that it was all fine.
If someone encounters this error (which I assume occurred in the first place due to my sloppy installation of burg-manager) just run:
    sudo mkdir /boot/burg/locale && sudo apt-get remove burg-manager

Try this
this is worked for me on ubuntu 12.04

http://code.google.com/p/burg/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=17


FF performance degraded after moving from Xubuntu 14.04 on Thinkpad W500(Core2, 8 GB RAM) to 17.04 on T520(i5, 16 GB RAM) My preferred usage pattern for Firefox includes having 20-30 windows open, with an average of perhaps 10 tabs/window. (This is my preference, so please don't bother suggesting changing this.)

With my old machine, a ThinkPad W500 running Xubuntu 14.04 LTS (very much living up to its name, Trusty), this worked fine most of the time with 8 GB RAM and a swap partition of 12 GB. At times, it would begin to slow down due to swapping, but this would typically happen after several days (sometimes more than a week) of use, and a restart of Firefox would fix it for another period. Very rarely, but typically with more than 25 windows, the Firefox process would become very sluggish or completely unresponsive, but I would still be able to switch windows to a terminal and kill it.

Under the assumption that a faster system with more RAM would improve this situation, I obtained a (used/refurbished) T520 with 16 GB RAM preinstalled from the vendor about a week ago. However since installing this with Xubuntu 17.04 last weekend, it seems to be a worse setup than what I had before. Leaving my machine idle with just Firefox (18 windows) and Terminal (4 windows) for a day, tonight I found it in a state where it was completely unresponsive, disk light constantly on with the disk trashing, to the point where even switching to a Terminal window was effectively impossible. After waiting five minutes I gave up and pressed the power button.

This was after I yesterday tried to improve performance (having had a similar problem) by tuning FF Performance: enabling hardware acceleration and setting the Content process limit to 4. (FF 55.0.2, which I had also been using on the old system since august 20.).

What is the cause of this horrible trashing, and how - other than having less windows open - can it be prevented? Given that the old system worked fine, I am considering downgrading the new machine to 14.04, but that seems an unviable option in the long run. I am also considering changing swappiness, or even running FF under a virtual machine so I can limit its resources.

Any suggestions for finding the cause, a solution or a good workaround will be highly appreciated.

If 14.04 worked OK for you then there is no trouble in reinstalling it (other than possible hardware issues with components from end-2016 to 2017, and its EOL in 2019). You will have more RAM than before, so it would be better for your normal Firefox usage, and also, you will have your trusty Xubuntu 14.04 working OK.

You can stay in 14.04 until end-2019 or mid-2020, when Firefox drops support for that Ubuntu version. Then you might try future versions (18.04, 20.04...).

If you are worried about security, FYI you can still receive upgrades until Apr 2019, and after that there is a risk if you still use the system, but if modern versions won't work well, you might try other things such as Mint, Debian,etc.


Accidentally deleted boot partition. System not booting up This is how my partitions are.

sda1=512MiB
sda2=694GiB
sda3=3.89GiB(linux-swap)

I have tried so many things but nothing works out. I tried boot-repair. I changed flags and now I don't know which are the default flags of partitions. sda1 is empty now.

From your description, you seem to have a mixed-up mess.

Since you "tried so many things" but didn't provide details, we can only guess at your skill level.

Your easiest solution is to backup and reinstall:

Create a LiveUSB.
Boot using the Live USB.
Mount your hard drive. Backup your data to some other media.
Reinstall Ubuntu using the LiveUSB.

There are many more complex solutions, including several methods of investigation and repair. The AskUbuntu format is oriented toward single questions, not the extended mentoring you need to learn those repair methods.

You have to reinstall the boot partition basically by booting from a Ubuntu live USB, continue with the installation how you usually would and when you get to installation type select something else and click on continue. Select sda1 as drive for boot partition and continue with the rest of the installation.


The eclipse application icon is huge in Unity's dash I have a problem with the manual installation of Eclipse Juno.
After unpacking the tarball to /opt, adding a symlink from /usr/local/bin and adding the following to a new file /usr/share/applications/eclipse.desktop:

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

I still get this weird behavior from the dash:

Eclipse runs just fine and the icon is clickable but as you can see the size is a bit off. How can i fix this? Shouldn't Unity automatically scale the icon?

Create a link to ecplise icon.xpm in your share folder:

  ln -s /opt/eclipse/icon.xpm ~/.local/share/icons/eclipse4.xpm

for your user only or

  sudo ln -s /opt/eclipse/icon.xpm /usr/share/icons/eclipse4.xpm

for all users

In your eclipse.desktop file (in ~/.local/share/applications or /usr/share/applications), replace Icon=/opt/eclipse/icon.xpm by Icon=eclipse4. You don't need to add the .xpm suffix.

If necessary, also update Icon[en_US] line with the same value.

The file eclipse.desktop may have a different name depending on the tool you used to create it.

Edit: Improve answer thanks to Pius, QD. and iAm comments

The icon in the eclipse directory (eclipse.xpm) has a size of 256x256. Replace it with a smaller one (48x48 works for me).


13.04 graphics problem All of a sudden, the graphics aren't working on my Ubuntu 13.04 64bit. I ran sudo apt-get upgrade yesterday, and now the launcher and dash transparency don't work. What's odd is that the notifications transparency-blur-thingy does work. Auto-hiding the launcher also gives me weird results. I have some screenshots:

The launcher is not transparent.

Neither is dash.

And that is what the desktop looks like with the launcher on auto-hide.

My hardware is a Gigabyte h61n motherboard with an intel i3 CPU. What's wierd is that System Settings -> Details can't make up it's mind what graphics I have.

the output of lspci -nnk | grep -iA3 vga:

00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09) Subsystem: Gigabyte Technology Co., Ltd Device [1458:d000] 00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04) Subsystem: Gigabyte Technology Co., Ltd Device [1458:1c3a]

Sometimes things get broken or lost during updates.

Try these two commands:

sudo apt-get dist-upgrade

This reruns updates command with some extra features. Read about the difference between apt-get upgrade and apt-get dist-upgrade here.

sudo apt-get install xserver-xorg-video-intel

This reinstalls the driver if it has been removed for some reason.

Yeah, I have noticed that the graphics drivers in the Ubuntu versions since 12.04 have been a bit troublesome. Generally when I see issues like this I just recommend reinstalling the graphics driver. I am not sure if you are using and nvidia or ati card, but try reinstalling the driver. This will force a recompilation of the drivers and will hopefully solve the issue. You can do this through instructions like

sudo apt-get install --reinstall nvidia-current

You could do the equivalent thing for the ATI driver as well.


How to enable 3D acceleration under VMware workstation 8? I saw there are similar questions, but I don't think they answer exactly my questions.

Did anyone managed to get 3D acceleration work under VMWare workstation 8? I have VMware 8.01 installed on Ubuntu 11.10. The guest I am trying is also Ubuntu 11.10.

I manually installed vmware-tools and it went well, except the X-config part was skipped as it said the distribution driver is used. The guest runs well but it seems fall back to 2D mode.

Does any one has any idea how to enable 3D acceleration under VMWare workstaion with Linux guest?

VMWare workstation 8 currently does not support 3D acceleration.

It does. Go to your vhost settings and find the display entry. There is a checkbox to enable 3d acceleration


Fix corrupt NTFS partition without Windows MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed).

I'm putting the debug output of fdisk and blkid here.

At the same time, any OS is unable to mount my root partition, which is located next to my NTFS partition. I'm not sure if this has anything to do with it, though. I get the following error while trying to mount my root partition (sda5)

mount: wrong fs type, bad option, bad superblock on /dev/sda5,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

ubuntu@ubuntu:~$ dmesg | tail
[ 1019.726530] Descriptor sense data with sense descriptors (in hex):
[ 1019.726533]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ 1019.726551]         1a 3e ed 92
[ 1019.726558] sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto reallocate failed
[ 1019.726568] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 1a 3e ed 40 00 01 00 00
[ 1019.726584] end_request: I/O error, dev sda, sector 440331666
[ 1019.726602] JBD: Failed to read block at offset 462
[ 1019.726609] ata1: EH complete
[ 1019.726612] JBD: recovery failed
[ 1019.726617] EXT4-fs (sda5): error loading journal

When I open gparted (using live CD), I get an exclamation next to my NTFS drive which states

Is there a way to run chkdsk without using windows ?

My attempt to run fsck results in the following :

ubuntu@ubuntu:~$ sudo fsck /dev/sda
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

Update: I was able to fix the NTFS partition running chkdsk off Hiren's BootCD, but it seems that the superblock problem still remains.

Update 2: Fixed superblock issue using e2fsck -c /dev/sda5

Install ntfs-3g with sudo apt-get install ntfs-3g.
Then run the ntfsfix command on your NTFS partition.

For example:

ntfsfix /dev/hda6

  ntfsfix v2.0.0 (libntfs 10:0:0)

  Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

  Developers' email address:

  linux-ntfs-dev@lists.sf.net Linux NTFS
  homepage: http://www.linux-ntfs.org

For newer Ubuntus You can use -b and -d option together. -b tries to fix bad clusters and -d to fix dirty states. So the command can be

sudo ntfsfix -b -d /dev/sda6

--help shows them

ntfsfix v2015.3.14AR.1 (libntfs-3g)

Usage: ntfsfix [options] device
    Attempt to fix an NTFS partition.

    -b, --clear-bad-sectors Clear the bad sector list
    -d, --clear-dirty       Clear the volume dirty flag
    -h, --help              Display this help
    -n, --no-action         Do not write anything
    -V, --version           Display version information

This answer will probably just work for 10.04 (lucid) and later versions of Ubuntu!

Try sudo ntfsfix -b /dev/sda2.

You need ntfs-3g  installed. If you don't have it, you can install it in the Software Center by clicking that link, or from the Terminal (Ctrl+Alt+T) by running these commands:

sudo apt-get update
sudo apt-get install ntfs-3g


How to make username in terminal smaller? When you opens a terminal it displays the username and the machine name. As an example mine shows: romeo@romeo-Satellite-C660D:~$. It's really annoying because it's kinda big. Can i make this smaller, like, only show romeo?

I know it sounds stupid, but I'm new with Unix based OSes.

You need to alter PS1 variable in your environment. PS1 is responsible of how fancy your command prompt will look alike, and what information it will contain.

Permanent change

Following is the excerpt of default .bashrc file in Ubuntu 10.04 LTS:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

This makes command prompt look like this: username@hostname:~/directory$

If you change this and delete @\h part in PS1, you will get rid of hostname part in your command prompt:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u:\w\$ '
fi

Result: username:~/directory$

Temporary change

Override PS1 in your current bash session:

export PS1="\u:\w\$ "

Resources:

man bash
How to: Change / Setup bash custom prompt (PS1)
Color Bash Prompt

export PS1='\t$'

since I prefer displaying as little background info as possible on the terminal I generally customize every session as a #, $, etc.


How to update from 10.10 PLEASE HELP! I totally know nothing of this type of things.  My uncle gave it to me, and my family doesn't even know what to do with this.  I've tried upgrading, but it will not!  What steps do I need to do, and could you explain in thorough steps? Thank you for reading this and I appreciate your time.

TL;DR: I think the best approach here is a full re-installation.

The upgrade path from 10.10 to a more recent release, 14.04 (Long Term Support) or 15.10 (latest), if even still possible, would go as follows:

10.10 → 11.04 → 11.10 → 12.04 LTS → 14.04 LTS ( → 14.10 → 15.04 → 15.10 (latest release))

So as you can see, you would have to perform 4 subsequent release upgrades to get to the latest LTS release, and another 3 more to get to the latest release. In each of these upgrade processes, something could break. (And I'm currently ignoring the fact that this will take a long time.)

Also, you may run into performance issues. Ubuntu 10.10 is the last release to ship with the GNOME 2 desktop by default, since 11.04 Canonical shipped Ubuntu with its new Unity desktop, which is a hell lot more demanding on memory and CPU, although I don't know whether it will actually install Unity during a release-upgrade.

So a full reinstallation would be the way to go, if you want to keep using Ubuntu. An explanation on how this is done would be way to exhaustive for this answer, but you can find a very detailed guide here.

As already mentioned, the default Unity desktop may be too demanding for older hardware, but you are free to try ;) You can even boot Ubuntu directly from a DVD or USB, as described in the Installation guide. If it doesn't work well, you may want to have a look at Ubuntu flavors with more lightweight desktops, such as Xubuntu (with Xfce) or Lubuntu (with LXDE).

Goto "Search your computer and online resources" And search Software Updater and from there you can upgrade to the newest version of ubuntu


Best audio drivers for xps 15 and ubuntu12.04 The sound quality on my xps 15 speakers appears to be a little degraded. It would be very helpful if some one suggests a good audio driver package for ubuntu 12.04 64-bit.

I have 2.1 channel speakers.

...welcome to AskUbuntu.

It may sound unusual, but there aren't any special audio drivers for XPS15 and Ubuntu 12.04. Ubuntu is a Linux distro, and as such, it uses Advanced Linux Sound Architecture, aka ALSA, which is preinstalled.

I rather doubt there is anything to troubleshoot in your particular case. Most laptop speakers can only produce mediocre quality sound, and to improve the quality substantially would most certainly require external hardware. Simply plugging in a decent pair of headphones would probably be sufficient.


Uninstall GRUB and use Windows bootloader I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would I remove GRUB and make my PC use the Windows bootloader instead? It should be noted that I created a separate /boot partition when installing Ubuntu.

This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub

You will be doing this from Windows 10. No bootable media required.

Where bootrec /fixmbr, bootsect /nt60 and the Ubuntu live with the boot-repair suggestions have failed, this has worked for me:

(This answer borrowed verbatim from here)

Run a cmd.exe process with administrator privileges
Run diskpart
Type: list disk then sel disk X where X is the drive your boot files reside on
Type list vol to see all partitions (volumes) on the disk (the EFI volume will be formatted in FAT, others will be NTFS)
Select the EFI volume by typing: sel vol Y where Y is the SYSTEM volume (this is almost always the EFI partition)
For convenience, assign a drive letter by typing: assign letter=Z: where Z is a free (unused) drive letter
Type exit to leave disk part
While still in the cmd prompt, type: Z: and hit enter, where Z was the drive letter you just created.
Type dir to list directories on this mounted EFI partition
If you are in the right place, you should see a directory called EFI
Type cd EFI and then dir to list the child directories inside EFI
Type rmdir /S ubuntu to delete the ubuntu boot directory

Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.

It may be impossible to do that. The temporary solution is to remove the GRUB menu, and use BCDedit.
Extract from ubuntuhandbook (https://ubuntuhandbook.org/index.php/2020/06/hide-grub-boot-menu-ubuntu-20-04-lts/)

You can do the job easily via Grub-Customizer (available in Ubuntu Software) under General Settings tab. However, you need to also disable “look for other operating systems” option.

Any time you want to show the Grub menu, press ESC while booting up will NO longer show dual-boot (multi-boot) systems other than Ubuntu.


If im using nouveau there is no way to use vdpau with it? Im using ubuntu 12.10 and im using the opensource driver which came reloaded with the distro tried to install the proper driver but I failed, so now im using the opensource driver and its okay, but the only problem is I want to use vdpau coz it accelerate the videos on youtube and smplayer and play it with less cpu usage.

my question is: is there a way to enable vdpau with the opensource driver or do I have to use the proper driver from nvidia ?

Related bug

  Bug #1002224 “Please include gallium vdpau and xvmc driver suppo...” : Bugs : “mesa” package : Ubuntu
  https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1002224

As far as I can see we'll have to wait for Debian to fix it.

And there's an unofficial PPA software source you can check out

  Updated and Optimized Open Graphics Drivers : Oibaf
  https://launchpad.net/~oibaf/+archive/graphics-drivers/


How to solve the pkgProblemResolver Error when upgrading to 12.04? I am trying to upgrade my machine from 10.04 to 12.04 LTS but I get the following error. The same error occurs both in GUI and in terminal while doing dist-upgrade.

E:Error, pkgProblemResolver::Resolve generated breaks,
  this may be caused by held packages.

I've tried to remove libcv-dev as suggested in a comment to this blog post but I don't have libcv-dev installed on my machine.

Package libcv-dev is not installed, so not removed

The pastebin link for the contents of /var/log/dist-upgrade/apt.log - http://pastebin.com/2GTRYNAY

How do I resolve the error and upgrade my machine to 12.04?

I've tried the solutions given in the following answer but it didn't work for me:

pkgProblemResolver error when running Package Manager and updating 12.04

These are the terminal output of commands mentioned in those answers:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get remove evolution-plugins
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package evolution-plugins is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Fast reads of UbuntuDesktop Upgrading leads to idea that if your current installation has not version 10.04 LTS, then first you should upgrade to version 11.10, and next to 12.04 LTS.

This error looks like "unmet dependencies trouble".
Possible common solution is:
 1. Clean your sources lists and APT cache to leave only "genuine" Lucid sources.
 2. Upgrade your distribution.

Nice answers found here: How do I upgrade from 10.04 or 11.10 to 12.04?

How about...

sudo apt-get update
sudo apt-get install update-manager-core
sudo do-release-upgrade


How to make Torque work on Ubuntu 14.04? I have a single PC with a multicore processor and I'm trying to use Torque on Ubuntu 14.04. I have installed torque-mom, torque-server, torque-client and torque-scheduler through Synaptic.

I can't make it work. I have changed server name and even IP. I can't find specific instructions which can be correctly applied. The official Torque application is not prepared to work with Ubuntu. I'm really tired handling this. What will make it work?

I share your frustration, as torque could really work (better) on Ubuntu.

Meanwhile, maybe the posts about Torque server will not initialize correctly [11.10]  on UbuntuForums.org can help you.


Cannot dualboot into Windows after Creators update I was a happy dualboot user with Ubuntu 16 and Win10. This morning I saw an update available, so I installed it. There was very long configuring process before restart. After restart, if I select Windows 10 in the GRUB menu I am stuck on a blank purple screen where nothing happens. I don't know if it's a problem with Windows or it's problem with GRUB that it cannot find the correct way to boot Windows after this update.

Can anyone help me?

I had similar issues on an Ubuntu and Windows 10 dual boot system with the Creators Update. Windows booted after the Creator update with an "inacessible boot device" error message and restored itself to the previous version.

The following worked at my system to finish the Creator Update.

I used the tool EasyBCD and followed this procedure to use the Windows boot manager instead of GRUB2.

Then I didn't put an entry for Linux, so no boot manager appeared during the Windows startup. The Creator Update could then be installed successfully.

Finally, I included the entry for Ubuntu again in the boot manager.

After 4 failed boots I have booted into Ubuntu. Then I tried to set Windows boot manager as primary in BIOS, but it failed and loaded Grub, where I selected Windows 10, then it recognized errors, and restored Windows to its state before the update. So now it works, but I don't know why. Maybe BIOS settings affected something, or maybe Windows detected 5 failed boots and fixed itself.


Grub disappear on Lenovo E531 Hi and Happy New Year.

I have the following problem. My Lenovo E531 have dual-boot Windows 7 and Ubuntu 14.04. The problem is, that grub just disappear. I install Ubuntu normally and use it normally. I don't install nothing yet. Today I turn on the Laptop and appears a screen that show "Grub rescue>". So I turned it off and boot from "Boot-Repair-Disk" tool.

This tool didn't offer the repair option, only the Create a Bootinfo summary option.

Here is the summary -> http://paste.ubuntu.com/14398335/

How can I fix it?

Thank you.

It looks like your disk is badly damaged. Your partition table appears to be intact and is sensible, but Boot Info Script says the partitions all contain unknown filesystems. This suggests that either the partition table information is wrong or the filesystems have all been damaged by something -- improper use of low-level commands like dd, a malicious virus, a failing disk, etc.

Recovery might be possible, but will require considerable expertise. If the partition table is damaged, TestDisk might be able to recover the partitions, but I don't think that's the problem. If I'm right in this, your best bet is likely to be to wipe everything and recover it all from a backup. You do have a backup, right? If not, you might be able to pull your important files off the disk with PhotoRec or something similar, but you'll need a clean disk for recovery. The last I checked, PhotoRec did a poor job of recovering filenames, so you might end up spending a lot of time reviewing and renaming files. Some Windows-specific tools supposedly do a better job recovering filenames, but I have no specific pointers.

In case your disk is failing, you might want to run a SMART examination of the disk before you restore data to it. If the disk is physically failing, there's no point in trying to re-install to it, since you'll just hit problems right away.

click this link:

https://arisantos.wordpress.com/2015/05/11/troubleshooting-kendala-booting-di-ubuntu-14-04-dan-muncul-grub-rescue/

may be your solution :)


How to connect my Ubuntu 18.04 to TV by HDMI I tried to connect my PC to TV by HDMI but it does not work. Ubuntu does not even connect or read the HDMI, when I connect the wire, nothing changes!
I installed Nvidia X Server but again it does not work.

I also had this problem. I tried everything and nothing worked, until I changed the login display manager from gdm3 to lightdm. Run these commands in the terminal.

sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm

Select and use the Enter key to click Accept as seen in this screenshot.

Then select lightdm as the default login display manager as seen in this screenshot.

And that's it, reboot and go. If your login display manager is modified according to your preferences, there is also a program for Ubuntu to customize it LightDM GTK + Greeter Settings.


Problem with sudo apt-get -f install I have tried sudo apt-get autoclean and sudo apt-get clean. Still I keep getting this error

I am running Ubuntu 12

siddharth@IWORKHERE:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
      openjdk-7-jdk
Suggested packages:
visualvm
The following packages will be upgraded:
      openjdk-7-jdk 1 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
Need to get 0 B/16.5 MB of archives.
After this operation, 88.1 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 394130 files and directories currently installed.)
Preparing to replace openjdk-7-jdk 7u55-2.4.7-1ubuntu1~0.12.04.2 (using .../openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb) ...
Unpacking replacement openjdk-7-jdk ... dpkg: error processing
/var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb (--unpack):
trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1~0.12.04.2
Errors were encountered while processing:  /var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg -r openjdk-7-jdk
sudo apt-get remove --purge openjdk-7-jdk
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update

then finally, you are set to install that package as if it's a fresh without any trailing history of the installation.

You will need to force over write of that file.

please run this command sudo dpkg -i --force-overwrite /var/cache/apt/archives/openjdk-7-jdk_7u65-2.5.1-4ubuntu1~0.12.04.2_i386.deb

then run sudo apt-get -f install

ref: [SOLVED] Error ‘dpkg: error processing  (--unpack) trying to overwrite…


Should I upgrade to 16.04LTS from 15.10? I am currently running Ubuntu 15.10 and I am considering upgrading to 16.04LTS when it is released.
I have lots of stuff on 15.10 that I don't want to lose, so I would prefer not to do a clean install of 16.04.
If I upgraded to 16.04 (when it is released), would there any issues (such as stability)?
Thanks guys and sorry for the noobie question.

With an upgrade, there is always risk. You could upgrade and have your computer blow up, or be left with an unbootable installation. Your desktop environment may not work, your files may be gone, graphics may be broken, programs may not open, etc.

With that said, the chance of something like the above going wrong is rather low, if 15.10 was a fresh install, and you haven't modified any system files. With every upgrade and every modified system file, the risk that comes with an update increases. However, unless you've been upgrading since Ubuntu 12.04, you should be fine.

It's always better to back up and do a fresh install. You should be fine doing an upgrade, but definitely back up your data beforehand.

It depends on your hardware
If your hardware is too old and not supported by the device vendor anymore than please don't upgrade


How do I mount a folder from another partition? Is there a command to mount a folder from one partition to my main partition?

Example of what I'd like to do, which obviously doesn't work:

mount /media/tc1/folder /home/dvad/home

If not by using a command, is there another way I can do this?

Yes but before I go that far, couldn't you just symlink?

ln -s /media/tc1/folder ~/home

This link is just a file that is interpreted. It is automatically permanent (until you delete the file).

Failing that you can use mount as you described but the syntax is slightly different:

mount --bind /media/tc1/folder /home/dvad/home

This is not permanent at all, and will be nuked by a restart. If you want it to persist, you'll need something in your /etc/fstab like this:

/media/tc1/folder    /home/dvad/home    none    bind

If you're trying a mount and it's not working, you should make sure that the block-level device is mounted. You can't directly mount a subdirectory of a partition without first mounting the partition.

An alternative to mount:

bindfs -n /media/tc1/folder /home/dvad/home

Requires sudo apt-install bindfs.

Like with mount, this will be a (non-permanent) actual mount point, i.e. for instance not tracked as only a reference but version-control systems. But like ln -s, it does not require superuser permissions like mount does.

Unmount with fusermount -u /home/dvad/home (or by restarting).


Hash Sum Mismatch in Ubuntu 18.04 I have just installed 18.04 LTS. However, I cannot update.
I am getting this error of hashsum mismatch.

sudo apt install gnome-tweak-tool -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  gnome-tweaks
The following NEW packages will be installed:
  gnome-tweak-tool gnome-tweaks
0 upgraded, 2 newly installed, 0 to remove and 471 not upgraded.
Need to get 218 kB/219 kB of archives.
After this operation, 1,257 kB of additional disk space will be used.
Get:1 http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1 [218 kB]
Err:1 http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:d2fe9e737713b92b3df4875fffeca2b17b66490b1d1e9d061d9d96695cc90439
   - SHA1:6e4d32fdfd7cbcd18bcac4a6adf4e875bcc428cd [weak]
   - MD5Sum:8835ebc5efb295b47b1ac5d460cca314 [weak]
   - Filesize:217600 [weak]
  Hashes of received file:
   - SHA256:cc60e53fa87b7fa723d35599972fd830ac7d8e74f9c1fa48de9e192752b22614
   - SHA1:3c5e500644f32bcb23de03e39d6a6b4828bd03a8 [weak]
   - MD5Sum:477873e66b2350f4c63fa5ca881d22d0 [weak]
   - Filesize:217600 [weak]
  Last modification reported: Mon, 17 Dec 2018 08:56:42 +0000
Fetched 218 kB in 2s (101 kB/s)
E: Failed to fetch http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu/pool/universe/g/gnome-tweaks/gnome-tweaks_3.28.1-1_all.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:d2fe9e737713b92b3df4875fffeca2b17b66490b1d1e9d061d9d96695cc90439
    - SHA1:6e4d32fdfd7cbcd18bcac4a6adf4e875bcc428cd [weak]
    - MD5Sum:8835ebc5efb295b47b1ac5d460cca314 [weak]
    - Filesize:217600 [weak]
   Hashes of received file:
    - SHA256:cc60e53fa87b7fa723d35599972fd830ac7d8e74f9c1fa48de9e192752b22614
    - SHA1:3c5e500644f32bcb23de03e39d6a6b4828bd03a8 [weak]
    - MD5Sum:477873e66b2350f4c63fa5ca881d22d0 [weak]
    - Filesize:217600 [weak]
   Last modification reported: Mon, 17 Dec 2018 08:56:42 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I tried all possible methods from previously asked questions like.

sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt update

and

Just remove all the content of /var/lib/apt/lists directory:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

and

sudo rm -rf /var/lib/apt/lists/partial
sudo apt-get update -o Acquire::CompressionTypes::Order::=gz

nothing worked...!!!

I solved it.
I switched to a different mirror of a different country


windows option missing after installing ubuntu I am completely new to Linux and Ubuntu. I have a HP Envy laptop with pre-installed windows 8.1 I have created a Ubuntu bootable usb drive and installed Ubuntu successfully. After installation, I am not able to load windows, everytime system is directly loading Ubuntu.

More information: Windows OS is available on C: driver, D: drive is having recovery provided by HP. I created a new drive E: by shrinking C: drive and installed ubuntu on E: drive.

I have gone through existing threads around this issue in Ubuntu community but could not find anything helpful. I have installed boot-repair software and captured my boot information here

Any help/information/education would be much appreciated!

Please suggest if any further information is required to better illustrate this issue.

Thank You!

Install Grub bootloader ( If you haven't installed already) open a terminal and run:

  sudo update-grub

First try:

sudo update-grub

If that doesn't work, then you can try boot-repair tool to fix that as well. Its easy and effective.

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

Use it to fix your installation. For more details here: Link


ddclient - wont update Invalid Keyword for 'ip' = /etc/ddclient.conf

use=web, web=checkip.dyndns.org/, web-skip='IP Address'
protocol=easydns
ssl=yes
server=members.easydns.com
login=stueng
password='****'
home.***.**

EDIT:

I no longer get the keyword error now after waiting a few hours. However, I still have an issue

http://paste.ubuntu.com/1023502/

The above looks succesfull to me, however I am not seeing an update in easydns and I cannot resolve the address to the correct address

can I get additional debug info out of this to make sure its succesfull?

Assuming you have p5-IO-Socket-SSL-1.48, there was a problem with the p5-IO-Socket-SSL-1.48 FreeBSD port.
Upgrading the port to 1.49 seems to have solved the problem.

this just started to work magically a few hours later

/shrug


System error has occured on 16.04.3 Almost every minute, my pc pops out error System error has occured.
This happens every boot and after typing password.
In HP Screen i get some moving and flicking -´s and on ubuntu boot screen
My specs are:

AMD Athlon II X2 220 @ 2,8 GHz
4 GB DDR3 SDRAM
NVIDIA GeForce 9600 GT 512 MB (PNY)
450W PSU
Ubuntu 16.04.3 LTS
7200 RPM 500 GB HDD

Logs:

Dec 24 11:09:06 otto-G5239sc-m rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="865" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Dec 24 11:09:22 otto-G5239sc-m anacron[869]: Job `cron.daily' terminated
Dec 24 11:09:22 otto-G5239sc-m anacron[869]: Normal exit (1 job run)
Dec 24 11:11:07 otto-G5239sc-m com.canonical.Unity.Scope.Applications[1617]: Error loading package indexes: Couldn't stat '/var/cache/software-center/xapian'
Dec 24 11:11:07 otto-G5239sc-m com.canonical.Unity.Scope.Applications[1617]: (unity-scope-loader:2720): unity-applications-daemon-CRITICAL **: daemon.vala:144: Failed to load Software Center index. 'Apps Available for Download' will not be listed
Dec 24 11:14:07 otto-G5239sc-m snapd[908]: 2017/12/24 11:14:07.428920 snapmgr.go:415: No snaps to auto-refresh found
Dec 24 11:17:01 otto-G5239sc-m CRON[2811]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec 24 11:18:59 otto-G5239sc-m systemd[1]: Starting Cleanup of Temporary Directories...
Dec 24 11:18:59 otto-G5239sc-m systemd-tmpfiles[2843]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.
Dec 24 11:18:59 otto-G5239sc-m systemd[1]: Started Cleanup of Temporary Directories.

driver 0

I am very sick of this, my pc is hp g5239sc-m
Monitor: HP S2031A
Any solution for me? as i am out of luck with pc

Oh yes, you can use the nouveau driver, first delete nvidia, than the nouveau driver keeps left but unfortunately I discovered that games like pinball Emilia do not work anymore, I don't know why since nouveau has opengl.


How do you add lines to /etc/default/grub so they're reflected in /boot/grub/grub.cfg? My question is about how to add a few lines to the /etc/default/grub file so that it is automatically reflected each time /boot/grub/grub.cfg is regenerated.  The details:

I'm running ubuntu on a Macbook Pro 8.2 and one of the things that I had to do to get it to run correctly was alter the grub.cfg so that it only loads one of the two graphics cards.  To turn off one of the cards I added the text concerning i915 in the GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.lvds_channel_mode=2 i915.modeset=1 i915.lvds_use_ssc=0"
GRUB_CMDLINE_LINUX=""

The problem is that I must also have the following adding to /etc/grub.cfg:

  outb 0x728 1
  outb 0x710 2
  outb 0x740 2
  outb 0x750 0

Which I've added in context in grub.cfg as so:

menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1e8685ef-b6a8-4bf3-abb8-62d0212cea7c' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod reiserfs
outb 0x728 1
outb 0x710 2
outb 0x740 2
outb 0x750 0
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4  21c34907-4da5-4356-b1c8-a5d2747411ed
else...

How can I add this to the /etc/default/grub file so that I don't have to manually add it to the grub.cfg every time Ubuntu updates?  Currently it appears as if each time Ubuntu updates it regenerates the /boot/grub/grub.cfg file from the /etc/default/grub file and it'd be helpful if these four lines could be included as well.

Do not edit the /boot/grub/grub.cfg file. Edit the /etc/grub.d/10_linux file:

Add your commands to the

  cat << EOF
    insmod gzio
EOF

section, so it should read:

  cat << EOF
    insmod gzio
    outb 0x728 1
    outb 0x710 2
    outb 0x740 2
    outb 0x750 0
EOF

This file is sourced every time update-grub is run, and it is rarely overwritten by updates. (Or at least it will ask when you update whether you want to update this file or keep your modified version.)

To be honest, easiest way would be to backup the 2 files and each time Ubuntu updates, you run a script as root ofc:

#!/bin/sh
rm /boot/grub/grub && /boot/grub/grub.cfg
cp /directory/grub /boot/grub/
cp /directory/grub.cfg /boot/grub/

One thing, change /directory/ to your directory to the files :)


Installing java for 32 bit on a 64bit OS on terminal I am using Ubuntu 14.04 Trusty Tahr 64 bit and I want to install Java 32bit.

I have removed the previous JRE which was 64 bit, now I need help how can I do this on the command line.

I was using the 64 bit version but it could not detect any audio devices when I had to attend classes online on CISCO Web-ex.

I read that I should use a 32bit JRE and a 32 bit browser. That will fix the issue.

Your problem has solution here.

install java

Hope this 'll help you.