"show-all-if-amset" spam in terminal when pressing "b" key once

The input you type for example in a terminal is evaluated by a tool called Readline. Readline has a few dozens variables that can be set to customize its behaviour. One of those variables is show-all-if-ambiguous. The syntax to change the value of show-all-if-ambiguous or another Readline variable would be

set show-all-if-ambiguous on

or

set show-all-if-ambiguous off

respectively. Those settings are meant to go into a config file called .inputrc (note the dot at the start) in your user's home directory.

It looks like a Readline setting was put somewhere where it doesn't belong, and it throws a wrench into things. Maybe you put it somewhere yourself, or a program / tool / script / ... you're using is buggy or not correctly installed.

If you can get a terminal to behave enough to do it, a search for "set show-all-if-ambiguous" over your home directory might get you on the track of the "culprit":

grep -rIl 'set show-all-if-ambiguous' /home/yourusername

You need to replace "yourusername" with your user name, obviously ;)


Ubuntu installation failed, and now can't find hard-drive. What happened, and is it fixable?

Based on the above, I strongly suspect that my hard drive simply failed, and the fact that it happened the day after I installed Ubuntu was a coincidence. It is a new laptop, and factory burn-in is sometimes necessary because bathtub curves mean lots of failures happen early. So, the fact that I was more likely to play with a new PC upped the odds of such an apparently improbable coincidence.

I called Asus, and they replaced the hard drive under warranty. When it came back, the receipt simply said "Problem: HDD Bad Track". I've since reinstalled Ubuntu, and have shut down and restarted several times without issue. Grub has loaded each time, and let me boot into both Ubuntu and Windows 10 successfully.

