One of three displays goes blank after locking screen and returning in Ubuntu 16.04 LTS

I found a temporary fix to this problem referencing this post:

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1577170

When I open up the terminal in one of my working display and type in:

gnome-screensaver-command -a

all the screens go blank, then activate them with e.g. moving mouse and now all three of them activate. So this is confirmed that it works, though it is not a really elegant long-term solution.


AMD 64 OS installation in Intel processer

It would be helpful if you could describe at what point you are having trouble installing (ie. can boot using liveDVD/liveUSB and start the install process but it stops at <> screen)

AMD x64 ISO should be fine with i3 x64 intel processor.

You can also try just booting from the liveDVD/liveUSB and trying out a few things.. open the file manager and browse some files, connect to your network and browse a few websites, try changing desktop background, etc). If these work ok then you should be fine.


How can I connect to a forticlient ssl-vpn via Terminal?

Since I was recently found about this too. It is all running in CLI by the way
You can Download Fortigate SSLVPN CLI and extract it to any folder then navigate to to forticlientsslvpn/64bit/ or forticlientsslvpn/32bit/
after that just run: ./forticlientsslvpn_cli --server serveraddress:port --vpnuser username
And you are done.
Source: https://www.networkreverse.com/2020/09/setup-linux-router-with-forticlient.html


I just came across the same problem. The reason for the error message is that there is physical switch that prevents a write to the media. You SD adapters have one. But micro sd doesnt.

Solution: (Obvious :P) Flip the switch in the SD card adapter and plug it in.


Onboard hover/dwell click can' t be enabled

Did you install mousetweaks?
sudo apt install mousetweaks

With the touch you must tap quickly and shortly 3 times (in the last hold) and the right click is perfect.
But you must have edited with dconf-editor the field secondary-click-enabled, in org/gnome/desktop/a11y/mouse.


After uninstalling "Xtreme Download Manager", I still see its icon when I type "X" in search applications

The matter got solved after I searched in my Home directory by typing xdm.

Delete xdm.desktop and that's it.


Unable to find expected entry 'main/binary-i386/Packages - Chrome

Open a new Terminal window and run the following command:

sudo gedit /etc/apt/sources.list.d/google-chrome.list

In the text file that opens edit the file so that the line reads:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

The only addition you need to make is entering the [amd64] architecture after deb but preceding the http. Do not edit or replace any other text in this file.
Hit Save. Close the Gedit window.

Now return to the Terminal and refresh your package list by running:

sudo apt-get update

The 'failed to fetch' APT error should no longer appear.

To prevent the above change being lost, [arch=amd64] needs to be added to the configuration that generates the file edited above:
Run the following command:

sudo gedit  /opt/google/chrome/cron/google-chrome

In the text file that opens search for deb and once again edit the file so that deb http becomes:

deb [arch=amd64] http

Do not edit or replace any other text in this file.
Hit Save. Close the Gedit window.

Sources:

How To Fix The (Annoying) ‘Failed to Fetch’ Chrome apt Error
Failed To Fetch` Google Chrome Repository After Google Dropped Support For Its Browser On Linux 32bit ~ Web Upd8: Ubuntu / Linux blog


Help to make UBUNTU GNOME look like CentOS

The best I could do, is select gnome classic in the login screen, and install the gnome shell extension "Activities Configurator" (to disable the hotcorners). Through gnome tweak tool you can enable a "Places" drop down menu. I think that it is not possible to move application launchers to the top panel. An image depicting all of the above.


Eventually there will be open source clones of Pokémon GO and sometime after that something like Tux GO will be ported to Ubuntu Phone. You can catch a warthog, badger, drake, eft, fawn, gibbon, heron, ibex, jackalope, koala, lynx, meerkat, narwhale, ocelot, pangolin, quetzal, ringtail, salamander, tahr, unicorn, vervet, werewolf and xerus and save it to your Tuxdex.

This project may be delayed due to technical difficulties caused by an insufficient number of animals, however it could be solved by either inventing new animals or by augmenting the Tuxdex with fish and different species of penguins.


How to turn off "automatic display of contents" feature when a USB stick is attached

Sorry my earlier comment may be wrong and it's possibly not an exact duplicate of this question as that question relates to 11.10 and now you have to perform an extra step. It's System settings > Details > Removable media.


Remote desktop to Ubuntu has wrong keyboard mapping

I have exactly the same problem when connecting to a remote instance on AWS. It seems to be related to xrdp. See for instance this thread, which describes a detailed work-around.

EDIT: Took me a while to get back to this, but since there has been no further activity in this thread, I finally got around to add details as suggested (demanded?) in the comments.

These are the steps I had to do to fix the keyboard layout in xrdp in Ubuntu 12.04. The original link was a big help, but a bit out-dated. I also found useful information with the rdesktop project, for finding country codes: here and here.

Open console and set xkb map to correct model & layout.

setxkbmap -model pc105 -layout no

Replace model and layout language code to whatever is the correct one for you. I just ran setxkbmap -print on the client PC (which incidently also runs Ubuntu 12.04) to get an idea about these values. Note that setxkbmap needs to have a display to run. You can either run the console through a RDP session or perhaps even login through ssh with X display redirection, like this ssh -X <server>.
Generate XRDP keymap file:

xrdp-genkeymap km-0414.ini
sudo mv km-0414.ini /etc/xrdp
sudo chown root:root /etc/xrdp/km-0414.ini

Replace the country code 0414 with the correct code for your country. See the rdesktop doc to find the correct code for you.
Restart the xrdp service:

sudo service xrdp restart


Ubuntu 16.04 is still very new, and users with nvidia cards are having issues. 14.04 is a VERY stable operating system at this point. If you're a new Ubuntu user, I might suggest giving it a shot.

While nearly everyone wants to use the "latest and greatest" - with open soruce software that sometimes means tolerating small errors, or working to fix them. It sounds like you're getting the worst end of the problems with 16.04 and nvidia drivers.


Just FYI, "UEFI firmware" is more accurate than "UEFI BIOS".

I don't really understand your question. If you are asking about how to partition a drive, look into sgdisk. It's like sfdisk, but it handles GPT tables instead of the traditional MBR partition tables used in the past. GPT is what UEFI firmware is capable of reading.


how to add f.lux to startup applications on lubuntu?

For ubuntu:

To add to startup from your dash search fpr startup applications

Enter your desired name

In the command browse to the : /usr/bin/fluxgui

save and that's it

## For Lubuntu  ##

Open the file manager (by default PCManFM), go to /usr/share/applications. Right-click on the program you want to be added to your autostart programs, and click Copy. Now, go to ~/.config/autostart in PCManFM, right-click and click Paste. The program should be added to your autostart programs now, but double-check by clicking the LXMenu down left, click Settings, and then Desktop Session Settings.

You may have to create the autostart folder. For an application that doesn't have a *.desktop file in /usr/share/applications you may also copy-paste any other *.desktop then update it with content suitable for your app.

source


I won't write the whole answer but, parts you need come from this answer:

Backup Linux configuration, scripts and documents to Gmail

Bash script (updated) snippet:
# Running under WSL (Windows Subsystem for Ubuntu)?
if cat /proc/version | grep Microsoft; then
    Distro="WSL"
else
    Distro="Ubuntu"
fi

today=$( date +%Y-%m-%d-%A )
/mnt/e/bin/daily-backup.sh Daily-$(hostname)-$Distro-backup-$today

The file name generated by above code is:
Daily-alien-Ubuntu-16.04-Backup-2018-11-29-Thursday.tar.gz.64

Where:

$(hostname) produces alien (for an AW17R3 in case you are wondering).
$Distro produces Ubuntu (when not running under Windows 10).
$(lsb_release -sr) produces 16.04
$Today produces 2018-11-29-Thursday (Today's date)

You can find sample code for most of what you need to do all over this website and our sister website called Unix & Linux. There is a proliferate amount of code all over the internet as well.
It is best to just start writing your script and then when you run into problems with a specific line of code post a question on it. I would budget a week for you to get it done (just a wild guess-timate).


This is what I've been able to figure out, although it's not as satisfying as just getting x,y coordinates.

You can get an ordered list of the launcher items currently in the panel, then find your launchers index in the list and multiply by the icon size + some padding for the top panel and icon spacing to give approximate y coordinate.

See code below.  I hope this helps anyone else who may be searching for a way to do this.

    from gi.repository import Unity
    import gconf

    #Get Icon size
    LF_ICONSIZE=gconf.client_get_default().get_int('/apps/compiz-1/plugins/unityshell/screen0/options/icon_size')

    LF_ICONPADDING=10 # Guesstimate
    PANEL_HEIGHT=16  # Guesstimate, will depend on fontsize. Don't know where to get this
    #Use unity api to get a list of launcher panel items
    lf=Unity.LauncherFavorites.get_default().enumerate_ids()

    #Find the position of my .desktop file
    #(add 2 for the dash icon and because lists start at 0)
    pos=lf.index('nautilus.desktop') + 2

    #calculate approximate y coordinate
    y = pos * (LF_ICONSIZE + LF_ICONPADDING) + PANEL_HEIGHT


Gamepad partially maps to keyboard in Ubuntu 18.04

8Bitdo gamepads are Bluetooth HID gamepads which have some basic support on Linux but usually need remapping to work correctly. There's a userspace driver called xboxdrv that can do this sort of remapping. Basically, it will transform the gamepad inputs so they look like an XInput device, which allows it to work with apps that expect Xbox controllers.

I haven't tried this myself but probably you will want to follow the instructions here to add an xboxdrv mapping:

http://hegzedesimal.blogspot.com/2017/10/8bitdo-nes-30-pro-on-linux.html

The mapping itself is:

#8Bitdo NES30 Pro Config

[xboxdrv]
evdev-debug = true
evdev = /dev/btjoy
evdev-grab = true
rumble = false
mimic-xpad = true
silent = true

[evdev-absmap]
ABS_HAT0X = dpad_x
ABS_HAT0Y = dpad_y
ABS_X = X1
ABS_Y = Y1
ABS_Z = X2
ABS_RZ = Y2

[axismap]
-Y1 = Y1
-Y2 = Y2

[evdev-keymap]
# Map start and select
BTN_START=Start
BTN_SELECT=Back
# Map power to guide
BTN_C=Guide
# Map buttons to the printed key
BTN_SOUTH=A
BTN_EAST=B
BTN_NORTH=X
BTN_WEST=Y
# L1 R1 as Triggers
BTN_TL=LT
BTN_TR=RT
# L2 R2 as buttons
BTN_TL2=LB
BTN_TR2=RB
# Thumbs as thumbs
BTN_THUMBL=TL
BTN_THUMBR=TR


I guess the problem is in unreachable www.earthtools.org - or rather unexpected answer from there. I usually get very slow (10+ seconds) 404 from there.

In indicator logs (~/.cache/indicator-weather.log) you can see a lot of entries like:
ERROR - Weather: error reaching url 'http://www.earthtools.org/timezone-1.1/[your position]


Why I can't edit .bashrc file in Ubuntu?

It seems your .bashrc is just a link to some other place .bashrc -> /home/likewise-open/company/user/dotfiles/.bashrc.

This is not a normal attitude, so instead of using sudo or whatever you have to bring it back to its normal place.

sudo cp /home/likewise-open/company/user/dotfiles/.bashrc ~

Then now change ownership if it's not owned by you:

sudo chown your-username:your-username ~/.bashrc

Now ensure it has the correct permissions:

chmod 644 ~/.bashrc

But since you say this:

  When I try to cd into dotfiles, it says directory does not exist.

This means the /home/likewise-open/company/user/dotfiles/.bashrc file is not founded and had been deleted, so for that you get the message:

  Can't open linked file for editing

This means the link is point to non existing file thus a broken link.

So you get a default bashrc file from /etc/skell

cp /etc/skel/.bashrc ~/


Short version: no.

Generally, you need to do a clean install with a fresh /home in order to avoid the newer version's leftovers breaking the older version.

That said, I got away with restoring the backup of a Kubuntu 14.04 install after an upgrade to 16.04 didn't fully work, and didn't have big issues with stuff 16.04 had changed in my /home -- but this isn't something you can count on.  A clean install is the most reliable way to have a fully working installation when you're done.


How do I add a line to the shell script?

do as the instructions say,
You can use nano to add that lines to your .bashrc file.
I recommend putting it in the last line, so you can easily find it in the future
nano ~/.bashrc


Does Ubuntu or Xubuntu have a toggle window borders option?

This looked like something fun! I did some research and hopefully this helps you. (Did not test this in Ubuntu, only Xubuntu.)
Running the following commands on Xubuntu terminal creates the option in XFCE Window Manager settings to 'toggle' window borders. Unfortunately, I don't know about creating a keyboard shortcut, although with XFCE I'm certain you can easily do it. As it's very customizable and friendly.
sudo mkdir -p /usr/share/themes/empty/xfwm4
sudo touch /usr/share/themes/empty/xfwm4/themerc

As a tip, you might also want to consider tiling window managers. As this might fit your workflow or preference a little more. Something like i3wm/Xmonad/dwm is very customizable and takes time, but it's very much worth it. i3wm is well documented and tutorials are mostly in Ubuntu. Might be worth the shot.


Why you don't use iostat :

sudo apt-get install sysstat

iostat is found in sysstat package .

For example :

iostat -d 30 /dev/sda

will give you I/O result in 30 s interval


youtube-dl wrongly thinks it "finished downloading playlist"

Try downloading your playlist again with the --no-continue option. It will start over and download the entire playlist.


How to remove square brackets, any text inside, and space after & before the brackets?

You shouldn't use sed to rename files, but you can use the Perl program rename, for example:
$ rename -n 's/\[[^]]+\] ([^[]+) \[[^]]+\]/$1/' *
rename([Beach] Music Fest_58 [August].jpg, Music Fest_58.jpg)
rename([Mountain] Summer Camp_165 [May].jpg, Summer Camp_165.jpg)
rename([Wedding] Happy Day_001 [February].jpg, Happy Day_001.jpg)

Remove -n after testing to actually rename the files.
Notes

s/old/new replace old with new
\[ literal [
[^[]+ some characters that are not [
(stuff) save stuff for later to reference as $1, $2 etc

This only works if your filenames are consistent. muru's answer is much more portable.


Errors from running code compiled by gcc

cpp is the C pre-processor - it is not a compiler. Its output is a text file containing expanded macros and declarations from any files that your code has #includeed. When you made it executable and tried to run it, your shell made an attempt to interpret this text as shell code - and failed.

To compile your C++ file (and link into an executable) you should use g++ instead:

g++ test.cpp -o test


Lubuntu 17.10 - display is very dark, even when brightness is at to max

I found the reason- Unbootin changed the bios menu and settings. Apparently there are now 2 relevant settings "brightness" and another one "ambient" which you can toggle on/off and also control the level of it. For some reason the ambient was toggle off and set to low level (aka dark display). Issue resolved.


ALT-ESC to switch between windows --> window manager is hanging

This is a Gnome oddity that I dislike as well. I think it's considered a "feature" which I'll call application stacking. Hitting Alt-TAB brings up the terminal showing both terminals and you have to click the one you want to get to it. Quite annoying (at least for me). I got around this in 18.04 by installing Unity which defaults to the behaviour you and I seem to expect/desire.

This process is very easy.

Enable the Universe repository
Install Unity
sudo apt install unity
Select Unity from the Gear Icon prior to login. (You can always go back to gnome via the same icon if desired)

Note that installing unity will install a rather large number of packages (~59)required to support it. However if having the system work as you desire is worth the space (~30MB) it takes for you it's well worth it.

Another alternative possibility is the use of extensions shuch as Coverflow or AlternateTab However I have not tested those as of this writing.

You could also customize the keybindings as discussed here.

As far as the display manager hanging you might find this Q&A useful.


Try the Wipe function of mkusb, it can either Zero the first megabyte of the drive, (which should be enough), or it can zero the entire drive, which takes time. After zeroing the drive mkusb can be used to set the drive back to it's original condition with an MSDOS partition table formatted to FAT32. https://help.ubuntu.com/community/mkusb/wipe


BURG is old (2010), so it won't work with UEFI.
You probably want to try ReFind.


Where can I see beatifully formated online man pages?

Ubuntu has its very own, very nice, formatted man pages repository, you can find them here

If you click Install the search engine plugin for your browser you can search them right from your browser search box.


Libreoffice showing a character that it cannot find

I assume you pasted the numbers from somewhere? Usually this kind of problem is due to a copy/paste manipulation. I remember having issues pasting numbers from SPSS or other softwares into excel/libreoffice.

Have you tried special paste > values only ?


Changing the Dash button to open a lens rather than shortcuts?

This is not possible in Unity, however, starting with 12.04, if you select a lens, that will be the lens that is shown every time you open the Dash (in the state you left it in), until you log out or restart.

Update:

While that was the intended behaviour, it does not work.


your installation disk doesn't work. That's all. Try manually once. Press Do something else, delete the partitions, create new ones.

Option 1:
1st partition Format EXT4 path /
2nd partition Swap

or

Option 2:
1st partition Format EXT4 path / (at least 40.000mB)
2: Format EXT4 path /Boot (at least 500mB)
3: Format EXT4 path /Home (full size)
4: Format EXT4 path /tmp (at least 4000mb)

If manually installing it doesn't work either, make another usb disk using unetbootin which works 100%.
You can boot into this live sessing , download ubuntu ,
in a terminal :

sudo apt install unetbootin

and use it to create a new bootable live session.


Have you installed the tor-button plugin for Firefox?

https://www.torproject.org/docs/torbutton/index.html.en

Or the tor version of firefox...

https://www.torproject.org/projects/torbrowser.html.en

The Tor software protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, it prevents the sites you visit from learning your physical location, and it lets you access sites which are blocked.

That would appear to be what's happening to your connection.


Can't install PHP extension sdo on Ubuntu 12.10

I finally worked out a solution to install sdo on Ubuntu 12.10. First, I downgraded PHP to the 5.3.x series, using this script and instructions from here: http://www.ubuntugeek.com/how-to-downgrade-php-version-from-5-4-to-5-3-in-ubuntu-12-10-quantal.html

Next, I downloaded a patched version of sdo from here: https://pety.homelinux.org/cloudbank_repo/SCA_SDO-1.2.5.tgz

Finally, I patched the code as follows:

Edit sdo.cpp
- remove all "static" modifiers, except "static char rcs_id[]..."

Edit commonj/sdo/SDODataConverter.cpp
- add "#include <stdio.h>"

and then I simply ran the usual commands to compile:

phpize
./configure
make
make install

Then I verified that sdo was compiled in by visiting phpinfo.php on my server, and all was working:


How to upgrade Firefox in ubuntu 10.04 LTS

Or,you can download directly from Mozilla the last version and use from /home directory
https://www.mozilla.org/en-US/firefox/all.html


Changing to a 32-bit OS will have very little, if any, effect on the performance of your computer.

Whether it is a 32-bit or 64-bit system dictates how much memory the CPU can address. A 32-bit system can only address 4GB RAM where a 64-bit system can address much more.

See x86-x64 (Wikipedia)


Deja-dup has an error backing up after updating to Ubuntu 20.04

I solved installing Déjà Dup from flathub

https://flathub.org/apps/details/org.gnome.DejaDup


After update in Ubuntu 16.04 I ended up in GNU GRUB and appear to be stuck there

I have resolved my issue so I decided to answer my own question.

I was able to boot my computer through GRUB, by making minor adaptations to the instructions here:

https://www.linux.com/learn/how-rescue-non-booting-grub-2-Linux

At the GRUB prompt, I typed: "ls" to get a list of all partitions.

The list looked something like this: (hd0) (hd0,gpt1) (hd0,gpt2) ...

After I got a list of partitions, I then typed: "ls (hd0,1)/" to determine if the boot menu was in that  partition. Note that at this point you can drop "gpt" and just go with the number of the partition. I did this for every partition until I found out which one contained the boot directory.

For me it turned out that the boot menu was in (hd0,2)

So then I typed the following command: "ls (hd0,2)/boot" to get a list of files in the boot directory.

The important files in this regard, as I understand from the above link, are a file called vmlinuz and a file called initrd.img. I suppose it is normal that there will be different versions of these two files (among other files in the boot menu). In any case, I noted the latest version for both, and it is important, apparently, that both vmlinuz and initrd have the same version number.

Having noted that, I then typed the following commands. The partition number and version number may be different for other people, but it is important, as mentioned, that vmlinuz and initrd have the same version number, and that the number following "sda" corresponds to the partition number.

grub> set root=(hd0,2)

grub> linux /boot/vmlinuz-4.4.0-89-generic root=/dev/sda2

grub> initrd /boot/initrd.img-4.4.0-89-generic

grub> boot

And it worked, in the sense that it booted, without any apparent error messages. I don't know if I can reboot, but I now have the opportunity to copy all files that weren't backed up to an external hard-disk. Plus I'll probably download and make a new installation DVD. (I had misplaced my original installation DVD, which was part of my problem). And then I'll try to reboot.

And yes, I will never update from "Ubuntu Software" again!


In Firefox, Just have to go in EDIT > PREFERENCES > ADVANCED and check AUTOSCROLLING.


How to install StarUML and it's dependencies?

You can download and install the libgcrypt11 package from Precise and Trust Ubuntu repositories, for example:
https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb

sudo dpkg -i libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb
sudo dpkg -i StarUML-v2.8.0-64-bit.deb


Those mouse pointers are exactly the same size. Measuring both cursor dimensions in GIMP shows that they are both 25px wide and 39px high (depending on where you take the threshold of the border blur, of course, but it's still consistent). It only looks smaller on the desktop because the black border of the pointer is not visually distinct against the dark desktop background.


Synaptics touchpad synclient TapButton2 option

I solved it. Due to fact that it is not the first problem with my touchpad I previously changed the button-map to avoid the issue with left physical button that acted like left and middle button simultaneously, so I typed:

xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 0 3 4 5 6 7 8 9 10 11 12

So in fact i couldn't use the middle button in TapButton2 option. So I decided to replace ExtBt7 with middle button using the command:

xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 0 3 4 5 6 7 8 9 10 2 12

and after that I set the TapButton2 to new value.

synclient TapButton2=11

And voila! Everything works like it should. Tap with one finger is raported as a left click, with two fingers as a middle click.


Stop laptop from suspending when closing lid in lightdm

At the bottom of /etc/UPower/UPower.conf, set IgnoreLid=true.


Unable to open any of the disk except the one in which ubuntu is installed

Windows 8 never actually shuts down... it always hibernates. And in the process the disks hibernate along with it and become unaccessible by other operating systems. That is why you get that long message. To prevent this, when windows 8 boots(i.e. after your problem is fixed) type "lid" in search and then choose "change what closing the lid does". Then unselect "turn on fast startup" and then reboot your laptop. You should now be able to access your hard disks from ubuntu. Better way is to dual boot ubuntu and windows 7 since in windows 7, when it shuts down, it does not hibernate, it REALLY shuts down.
And I think for the booting issue, solution by sclev in the comments is helpful.


I've added deb http://apt.freegeek.org/ubuntu precise main into my /etc/apt/sources.list

And got the error

W: GPG error: http://apt.freegeek.org precise InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0261FE3D0875A635

So I've requested to receive the newest GPG key for freegreek.org:

sudo gpg --keyserver pgpkeys.mit.edu --recv-key 0261FE3D0875A635

and added the key:

sudo gpg -a --export-keys 0261FE3D0875A635 | sudo apt-key add -

and then launch sudo apt-update but got the same error:

W: GPG error: http://apt.freegeek.org precise InRelease: The following signatures were invalid: KEYEXPIRED 1422819173

Therefore I've checked the key list:

gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   4096R/0875A635 2009-07-13 [expired: 2015-02-01]
uid                  Freegeek Portland Packages (archive signing only) <ass@freegeek.org>

You could realize that even the newest key of freegeek.org repository was already expired in 2015-02-01.

So sadly, you can't fix this yourself, unless you import the new key, once the freegeek.org repository updates their keys to sign the files.

You can safely ignore these messages if you aren't using packages of these repositories. The message can be removed if you remove or comment out the repository from your /etc/apt/sources.list:

#deb http://apt.freegeek.org/ubuntu precise main


proxy authentication in system settings but with a twist

If a program asks you to enter the proxy configuration as an http URL, you will need to follow the conventions for structuring URLs.

And that means you can not include an @ character in the user name or password components unless you encode them.  Characters can be encoded in URLs as a percent sign followed by the hexadecimal representation of the code point.

So for the password Gt4@gj#k, you could represent it as Gt4%40gj%23k (the hash symbol is used to delimit the fragment portion of a URL, so it is best to encode it as well).


How to point a hostname to an ip address

There is a misunderstanding about hosts file here.

First of all, hosts file have precedence over DNS on most operating systems, you can define them on Linux/Unix operating systems and macOS in /etc/hosts and c:\windows\system32\drivers\etc\hosts on Windows.

So when you add a record in your hosts file like:

127.0.0.1  repo.sweetsoft

and try to open http://repo.sweetsoft/ in your browser, it doesn't send any DNS query to the outside world and uses this entry from your hosts file.

Keep in mind this only works for A record (resolving a name or domain address to an IPv4 address) and AAAA record (resolving a name or domain address to an IPv6 address) and you can not define TXT or MX records for example.

But port numbers are in a different network layer, hosts file only understands names (like repo.sweetsoft) and IP addresses, it's layer 3 and 4 in ISO model (Network/Transport) but port numbers are in layer 7 (application layer).

Check OSI model

OSI vs TCP/IP model

Since hosts file or DNS protocol are not aware of application layers, they have no idea about port numbers too.

Your configuration by adding 127.0.0.1:9000 to your hosts file is like adding port numbers to DNS A records.

After this clarification, you can fix this issue in multiple ways:

Running your application on port 80. Fixes your issue and removes any ambiguity.
Forward port 80 to port 9000 on your machine via iptables

# This command will forward all requests destined to port 80 and makes a lot of conflicts, I suggest socat
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 9000

Forward port 80 to port 9000 on your machine via socat:

apt install socat -y
socat TCP-LISTEN:80,fork TCP:127.0.0.1:9000

If you can't change your application port, socat will be the easiest way.

For day to day usage, you can write a systemd service file to run it in the background.


After upgrading to 12.04, my screen resolution is small

If you were to open Restricted Drivers again, what would you see?

If all else fails, It may be worth to reinstall Ubuntu, however this may not be a option for you.


Try using Testdisk to find the drive. (Available as a download or on Parted Magic).  You may be able to recover lost partition information and reset it to get the drive going again.


If possible, How to upgrade to Ubuntu 13.10 while keeping kernel 3.2 from 12.04?

The cedarview package is only available for installation in Precise (12.04) as can be seen in the package page. I haven't seen reasons why if you don't compile the package it shouldn't work in newer kernels (since you can install newer kernels in precise) so that's an option if you feel like compiling from sources.

The package uses DKMS so unless you find a nasty bug, it should work.


Can't use multiple extensions with "find"

Try this.

find "$1" -type f \( -name \*.zip -o -name \*.tar \)

If you want to store find result into a variable, use command substition.

result=$(find "$1" -type f \( -name \*.zip -o -name \*.tar \) -mtime -7)


are you using kde? if so, launch system settings then select "input devices" in the "hardware" section.  in the left column, select "mouse" then select the "advanced" tab.

there is a setting for acceleration - my own is set for 2x and works quite well.


Cleaning Ubuntu temporary files if they exist

Linux distributions usually store their temporary files in /tmp. Ubuntu does so too, so the temporary files are in /tmp, but there is no need to empty them manually, because it is emptied on every reboot by default.

Also applications may store their cache in your home directory, these locations vary by application, but well behaving apps store their cache in ~/.cache.


You need to repair the GRUB. Do the following

Boot using a Live USB/CD of Ubuntu. Use Boot Repair to fix the problem.

After booting with Live USB/CD, run following command in terminal:

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

Use Recomended Repair. This will install GRUB back :)


"Unable to get printer status" error with network printer installed with CUPS

You have already connected your printer your LAN via wifi and connected the printer to your Ubuntu pc. Or at least your pc detected the printer.

The reason the connection did not work with me, is because I had http://printer_ip instead of ipp://printer_ip as the connection URI.

So in my CUPS web gui, I see something like this now:

Description:   Canon PIXUS MG3530
Location:
Driver: Canon PIXUS MG3530 - CUPS+Gutenprint v5.2.11 (color, 2-sided printing)
Connection: ipp://192.168.0.110
Defaults:   job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

Hope this helps.


What command can delete folders older than X days or X months?

The command you refer is find I suppose.

You should use the command -exec rm -r {} \; and add the -depth option.

The -r option to rm remove directories with all the content.
The -depth option tell find to elaborate content of folders before the folder itself.


I got a General Protection Fault while transferring files

With laptops, soometimes it's a lack of power.
Try using external power with both drives. You can get cables which split so you can plug the free end into a USB 5v supply.


Fn + F5 / F6 brightness keys not working on Asus R556L

Hey there seem to be a few related questions for different asus computers:

https://askubuntu.com/search?q=brightness+F5

This answer might be particularly interesting (it suggest a kernel downgrade):

14.04 on Asus GL552JX: Fn+F5 and Fn+F6 Brightness Problem

I don't have an Asus R556L to experiment with but I would suggest a couple of things:

The showkeys command operates at the level of keycodes and scancodes, so might give you information that xev will not: sudo showkey -s
This archwiki page describes the https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes process of mapping scancodes to keycodes, apparently this happens in the kernel, but can be customized from userland.

For the benefit of other readers, here's a picture of what's going on.

Keypresses --keyboard---> scan codes --kernel---> keycodes ---X----> keysym --- application / wm ----> event

The comments about GPU and xbacklight muddy the water a little. I would be inclined to try to go around your window manager and just set bindings directly. One thing to bear in mind is that the kernel protocol for changing backlight settings has been changing recently to use sysfs and there were problems with xbacklight not supporting this. See acpilight for a drop in replacement. You can also do stuff manually inside sysfs.


Wireless driver not working for WPA after update to 12.10

Edit the file

/etc/modprobe.d/blacklist.conf

and add this

blacklist acer-wmi

or you might have to do the following:

sudo modprobe -rfv ath9k
sudo modprobe -v ath9k nohwcrypt=1

If that works you can make it permanent:

/etc/modprobe.d/ath9k.conf

Add the following line:

options ath9k nohwcrypt=1

Reboot.


Should I upgrade when a development branch becomes stable?

The normal sudo apt-get update and sudo apt-get upgrade will get new repo lists and packages as they are released and ultimately, you will have the same packages installed as the final release, including the various bugfixes as the version transitions from  -

Alpha -> Beta -> Release Candidate -> Stable Release

You do not need to 'fresh install' the stable version later.

For Ubuntu 15.04 (Vivid Vervet), the release schedule is -


how do you copy a directory and its contents to a new location under a new directory name?

You can use cp with the -r (copy recursively) flag and specify the new directory name:
cp -r /path/to/directory /path/to/location/new-name

In the above command replace the given paths with the real ones.
For example, to copy stuff from my home directory to an existing directory named backup and name the new directory stuff-backup (if this directory already exists, note that stuff will be copied into it, not overwrite it), you run:
cp -r ~/stuff ~/backup/stuff-backup

~ is a shortcut for your home directory /home/$USER or /home/zanna in my case. You can omit it if the current working directory is your home directory - you can see this from your prompt
zanna@monster:~$
              ^--the ~ here is where I am - home!

You can add the -v (verbose) flag to make cp report each copy being performed:
$ cp -vr stuff backup/stuff-backup
'stuff/thing1' -> 'backup/stuff-backup/thing1'
'stuff/thing2' -> 'backup/stuff-backup/thing2
...


Internal fan on a Dell XPS 1530 stays running post shutdown, am I really getting a shutdown?

You MAY be sseing this bug in 12.04, filed specifically on a Dell 1330m though could apply to other Dell laptops with nvidia cards - https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/940564

There were 3 possible solutions here on my 1330m with 8400m GS card -

Downgrade nvidia-current to the 290.XX version, packages for 12.04 available here - https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers/290.10-0ubuntu2

To downgrade, download the .deb, then use sudo dpkg -i /path/to/nameof.deb

Switch to the nouveau driver which works ok but for many isn't as good. Can be improved a bit by enabling vsync in nouveau which is done in xorg.conf

At least here this only affected a 32 bit install. So dumping that install & starting over with a 64 bit install & shutdowns/restarts have been fine.

Otherwise wait for a new driver version where this doesn't occur, haven't seen one yet here


Help with increasing available space when using Live USB

I'm a little confused as to why you'd want the ability to install enough software to stretch the 4Gb limit of the standard pendrive Live, but then not want to use persistence.  You'll have to reinstall all the software each time you reboot.

However - I would suggest that persistence is the best way to give yourself that extra room.

A Casper-RW persistence file is limited to 4Gb due to the FAT32 4Gb file size limit - so you might want to try a persistent partition if you need more.

The answers to this question will be helpful : Unable to boot Ubuntu Live USB Flash Drive with casper-rw persistent partition


Can't perform regular sudo commands, have to use su now

The standard setup requires all sudoers to be in the admin group. You either dropped out of that group or are using an account that never had this group membership.

As root, add yourself to the admin group

addgroup myusername admin

And try again. If this didn't do the trick then something in your sudo setup is not as it should be. Maybe let us have a look at /etc/sudoers. I would expect there to be the last line:

%admin ALL=(ALL) ALL


I made a little script to make backing up the phone easier. It's on github.

https://github.com/popey/buds


Use login user credentials for wired 802.1X authentication

After much dig i found this, hope this can help people in the future.

https://github.com/ehbello/pam-8021x


How does one get System Load Indicator (or something similar) working in 17.10?

This is a bug, and it's been already reported to developers of the app:

https://bugs.launchpad.net/ubuntu/+source/indicator-multiload/+bug/1714804

You can upvote it if you wish, to let the developers know that it does matter for you -- maybe it'll somehow speed them up in releasing the fix?

Report that it affects you -- this will add 4 points of "bug heat" ("hotness").
Subscribe to bug's notifications -- it'll add 2 points.

(It currently has 48 points.)

But in comments in the very bug I found that there is already a not bad extension for gnome with the same features:

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet

So there's probably no need at all to fix this bug, if one can simply use existing extension?

Its installation is a little bit tricky, but there are instructions there, I simply followed them and right now I've managed to successfully install it.

Try it yourself!


How can I change the wallpaper using a Python script?

Unfortunately, gconf doesn't really clean up after itself very well. That's and old setting. With GNOME3 and Unity in 11.10, the desktop background setting is now stored in dconf. With dconf-editor you can find the setting at org.gnome.desktop.background.picture-uri

Here's a quick example showing how to change the background with python, GTK, and GObject Introspection:

#! /usr/bin/python

from gi.repository import Gtk, Gio

class BackgroundChanger(Gtk.Window):

    SCHEMA = 'org.gnome.desktop.background'
    KEY = 'picture-uri'

    def __init__(self):
        Gtk.Window.__init__(self, title="Background Changer")

        box = Gtk.Box(spacing=6)
        self.add(box)

        button1 = Gtk.Button("Set Background Image")
        button1.connect("clicked", self.on_file_clicked)
        box.add(button1)

    def on_file_clicked(self, widget):
        gsettings = Gio.Settings.new(self.SCHEMA)

        dialog = Gtk.FileChooserDialog("Please choose a file", self,
            Gtk.FileChooserAction.OPEN,
            (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
             Gtk.STOCK_OPEN, Gtk.ResponseType.OK))

        self.add_filters(dialog)

        response = dialog.run()
        if response == Gtk.ResponseType.OK:
            background = dialog.get_filename()
            gsettings.set_string(self.KEY, "file://" + background)
        elif response == Gtk.ResponseType.CANCEL:
            pass

        dialog.destroy()

    def add_filters(self, dialog):
        filter_image = Gtk.FileFilter()
        filter_image.set_name("Image files")
        filter_image.add_mime_type("image/*")
        dialog.add_filter(filter_image)

        filter_any = Gtk.FileFilter()
        filter_any.set_name("Any files")
        filter_any.add_pattern("*")
        dialog.add_filter(filter_any)

win = BackgroundChanger()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()

Here are two helpful blog posts on  GSettings and Python:

http://www.micahcarrick.com/gsettings-python-gnome-3.html

http://www.lucidelectricdreams.com/2011/06/reading-and-writing-gsettings-from.html


Try to enter to .local folder using the next command:

$ cd ~/.local

If you got:

bash: cd: ~/.local: No such file or directory

then it have not been created because of software using it have not been installed or run, or have been removed by someone.

It does not exist by default.

Default content of ~/ user's folder is:

$ ls -ailh /etc/skel/
total 48K
1835117 drwxr-xr-x   3 root root 4.0K Mar  2 01:45 .
1835009 drwxr-xr-x 164 root root  12K Mar 21 23:21 ..
1837168 -rw-r--r--   1 root root  220 May  5  2019 .bash_logout
1837169 -rw-r--r--   1 root root 3.7K May  5  2019 .bashrc
1845947 drwxr-xr-x   2 root root 4.0K Mar  1 22:56 .config
1845949 -rw-r--r--   1 root root  15K Sep 29 17:56 .face
1837170 -rw-r--r--   1 root root  807 May  5  2019 .profile


How to set subtitles to 'none' as a default for totem?

Make subtitle overlay invisible
After a lot of googling found the same Q&A here in AU: totem (videos) - turn things off?. Just like your question the OP there doesn't want to set font size to 1 pixel as a work around.
The answer posted in the question found that a font size of ``0 using gsettings worked perfectly:

Permanently remove subtitles from your videos
Another option is to permanently remove subtitles from your .mkv files. The author in the link explains how to do it for both soft titles and hard titles (by cropping out the lower part of the picture). The article is divided into three parts:

Part One: Check if the Subtitle is Soft Subtitle or not
Part Two: How to Remove Soft Subtitle from MKV, AVI and MP4?
Part Three: How to Remove Hardcoded Subtitle from MKV, MP4 and AVI?

Email developer with new feature request
The GNOME Totem developer is Bastien Nocera. You can email him at hadess@hadess.net and ask for a new feature of setting newly opened video default language. In your case it would be "None". However for other users there is a benefit if for example their system's language was set to "Russian" but they wanted all videos opened to have "English" subtitles.

Change the source code and recompile
Totem source code can be found on github. If the developers doesn't accommodate the new feature request, you can modify the source code:

Find the module where the subtitle format is assigned
Find the line where the subtitle is set to your language
Add a new line of code overriding the language to none

It could take many hours to add the one line to the source code but you might find the process enlightening and enjoyable
I spent about 10 minutes to find the function that sets the subtitle in module: https://github.com/GNOME/totem/blob/master/src/totem-menu.c at line 246:
select_subtitle_action_cb (GSimpleAction *action,
               GVariant      *parameter,
               gpointer       user_data)
{
    totem_playlist_select_subtitle_dialog (TOTEM_OBJECT (user_data)->playlist,
                           TOTEM_PLAYLIST_DIALOG_PLAYING);
}

Totem uses GStreamer for heavy lifting
Thanks to the answer by Chriki, we learn a lot about Totem internals and how it calls GStreamer to do the heavy lifting of video playback. There is a GStreamer interface option where subtitles can be turned off altogether:

Supports stream selection and disabling. If your media has multiple audio or subtitle tracks, you can dynamically choose which one to play back, or decide to turn it off altogether (which is especially useful to turn off subtitles). For each of those, use the “current-text” and other related properties.

The part stating "which is especially useful to turn off subtitles" is probably where an updated version of Totem would target.
As pointed out by Chriki, GStreamer selects the default subtitle language and provides a list of all subtitles which Totem uses to populate it's settings menu. Totem is providing another option of "None" which when selected instructs GStreamer to turn off subtitles.
I think the design change would be to remove the "none" option from the subtitle selection menu. Then create a global menu option for "subtitles on/off" which is persistent across Totem sessions. Perhaps when each new video is started a 5 second bubble could display "Available subtitles turned off." to remind the user they can be turned on for the current video if desired.
That said I'm a beginning bash script maker and C programming to modify the Totem to GStreamer interface is above my pay grade.


You can use debian snapshots. Add the following lines to /etc/apt/sources.list

deb     http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb-src http://snapshot.debian.org/archive/debian/20070730T000000Z/ lenny main
deb     http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main
deb-src http://snapshot.debian.org/archive/debian-security/20070730T000000Z/ lenny/updates main

Now do

$ apt-get update
$ apt-get install g++-3.4

And you're set!

This works for many other old packages, make sure you select the correct timestamp, look for the correct one at snapshots.debian website.


For computer, uid is the only way to identify a user, since usernames are a convenience for humans. Most linux distros start generatiing uid for local users at 1000, and the highest available uid is 65535. In general, uid below 500 is reserved for system account, 0 is typically reserved for the user root.
Hope it helps.

check the following files, you may get an overview of your accounts/password properties,

/etc/passwd

/etc/shadow


You won't be able to use DisplayPort with the default video driver. You have to install AMD / Nvidia's driver, depending on your manufacturer

To install AMD drivers, visit the official support page.

To install Nvidia drivers, this guide should be of help.


What would be the concept behind the password not being echoed on cli

One possible explanation is that command line logins have been around for much longer than GUIs. I think the dots that replace characters are a relatively new idea that have been implemented in GUIs. On the command line, however, nothing was originally shown and it has stayed this way over the years.


A .srt file contains simple text in it. If you want to open a .srt file, open it with your favourite text editor to see the contents.

If you want to use the .srt file as subtitle with a video. First copy it to the same location that of the video. Rename it to the name of the video and open it with a media player e.g. vlc etc.

If your video name is movie.mp4, your subtitle name should be movie.srt.

Note: If you still have any problem. Go to Video >> Subtitle Track and check the .srt file is showing or not.


Python opencv can't read in default images

OpenCV does not come 'bundled' with any images. messi5.jpg is supposed to be substituted with any available image present in the current working directory


"Impossible" to install Ralink rt5370 driver on Xubuntu 14.10

The first step I suggest is to blacklist the driver for the internal card so that the driver suites don't interfere. From a terminal:

sudo -i
echo "blacklist ath5k"  >>  /etc/modprobe.d/blacklist.conf
modprobe -r ath5k
exit

It may take a reboot. If this is ineffective, I will edit this answer with further steps.


Can't do anything on HD NTFS partition, my user is the owner

Boot from Windows. Disable the Fast startup the open the windows terminal and run the following command:

powercfg /h off

Boot from Ubuntu and run

sudo ntfsfix /dev/sdaX

Create a mount point:

sudo mkdir /mnt/ntfs

Mount the NTFS partition:

sudo mount -t ntfs /dev/sdaX /mnt/ntfs

Replace sdaX with your NTFS partition.

Run :

gksu nautilus

Be careful because your about to run nautilus as root , change directory to /mnt/ntfs  to make changes.


This is a known limitation of the new Unity shell. The bug to track is here: https://bugs.launchpad.net/unity/+bug/580295


Anyway to correct the banner “UNPROTECTED” after installing NordVPN?

The NordVPN Status GNOME shell extension for Ubuntu 18.04 LTS (and I presume for all Linux distros, not just Ubuntu) has been broken for a while.

I'll post an update here if/when this bug gets fixed.

As a workaround, you can install the VPN Indicator, another GNOME shell extension (included in the standard Ubuntu software folder).  This simple extension tells you that the VPN is up but does not provide any details as to which VPN you are connected to.

According to NordVPN Support, both of these plugins were not created by NordVPN not do they support them.  IN fact, I was told that they recommend not using them for security reasons.  Since the NordVPN Status plugin has been broken for quite some time, it's possible and even likely that the the project has been abandoned. The VPN Status plugin does work as expected (at least for me).

NordVPN has no "authorized" plugin that is certified for their service.


How can I make WiFi more stable on Ubuntu 15.10?

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

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

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.

Next, I am interested in which firmware version is being loaded. Reboot and run:

dmesg | grep iwl

Post the results that relate to firmware.

It appears that the driver finds and loads the -13 firmware but would use the later -14 or -15 if available. With a working internet connection, please do:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/OpenELEC/iwlwifi-firmware.git
cd linux-firmware/firmware
sudo cp iwlwifi-7265D-14.ucode  /lib/firmware
sudo cp iwlwifi-7265D-15.ucode  /lib/firmware

Reboot and check:

dmesg | grep firmware

Ideally, the -15 firmware is loaded and performance is greatly improved.


Step by step guide to partition an external HDD in two file formats

Gparted way
You can use gparted as a powerful tool to accomplish this task. Install it first. Open a terminal (CTRL+ALT+T) and issue the following command
sudo apt-get install gparted

Then open it and follow the pictures-tutorial below.
Attach the external HDD and open gparted. Then select your HDD from the dropdown list.

Unmount the device or else you will not be able to do anything. The "key" must disappear.

Right click on the partition and select Resize/Move

Use your mouse cursor to shrink the partition and leave the space you want. From right to left. From the end to the beginning (always)

After this, right click on Unallocated space and click New.

From the FileSystem drop-down menu select Fat32

Last, click the button in order to apply all pending operations.


Why I can't unpack a .zip folder on GUI?

When an archive manager says it's received an error loading an archive, chances are the archive is corrupted. Try downloading it again.

To set the default application for a specific file type, right-click the file and select Open With.... Find the application you prefer in the list and make sure the check box saying Always use this application or something to that extent is checked. After that, the file should open with the desired program once you click Open.


Run gconf-editor(press alt+f2 and type gconf-editor)

Browse to "/desktop/gnome/session/required_components" and change the value of "panel" from gnome panel to awn or docky or you can try to leeav it empty but i'm not sure if it works.

The log out and log in!


Vortex Mod Manager Unable to find SkyrimSE.exe

The first time I tried Vortex under Wine, I used symlinks from my Wine Vortex install to the Steam common directory and from steam common to wine vortex install directory. It is a real pain if you are new to Ubuntu but it worked. That is it worked once I got Vortex to not crash on loading. Reacquainting myself with Linux Distros happens every couple of years. My OS is now POP Ubuntu from system 76. Here is the link to doing it that way:
https://www.reddit.com/r/linux_gaming/comments/hxt7gx/guide_use_nexus_vortex_or_another_mod_manager_in/
Anyway I will be trying out the following next:
The reported easiest way is to install the Windows version of Steam under Wine that way Vortex, or almost any Windows mod manager, will not have a problem finding your games. Check this out.....
https://rootgamer.com/how-to/install-steam-windows-ver-on-linux


You can type this in the terminal:

sudo apt-get --reinstall install ttf-mscorefonts-installer

Than you need to accept license when prompted, you use TAB and ENTER to accept the license.

If the above doesn't work try one of these ways to mannually add the fonts:

You can paste Windows fonts to /home/YOURUSERNAME/.wine/drive_c/windows/Fonts.

Or you can paste Windows fonts to /usr/share/fonts/, although to enable paste option in there you need to open Nautilus as root:

gksu nautilus /usr/share/fonts

And then you will be able to paste Windows fonts there.


How do I get my HP M1132 printer to work?

I know this alternative driver works for debian lenny and ubuntu 12.04.

HP LaserJet 1022 Foomatic/foo2zjs-z1

This driver also works for HP Laserjet M1319f MFP however this only works for printing. The scanner will not work with this driver.


take-vector-screenshot: focusing the window before taking the screenshot

This (somehow) appears to be related to my shell.

If I run bash and then try sleep 2; wmctrl -a WindowTitle, it works fine.

Fails every time in zsh though - no idea why.

This doesn't solve the problem though: because the window still gets unfocussed when the save dialog appears. I fixed this part of the issue by forking gtk-vector-screenshot and adding calls to gtk_window_set_accept_focus(window, False);. I also removed the save dialog, so PDFs just get written to the home directory. It's a hack, but the project isn't being maintained anymore and it does the job for me.


How can I manipulate files (delete, rename, create, etc) in pop-up file menu in Ubuntu 16.04?

TL;DR seems to be not true, or half-true.

On both 14.04 LTS and 16.04 LTS user can Create Folder from the Save variant of GtkFileChooserDialog.

There are some differences in GtkFileChooserDialog functionality between Ubuntu versions.

On 14.04 LTS it has hardcoded (by file_list_add_menu_item and file_list_add_check_menu_item in gtk+3.0-3.10.8/gtk/gtkfilechooserdefault.c):

Visit File in Recent items (opened by Alt+R)
Copy Location anywhere (in Open and Save)
Add to Bookmarks for folders anywhere
—
checkbox Show Hidden Files anywhere
checkbox Show Size Column anywhere

So there are no Rename, Delete, Move to Trash options.

On 16.04 LTS it has hardcoded (by add_button inside file_list_build_popover in gtk+3.0-3.18.9/gtk/gtkfilechooserwidget.c):

Visit File in Recent items (opened by Alt+R)
Open With File Manager for folders anywhere
Copy Location anywhere
Add to Bookmarks for folders anywhere
Rename in Save dialog (!)
Delete in Save dialog (!)
Move to Trash in Save dialog (!)
—
checkbox Show Hidden Files anywhere
checkbox Show Size Column anywhere
checkbox Show Time anywhere
checkbox Sort Folders before Files anywhere

Notes:
1. I can't find Rename, Delete, Move to Trash  functionality in GTK+2.0 version of GtkFileChooserDialog.
2. In GTK+2.0 the New Folder, Delete File, Rename File buttons are provided in deprecated GtkFileSelection (not sure about the name)  and it is rare use now. Screenshot above is for application from 2012 year.
3. Examples of GtkFileChooserDialog may be found in Pickers example from GTK+ packages with examples - gtk2.0-examples and gtk-3-examples.


How to open .doc file using king office writer as default?

Let's say your username and home folder is gman and you have your King's Office software in /home/gman/ko.

Go to your King's Office folder. cd /home/gman/ko/ (Ctrl+Alt+t open terimanl )
Create a .desktop filegedit kingsoffice.desktop and edit it as:

[Desktop Entry]

Name=King's Office

Exec=/home/gman/ko/ko.run (or what ever the name of the executable is)

Terminal=false

Type=Application

Finally make thi file executable chmod +x kingsoffice.desktop and copy it  cp kingsoffice.desktop  /usr/share/applications.Now you can set King's office as default. If you want you can even drag and drop the .desktop file to the launcher.
Then right click on a document go to Properties and to Open With and choose King's Office


How do i login/logout change with ati/intel hybrid graphics?

The new Catalyst driver (12.1) supports the 6770m in the HP's. I am a bit suss about the performance though.


How can I install bluetooth driver in lenovo B570e?

sudo service network-manager stop
sudo rmmod acer_wmi
sudo modprobe acer_wmi
sudo rfkill unblock all
sudo service network-manager start
sudo rmmod -f acer_wmi

then to get the settings to stick after reboot type

sudo su
echo "blacklist acer_wmi" >> /etc/modprobe.d/blacklist.conf
exit

and you will have working wifi and also bluetooth
for further detail visit the site http://www.ubuntu.com/certification/hardware/201206-11154/


Is it possible to integrate rabbitvcs with a file manager krusader Krusader?

See How to install rabbitvcs on Ubuntu 15.10 (Wily Werewolf) for using Nautilus (i.e. the standard Files manager) for SVN notification and usage (just like in TortoiseSVN).
RabbitVCS is available in the Ubuntu universe repositories:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus

After this and a reboot you will have file version status tags in the standard Ubuntu Files manager, and a RabbitVCS SVN context menu on your right mouse click.

So there is no option or plugin for Krusader I know of.


Kubuntu Network Manager setting wrong route when using OpenVPN

With the same symptoms, in my case happened that with the network manager it was being created a new default gateway as first routes entry, which in console command was not created.

I solved the issue checking "IPv4 Settings tab > Routes > Use this connection only for resources on its network" told here.

Maybe it is not the solution for your issue (but I hope it would), but maybe it is for anyone around :)


I find that I never use my swap partition.  If you have sufficient RAM on your machine, you might be able to do without it.  Go to a command window and type in

free -m

You should see on the last line a reference to 'Swap'.  If the used on this is zero, and stays that way consistently, shrink your swap partition down with gparted or remove it entirely.

You could, potentially, use a swap file, but I am uncertain how reliable the technique is for doing this given Linux's emphasis on using a partition for this instead of a file.  If it turns out that you need a swap file, google 'swap file linux' and instructions on how to set it up should be readily available for you.


How can I update adobe flash player when Adobe doesnt support linux anymore?

You go and download Google Chrome to have the "latest" Flash available. Adobe will not release a new version of Flash (on any platform, add to that the lack of support for Linux), but it will continue to release security updates.

You can also try the free implementations of Flash. Lightspark or Gnash. If you do not want to use Chrome and prefer Firefox for instance, you can install the package flashplugin-installer.


Cannot boot into Windows 10 after upgrading Ubuntu 16.04 LTS to 18.04 LTS

I managed to get Windows to boot!!!

Ok here is what I did to fix it:

I launched a Windows Installer USB and entered the command line
I ran bootrec /rebuildbcd to fix my BCD then
bootsect /nt60 C: /force <-- This clears GRUB from the NTFS Boot sector
Then GRUB couldn't boot Windows, it just went to a black screen with a DOS cursor
To fix this I had to add: ntldr /bootmgr after chainloader +1 in my /boot/grub/grub.cfg

The GRUB fix is here:
*Grub* Windows 10 doesn't start anymore


I think i found a soultion:

Type

uname -r

Remember the kernel that you are currently on.
Now remove the OTHER kernels:
To remove a kernel versions, open up Synaptic Package Manager, found in the System > Administration menu.

When it opens up, type the kernel version that you want to remove in the Quick search text field. The first few numbers should suffice.

For each of the entries associated with the old kernel (e.g. linux-headers-2.6.32-21 and linux-image-2.6.32-21-generic), right-click and choose Mark for Complete Removal.

Click the Apply button in the toolbar and then Apply in the summary window that pops up. Close Synaptic Package Manager.

Now type in the Command Line:

sudo apt-get update
sudo apt-get upgrade

You should have the latest kernel installed now.
Update Grub:
    sudo update-grub


D-Link wireless network usb will not auto-reconnect

I would suggest you follow this tutorial.

First thing is to check that your key is the right one.

Run lsusb and if the output includes Bus 002 Device 020: ID 2001:330d D-Link Corp this tutorial will work.

Now install the firmware sudo apt-get install linux-firmware linux-firmware-nonfree

Next manually load it with these commands:

sudo modprobe rtl8192cu swenc=1

echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id

The blue light should switch on. It can be used from Network Manager.

To get it to auto load at boot:

sudo gedit /etc/modules

and add the lines:

# DWA-131 rev B1 D-Link WiFi
rtl8192cu

then

sudo gedit /etc/modprobe.d/net-rtl8192cu.conf

and add the lines

#D-Link WiFi
options rtl8192cu swenc=1

Finally,

sudo gedit /etc/rc.local

and add the following lines before the exit 0

# Declare DWA-131 USB ID to rtl8192cu module D-Link WiFi
echo "2001 330D" | tee /sys/bus/usb/drivers/rtl8192cu/new_id

You can now reboot your computer. WiFi connection should start automatically ...


6 gig file won't fit on 8 gig flash drive

As ethanbmnz said, you likely have a FAT formatted drive.

So your options are To split the file, however it will need to be "glued" back together to be usable

In my opinion, better option is reformat the drive in NTFS, this way it can be usable on both Windows and Linux and you don't have the 4GB file limit


All 10.10 apps will work after going to 11.04?

In my case every application just worked. In the worst scenario you still have Gnome2 (instead of the default Unity), so I guess you will experience no problem running your applications.


VGA Monitor won't display after NVIDIA driver install on Ubuntu 12.04

That is a known bug with proprietary Nvidia drivers in Ubuntu. You have to use the Nvidia-X server settings to do it. Now, since you cannot see your laptop screen to do this I would recommend this:

1- While in reverted mode (no Nvidia drivers) install Disper.

2- Once installed Disper lets you manage your output display by assigning shortcut keys to disper comands. An example: Open the keyboard menu in ubuntu, go to shortcuts and there to custom shortcuts. Then create a new one (e.g. Ctrl+Alt+Enter) and assign it to this command

disper -S

You can also create a second shortcut (e.g. Ctrl+Atl+Del) and assign it to:

disper -s

3- Install Nvidia drivers in the usual way and restart your laptop. Also make sure that disper is in your startup application list.

4- When rebooted simply press the first shortcut key combo Ctrl+Alt+Enter and it will send your desktop to the external display. To revert back to default just press the second shortcut Ctrl+Atl+Del.

There are many more posibilities with disper...just explore the website and the examples provided.

Hope that is helpful.


Synaptic remove "gedit" wants to remove "ubuntu-desktop". How can I reinstall "gedit"?

You shouldn't lose your desktop by removing ubuntu-desktop, because it is a meta-package that simply allows to easily install all default packages in the Ubuntu Desktop environment. However, it is recommended to install it again before any system upgrades.

You can safely remove gedit and ubuntu-desktop, then install ubuntu-desktop again. It will automatically select gedit for installation, because gedit is included in the meta-package.

Although is perfectly safe to do what you want, is usually unnecessary to re-install applications, unless they got corrupted by a power outage or broken update. As @sagarchalise commented, deleting the config files for the application usually solve most problems and if you are looking to reset your customizations, then that is the way to go. Re-installing won't change any personal customization.

  Note: after reading your message about losing your desktop, I did a
  test on a VM, just to make sure
  nothing has changed since Maverick. I
  didn't lose my desktop even after
  rebooting and I was able to install
  both packages again.


Problems with Canon LBP3300 installation

I got a pretty similar problem with Ubuntu 19.04 can see Canon LBP6030/6040/6018L (as a wireless device) but printing does not happen.
Eventually I got this working:
(1) initial state. Ubuntu sees the printer but drivers could not be found automatically or pick up from the Ubuntu db manually.
(2) once I installed 2 deb packages from the archive downloaded from
https://asia.canon/support/imageCLASS%20LBP6030__%20LBP6030B__%20LBP6030w/model
sudo dpkg --install cndrvcups-common_3.90-1_amd64.deb
sudo dpkg --install cndrvcups-ufr2lt-uk_1.50-1_amd64
# most like some libs would be missed, run this to fix
sudo apt --fix-broken install

I could pick up the printer from the list New printer dialaog
But anyway the printing still does not happen.
(3) found this instruction from https://help.ubuntu.com/community/CanonCaptDrv190#A64-bit_Systems
which leads to install the following
sudo apt-get install libc6:i386 libpopt0:i386
sudo apt-get install zlib1g:i386 libxml2:i386 libstdc++6:i386

with such an explanation

64-bit Systems
Canon CAPT Printer Driver for 64-bit architecture include the proprietary closed-source 32-bit executable captfilter (called by pstocapt CUPS filter, used to convert PostScript data to CAPT data stream) which depends on 32-bit libraries libc6 and libpopt0. The libraries are not installed as dependencies.

After the above the printer came to life.
Note that some of the steps may be unnecessary since the instructions looked like voodoo magic with no clear explanation.


If you are using a debian / apt-get based OS the following command will remove software from you system. The first part uninstall the software and the second part removes any extra software that was installed but is no longer needed.

sudo apt-get remove [package name] && sudo apt-get autoremove

In the command above you need to replace '[package name]' with the name of the package you want to remove. In the case of local by flywheel, the name is localwp. So it becomes:

sudo apt-get remove localwp && sudo apt-get autoremove

You can also take it one step further and remove the configuration along with the software by using purge. This can only be done when the software is still installed.

sudo apt purge [package name]


Are you sure the keyboard isn't responding? For some password prompts, nothing will appear when you type. Try to just type the password you want to change it to and hit enter.


install windows 7 from virtual box on Ubuntu, create virtual hard drive

virtulbox installs an OS in a virtual disk file (.vdi). You don't need to make a partition. You can create or select this .vdi file when you create that virtual machine. You can surely store that .vdi file in the ssd drive if you can set the write permission.


For classic QBASIC like compile I would recommend you FreeBASIC. It is almost completely compatible with QBASIC and also has it's own extended dialect. And it's a fully fledged compiler, your programs will run almost as fast as they were written in C. The only problem is that there is no .deb package for Ubuntu.


Stop folders opening with different application than the file manager

Answer edited out from the question

Solution was obvious, in Nautilus I select a folder, right click, Open with other application, and pick "Files" which is apparently the name for Nautilus. Now that set the default back... until next time! I guess this is a cautionary tale.


Correct kernel version to install on a Motion Computing m1400 tablet?

This might help you with that installation:
http://ubuntuforums.org/showthread.php?t=1154085
and:
http://debian.livejournal.com/346277.html


Ubuntu 12.04 Grub disappear + live USB don't work

If you did not delete ubuntu partition, you can restore grub using Boot repair disk. Download Boot repair disk ISO and burn it in a CD using imgburn. Insert the CD and restart your computer, While restarting go to bios set up and select CD drive. In Boot repair disk menu option select default repair option.


First we need to see if the speakers are even loading properly.

While your speakers are working open terminal and type in aplay -l. If you are using dedicated speakers (not in your monitor) look at the first few cards labeled PCH. If you are using your monitor speakers look at the cards labeled HDMI. You may want to write this information down.

For example, my PC has:

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

All you need to take note of right now is the card number (0 for both) and the device number (0 and 1 in this instance).

The next time you boot up and your sound isn't working open the terminal and type in aplay -l again. Use what you remember from the first aplay -l output and compare the two.

If the two outputs don't match then your device isn't being loaded. This should help narrow down the potential cause of the problem.


I am not able to choose between windows 7 and ubuntu in the boot screen

You need Ubuntu 10.10 livecd for repairing grub boot loader . Here assuming the Ubuntu partition is sda7. Boot up ubuntu from the livecd,open terminal and run:

sudo  fdisk -i

and see what is your linux partition and note it I assume it sda7 here.

mount /dev/sda7 /mnt
mount /dev/sda7 /mnt/boot
grub-install --root-directory=/mnt/ /dev/sda
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
sudo reboot


wifi network list not showing in ubuntu 16.04

I've been having the same issue. Restarting network-manager usually fixes it (sudo systemctl restart network-manager or sudo service network-manager restart
), but it crops up again after rebooting.


The package manager says it right here :

libboost1.42-dev conflicts with libboost-dev (<< 1.35.0)
libboost-dev:i386 (version 1.34.1-15ubuntu3) is present and unpacked
but not configured. dpkg: error processing
/var/cache/apt/archives/libboost1.42-dev_1.42.0-4ubuntu2_amd64.deb
(--unpack): conflicting packages - not installing libboost1.42-dev

There is a previous version installed. (1.35.0)  I would go into synaptic and uninstall that version first and then try again.


Samba server doesn't notice changed password

I had the same issue after upgrading from Debian Squeeze to Wheezy. Other posts I saw suggested installing the libpam-smbpass package.

After I installed libpam-smbpass, changes to a user's system password were immediately reflected by Samba. (If the share was previously connected on a Windows machine, I did find that I had to log off and log back on to that Windows machine in order to use the new password.)


How do I sent files from Ubuntu to windows via terminal?

If the windows disk is mounted in Nautilus, it probably have the path at /run/gvfs/user/1000/ etc., and using such path should work. If my path is wrong, is something similar, Google for the right one.

Maybe need to install DEB package Samba server/client and also verify setup at app "personal file sharing".


Cameras are controlled by the uvcvideo kernel module.

You can disable the camera until reboot by opening a terminal and typing sudo modprobe -r uvcvideo. You will be asked for your password, and after typing it, if there are no errors shown in the terminal, your webcam should be disabled.

If you got the error message: modprobe: FATAL: Module uvcvideo is in use. after trying to remove the uvcvideo module, you can try to force its removal with the following: sudo rmmod -f uvcvideo (thanks thiagowfx)

To enable your webcam again, type sudo modprobe uvcvideo into terminal.

If you want the camera to be disabled when you reboot, then press ALT+F2 and paste this command:

gksu gedit /etc/modprobe.d/blacklist.conf

You will be asked for your password. After giving it, a text file should open. Paste at the end of the text file on a new line:

blacklist uvcvideo

Then save the file and exit. Next time you start Ubuntu, the webcam should be disabled.


Confused on the new tray icon and dock in ubuntu 17.10 gnome

I can suggest an ugly workaround. Try at your own risk.

Remove Ubuntu appindicators (not at all recommended, it will remove ubuntu-desktop metapackage)
by running

sudo apt-get remove gnome-shell-extension-appindicator

Install and activate KStatusNotifierItem/AppIndicator Support. It should show most of the app icons excluding electron based apps (Skype, Wire etc.), Thunderbird with Firetray etc. with the correct icon sizes.
Install and activate TopIcons or TopIcons Plus for the rest of the app icons.

I'm not sure whether installing "KStatusNotifierItem/AppIndicator Support" is necessary. But in my case TopIcons Plus is showing only the app icons not supported by  "Ubuntu appindicators" or "KStatusNotifierItem/AppIndicator Support".


You should declare --one-file-system first before the exclusion rule. There is note from the same guide you followed.

  If you want to exclude all other mounts other than the current - by
  this I mean partitions mounted to directories - then use the
  --one-file-system option appended before the exclusion rules. This has the effect of stopping tar from crossing into any other mounts in any
  directory including /mnt or /media.


Many printers will load by default, particularly HP.

Brother, however, does provide specific drivers for Linux, packaged in the .deb format for Ubuntu.  You can find the drivers for your printer here


How do I stop cd command from printing absolute path everytime?

I don't think you can stop it from printing, since that's the documented behavior:

If a non-empty directory name from CDPATH is used, or if ‘-’ is
the first argument, and the directory change is successful, the
absolute pathname of the new working directory is written to the
standard output.

However you could overload cd with a shell function that redirects standard output:
cd ()
{
    command cd "$@" > /dev/null
}


You can add the nameservers in the resolv.conf and make it immutable, which means - it can not be modified.

echo 'nameserver 8.8.8.8' > /etc/resolv.conf
sudo chmod 444 /etc/resolv.conf
sudo chattr +i /etc/resolv.conf

That should do a trick. To modify the file again do: sudo chattr -i /etc/resolv.conf


Unable to Mount NTFS partition "Not authorized"

How are you starting your X session ? it's likely you didn't launch your session with proper command , e.g ck-launch-session dbus-launch startxfce4 in ~/.xinitrc;

if you intended to mount them at boot , edit your /etc/fstab , append:

(Suppose to mount /dev/sda10 on /Misc)

/dev/sda10 /Misc ntfs defaults,uid=YOUR_UID 0 0

Replace YOUR_UID with your uid , use uid command to find it out.


Can I install Ubuntu onto a USB drive and boot it up not touching my Windows 10?

You need 2 USB sticks:

One to copy the autoboot Ubuntu on as per this answer so you can boot it outside of Windows
One more USB to then install Ubuntu on as per this one

Pro tip: use the cheap and slow one for the download and the fast, big one to install and use Ubuntu from.  ;-)


It could be a memory leak.  It could also be creating an undo storage area or any number of other minor things that no one thinks of when using a text editor, like syntax highlighting by extension for example.  If you want a really low memory profile go for vim or nano.  If you want to accept the impact of features, then go for something with a gui.


How can I update Google Chrome InRelease?

To make the Google Chrome update process working correctly, you will have to re-configure the Google software sources. To achieve this, open a terminal and execute the following commands :

sudo rm /etc/apt/sources.list.d/chrome-remote-desktop.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt upgrade

In case you still have problems with the update process, check the /etc/apt/sources.list file and remove any Google entry that may exist by executing sudo nano /etc/apt/sources.list.


APCUPSD and "do_IRQ: 3.33 No irq handler for vector"

From the comments...

In /etc/apcupsd/apcupsd.conf there are at least three settings that are important for proper operation of apcupsd via USB. They are UPSCABLE, UPSTYPE, and DEVICE.

In your case, UPSCABLE, UPSTYPE, should be set to usb, and DEVICE should be set to #DEVICE.


add workspaces with gnome classic and ubuntu 14.04

Do you mean gnome-session-flashback instead of gnome classic ? If yes, you can do that by installing the compizconfig settings manager and plugins packages, i.e.

sudo apt-get install compizconfig-settings-manager compiz-plugins

You need to start the compizconfig settings manager found under

Appications -> System Tools -> Preferences

Once loaded, click on General Options and the Desktop Size tab to set the workspaces.


How to find available applications on Unity

Press Super(windows key) + A to open the Application's Lens or click on 1. as shown here:

You will see three lists / categories:

Recently used
All installed
Available for download

Click on the second one (2.) and you will see a list with all your installed applications.

Filter them by clicking on Filter results (3.).


Going through the various comments in the thread suggested in the comment above (link), there was a lot of aggressive approaches, however, one suggestion was to visit /etc/apt/sources.list and see if there is any rubish. I revisited my source.list and cleaned it up, somehow after last Ubuntu version upgrade it got messy. I made sure that the cran repository points to a mirror relevant for bionic version I got istalled and voila, it works. Cheers!


The Windows 8 and Ubuntu 12.04 Dual Boot NIghtmare

Fair disclosure: I don't fully understand the mechanics involved. Still, after experiencing a similar nightmare with my laptop, what finally did it for me was realizing that I can't install grub too far into the drive; You don't say what partitioning scheme you tried, so I figured this might be the issue you're experiencing as well.

What I did was keep the UEFI structure intact (or, rather, allowing the Windows installation disc to create a new one from scratch), but I made sure to have a small (200MB) dedicated partition located relatively close to the beginning of the drive (around 400MB into it) which Windows leaves alone. (I can't stress enough, though, that it should still be Windows that partitions the drive. The way I did it, I completely removed the filesystem, then created a 400MB partition, my dedicated partition after it, then erased the original and let Windows do its thing with what's left. I'm sure you could simplify the process somehow, but I was seeing stars by that stage.)

Then, after Windows was done making a clean install in the rest of the space allotted to it (and, in the process, creating the necessary UEFI structure before my partition, and a Windows partition immediately after), I simply replaced that partition with an ext4 partition during the Ubuntu installation and mounted it as /boot, installing grub to it.
Everything worked fine after that (after running boot-repair, that is).


Jdk or headless version ? Which should I use for Hadoop installation

You should use jdk for installing hadoop. In the hadoop-evn.sh file set export $JAVA_HOME=jdk path.
You can check the path using readlink -f $(which java)


3 fingers swipe change workspace in Ubuntu 14.04

I'm running 15.04 and I got the three finger swipe working with xSwipe. I did it by following this tutorial:

Ubuntu 13.10, Mint 16, and Up

First download the following dependencies.

sudo apt-get install build-essential libevdev-dev autoconf automake libmtdev-dev xorg-dev xutils-dev libtool

Now, we need to remove the old driver so the new one will overwrite it.

sudo apt-get remove xserver-xorg-input-synaptics

Then, clone the source and build the new driver!

git clone https://github.com/felipejfc/xserver-xorg-input-synaptics.git
cd xserver-xorg-input-synaptics
./autogen.sh
./configure --exec_prefix=/usr
make
sudo make install

When this completes, reboot and make sure your pointer works.

Setting up xSwipe

First install the dependencies.

sudo apt-get install libx11-guitest-perl

Then enable SHMConfig to allow for handling of the gestures.

mkdir /etc/X11/xorg.conf.d/
sudo nano /etc/X11/xorg.conf.d/50-synaptics.conf

Fill the file with the following, and save it!

Section "InputClass"
Identifier "evdev touchpad catchall"
Driver "synaptics"
MatchDevicePath "/dev/input/event*"
MatchIsTouchpad "on"
Option "Protocol" "event"
Option "SHMConfig" "on"
EndSection

Now clone xSwipe to a location of your choosing.

git clone https://github.com/iberianpig/xSwipe.git

And change the eventkey.cfg file to your liking. EDIT: It seems in both 13.10 and 14.04 versions of Ubuntu (and any version of Cinnamon), the keys set in the "other" category are the ones that are signaled on key swipes. Ignore the ubuntu and gnome sections for unity and cinnnamon.

cd xSwipe/
nano eventkey.cfg

Now test by running:

perl xSwipe.pl

Try to swipe with different gestrues and check the terminal to see if they are working. If they are, you may now add the script to your start up programs depending on your environment. After it is added, reboot and you should have working multitouch gestures!

Update: This seems to take about an hour out of my battery life. To get around this, I change the sensitivity with the parameter -m 30.

perl xSwipe.pl -m 30

All credits go to Matthew Iannucci, find this tutorial and comments here: Whole tutorial

If this does not work for you, you can try the tutorial of iberianpig, who made xSwipe. -> Tutorial

If you want to configure the gestures look here: -> https://github.com/iberianpig/xSwipe/wiki/Customize-eventKey.cfg

Here is my eventKey.cfg already configured for the 3 finger workspace swipe: http://pastebin.com/f1E1L26V


Is there a way to set the MAAS password via a preseed?

As stated in MAAS documentation, altering the preseed files is not recommended, because it might prevent MAAS from properly commissioning and installing nodes.

Are you able to connect to the node using SSH and user ubuntu? If so, looking in /var/log/dmesg and /var/log/syslog can help diagnosing startup and networking issues.

If you need to alter the preseeds, you can find the full documentation, describing all supported settings here. There is a section about changing the default root user account and password (see "Account setup"). If you change these though, MAAS might have trouble bringing the node up to Ready state.


You could reinstall unity completely with sudo apt-get install --reinstall unity


Difference Ubuntu Server and Ubuntu Desktop in network support

Thanks to the comments and some research I found an answer for my question.

Ubuntu Desktop comes with Network Manager while Ubuntu Server configures its interfaces in /etc/network/interfaces.

In my special case the setup in this file was incorrect which caused the problem. In case of Ubuntu Desktop the Network Manager was able to automatically configure my interface.

Last thing to mention is that it is quite easy to install Network Manager also on Ubuntu Server. I used this documentation which comes unfortunately only in German.


Just installed Ubuntu but how do I get it to boot

What you need to do use use Boot Repair. Boot repair is an application with repairs/reinstalls the GRUB2 boot menu, which allows you to choose between Ubuntu and Windows when your computer boots. As you do not have access to Ubuntu, you will want to create a Boot Repair USB, and boot from it to repair the boot menu.


It might be redshift which can't figure out your location, as I believe it uses the Gnome-clock to do this.

Try go to http://www.getlatlon.com/ and type in your city. Then use the shown lat-/longitude in a terminal command as following:

redshift -l x:y

x = latitude (ex. 56.15)
y = longitude (ex. 10.12)

ex:
redshift -l 56.16:10.12


Cannot create cache directory ! help me solve this when create laravel project with composer

According to your path i.e that follows /home/smmm/.composer/cache/repo/https---packagist.org, you have to try these commands to solve your problem.

Change the group permission for foldersudo chown -R smmm /home/smmm/.composer/cache/repo/https---packagist.org
Change the files foldersudo chown -R smmm /home/smmm/.composer/cache/files/
And then for the whole composer's directory change the permissionsudo chown -R smmm /home/smmm/.composer

Best Regards


From the PC you're using to the other one run:
scp <path_to_the_file> username_of_the_other_PC@IP_address_of_the_other_PC:<path_where_you_want_to_copy_the_file>

EXP:
scp ~/folder_1/filename.mp4 second_pc@192.168.1.50:~/hdd_2/folder_2/


Can't turn off syncing, option not seen in Ubuntu One dashboard

you are probably refering to this image

 in the tutorial here. Right?

The reason why you don't see this, is probably that you want to stop syncing the ~/Ubuntu One folder, which is always in sync. Only additional folders which are synced from elsewhere in your file system can be turned on/off.

(And I don't know what your last sentence: "I need to turn off syncing in order to store data off my computer in Ubuntu One." means. Maybe you could be more specific on what you need and why you need to turn off syncing for this?)

EDIT: Ubuntu One is not designed to store your data online, it is designed to synchronize data between your computers. Therefore you will not be able to keep a folder in Ubuntu One if you don't have it synchronized to any of your computers.

"Stop syncing" on the Ubuntu One website gives you a warning that the folders will NOT be deleted on your computer, but it will no longer be on the Ubuntu One servers.

If you have many computers, you can on each computer start/stop synchronizing the folders via Nautilus (the file manager) or via the Ubuntu One control panel (start e.g. via the mail icon in the panel and then "Ubuntu One"). Stopping via those ways does not remove the folders on the Ubuntu One servers, unless this was the only computer syncing that specific folder.

Its not completely straight forward, but you will understand it, if you remember that the Ubuntu One files service is only intended for syncing, not for storing data.


Loosing user permissions after upgrading Kubuntu 14.04 to 14.10

I'm going ro answer my own question.

This appears to be a recurring bug which has been reported on Launchpad back in 2013. Every version of ubuntu since is affected by this but not everyone sees the error. On the moment I write this (march 2015) there's no permanent solution, however there are workarounds to solve the problem.

For Ubuntu 14.10 the problem appears to be related to the package ulatencyd. Removing this package causes the error to disappear in my situation. If I recall correctly I've installed this package manually on a certain moment in time so it does not belong to a standard install and therefore this might not affect everyone.

More details about this bug and how to solve it in different Ubuntu versions can be found at: https://bugs.launchpad.net/ubuntu/+source/policykit-desktop-privileges/+bug/1240336


You can fix this with this command:

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


gem install eventmachine fails, using rvm

That looks like this issue on Github: https://github.com/eventmachine/eventmachine/issues/392

The basic solution was recompiling ssl with shared, details are inside the link.


After upgrade from 13.04 to 13.10, bumblebee doesn't work anymore

Okay I found a solution, if you check:

  http://www.webupd8.org/2013/10/fix-bumblebee-libturbojpegso-issue-in.html

You'll see that the filename has changed from libturbojpeg.so to libturbojpeg.so.0 which breaks bumblebee. Follow the instructions there to fix it.


Can't login to a remote server after uploading ssh key to the remote server

After a long search for my mistake, I found that agent refused operation problem can be rectified just by running one command in the terminal ssh-add. Looks like an ssh-agent is running already but it can not find any keys attached. To solve this add the private key identities to the authentication agent like ssh-add


If I understand you correctly, here's a verbatim post from U&L:

with newline
 echo -en '-e\n'

without newline
 echo -e '-e\c'

with spaces around:
 echo '-e '
 echo ' -e'

using backspace (thanks to Joseph R.):
 echo -e ' \b-e'

(it does output SPC BS - e LF, but when sent to a terminal that's rendered as -e as BS moves the cursor back one column to the left causing - to overwrite the SPC)
The behaviour of bash's echo builtin may depend on bash version. It also depends on the environment (POSIXLY_CORRECT, SHELLOPTS and BASHOPTS variables), the options (posix, xpg_echo), the build options and argv[0] (sh vs bash). Here tested with GNU bash 4.2.53(1), default build, default options, empty environment, invoked as bash. Works also with zsh 5.0.5.


Unable to use set static IP on Ubuntu 16.04

You successfully setup a static IP, but you've set 192.168.1.1 as a gateway that doesn't exist.

You can connect to other computers connected to the same switch with other IPs from this subnet. But you can't get anywhere else from there until you set a valid gateway.

And your IP address should be in the same subnet as the gateway.


Dependency error: Unable to install Anjuta IDE

You can install the following packages

libjavascriptcoregtk-1.0-0 (2.4.8-1ubuntu)
libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2)
libjavascriptcoregtk-4.0-18 (2.6.2+dfsg1-4ubuntu1)

but not libjavascriptcoregtk-2.4.9-0.

And you had the PPA ppa:webkit-team in your system before and therefore libjavascriptcoregtk-3.0-0 (2.4.9-0ubuntu1~15.04~webkitteam1) installed. If you need the PPA (again) jump at the end of my answer and ignore the next steps.

The problem is, libwebkit2gtk-3.0-25 from the Standard Ubuntu Repositories needs exactly libjavascriptcoregtk-3.0-0 (2.4.8-1ubuntu2).

The fast solution is, downgrade the package libjavascriptcoregtk-3.0-0 via

sudo apt-get install libjavascriptcoregtk-3.0-0=2.4.8-1ubuntu2

but you should use the commands below to downgrade all packages, upgraded by the PPA ppa:webkit-team

sudo apt-get install ppa-purge
sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo ppa-purge ppa:webkit-team

In the future, use ppa-purge to remove a PPA from your system.

If you need the PPA, add it again and use it and your problem will be solved, too

sudo apt-add-repository ppa:webkit-team
sudo apt-get update
sudo apt-get dist-upgrade


Display issues(Snow) waking from suspend Ubuntu 19.10

This bug has been reported in launchpad where you can subscribe to it (and similar) bugs:

Ubuntu 19.04 Background and lockscreen image turns into white noise after sleep and wakeup

It's actually part of a larger bug affecting even more people:

[nvidia] Corrupted wallpaper after resuming from suspend or hibernation


Add manually installed application to 'Show Applications' grid in Ubuntu 18.04

You can do that by creating a launcher for the application (.desktop file) in your ~/.local/share/applications directory.

First create an empty text file, name it something like <application-name>.desktop, and add the following lines to it

[Desktop Entry]
Name=Application Name
Comment=A short description of the application
Exec=/full/path/to/application/executable
Terminal=false
Type=Application
Icon=/full/path/to/icon-file

Then save the file. If it doesn't appear in 'Show Applications' grid straightaway, log out and login again.

You can do the same by using GUI applications, for example 'Main Menu' (aka alacarte). Install it by running the following command in Terminal

sudo apt-get install alacarte


USB sticks are Read-Only in new installed Ubuntu 16.04!

I solved the problem with this guide I found it here: How do I get permission to edit in my usb

  Mount a FAT32 partition in a USB stick with write permissions for
  everybody

  Assumption: the pendrive is seen as /dev/sdx, replace the partition
  device sdxn with the actual letters for the partition, for example
  sdb1: /dev/sdxn ---> /dev/sdb1.

  Explanation: x is the drive letter, and n is the partition number.
  Text after # is a comment (not used as a command).

sudo mkdir -p /mnt/sd1  # only if you want a new mountpoint
sudo umount /dev/sdxn   # general: only if already mounted (with bad permissions).
sudo umount /dev/sdb1   # example

sudo mount -o rw,users,umask=000 /dev/sdxn /mnt/sd1  # general: mount
sudo mount -o rw,users,umask=000 /dev/sdb1 /mnt/sd1  # example


Do I absolutely need to format my Ext HDD in order to use it to install Ubuntu?

Please if possible make backups of your data on your external USB drive, you could loose all data due to mistake (close lid and suspend), error/bug or hardware issue.

It should (assuming reliability and enough space) be possible to resize the partition with your data on, to make space for Ubuntu.

You can do this before installing (How to resize partitions?).

The installer does offer to resize partitions to make space, not sure if it provides this option on drives without an existing OS.


Cannot detect either GRUB in UEFI, or Windows in GRUB if booted in Legacy

Turns out, the core of the problem was UEFI/Legacy incompatibility. Pre-existing Windows 10 in the drive was installed for UEFI, however, burning the .iso image of the Ubuntu installation in default settings of Rufus would only show my USB media in the Legacy bootable drive list. So I had installed Ubuntu in Legacy Mode, conflicting with Windows that was installed for UEFI. GRUB was not able to see any OS in UEFI mode, and there was only 1 OS installed in Legacy mode which was Ubuntu.

The steps below made my BIOS able to recognize the USB device as a UEFI bootable USB media. So, after being able to disable Legacy Support in the Boot settings, re-installing Ubuntu made everything work like a charm.

  While burning the .iso image to the bootable USB(used Rufus);

  Chose the partition table for USB media as GPT, as some others suggested to make it match with the partition table of the
  existing system (Windows 10, UEFI/GPT)
  Used a FAT file system with default parameters,
  Burned the .iso image to the USB media as a DD image.


Invisible Mouse Cursor on startup on 14.04 [SOLVED]

Your Nvidia drivers should be fixed first. Follow this guide, while you boot your system with nomodeset kernel option.

If you will still have problems with the cursor, feel free reporting back!


node shoud be located in: /usr/local/bin/node

node -v shows the version, to actually search for the file you need to

whereis node