The only major thing I did differently during installations was turn off Fast Startup in Windows. (I also checked both the "download updates while installing" and the "install third party software" check boxes, and only tried the "Install along side Windows" installation option, instead of first tinkering the "something else" option. (I didn't want to worry about whether I was doing the correct thing for EFI partitions, and whether I was overwriting the device selected for boot loader installation.) I didn't encrypt the home folder this time either, on the off chance that that had something to do with not being able to find the hard drive before.) But, I think that's my paranoia talking, and not a likely cause of the problem.


You've given insufficient information to diagnose the problem. However, you could try an alternative route.

Completely uninstall Libre Office.

Open a terminal and run

snap install libreoffice
Then try again.
Ubuntu includes the facility to use snaps, which are self-contained and therefore more resistant to this type of problem.
On an older machine, a snap takes a little longer to open (several seconds in my experience), but runs fine once it has started.


Is it possible to fork snap client to disable mandatory automatic updates?

No. You are using an IoT system and that always updates itself.
The basic idea is ... if you don't like IoT don't use IoT. Snaps are not mandatory and other methods of installing will also be available.

Mind that your problem is solvable by blocking updates.

sudo iptables -A OUTPUT -d api.snapcraft.io -j DROP

will block updates (create some kind of daemon to keep this in active) and ...

sudo iptables -D OUTPUT -d api.snapcraft.io -j DROP
snap refresh

can be used to manually update so I do not really understand why you would need to fork snap.


CTRL + Shift + N will open a new terminal window if you are already working in the terminal, alternatively you can just select "Open Terminal" form the file menu as well.

And like @Alex said you can open a new tab by pressing CTRL + Shift + T.


Histories and logs are stored locally, which is why you can only see your local exchanges. What you want would require a server-based (or at least shared) history, which Empathy cannot provide since it is not installed on all your devices (you probably use various clients). By the way, I don't think it offers synchronisation, even if installed everywhere, since it has no proper account management (it only connects you to other services on which YOU have an account).

In order to have a shared and synchronised history system, you need the server to handle the storage, and well... it does not. (just kidding! Facebook has everything stored, they just wont tell.)


How do I sync my system clock via the internet?

Assuming that you are using regular Ubuntu, click on the clock in the top right.

Choose "Time & Date settings".

Make sure your time zone is correct on the map. Click your location if it is wrong.

At the bottom of the window, it says "Set the time:". There should be an option for "Automatically from the internet". Click it and close the window.

I hope that helps.


Does re-installing with apt-get (ubuntu-desktop) delete my data or files?

Short version: the command is safe, yes. The command is not in itself a cause for a backup. And no it does not touch your personal files.
All apt-get does is to re-install that package with it's dependencies. Without checking, I suspect that is just a meta-package to ensure that all the useful tools you need should be installed.
In general, as long as you don't add any PPAs or similar, doing an apt-get command should never affect your personal files. If you do things like purge, it can affect global configurations (e.g. apache configurations), but for most every-day users that is not a problem, and if you're unsure you can just use remove instead of purge.


Ideally, DNS over TLS (DoT) should be implemented on the gateway (edge router) of the network, for a home or small office network, it should be implemented on the Internet Gateway. This approach has low management / ops overhead as it is transparent to the clients (configuration can be pushed to clients via DHCP, or manually set).

For example, at home I use AsusWRT-Merlin powered router to do DNS privacy (DoT).

If DoT is only required for a single host, e.g, Linux Server or workstation, use `systemd-resolved is the easiest (OS level).


Thanks to Gustavo to help me fix it at
https://forum.snapcraft.io/t/snap-not-working-in-terminal-on-ubuntu-17-10/2593/7

To get snap working properly you have to past this in the terminal prior to using snap commands:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

Guess they will fix it soon :-).


How can I change the frequency of the Lubuntu Update Notifier (Lubuntu 20.04)?

Lubuntu Update Notifier

https://launchpad.net/ubuntu/+source/lubuntu-update-notifier
https://github.com/lubuntu-team/lubuntu-update-notifier (upstream)
https://manual.lubuntu.me/stable/4/4.4/Update-Notifier.html (manual)

The timer is version 0.1 used in focal/20.04 was 1 hour.
It was changed (24 hours) in version 0.2 found in groovy/20.10

https://launchpad.net/ubuntu/+source/lubuntu-update-notifier/+changelog

using exactly what you describe, as can be seen in

https://launchpadlibrarian.net/480827201/lubuntu-update-notifier_0.1_0.2.diff.gz

FYI: The current version is 0.3 (used in hirsute), you could file a bug report (request an easier, or more friendly way to change value) if you wish another way, but I suspect you've already found the way.
Better choices no doubt exist, but volunteer developer time is limited.  The alternative would also be to suggest/code a fix yourself via the provided github link. You sound more than capable :)


Undefined References When Installing Backyard Brains' "Spike Recorder"

Open the Makefile in a text editor and add the bolded elements below:

OBJECTS = \
    src/engine/AudioInputConfig.o \
    src/engine/RecordingManager.o \
    src/engine/AnalysisManager.o \
    src/engine/FileRecorder.o \
    src/engine/Player.o \
    src/engine/ArduinoSerial.o \
    src/engine/SpikeSorter.o \
    src/engine/SpikeAnalysis.o \
    src/engine/BASSErrors.o \
    src/engine/FileReadUtil.o \
    src/engine/FFTBackend.o \
    src/engine/HIDUsbManager.o \
    src/engine/EkgBackend.o \
    src/engine/FilterBase.o \
    src/engine/HighPassFilter.o \
    src/engine/LowPassFilter.o \
    src/engine/NotchFilter.o \
    src/widgets/LayoutItem.o \
    src/widgets/BoxLayout.o \
    src/widgets/Widget.o \
    src/widgets/Painter.o \
    src/widgets/PushButton.o \
    src/widgets/DropDownList.o \
    src/widgets/ScrollBar.o \
    src/widgets/Application.o \
    src/widgets/BitmapFontGL.o \
    src/widgets/TextureGL.o \
    src/widgets/LoadTexture.o \
    src/widgets/Label.o \
    src/widgets/ErrorBox.o \
    src/widgets/TextInput.o \
    src/widgets/RangeSelector.o \
    src/widgets/SwitchLayout.o \
    src/widgets/ToolTip.o \
    src/widgets/Plot.o \
    src/widgets/TabBar.o \
    src/widgets/HorizontalColorPicker.o \
    src/widgets/HorizontalNumberPicker.o \
    src/widgets/TouchDropDownList.o \
    src/DropDownList.o \
    src/Log.o \
    src/Game.o \
    src/main.o \
    src/MainView.o \
    src/AudioView.o \
    src/ConfigView.o \
    src/AnalysisView.o \
    src/AnalysisAudioView.o \
    src/AnalysisTrainList.o \
    src/AnalysisPlots.o \
    src/CalibrationWindow.o \
    src/RecordingBar.o \
    src/ColorDropDownList.o \
    src/FFTView.o \
    src/ThresholdPanel.o


Bower is a snap package in Ubuntu 18.04. Bower is a package manager for the web. Bower can be installed/uninstalled from the Ubuntu Software app or from the terminal with sudo snap install bower --classic.

Ember is a Node.js package in Ubuntu 18.04 that can be installed by npm install -g ember-cli. This is probably the correct Ember package for you to install. To verify that your installation was successful, run ember -v . Adding Ember to your application with Bower is easy; simply run bower install ember --save . For Ember Data, run bower install ember-data --save .

The ember apt package in Ubuntu has nothing to do with Bower or Node.js, so it's probably useless to you and can be safely uninstalled with sudo apt remove ember .


How do I get a Bluetooth speaker to auto-connect at login?

Work Around

Note:
Below Procedure Tested with my JBL Xtreme
OS: Ubuntu 18.04

at your present Situation that is you have already paired your BT device and while booting your BT device is On,

after login try this..

Open Terminal and run bluetoothctl
The Output will be similar to this

Output:

pratap@i7-4770:~$ bluetoothctl
[NEW] Controller xx:xx:xx:xx:xx:xx i7-4770 [default]
[NEW] Device aa:bb:cc:dd:ee:ff JBL Xtreme
[NEW] Device xx:xx:xx:xx:xx:xx HUAWEI P smart
Agent registered
[bluetooth]#

In above case "JBL Xtreme" Bluetooth Device is Paired but not yet connected.. So to connect to this device

run connect aa:bb:cc:dd:ee:ff at the prompt [bluetooth]#

Example:

[bluetooth]# connect aa:bb:cc:dd:ee:ff
Attempting to connect to aa:bb:cc:dd:ee:ff
[CHG] Device aa:bb:cc:dd:ee:ff Connected: yes
Connection successful
[CHG] Device aa:bb:cc:dd:ee:ff ServicesResolved: yes
[JBL Xtreme]#

This Means if you can run the command bluetoothctl and then at the [bluetooth]# prompt if you can input connect aa:bb:cc:dd:ee:ff The Bluetooth Device will connect.

So this can be done with a single command in terminal like this, after your first login open Terminal and run this command.

echo "connect aa:bb:cc:dd:ee:ff" | bluetoothctl

Example:

pratap@i7-4770:~$ echo "connect aa:bb:cc:dd:ee:ff" | bluetoothctl
[NEW] Controller xx:xx:xx:xx:xx:xx i7-4770 [default]
[NEW] Device aa:bb:cc:dd:ee:ff JBL Xtreme
[NEW] Device xx:xx:xx:xx:xx:xx HUAWEI P smart
Agent registered
[bluetooth]# connect aa:bb:cc:dd:ee:ff
Attempting to connect to aa:bb:cc:dd:ee:ff
Agent unregistered
[DEL] Controller xx:xx:xx:xx:xx:xx i7-4770 [default]
pratap@i7-4770:~$

so the command echo "connect aa:bb:cc:dd:ee:ff" | bluetoothctl is working..

This means if we can run this command at login without human interaction.. the Bluetooth Device which is Paired and already Turned on at the time of Boot will connect in the above manual way..

mkdir ~/bin (Create this directory if you dont have already.. Otherwise Ignore this step)
touch ~/bin/btautoconnect.sh
gedit ~/bin/btautoconnect.sh

Paste the Below Content:

#!/bin/bash

bluetoothctl
sleep 10
echo "connect aa:bb:cc:dd:ee:ff" | bluetoothctl
sleep 12
echo "connect aa:bb:cc:dd:ee:ff" | bluetoothctl
exit

Save & Close the File.
chmod +x ~/bin/btautoconnect.sh

create a .desktop file named btautoconnect.desktop in ~/.config/autostart/

touch ~/.config/autostart/btautoconnect.desktop

Open the fiel with gedit and copy paste the content below this command

gedit ~/.config/autostart/btautoconnect.desktop

Content:

[Desktop Entry]
Type=Application
Exec=/bin/bash /home/pratap/bin/btautoconnect.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=BTAutoConnect
X-GNOME-Autostart-Delay=5
Comment=Starts Bluetooth speaker

Reboot to see the BT Device Connected after login in 10 to 20seconds.. without any Human Interaction..

Credits: https://ubuntuforums.org/showthread.php?t=2365083


To recover data from a carved image of a damaged drive we usually simply load this image to our recovery software.

For Testdisk/Photorec  we simply issue the following command

testdisk image.dd  # to recover partitions
photorec image.dd  # to recover single files

Please consult the very nice tutorials from CG Security on further options and steps to take:

Testdisk
Photorec

Note that you will not be able to recover filenames, permissions and directories from running PhotoRec. It will just give you random numbered files, but with an appropriate extension.


Slow WiFi on Ubntu 15.04 with Realtek RTL8192EE

You can try to install a new driver for Realtek wireless adapters.

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtlwifi-new-dkms linux-firmware


How do I fix this "E: Type '*' is not known on line * in source list ..." update error?

The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).

First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type

sudo nano /etc/apt/sources.list.d/some-ppa.list

and press Enter. After entering your password, you should now see the file opened in the text editor nano.
Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.
This line should be incomplete and start with the unknown type the update process is complaining about (here ain). Just delete the whole line, and save/close the file with Ctrl+X.
That's it. You should now be able to successfully run the update process!

If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:

sudo rm /etc/apt/sources.list.d/some-ppa.list


How to add skype to live usb (before creating the usb)?

Actually, I missed the point of your question. You want Skype installed on the USB from the get-go. My other answer pertains to installing Skype after Ubuntu installation to a hard drive.

Really, the only way to go about doing what you asked is to either remaster the filesystem.squashfs or install it into casper-rw. But, either will require being in a Linux system (even the LiveCD, but will require several gigs of RAM to work with). You might be able to do it in Cygwin, but it will require knowledge of how to acquire and install Ubuntu source code.

Creating a casper-rw is the same as intalling it after booting the Live USB with persistance, but that's not what you want.

If you're looking to have it installed in the main filesystem, here's what you'll need to do:

sudo unsquashfs /cdrom/casper/filesystem.squashfs
sudo mount --bind /dev squashfs-root
sudo mount -t proc none squashfs-root/proc
sudo mount -t sysfs none squashfs-root/sys
sudo mount -t devpts none squashfs-root/dev/pts
sudo cp /etc/resolv.conf squashfs-root/etc
sudo chroot squashfs-root
# export HOME=/root
# export LC_ALL=C
# dbus-uuidgen > /var/lib/dbus/machine-id
# dkpg-divert --local --rename --add /sbin/initctl
# ln -s /bin/true /sbin/initctl
# wget http://download.skype.com/linux/skype-ubuntu_2.2.0.35-1_i386.deb
# dpkg -i skype-ubuntu_2.2.0.35-1_i386.deb
# rm skype-ubuntu_2.2.0.35-1_i386.deb
or
# wget http://download.skype.com/linux/skype-ubuntu_2.2.0.35-1_amd64.deb
# dpkg -i skype-ubuntu_2.2.0.35-1_amd64.deb
# rm skype-ubuntu_2.2.0.35-1_i386.deb
# rm /etc/resolv.conf
# rm /var/lib/dbus/machine-id
# rm /sbin/initctl
# dpkg-divert --rename --remove /sbin/initctl
# exit
sudo umount squashfs-root/dev/pts
sudo umount squashfs-root/dev
sudo umount squashfs-root/proc
sudo umount squashfs-root/sys
sudo mksquashfs squashfs-root /cdrom/caser/filesystem.squashfs

All the above are if you're running from the LiveUSB, the only difference from Cygwin is the paths to your USB (referred to as /cdrom from the LiveUSB). Also, you'll have to compile squashfs-tools from inside cygwin. The source can be downloaded from packages.ubuntu.com/oneiric/squashfs-tools.

All-in-all, as you can see it's much easier to just install it once running the LiveUSB (if you stalled with a persistence file, you'll only have to install it once and you're set). If you want help on how to make a persistence file, I can show you that as well.


My hardware needs a module to be blacklisted to work, how can I get this fix shipped?

If you want it to go anywhere, don't just file a bug. Of course you should file a bug on Launchpad but that's really just the start of the process of something inherently upstream like this.

Find out what it does

Look at the code find out what it's supposed to do. If you don't need it, why is it there? Is something else doing its job now? If it's something that's still in demand, why isn't it working for you?

You'll quite often see hardware-specific software written for edge cases like a single range of laptops (eg there are dozens of various Thinkpad hardware drivers).

According to its readme, the driver covers wireless, LEDs, bluetooth, 3g and the backlight. To me, it sounds like something you (or others) might want so having it dumped or blacklisted by default might not be desirable.
Find out how it got installed on your computer

Where did it come from? Is it pulled into the kernel? Is it an Ubuntu pull? This will ultimately decide where you need to make your complaint.

With kernel-level issues, it really helps to test the latest stable vanilla kernel. You can grab a copy from the mainline repository although you'll probably find there are GCC version mismatches with certain binary-only drivers (I have, with nvidia) so it's not something you'll want to run on all the time IMO.

If the problem persists with a vanilla kernel, add a bug upstream and link it to the Launchpad bug and track it backwards too. A nice double-linked bug will help everybody stay on the same page.

In this case, it sounds like it's an in-tree kernel driver (ie its source is pulled into the kernel repository and built in).
Find the person or people responsible for it

It's not reasonable to just to dump a bug on Launchpad and hope it finds the right person. I would say only a small portion of developers track their bugs through it so you need to find the maintainers of the software and get in touch.

It might feel rude to start cold-emailing people but the software is their baby. If it's not working, I think they'd like to know. Nine times in ten, they'll help you identify the problem too.

If it's still maintained, get debugging instructions. Check to make sure your hardware is compatible.

If it's not maintained, and you can confirm that with the old maintainer, file a bug in the kernel alerting people that there's a portion of code rotting and that it's causing you issues.
Suggest action to the right people

When you know what the problem is, don't keep it to yourself. Make sure you take action on your bugs.

If it's something that can be fixed in the driver, chase people in the kernel up to get the new version pulled into the development release. Ask about having it backported to 2.6.35 for existing Ubuntu users. Talk to the Kernel team about pulling in the changes to the Maverick kernel (though you might not have any luck there).

If it's rotting, push the core kernel developers to dump it from their repo. Ask the Ubuntu kernel team developers to remove it from their repo. At the least, ask for it to be blacklisted (how some modules have been forcibly been removed by Ubuntu in the past).

If you get good turnaround on fixing/destroying the driver, it should be possible to get its fix into the final Natty kernel (which is still at -next stage in the proper kernel repo).

The point I'm trying to get across is when you do your own triage and talk to the right people, things get so much more attention and have such a higher chance of a good end result.

And by no means stop if you see another person with the same problem. Subscribe to it, comment on their bug, ask what they've found, ask what they've done about it... And then carry on. Don't rely on them to get your problem solved.

This is how open source is supposed to work. Collaboration through good, open communication. Communicate your problem well, help where you can and you stand a good chance of getting better quality software.


One screen on two displayed and wrong resolution

The problem was indeed the nvidia drivers I've installed before. This is how to remove them: How can I uninstall a nvidia driver completely ?


Inconsistent ability to resolve DNS on Ubuntu 12.10 fresh install

This is probably the known bug #1003842 (https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1003842).

To work around this bug, edit /etc/NetworkManager/NetworkManager.conf and comment out the line dns=dnsmasq, then restart network-manager.


CRT as 2nd monitor goes screwy after start up?

Check your display settings.  You may need to tell Xorg (It manages displays) what refresh rate your CRT needs.

Try different options for your second monitor, notably the refresh rate.  CRTs, if I recall correctly, don't like the same rate as LCDs.


if your network icon, is not on the up right corner;
you can go to the up right corner of your desktop page and right click, then in then choose:

system setting> network> wireless

and you can find the name of your wifi connection. then click on it and write your password.

You are connected.
Done!


Here's a solution from a blog post to fix the key error:

Open the terminal and execute these commands:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82EB5823F4FE239D

These commands are requesting the missing GPG key from the ubuntu keyserver, which I believe should be sufficient to resolve your problem, so now you can:

$ sudo apt-get update


How to launch application not from console in Ubuntu Touch

The way we've been doing this with the Core Apps is to package the C++ plugin separately, and make that package a dependency of your app's package.  Then you don't need the -I.  We also use qmlscene /path/to/app.qml directly in the .desktop file's Exec line.


how to resolve dependencies building caffe on ubuntu 16.04

It seems an absolute package that why it is not listed in the search through packages.ubuntu.com and can get it from:

http://archive.ubuntu.com/ubuntu/pool/multiverse/n/nvidia-cuda-toolkit/

In other cases not one, you may look for old releases repository too:

http://old-releases.ubuntu.com/ubuntu/pool/universe/n/nvidia-cuda-toolkit/
Extract them and copy needed shared object (libraries) to /usr/local/lib/

You can do the same for boost libraries. These libraries are versioned so you can put many in same system. The only limit for easy install is the packaging, they have put them under same name.

If you think it is required to have multiple version in the same system and it is widely applicable, file a bug report for it.


Samba file server won't let me login as root only as active-directory user

Resolve the host resolution
You're having problems with your host server resolution.  This is configurable in your /etc/hosts.
You can fix this by:
Reboot your computer.  At the grub prompt select Advance Options for Ubuntu and press ENTER.  Go into Recovery Mode.  (You may have to hit esc to disable the ping screen.) Continue with:

Drop to root shell prompt
ENTER for maintenance.
Remount the root system with:

# sudo mount -o remount,rw /
Now edit your /etc/hosts ensure you have the following resolved to the ip 127.0.0.1.

127.0.0.1    localhost.localdomain localhost
127.0.1.1    ubuntu-fileserver

Resolve the sudo permission
While in the recover mode of the first section run this:
$ nano /etc/group

Look for the sudo group:
Change from:
sudo:x:27:apollo
Change to:
sudo:x:27:apollo,yourID

Add your using name to the contents of the file.  The userID's needs to be separated by a comma to have more than one userID included.


Can I change the display driver setting from command line, or something similar?

Switching from nVidia graphics to Intel Graphics is a common solution.

At the login screen use Ctrl+Alt+F1 to bring up console. Now Login with your user ID and password and then use:

sudo service lightdm stop
sudo prime-switch intel
sudo service lightdm start

Intel driver should now be loaded. Press Ctrl+Alt+F7 to bring up regular login screen.


Ubuntu keeps crashing/freezing, please help!

This may be due to the NVIDIA GPU overheating, the GPU slows itself down when overheating and may therefore give you the above symptoms. This can be caused by a cooling problem on your computer. I had a similar issue on a Dell XPS M1530 laptop and had to replace the motherboard, the laptop is now working well. I wrote up some instructions, including my research on the NVIDIA GPU: Dell XPS M1530 Motherboard Replacement. Hope that helps.


The command line tools for pulseaudio allow adjusting the volume of a defined sink:

pactl set-sink-volume <name|index> <volume>

To find the sinks in use for their <name> or <index> (any of both will work), and to display the present volume we can issue:

pactl list sinks

The <volume> can take any value from 0 % (or 0) to 100% (or 65536).

Even higher values are accepted for volumes above the maximum but this may lead to heavy distortions from clipping.

Any of these commands can be attached as is to a keyboard shortcut but in case we need a step-wise increase/decrease volume key combination we'd have to use the following syntax:

pactl -- set-sink-volume <name|index> <+|-fraction>

e.g.

pactl -- set-sink-volume 0 +10% ## increases volume of sink 0 by 10%
pactl -- set-sink-volume 0 -10% ## decreases volume of sink 0 by 10%

Note that by increasing the volume this way nothing stops us to increase above 100%. Decreasing will stop at 0.


Is there a way to whitlist ip's and block everything else

Allow by specific port and IP address
sudo ufw allow from <target> to <destination> port <port number>

I got this from the UFW help page.
You also need to block connections first and then allow a specific one.


ssh public key problem: /usr/bin/ssh-copy-id: ERROR: No identities found

ssh-copy-id expects the user's public key file to be located in ~/.ssh - specifically:

 The default_ID_file is the most recent file that matches: ~/.ssh/id*.pub,
 (excluding those that match ~/.ssh/*-cert.pub) so if you create a key
 that is not the one you want ssh-copy-id to use, just use touch(1) on
 your preferred key's .pub file to reinstate it as the most recent.

Correspondingly, that's where ssh-keygen writes generated keys by default - if you chose a non-default file location when you ran ssh-keygen, then you can specify that to ssh-copy-id using the -i option:

 -i identity_file
         Use only the key(s) contained in identity_file (rather than look‐
         ing for identities via ssh-add(1) or in the default_ID_file).  If
         the filename does not end in .pub this is added.  If the filename
         is omitted, the default_ID_file is used.


Ubuntu 16.04 randomly crashes under high cpu load

You have possibly two different problems here.

First:

It appears that you're out of disk space. Some of the programs that you're running may generate huge data files. Open the Disk Usage Analyzer from the Unity dashboard and try to figure out where your disk space has gone.

You may need to re-partition your hard drive to obtain more working space. If you edit your question to include a current-window-only screenshot of gparted, we can explore that if we need to.

Second:

We can't tell if overheating is an issue for you, until we install tools to monitor this.

Open the terminal app from the Unity dash and type the following commands, one at a time:

sudo apt-get update
sudo apt-get install lm-sensors
sudo apt-get install sensord
sudo apt-get install sensors-applet
sudo apt-get install indicator-sensors

Then calibrate the hardware sensors by typing:

man sensors-detect # to read the man pages
sudo sensors-detect
sensors -f # to see it in action

Then start Hardware Sensors Indicator from the Unity dashboard, and set the preferences to auto-start at login, and to default to Fahrenheit. Monitor this indicator in your top panel and watch that the temperature stays around 120-150 degrees. More and you've possibly got a problem.


Why is there not much space for my Ubuntu?

I am pretty sure your Ubuntu is installed using Wubi - there are no Linux partitions on the drive. And there is a strange root-level folder /host, which is absent when Ubuntu is installed on a separate partition.

All your Linux files take about 11Gb and they all live in some file on your Windows partition (I see root.disk in the left pane - is that it?)

My understanding is that Wubi disk/file does not grow dynamically. See this for some advice on how to migrate your /home directory to a separate "disk" (or into a separate file) to get some additional space.


ZFS: How does it work? Mirroring on Raid0

ZFS does attempt to store copies on different drives according to https://blogs.oracle.com/relling/entry/zfs_copies_and_data_protection.  However, copies, from what I understand it, are to protect from data corruption in the filesystem, but are not guaranteed to be stored on different drives.  I also don't know if ZFSonLinux has included the same exact copies functionality.  RAID0, or striping, is dangerous but I'm sure you already knew that.

Your best bet is to create two different pools.  Create two partitions on each disk, make a striped zpool from one and a mirrored zpool on the other.


For the General Case of an Ubuntu Partition Accidentally Deleted
If you tried techniques to try to recreate the partition, it's likely you've made it even harder to recover. On the other hand, if you've tried proper techniques for undeleting the partition or trying to recover it, that may be very helpful. Either way, it's important you edit your question to include as many details as possible about what you've done since you deleted the partition.
If you don't have documents or other important files in the Ubuntu system (or you do, but they have at least one good backup somewhere else), then I strongly recommend starting over, installing Ubuntu again. It's faster, easier, and less stressful than attempting data recovery.
If you're going to attempt to recover a lost Ubuntu partition, first, read this Ubuntu community wiki page, it's excellent documentation.
As that says, if you mess up your partition table (including by removing partitions), but you don't write data to the inside of where your partitions used to be, your data are intact. This might be one off those nice scenarios. So try these techniques first.
Depending on what you did after you deleted the partition, this might be very simple. I recommend trying GNU Parted's rescue functionality. But if you've decided to attempt to recover data, you should at least run TestDisk and Gpart, too.
(If you need clarification or are able to give specific information about how the partitions were destroyed or about the other things you've tried, that might make it possible for us to help further.
Good luck!
For the no such partition grub rescue> Scenario
If you deleted a partition and then saw this, that's because you deleted the partition.
But error this does not necessarily mean you deleted a partition! If you don't specifically remember deleting the partition in Windows, then you should:

Check if the partition is still there. You can run sudo fdisk -l or sudo parted -l (I usually run both).

If it is not, continue attempting to rescue it. (Or give up. But it sounds like you feel comfortable attempting data recovery--having already done so--and you're willing to put more time into it, so just as long as you know it might not succeed, go for it.)

If it is still there, try reinstalling GRUB to the master boot record  (in this situation, I'd suggest a chroot-based method like this one, but really any method here or here that you haven't unsuccessfully tried yet, should be attempted.
If that doesn't work, try these methods for totally removing GRUB and then putting it back.
If that doesn't work, try using a Windows install DVD/USB, Windows rescue disk (which you can make yourself), or Windows trial install DVD/USB (usually freely downloadable from Microsoft's website) to reinstall the Windows boot loader. Boot into Windows and see what it says about the partition table (but don't modify anything in what might be the Ubuntu partition or where it used to be). Since you have Windows 8 and probably a UEFI system, try going through this (again?) and make sure all the settings are correct.

If you are not sure if it is there, or you don't understand what you're seeing (for instance, in the output of sudo fdisk -l or sudo parted -l), or you want to be extra cautious, ask for help! You can edit your question to add the output of those commands.
(People with similar problems where this question doesn't solve it can post a new question, including the output of those commands and any other information that distinguishes it from this question, as well as what makes it similar.)


How can I fix my wna3100 Netgear wireless card always being stuck on "configuring device"?

Your instructions will be slightly different for the wna3100, but very similar. This is for the WDNA3100. You may need to change the wireless adapter name. Also, given that this is a card, you could load it in a windows machine, or just search for the driver file online.

Install Windows Wireless Drivers (ndisgtk)  from the Ubuntu Software Center.
Then, if you have a copy of Windows, plug your Wireless USB adapter in there and install. Find the driver called bcmwlhigh5 (probably in C:\program files\netgear\wnda3100v2\driver\winxp2000\).
Copy that driver over to Ubuntu, load up the "Windows Wireless Drivers" program, and load in the bcmwlhigh5 driver.


boot into Linux

open up a terminal and run this command to update the boot loader.

sudo update-grub

This command will scan for installed operating systems and add them to the boot menu or update them. I think its just what you need to do.


How to fix incorrect arrow issues in MetaTrader 4 running through Wine?

Follow the steps to fix the problem:

Install Wine if it's not already installed (you obviously have it installed if you are running MetaTrader):

sudo apt-get install wine

Once Wine is installed you need to configure it. This is pretty easy. As a normal user (Not Root!) run winecfg from a terminal and it should set itself up. If you want to do any more configuration or tweaking, have a look around the tabs, but for now I suggest keeping it as default.
From a valid windows installation, copy over all the fonts into your wine installation. It also assumes you told Ubuntu to mount your windows partition in /windows:

cp /windows/WINDOWS/Fonts/* ~/.wine/drive_c/windows/fonts/

Copy two needed DLL files from your valid windows installation:

cp /windows/WINDOWS/system32/mfc4* ~/.wine/drive_c/windows/system32/

Download mt4setup.exe from your favorite broker.
Install MT4.

Source: PDF files provided at Ubuntu Forums Thread Post


The Dell D630 should be able to boot from a USB stick, if you prepared the stick properly.

Possible issues:

USB drive draws too much power (some 8GB+ drives do) - solution: put a powered USB hub in between.
Image file is not put on USB Stick properly - solution: use a program in Windows to put image file (.iso) onto drive, for instance using pendrivelinux.

If these are not your issues, you may need to use a DVD (not a CD, won't fit) to install Ubuntu. I would suggest using the LTS (14.04) with that laptop, which you can download from here - you can download the file and use a program (e.g. CDBurnerXP, etc) to burn to DVD (instructions are available here).

Also, after installing you might need to spend some time trying to fix up the networking part of the laptop (I have a D640, took some time to get the Broadcom chip to work) but it is possible to have Ubuntu working on it.

Enjoy!


I'm not sure if this is what you need, but here it goes anyways: XBMC

This media player does not require manual codec downloads (sort of like VLC), and it can play straight from rar files as well, has many add-ons for online TV / Radio and so on.
It has many features to fine-tune playback: http://wiki.xbmc.org/index.php?title=Settings/Videos

Give it a try and see if it works for you. Make sure you install it from the official PPA sources.

   sudo apt-get install python-software-properties pkg-config
   sudo apt-get install software-properties-common
   sudo add-apt-repository ppa:team-xbmc/ppa
   sudo apt-get update
   sudo apt-get install xbmc


Some fonts and symboles are missing while opening the Xlsx File on libre-Office and WPS Office ubuntu 18.04?

Need more info: Where did you get your microsoft fonts? If you dual boot and just linked to your Windows 10 fonts directory, it doesn't have everything that Win 7 did, and Win 7 didn't have every font that Microsoft office had. I'm not sure which versions are most complete, but on my openSUSE machine, LibreOffice and WPS Office are happy with my fonts from Win 7 + Office 2013. Formatting still needs to be touched up, though.


How to open a terminal and go to my home directory

If when you reboot it does not ask for your login, but instead it shows the install option, that probably means that you forgot to remove the CD, DVD or USB flash drive that you used to install Ubuntu with. That would also explain why you got the ubuntu@ubuntu when you opened the terminal since in the Ubuntu live CD/DVD/USB, ubuntu is the default username and it's also the name of the machine that you're working on.

After you have installed Ubuntu, the terminal opens by default to the /home/USERNAME directory where USERNAME is the username you use to login to Ubuntu. The shortcut for /home/USERNAME in the terminal is the ~ (tilde) character.


Is there a shortcut in Unity to hide/unhide the Launcher?

You can use the 'Windows' button on your keyboard to bring up the Unity Launcher.

If you keep the Windows button held down and look on the icons on your Launcher, you will see the keyboard shortcuts for launching these apps. (i.e. Win+1, Win+2, etc, Win+s, Win+f, Win+a).

Here are all the keyboard shortcuts:

What are Unity's keyboard and mouse shortcuts?


Ubuntu Gnome 3.0 Ctrl+Alt+Shift+R Screencast Recorder not working

I upgraded the gnome shell to v 3.8 and the recording is working as expected now.


According to the Owncloud server documentation (for the latest stable release 10.2), it is needed to enable the feature, by adding this line to the config.php file:

'enable_certificate_management' => true,

More details can be found here.


Try to follow this tutorial:
Install Java Media Framework in Ubuntu

If the problem persists, then try executing the following commands:

sudo apt-get install ia32-libs -y

If this prompts an error, replace the command with this:

sudo apt-get install lib32ncurses5 -y

Good luck!


First you can install it using apt-get, You should update your source list.

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

but if you want to install it manually, here what you should do;

Download then extract as you did already

move the extracted folder to /opt

sudo mv firefox* /opt/firefox38

If you already had a previous Firefox version installed in the /opt directory, remove it with the following command:

sudo mv /opt/firefox /opt/old_firefox

Set up symbolic links

sudo mv /usr/bin/firefox /usr/bin/firefox-old

sudo ln -s /opt/firefox38/firefox /usr/bin/firefox

if everything goes well then you can delete firefox-old in /usr/bin and old_firefox dolder in /opt


Web browser downloads only open target folders - cannot open files

Try removing the following files:

~/.local/share/applications/mimeapps.list  #You already did this
~/.local/share/applications/mimeinfo.cache
~/.local/share/mime                        #This whole folder needs to be deleted or moved

Removing these folders will remove any file assosiations with Wine, if you use it.

Also, if you want the Preferred Applications tool back, just install the capplets-data package.

If that doesn't work, there might be a .desktop file in ~/.local/share/applications preventing that menu item from showing. To remove it, run:

grep -r "Preferred Applications" ~/.local/share/applications 2>&1 | sed 's/:.*$//g' | xargs rm -vf

The command won't do anything if it can't find a file in ~/.local/share/applications that contains the text Preferred Applications.

Hope this helps :)


Where is fslint (duplicate file finder) for Ubuntu 20.04?

It is not presented in 20.04 LTS repositories because Python 2 deprecated stuff, but you can install it manually:
mkdir -p ~/Downloads/fslint
cd ~/Downloads/fslint
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/f/fslint/fslint_2.46-1_all.deb

sudo apt-get install ./*.deb

and enjoy using it by running fslint-gui executable.

For 20.10 the solution is a bit longer
mkdir -p ~/Downloads/fslint
cd ~/Downloads/fslint
wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/f/fslint/fslint_2.46-1_all.deb

sudo apt-get install ./*.deb

There's also unofficial Snap package created recently, which just packs latest fslint version available in Ubuntu 18.04.
sudo snap install fslint-unofficial

To work with files in external media use snap connect fslint-unofficial:removable-media.


11.10 or later

sudo apt-get install tomcat7

or the really easy way:


Creating Debian package for multiple version of Ubuntu

Is there a way I can compile by binary just on one version of Ubuntu and specify dependencies in a way that package works on all Ubuntu versions?

For debs, in general, no, you can't. Dependencies shipped in Ubuntu may break ABI between releases such that a particular dependency may have no common ABI in the versions shipped between two specific Ubuntu releases.

It is necessary to manage backports individually on a per-release basis if you want to maintain backports using debs.

Embedding dependencies is a way of working around this problem. See Snaps for details. You could also do that with debs in theory, but you'll probably find the tooling around snaps (snapcraft) makes it much easier to create. Snaps are safer for users to consume, too, because they run confined.


Installing ubuntu 16.04 on a usb flash drive using windows

This is normal. You're making an 'live' flash drive. It behaves like a cd/dvd. Changes aren't stored on the drive.
You need to create a drive with persistence. I use Unetbootin for that task: https://unetbootin.github.io/

Download the program, install it and launch it.
Choose a distribution from the list or choose the diskimage you've already downloaded.
Set 'space used to preserve files across reboots' to any other value than 0 MB.

Another option is to use 2 flash drives: first launch the live version of Ubuntu from a drive and start the installer. Install Ubuntu on the second disk, make sure the boot loader is also installed on the second flash drive. Turn off your computer when the install is completed. Remove the first drive and reboot your computer. All changes you make on the second drive are now saved. Make sure you use a fast flash drive with enough space.
By the way, you can also use a SD card (that's what I did a while ago to dual boot macOS and Ubuntu).


Ubuntu 12.04 Network Manager: unable to save manual setting to set up a static ip

Do not press the Add button after entering Gateway IP address. :)

Found out this the hard way:
You have to press Add the first time, to start entering the IP, but when finished - just press enter.

If you do press Add a second time, you make a new address entry and are not allowed by the GUI to save. Select the empty second line and click the Delete button in the GUI to remove it.

This is done to make it possible to enter more than one IP on the interface, but it definitivly was not obvious to me because of the minimalistic IP entry box you have to scroll in..


How to fetch the proxy configuration of the root and other users with GSettings cmd

That is similar to:

The target user's dbus session is needed for this command, so a
simple: su username -c "dconf load /" won't suffice. But
fortunately, there's a simple way to accomplish this: the dconf load
should be prefixed with dbus-launch, i.e.:
sudo su username2 -c "dbus-launch dconf load / < file"

The only problem after this is to kill 2 newly created processes:
dbus-daemon & dconf-service, but that's manageable (their parent
is the upstart process of the user invoking the sudo command).

From Anatoli's Comment in one of my answers.
Things may changed a bit:

Command translated to:
sudo su username2 -c "dbus-launch gsettings list-recursively org.gnome.system.proxy"

The newly created processes should be child of the new systemd init process. With same names dbus-daemon & dconf-service. Check using:
sudo ps -aux | grep ...


After waking up Ubuntu (Budgie) shows my user screen for a couple of seconds

This is an old bug. Unfortunately, you can't do anything about it except reporting it.


Upgrade won't allow second display to go to 1920x1080

So I've lived with this for a long time, but a week ago I picked up a kernel update that seems to have fixed everything. I've now got by dual HDMI displays working great out of the laptop dock.


I deleted the original answer and posted it on this question.  I'll flag the duplicate.

Ping an external server to determine if the Internet is available.

From the terminal, type: ping -c 4 8.8.8.8

If you get a ping reply, it means your internet is live. This shows that the issue is with DNS settings.

You can add a temporary DNS server like this: echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf

If you do not get a reply from the ping, then the issue is with your local network.


Cairo Dock has no options in the bar. To change anything just right-click on the dock itself and choose cairo and sub-menus will appear. Iam running Cairo too. Except for cairo dock i find that every other applications i find it has the View , Edit and so on options. Are you sure that other than Cairo application the other applications like Libre- Office are having this problem. Please be specific.


How do I enable account lockout using pam_tally?

Explanation Behind common-auth

If you're just looking for a quick fix, go below to How to Configure common-auth to Lock Out.

Hopefully this will help bring some sense into how /etc/pam.d/common-auth configures lockout.

If you take out all the comments in /etc/pam.d/common-auth, you are left with the following:

auth    [success=1 default=ignore]      pam_unix.so nullok_secure
auth    requisite                       pam_deny.so
auth    required                        pam_permit.so

Let's take a look at each line of this file and how it's used.

auth    [success=1 default=ignore]      pam_unix.so nullok_secure

Reads password input. If the password is correct, the next line of the file is skipped (the one with pam_deny.so). You can change how many lines are skipped by setting the value in success=1.

auth    requisite                       pam_deny.so

Immediately fail the login attempt. The word requisite here tells the authentication to quit immediately upon failure. The other lines use required instead, which waits until the end of the module to signal a failure.

auth    required                        pam_permit.so

Permits login attempt. This is done using pam_permit.so.

Once that is established, configuring the module to lock out the user can be better understood.

How to Configure common-auth to Lock Out

For Ubuntu:

Add the following line after pam_deny.so and before pam_permit.so:

auth    required    pam_tally2.so    onerr=fail deny=3 unlock_time=1800

Change the pam_deny.so line to the following:

auth    required                        pam_deny.so

The entire file would look like this:

auth    [success=1 default=ignore]      pam_unix.so nullok_secure
auth    required                        pam_deny.so
auth    required    pam_tally2.so    onerr=fail deny=3 unlock_time=1800
auth    required                        pam_permit.so

You can configure the following options to suit your needs:

deny=3 - The number of attempts allowed before you are locked out.
unlock_time=1800 - The number of seconds before you are allowed to attempt to log in again. (Additional note: if the system unlocks after a series of failures, and you fail to authenticate again, you do not have 2 more tries to authenticate. The system makes you wait out the unlock-time again.)

Most resources recommend that this line be added at the top of the file, emphasizing the importance of order; however, on Ubuntu desktop systems, this configuration can lock you out of the GUI login screen.

Why does this happen? It seems that when you select a user on Ubuntu's login screen, the PAM module immediately begins, and it waits at the pam_unix.so line (the password input line) before proceeding. If you place the pam_tally2.so line before this "stopping point", lockout immediately becomes active, and if you navigate away from the user by pressing the arrow keys, the module signals a failure to log in and pam_tally2 increments. Without even typing a password, you soon become stuck in a situation similar to the one below:

A typical Ubuntu login screen with an incorrectly configured common-auth file.

Placing the pam_tally2.so line at the bottom of the file fixes this problem. Proper order is maintained in this configuration; the first line jumps to pam_deny.so or pam_permit.so based on password validity, and by the time pam_tally2.so is reached, any incorrect password entries have already been indicated.

Even though pam_permit.so is reached regardless of the password entered, the module will always fail if pam_deny.so has been reached as well. This is because the pam_deny.so line contains required; it will allow the rest of the lines to run, but the module itself will fail in the end.

For more information on how PAM works, you can google "How PAM works" or just go here: http://www.tuxradar.com/content/how-pam-works

That should do it!


How to put a box around something in GIMP?

Select the area you would like to outline with the rectangle select tool, go to Edit > Stroke Selection. You will get a dialogue. Choosing Solid Line will create an outline using the currently selected foreground color. Choosing With a Paint Tool will give you more creativity.


The correct syntax would be:

sudo ufw delete allow 9000

If you make a rule by the following:

sudo ufw allow 9000

Then the rule is allow 9000. Now if you want to delete the rule:

sudo ufw delete rule

i.e.

sudo ufw delete allow 9000


How do I display the battery status icon in the taskbar?

Just enter your Power settings(type power in the dash) and select to always show the battery icon.

You can also select to show the time left:


This will help reduce spindowns and spinups when your laptop is running on battery. Open a terminal and type the following commands:

First, make a backup:

sudo cp /etc/hdparm.conf /etc/hdparmcopy

Then, type the following command to apply the needed changes:

echo '/dev/sda {
    apm = 254
    apm_battery = 254
}' | sudo tee -a /etc/hdparm.conf

Finally, reboot for the changes to take effect. You can test this out by unplugging your laptop and typing the following command:

sudo hdparm -B /dev/sda

the output should say:

/dev/sda:
 APM_level  = 254

Your IO tasks can get all backed up and jumbled and I've found that "noop" works best for me.

Noop sets your IO tasks to be done in the order of first thing first instead of prioritizing. To set your scheduler to noop open a terminal and type the following command:

echo 'noop' | sudo tee /sys/block/sda/queue/scheduler

To make this change persistent beyond a reboot, edit the file /etc/default/grub by opening a terminal and typing the following command:

sudo nano /etc/default/grub

Now, edit the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to say this instead:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=noop"

Press ctrl + o, press enter, and then ctrl + x to exit the file.

Finally, run the following command to update grub:

sudo update-grub

For temperature:

Install lm-sensors to keep an eye on laptop temperatures:

sudo apt-get install lm-sensors

After installation, open a terminal and type the following command:

sudo sensors-detect

Follow the instructions.

To view temps, type the following command in an open terminal:

watch sensors

see also: prevent-your-laptop-from-overheating

and: monitor-hardware-temperature-in-ubuntu


Problem with your Virtual machine, you have installed linux from live-cd. Just see boot settings in your VM app, select drive from which will be loaded your system.
Maybe it helps you.


How to remove permanently those error prompts while using openbox gnome?

The error above is probably related to whoopsie, the crash report daemon. You could disable it by editing /etc/default/whoopsie, and changing report_crashes=true to false. As for for updates, the best solution, IMHO, would be to install them, however, if that's not possible, disable the update checker and the update notifier.

What other errors do you get?


FileZilla slowly creeping up or down transfer rate, plus other weird behaviour

I will not attempt to solve all your issues, just share the bit I know.

At least in part it boils down to how FTP (File Transfer Protocol) works.
It has to re-negotiate the transfer for every single file (I assume back and forth comunication) before (and also, after?) the actual transfer takes place; which means, that when you have a lot of small files, a lot of the "infrastructure" gets bogged down with the additional negotiations, and only a part of the elapsed time is used for transferring the intended payload.
Large files speed things up, because they need to get negotiated only once, and subsequently all the resources can be dedicated to only the transfer itself.
When you are transferring "mixed content" (like an entire directory with files of various sizes within), I believe that the above introduced effect can contribute to a visibly fluctuating transfer rate.
So if you just tar your files (does not compress, just concatenates) into a single archive file before sending with FTP, already the transfer will definitely take place faster. If you use zip for this, obviously, thanks to the compression, you get the advantage of a reduced payload as well. If you manage to set up a helper script on the destination machine to help with extracting the files again after arrival, then you can benefit from less time spent on transfers, in practice.


Windows 8 installed Ubuntu 12.10 boots straight to Windows 8

New computers which come with Windows 8 use UEFI, a try to replace the old BIOS firmware. You can read about this on Ubuntu wiki, but I'll paste you some things you can try to do.

Create a LiveDVD or LiveUSB of Ubuntu-Secure-Remix 64bit or of Ubuntu (>=12.10) 64bit. The former is more convenient, as it already includes Boot-Repair, which is used in step 4.
Boot your PC using the LiveDVD or LiveUSB and choose "Try Ubuntu". Remark: if you get a Secure boot or signature error, disable SecureBoot as described here, then retry to boot the disk. You may also need to disable QuickBoot in the same menu.
Install Ubuntu from the Live CD/DVD or Live USB in the usual manner, then reboot the PC.
If the PC does not load Ubuntu (but instead loads Windows, for example, as in Bug #1050940), or if the Windows entry in the GRUB 2 menu does not boot Windows (see Bug #1024383), boot your PC using the Live CD/DVD or Live USB and choose "Try Ubuntu" once again. When the live session has loaded, run Boot-Repair (see link for details). When Boot-Repair loads, click on the "Recommended repair" button, and write on a paper the URL (paste.ubuntu.com/XXXXXX/) that will appear.
This should fix most boot problems. If this does not fix your boot problems, please follow this procedure. If still not good, please create a new thread in this forum, describing your problem and indicating the URL you wrote in the previous step.


Can I use Ubuntu One on the Raspberry Pi?

Stuart Langridge from the Ubuntu One team has a post up from 2012 entitled "Accessing Ubuntu One file storage via FTP from any OS" which contains YouTube videos and links to the U1FTP code that would let you do so from Raspbian or any other operating system on an RPi.  The discussion is available here: http://kryogenix.org/days/2012/09/11/accessing-ubuntu-one-file-storage-via-ftp-from-any-os


Where can I see a jujucharms deployment in my AWS console

When viewing your AWS console be sure you're viewing the same region that you've chosen to deploy to using JAAS as the AWS console doesn't provide an aggregate view.


Ubuntu fails to install grub on dell optiplex 9020

your pc not compatible with linux
http://www.dell.com/br/empresa/p/optiplex-9020-desktop/pd

try other distribution, samble:
OpenSuse

Suse compuny belongs the Microsoft, due to this great compatibility hardware exclusive windows Platform.

att


Upadating of packages after installation of new program

You need the command apt-get update or sudo apt-get update when you add, remove or change entries in the file /etc/apt/sources.list or in the folder /etc/apt/sources.list.d/.

from man apt-get:

update
    update is used to resynchronize the package index files from their sources.
    The indexes of available packages are fetched from the location(s) specified in
    /etc/apt/sources.list. For example, when using a Debian  archive, this command
    retrieves and scans the Packages.gz files, so that information about new and
    updated packages is available. An update should always be performed before an
    upgrade or dist-upgrade. Please be aware that the overall progress meter will
    be incorrect as the size of the package files cannot be known in advance.

And I quote @Tom

  Routinely run apt-get update and apt-get upgrade to get bugfixes and such though.


Remove the line

LC_MESSAGES=POSIX

from /etc/default/locale and reboot.


I can't install anything on my PC because of an error

I have encountered the same problem and I reinstalled Ubuntu and that seemed to work out just fine, maybe you should reinstall Ubuntu.


Where are 'comments' on files/folders under KDE stored?

KDE userbase - Nepomuk: http://userbase.kde.org/Nepomuk

  ...The information sidebar of Dolphin (View -> Panels -> Information,
  or press F11) presents information extracted by Strigi about the
  selected file, and also allows you to assign tags, ratings and
  comments to files. This information is then stored in Nepomuk...

Nepomuk data: ~/.kde/share/apps/nepomuk/...


Ubuntu audio mysteriously stopped working (12.04)

The problem may be associated with pulseaudio settings of your user profile. You can try this quick solution. Open a terminal and run rm -r ~/.pulse ~/.pulse-cookie. Then log out and log in.


Wireless Problem (broadcom) Please help!

The output of iwlist and lsmod you included show that your computer recognised and can use the wireless card, so it's not likely a driver issue.

Based on your routing table, it looks like your computer is set up to send all internet traffic through the ppp0 interface and not the wlan0 interface.  try unplugging/disabling any modems or VPNs that you have configured, then try connecting to wireless again.


ubuntu 14.04 unity desktop without panel and launcher

Answered in question  by OP:

  Update: NOW I GOT IT! Maybe for the fundi (Kiswahili for "specialist") it was no question but for me it was something to find out:
  CCSM was only possible to start under Gnome. But there was a conflict between some Gnome-features and Unity-plugin or openGl. Finally it was possible to resolve those conflicts step be step and now the launcher as well as the top panel are there.


Making a symlink for a bin file and renaming it to "readme" (w/o extension) gives it text file properties

File Naming in Linux

Excepts:
A relatively small number of file names on a system consist only of upper case characters, such as README, INSTALL, NEWS and AUTHORS. They are usually plain text files that come bundled with programs and are for documentation purposes.

There are files that are expected to be of a certain nature based on Linux File Naming Convention, these include names like README, AUTHOR, THANKS, INSTALL, CHANGELOG, NEWS e.t.c. I believe Ubuntu is enforcing those conventions and naming any file with those names will automatically give them certain properties following Linux Standards and conventions.
So its best to avoid naming files with those types of names. Please also look at man file to how that tool determines file types. You will find it a good read.
Source:
File Naming Conventions in Linux
README


Customized prompt does not hold when a child bash is ran

.bash_profile is sourced by login shells only. It has been sourced when you logged into the X-session, and the environment inherited as @Serg explains in detail. Somehow you have managed a configuration in which this environment is not overridden by .bashrc, perhaps setting your terminal to open a login shell by default. I can reproduce the behaviour you experienced by configuring my terminal like this:

this causes the shell to open as a login shell, but any child called will be a non-login shell, and source .bashrc, not .bash_profile unless, as @Serg suggests, the -l flag is used.

TL;DR
If you want the custom prompt to be sourced by interactive shells, put the code in your .bashrc


Ubuntu cannot boot from a RAID5 partition. You will need to plan around this, either through software solutions or with additional hardware. If your computer has available capacity, one option would be to use a small SSD and use that as the boot device. Ubuntu would be installed on that device. The RAID5 could then be dedicated for /home, /data, and /scratch as you would like.


Shortcuts are Disappearing from the main menu / toolbar of "Kile"

Try right clicking on the menu bar and un-locking it. Later you can choose in the same tab which toolbars appear under the option "Toolbars shown". If you miss a particular command you can also configure each toolbar in Settings--> Configure Toolbars.


How do I convert a scanned PDF into a PDF with text

gImageReader is a simple GTK+ front-end to tesseract-ocr.

sudo apt-get install gimagereader tesseract-ocr

sorry for the german text


You should convert your Windows disk (sdb) to a GPT format. Here, Windows is using an MBR disk, which as it is, needs to run in Legacy BIOS. Ubuntu is running in your M.2 drive (nvme0n1) in a GPT format in UEFI mode (L.308 suggests this). UEFI is like the modern equivalent of the old BIOS system and has replaced it, but you can still switch to Legacy BIOS, except Windows will not support a computer running in UEFI mode with an MBR disk, which is the case here.

To convert your green SSD drive to GPT format is easy enough in Ubuntu, using Gparted. Except it will wipe everything on that drive so you would need to re-install Windows. You'd lose any data files on that disk too. Alternatively there is some free software, by EaseUs Partition Master which claims it can convert without loss of any files. I haven't used it so I cannot confirm whether it works OK, but it would save a lot of time and trouble if it does.

There's also the issue of your Windows MSR partition residing on sda. Why it's not on your main Windows sdb disk, I don't know, but for the time being I'd leave it where it is, but you will probably need to convert sda also to make everything UEFI compatible across the board. Just make sure you back-up all data files residing on sda/sdb first before converting said disks to GPT.


google-chrome starts a new session when I click a link

I would try the last google chrome beta version there it works perfectly.

https://www.google.com/intl/eng/chrome/browser/beta.html

if you do in terminal:
    google-chrome (web-adress)
What is the output than?


This problem is not about virtual host configuration, because the site is loading a page.

Also, it's not a php problem, otherwise any of the server sites would not be running.

Verify the file wp-config.php for wordpress in site having connection problem.

You also can try a command line connection to database, using root authentication credentials:

$ mysql -u root -p

MySQL command line connection

MySQL connection successfully

If connection fails, a error message will be shown


Dual boot 19.10 not possible alongside Win 10 "RST Premium with Optane"?

i have a acer nitro 5 2020 and i have dual booted windows 10 and ubuntu 19.10 with intel RST premium with optane . so there is no problem with that i think you need to focus on SSD side of things because that could be the main issue. two different hard drives are also not an issue because i have dual booted on different hard drives in the past. So , your problem is SSD discoverability on linux.


How do I run Pinguy Builder 4.X on Xubuntu 16.04/xfce from terminal?

From the README found here

Q: How do I run this in the terminal without using the GUI?
A: sudo PinguyBuilder

Example: sudo PinguyBuilder dist

Related Note:
It's been reported that you can launch this using the GUI
with the command PinguyBuilder-gtk
 (Command string is case sensitive. Must use capital 'P' & 'B')


Shows tons of vlc application even after removing it

check in ~/.local/share/applications/ and delete all files that seem related to the applications involved.


Why Dota Reborn cant "CreateContex()" on OpenGL?

The error messages suggest you to install a PPA with newer drivers. I did some googling and found this: https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers, which does indeed contain Mesa 11.1.

The procedure would be:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update && sudo apt-get upgrade

If that doesn't work, you can revert your changes with:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers
sudo apt-get update && sudo apt-get upgrade


Can't select Blue Yeti Pro USB Microphone in sound settings menu

Since posting this question I have found a solution!

When Using JACK and Bitwig studio on 14.04, I was still getting the same behavior. It worked the first time, but was automatically muted for capture on subsequent reboots.  I am able to unmute the capture card using QasHctl now, where I was not able to do so in the Ubuntu Sound Settings Menu or Alsamixer.

That's it.  Just unmute the Yeti Pro Capture card in QasHctl.  Problem Solved!


How to avoid reinstalling ruby each time I restart?

Are you sure that its not just RVM not being started ?

Check .rvm/scripts/rvm exists in your home directory.

If it does, then its probably not being started, check in your .bashrc for lines below.
If they are not there you need to add the calls to initialise RVM in your .bashrc by running the following command:

echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc

Based on instructions from: http://sirupsen.com/get-started-right-with-rvm/


Openswan shows no installation candidate after running apt-get update

The openswan package is not available for Ubuntu 16.04, but the (very similar) strongswan package is available.

Try running

sudo apt-get install strongswan

to install StrongSwan. There might be some minor differenced between OpenSwan and StrongSwan in configuration files, etc... but they should be minor.

You can view  details about the strongswan package for Ubuntu 16.04 here: http://packages.ubuntu.com/xenial/strongswan and details about StrongSwan in general at http://strongswan.org


The message that you are getting is coming from Facebook, not Ubuntu. I get the same message on my phone, but I do not choose to add it, so I see it everytime I go to facebook. Here are two posts that could help you understand more:

Facebook Help
Messenger For Desktop


Your router is only a Gateway to another WAN network; the router in itself is just another node on the local network. As your other nodes have the same network settings, they should be able to connect just fine. Since they are indeed connected, you have a valid local area network (LAN).

However, if you try to connect to a WAN, you wont be able to do so.

Here is the definition of SSH.

  Secure Shell, or SSH, is a cryptographic (encrypted) network protocol
  operating at layer 7 of the OSI Model to allow remote login and other
  network services to operate securely over an unsecured network

An internet connection is not required to SSH into your device, unless you are trying to do it through the internet!


How to build .deb package for a single kernel module?

Actually I found old tool, which doing something close to what I want

https://wiki.debian.org/ModuleAssistant


Powering down USB drive while PC suspended

I have done this with my system using powertop, no side effects. In fact most usb devices are powered down during suspend by default, and since that is normal, shouldn't cause problems for you in this case.

EDIT: in a simple sense, your drive will be fine on suspend. The problem will occur if you take it out and use it in another system. It also depends on the level sleep your system is doing (S1, 2, 3 etc).

NB: As noted in the comment below, this will not be true if you remove the drive and use it before you resume.


What is the *right* way to use gnome-shell integrated chat?

Keyboard shortcuts can be set in system settings > keyboard > shortcuts.

By default Super+M shows the notification bar.

In addition I've set Ctrl+Alt+E to show me the empathy main window. To do so click on the plus sign and enter empathy as name and command, click apply, then click on "deactivated" in the list and hit your short cut.


Install Ubuntu next to Windows 7 with a 3rd partition

Boot Ubuntu live disk and choose "try ubuntu" option on startup.
Open gparted.Create three partitions as you mentioned above(ext4 partition for Ubuntu os,ntfs partition for Windows Os and another ntfs partition(150) for storing datas which was accessed by the both.
Then run the Ubuntu installer and choose "something else" option to install Ubuntu on the created ext4 partition.


For a clean result (uniform thickness, smooth and clean edges):

Use the Ellipse select tool to make a selection
Select>To path
Select>None (otherwise step #4 will only create half of the line)
Edit>Stroke path in "Line" mode

Simplifications

If you do several circles, you can do a selection with several circles in step 1 (shift click for additional circles), and execute steps 2-4 only once.
For thin lines (3px or less); you can replace steps 2-4 by a Edit>Stroke selection (but this is ugly on tick lines)
You can of course do both together (many thin circles)


Right click "open terminal" option no longer on desktop after breaking and fixing Unity

Did you try installing these:
sudo apt-get install nautilus-open-terminal
sudo apt-get install nautilus-actions

Also, you have to restart or restart nautilus with the -q parameter


On an upgrade will ubuntu erase a folder created in the root directory?

No. Only if you re-install from scratch with a format, should it be deleted. Also, the /opt/ directory is already standardized as a place to install things manually to.


How to install newest version of Minitube from Source

I've never even heard of Minitube, but I have written some Qt, so I'll try to help.

Since you're trying to build a Qt app, it may be advisable to just build the Qt source and link to that.  The latest version of Qt 4 is currently 4.8.5.  Download the tar ball for Linux/X11.  Follow the instructions here for building Qt for X11, very carefully.

When that is finished, your dependency problems (Qt dependencies anyway) should be gone.  Now you can run qmake.  qmake should be ran in the same directory as the .pro file for the project.  qmake will then build you a Makefile based on the instructions in the .pro file.  You should not have to create this .pro file, but if you can't find one anywhere then sometimes Qt can generate one for you by running qmake -project.  Note that this is a last resort only if there is no .pro already.  The default .pro will work sometimes, but only for simple projects.

After qmake finishes generating the Makefile, run make by simply typing make.  After make finishes building the target, you can run the executable by typing (from same directory) ./build/target/minitube

To recap:

Build and install Qt for X11
Run qmake in the directory of the .pro file, or run qmake -project to generate a .pro, then run qmake on the .pro
Run make
Run the app with ./build/target/minitube


Doom 3 Wily Werewolf - need help getting it running

sudo cp /media/cdrom0/Setup/Data/base/pak00*.pk4 /usr/local/games/doom3/base

You just had to use sudo, then it would proceed fine. There still may be hardlinked files in the installation, although I hope, that it will run.

As of running the game. Try to find executable, it should be file named doom3, so just run find . -name "doom3" in your home folder to find it and then enter ./path-to-binary/doom3 command to run it

EDIT:

Have you even run the installation script of Linux binary? There are no exes in Linux, I think that in OS X it is similar...

The best way for you now would be to go through the tutorial once again word by word. The only catch for you may be that the tutorial presumes copying *.pk4 files from mounted CD. So you have to change source folder in this case...


First, if the header is corrupted or the header is password protected and you don't know the password, the program has no information about the content of the archive and is therefore unable to extract files.

Extracting with unrar and the keep broken extracted files option sometimes works, but it depends on the archive contents.

unrar x -kb example.rar

Advice for sharing files: Avoid zipping, nested zipping, splitting, remuxing, etcetera.


How can I install emacs 27 in ubuntu LTS (18.04.1)?


Can I have apt-get take my authorization credentials?

You can configure proxy for apt.
sudo nano /etc/apt/apt.conf.d/proxy.conf

Add below line with values according to your proxy server and save it.
Acquire::http::Proxy "http://user:password@proxy.server:port/";

Try to run sudo apt update it will work.


Wireless LAN not working on Toshiba Satellite L 510

Look at your function keys, and on F12 you should see a wireless tower icon.  Hold down the FN key in the lower left corner of the keyboard, and type the F12 key to turn on wireless.  The hardblock should be off, and you should see nearby access points,

I hope you are trying 12.04.5 at least, since earlier releases might not have had a working driver (not sure about the 8192, but the 8723 definitely had a problem, and both drivers were in the same source package.  Later releases like 12.10 fixed the issue, but that's out of support, so I'd suggest trying 14.04.


The Disks, fdisk, and gparted screenshots don't look very promising...
fsck
First check your file system.

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

bad block
Note: do NOT abort a bad block scan!
Note: do NOT bad block a SSD
Note: backup your important files FIRST!
Note: this will take many hours
Note: you may have a pending HDD failure
Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.
In terminal...
sudo fdisk -l # identify all "Linux Filesystem" partitions
sudo e2fsck -fcky /dev/sdXX # read-only test
or
sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)
The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.
The -fccky parameter...
   -f    Force checking even if the file system seems clean.

   -c    This option causes e2fsck to use badblocks(8) program to do
         a read-only scan of the device in order to find any bad blocks.
         If any bad blocks are found, they are added to the bad block
         inode to prevent them from being allocated to a file or direc‐
         tory.  If this option is specified twice, then the bad block scan
         will be done using a non-destructive read-write test.

   -k    When combined with the -c option, any existing bad blocks in the
         bad blocks list are preserved, and any new bad blocks found by
         running badblocks(8) will be added to the existing bad blocks
         list.

   -y    Assume an answer of `yes' to all questions; allows e2fsck to be
         used non-interactively. This option may not be specified at the
         same time as the -n or -p options.

Update #1:
The HDD is defective. Replace it. It may still be under warranty. Check with Seagate.


How do I get Mono to work in Ubuntu server

It sounds like Mono is an Apache mod, akin to PHP.

To enable it, only run a2enmod mono.


Hide folder from Unity Dash search results

i'm using 16.04 and i have the Security & Privacy app in system-settings so i think you have some missing packages somewhere.

Run this to check that you have ubuntu-desktop and ubuntu-system-settings and their dependencies correctly installed and install them if needed.

sudo apt-get install ubuntu-desktop ubuntu-system-settings


Gnome Shell freezes when using external USB drives

I'm able to replicate the system freeze when using nautilus to un-mount a 1tb WD Passport.

I can safely remove it by calling

sudo umount /media/<MountPoint>
sudo /usr/local/sbin/suspend-usb-device.sh /dev/<disk> -v

The suspend script is available on github


AppArmor kills apache2 when in aa-complain mode, why is there a mysqld.sock failure?

You'll need to install Apache's own AppArmor module and then update the supplied profile.

Install the apache module

  apt-get install libapache2-mod-apparmor

Enable the module

  a2enmod apparmor

Restart Apache to pick up the new module

  systemctl restart apache2

Put the new profile into complain mode

  aa-complain /etc/apparmor.d/usr.sbin.apache2

Pick up the new AppArmor settings

  systemctl restart apache2

Generate your custom profile

  aa-logprof


20.04 Kill X Server With Keyboard Shortcut

It is still possible, but should be configured manually.
To enable Ctrl+Alt+Backspace open terminal and type:
sudo dpkg-reconfigure keyboard-configuration

hit Enter 5 times, then select <Yes> in the relevant window:

and reboot.


Run the command sudo aptitude -f install


You can use usermod command to his account, just type on terminal:

# usermod -L <username>

Or take a look for more command by opening help.

# usermod --help


I don't see this as a bug. Do you have any other red colored lines like this ? (scroll down).

The Read Error Rate attribute of S.M.A.R.T reads

  Stores data related to the rate of hardware read errors that occurred
  when reading data from a disk surface.

If you have other red attributes as well, this might mean that your HDD is near to the end (death). Do a backup quickly.

Read in Wikipedia about the S.M.A.R.T attributes. Be informed that not all attributes are identical to all HDDs. Sometimes you must search vendor specific meanings.


It looks like you have these lines in your /etc/default/locale file:

LC_ALL=en_US.UTF-8
LC_CTYPE=UTF-8
LANG=en_US.UTF-8

The LC_CTYPE setting is wrong, since "UTF-8" is not a valid locale name. Also, it makes no sense to set all those variables; I would recommend that you simply remove the LC_ALL and LC_CTYPE lines.

(I saw something similar recently. It would be interesting to know how that LC_CTYPE=UTF-8 statement ended up there in the first place.)


Unresponsive Script window pops up all the time now. Why and what to do?

Generally unresponsive scripts are caused due to buggy add-ons, or when add-ons are being used in an unintended manner.

The most common solution is to disable all of your add-ons and enable them one by one with intervals of usage until you find out the one causing the issue.


How to quey apt conf for default apt cache size?

man apt.conf | less -p 'Cache-Limit'

The default of Cache-Limit is 0 which stands for no limit.


How to install dependencies of a program

First, remove the symlinks from /usr/lib, as those wil trick the linker;

Then, install the 32-bit version of the libraries:

sudo apt-get install libfreetype6:i386 libsm6:i386 libice6:i386 libxrender1:i386 libfontconfig1:i386 libxext6:i386 libx11-6:i386

The linker should be able to find them automatically without extra configuration afterwards.


How to create static routes for two subnets?

You can do it by adding the following lines to your /etc/network/interfaces file

up route add -net 0.0.0.0/0 gw 10.167.95.1 dev eth0
down route del -net 0.0.0.0/0 gw 10.167.95.1 dev eth0
up route add -net 10.0.0.0/24 gw 10.10.10.1 dev eth0
down route del -net 10.0.0.0/24 gw 10.10.10.1 dev eth0

Then restart your networking.

You can find tons of examples here -> http://www.cyberciti.biz/faq/ubuntu-linux-add-static-routing/


Linux: How to set location that command to run

First, you need to find out where the executable file you want is. As a step toward that, find out where the one that is actually running is like this:

whereis clang

Then I'd open the indicated directory with a graphical file browser and look for the one you want. Or, of course, you can do the same thing with commands like cd .. and ls and so on. It is probably up and over one so to speak. For example, if the command you do NOT want is in /usr/bin/clang-3.9/ then the one you DO want is probably is a directory like /usr/bin/clang-5.0/ or something similar.

Then invoke it with the full path, like:

/usr/bin/clang-5.0/clang

or whatever. I just used that particular path as an example of the principle. You'll have to find the correct path.

I hope I understood the question correctly.


How to count the total number of files in all sub-directories?

Read man find, and do something like

find /data/train /data/test -type f -print | wc -l

for dirname in $(find /data/train /data/test -type d -print) ; do
    /bin/echo -e -n "$dirname\t"
    find $dirname -type f -print | wc -l
done


I can't install openJDK 7 in ubuntu 12.10 (32-bit)

Ubuntu 12.10 has reached its End of Life. It is better to upgrade to 14.04 or 14.10 instead.

Try the following commands

sudo apt-get -f install

sudo dpkg --configure -a

Otherwise, install Oracle Java using this PPA

  sudo add-apt-repository ppa:webupd8team/java

  sudo apt-get update

  sudo apt-get install oracle-java7-installer


ubuntu how to assign key to email address

I think the software you are looking for is autokey, see also this post: Assign hotkeys to paste predefined text You can install it via

sudo apt-get install autokey-gtk

if you are using GNOME/Xfce/LXDE or via

sudo apt-get install autokey-qt

if you are using Unity/KDE.


Step 1: install Wine

There are three ways how you can get Wine. You can either download the stable version from the official Ubuntu repository, download it from Wine's repository, or compile the source yourself.

The simplest option is probably downloading it from the Ubuntu repository, using the command line:

sudo apt-get install wine

Follow the instructions, you will need to accept a license agreement for TrueType fonts. Use the arrow keys (← and →) and Enter to accept the terms.

Step 2: download HeidiSQL

Download the installer from http://www.heidisql.com/download.php.

Step 3: install HeidiSQL using Wine

Open the installer for HeidiSQL with Wine and follow the steps to install the application.

Step 4: add the HeidiSQL icon to the launcher (optional)

This step is optional, even without it you can start using HeidiSQL. However, I wanted to add a shortcut to the launcher, but this wasn't as easy as I thought it would be. I finally managed to do so by following these steps:

First, find out where Wine is storing the HeidiSQL icon. In my instance, it was in /home/nic/.local/share/icons/hicolor/48x48/apps.
You also need the location of the HeidiSQL executable. In my instance, it's in /home/nic/.wine/drive_c/Program Files/HeidiSQL.
With this information, we can create a new file in ~/.local/share/applications, called heidisql.desktop.

sudo gedit ~/.local/share/applications/heidisql.desktop

(you can use another text editor instead of gedit, of course).

Fill it with:

[Desktop Entry]
Name=HeidiSQL
Comment=HeidiSQL on Ubuntu
Exec=env WINEDEBUG=-all WINEPREFIX=/home/USER/.wine wine heidisql.exe
Icon=/home/USER/.local/share/icons/hicolor/48x48/apps/9103_heidisql.0.png
Path=/home/USER/.wine/drive_c/Program Files/HeidiSQL
Terminal=false
Type=Application
Categories=Wine;
StartupNotify=true
StartupWMClass=heidisql.exe

(of course you need to change the paths after Exec=, Icon= and Path= with the appropriate ones. StartupWMClass= is not compulsory but having this entry pointed to application executable filename fixes issue with unity launcher showing generic wine app icon when the app is running)
Add the icon to the launcher. Either go to /home/USER/.local/share/applications using the file browser, look for the HeidiSQL icon and drag it to the launcher, or search for HeidiSQL in Dash and drag the icon from there. (as Dash might contain two identical icons for HeidiSQL, and only one is the right one, I suggest the first method)

For more information about .desktop files, see https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles.


It looks like new build.sh does not support same (--with-pcap --with-sctp --with-openssl) flags as before.

if test "$*" = "--none"; then
     cmake . -DUSE_GSL=
elif test "$*" = "--common"; then
     cmake . -DUSE_GSL=1 -DUSE_PCAP=1 -DUSE_SSL= -DUSE_SCTP=
elif test "$*" = "--full"; then
    cmake . -DUSE_GSL=1 -DUSE_PCAP=1 -DUSE_SSL=1 -DUSE_SCTP=1
else
    cmake . "$@"
fi

For pcap sctp and ssl support you can use:

./build.sh --full

For pcap support you can use:

./build.sh --common


How to use(/enable) FN keys to adjust volume at my asus laptop?

I had the same problem with my ASUS K53E.

sudo apt-get install git

git clone git://git.iksaif.net/acpi4asus-dkms.git

cd acpi4asus-dkms

make

sudo make install

sudo modprobe asus-nb-wmi

After every kernel update the above will be erased and you will need to re-do it every time until it is included in a kernel version at a later stage. To make it easier create a .deb package which will be easier to install.

sudo apt-get install debhelper

cd acpi4asus-dkms

dpkg-buildpackage

sudo dpkg -i [newly-created-package].deb

sudo modprobe asus-nb-wmi

source

I have a little different computer though; mine is a K53E and yours is an X53S, so I can't guarantee that it'll work.


Where can I find the man page for the set command?

set is a bash shell command

If you type man bash and then search for /abef should move to the section that describes set and the various available.

To confirm that you are using a shell built command you can run:

type command

if the message command is a shell builtin is the output, then you can find the help for these types of commands via

help [shell_command]

for example:

help set

As an added bonus you can pipe the output into either more or pager to enable page-by-page scrolling i.e.

help | more

or

help | pager

(with thanks @psusi & @eljunior & @andrewsomething)


make doesn't start programms. You generate a executable named Tutorial

To start it use

./Tutorial

You can see the file using ls

This is not an question on ubuntu. Use stackoverflow for programming questions


My pc says it reads 4633MB/s from SSD drive cache over SATA 6Gb/s, how is that possible?

From the manpage:

  -T
  Perform timings of cache reads for benchmark and comparison  purposes.   For
                meaningful results, this operation should be repeated 2-3 times on an other‐
                wise inactive system (no other active processes) with at least a  couple  of
                megabytes  of free memory.  This displays the speed of reading directly from
                the Linux buffer cache without disk access.  This measurement is essentially
                an  indication  of the throughput of the processor, cache, and memory of the
                system under test.

Although you have the lowercase -t flag first, the command is running -T first.

The important part of that message is this:

  This displays the speed of reading directly from the Linux buffer cache without disk access.

This test doesn't even touch the disk. It's really just testing how fast your computer itself can perform data operations.

Running sudo hdparm -T /dev/sda on my machine returns:

zachary@MCServer:~$ sudo hdparm -T /dev/sda
[sudo] password for zachary:

/dev/sda:
 Timing cached reads:   9270 MB in  2.00 seconds = 4637.91 MB/sec

http://www.linuxquestions.org/questions/linux-newbie-8/difference-between-buffered-disk-reads-and-cached-reads-891453/


how to fix odd date (commandline command) format

That was a bug in the locales package, which was fixed in Ubuntu 13.04.


dual boot win 7 (pre installed) and ubuntu 12.04

It is fairly easy but I suggest making a backup of your important data first. It can always go wrong.

Steps from within Windows (so this will -not- be detailed):

Shrink your Windows partition with something like Partition Magic;
Leave the space unallocated;
Download the Ubuntu ISO for your system specs(32bit or 64bit);
Burn it to a DVD (it wont fit on a CD);

Steps after this are not related to Windows:

Reboot (with the option in BIOS set to boot from DVD) with the DVD inserted;
It will end with a desktop and a popup. Choose "install" to start the installation. Answer all the questions (it will ask for locales, username etc) and, when asked, install Ubuntu in the unallocated space (it will ask for what to do with the installation and this will be an option).

And that is basically it.

It IS very very very easy to do. But you do need a bit of experience in dealing with it but if you keep your eyes open and read what is shown you will be fine.


sbackup fails to connect via ssh when run via sudo

Since you run sbackup via sudo you need to add the specified host to the local root account. To do this run invoke ssh via sudo to login with your normal user, i.e. if your normal user is nn:

sudo ssh -l nn <address to specified host>

You will then see something like

The authenticity of host [...] can't be established.
ECDSA key fingerprint is [...]
Are you sure you want to continue connecting (yes/no)?

Choose yes here and you are done (you do not actually have to log in).


Can I run two virtual machines from one usb?

During the VM creation in a program like VirtualBox, when you are creating the VXD or Virtual Drive it asks you where you want to save it at.

You can save it anywhere you want to.  The USB is one place you can, but it will be recommended to have the USB drive in before you launch your VM application as it scans for all parts.  It will give an error if it can't find the VXD file(s).

Hope this helps!


Would a different Ubuntu 18.10 distribution work better with NVIDIA graphics card?

Whatever the exact nature of the problems you experience, switching to a different flavour is hardly going to help. This assumes that all the flavours run X11, the same kernels and use the same driver.

One case where it could help, is if the severity of the problems you experience scale with the intensity of your graphic card's workload.

Are these problems that only occur when the graphics card is being put to good use, or get worse under such condition? If so, switching to a more lightweight flavour might help a little bit.

If whatever problem you are experiencing persists no matter what you are doing, even if the system is idle, or seems to appear at random, then different flavours would most likely suffer from the same problem.

It should be rather simple to test out though, without having to reinstall your system. For instance, if you wanted to try xubuntu, it should be as simple as installing the 'xubuntu-desktop' package (ubuntu-desktop to go back).


My 1440x900 resolution is not recognized

Please generate an /home/"username"/xorg.conf.new that you can edit by adding a known good modeline in the applicable monitor section (if there are more than one).

To have the 1280x1024 resolution from the start on my HP vs17e monitor I included:

option "PreferredMode" "1280x1024"

(But I use Radeon driver on X600 discrete pci-e display adp, not the Intel.)

Save it under another name like /home/username/20-Proview.conf.

Press Ctrl+Alt+F1 for console 1, log in, and run:

sudo stop lightdm

Press Alt+F2 for console 2, log in, and run:

sudo cp 20-Proview.conf /usr/share/X11/xorg.conf.d/

Press Alt+F1 to return to console 1 and run:

sudo start lightdm

If there is no no error you get the greeter login.

If there is an error, return to console 2 and run:

less /var/log/Xorg.0.log

You can read this and see where the error (if any) occurred.

To undo a mistake just run:

sudo rm /usr/share/X11/xorg.conf.d/20-Proview.conf

(I apologise if I introduced typos--sometimes xorg has to be with capital X, as is the case for that log file.)


Ubuntu 16.04.3 Flickering With Nouveau driver, bizarre "corrupted" screen and freezing using Proprietary drivers. Nvidia Geforce 8200M Compaq CQ60

I did some more digging and found that all I had to do what install a legacy driver insert face-palm here. Anyways I typed

sudo apt-get install nvidia-304 nvidia-settings

Works normally. I still get the weird splash screen but at least it works.


It could be sorted out by following the answer to this question.

"Basically, It is an option which no description close to the bottom of the menu. Only 2 options, enable or disable. Enable the option save the setting and reboot."


Qt creator: "cannot find -lGl" Cannot install libglu1-mesa-dev

You need to install libgl1-mesa-dev to get the libgl.so file which Qt links against to.


Ubuntu does not come with Gwibber any longer; the package named "gwibber" (and some additional packages like "gwibber-service" are so called "transitional dummy packages" to facilitate the switch to friends-app. If you look at the Gwibber project's pages on Launchpad, the newest packages there are about two years old, so it seems to me you're out of luck, sorry.

Of course you can try to compile the old source code yourself, but I wouldn't recommend it. There probably are a lot of dependencies in that code that were satisfied on older systems but are not satisfied on current systems. So it would probably take a lot of work to get it to compile, without any guarantees that the resulting program will work in any decent manner.

If friends-app isn't your cup of tea, you might want to have a look at some other clients for your favorite social network that are out there. For Twitter, for example, there are Polly or Birdie, among others. They follow different concepts and are on different levels of stability/maturity, but are worth a look.


This line:
media_dir=B,/mnt/sdb1/Media

cannot be understood because B is not a valid type.
Check the sample minidlna.conf to know more about valid types.
# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)


sudo apt install libotf0

worked for me.
You might also need to install libm17n-0


ok, I have solved issue 1. by running the lines

u1sdtool --quit
u1sdtool --connect
u1sdtool --refresh-shares

and it started working right away
I still think that the client should be able to solve these problems by itself
ubuntuone should be more responsive, I am surprised that it has more problems than a third party service such as dropbox


Authentication issue after Wubi installation

There is a bug that Wubi will install the dev release (13.04) if you are using an out of date installer e.g. for 12.04 or 12.04.1. The current Wubi for 12.04 is 12.04.2 and you need this latest version for it to work.

Some reports of it happening on the 12.10 version of Wubi.exe have not been confirmed. If yours was 12.10, please pastebin the Wubi log file (find it in the %TEMP% directory calle wubi-nn.nn-revxxx.log) so we can add it to the relevant bug report.

Note that the development release for Wubi is broken. Therefore there is nothing you can do with it and you should uninstall it and reinstall using a current and supported release such as 12.04.2 or 12.10. Both are available from http://www.ubuntu.com/download/desktop/windows-installer

For reference, here are the bug reports:

13.04 installer doesn't create user account

Wubi 12.04 installs development release