Nautilus randomly starts eating all my RAM until computer crashes

The case where nautilus uses extreme RAM to make your system crash is very extreme, but I recently found that nautilus indeed has memory leaks. You can easily test by opening system monitor, and opening some windows where you do some searching, or open large folders. Memory usage of nautilus grows, but the memory is never released when you close the windows. The memory is only released when you fully close nautilus.

I suspect you use icons on the desktop, which is the default on Ubuntu. That way, nautilus is never closed, so memory presumably keeps growing during the session. Typically, these memory leaks are relatively small, however, and normally not of (significant) practical concern.

I do not have an active desktop, i.e., no icons on the desktop. The benefit of that is that nautilus is closed when the last window is closed. Thus, it is less likely to build up memory use by nautilus during a session.


"sudo apt purge wine" not removing the "~/.wine" config folder on ubuntu 20.04?

This is normal. .wine is a hidden user configuration folder. The user configuration data are considered to be from the user. System wide installed software will never remove files from your home folder when you remove the software.
This happens not only out of "noble" principles, but also for down-to-earth technical reasons: the installation software would need to scan which users are on the system, and which users have used the software, hence have its configuration files.
Bottom line: all files and folders in your home folder are exclusively yours to manage.
Yes, the command you provide will remove the folder. You can use any tool you want to delete the folder.


Python path and Caffe path changes every few minutes

Amazing! Couldn't figure it out for days but 20mins after posting here, my brain works.

My ~/.profile was a mess. the CAFFEROOT env variable was set to $(pwd) and hence PYTHONPATH to $(pwd)/python .

Also, this answer helped me figure out the mess about having to bash profiles.


Why doesn't Skype theme match my Desktop Environment theme?

I have found a solution for this problem: The odd look is caused because of the fact that skype is a 32 bit application, so if you are on a 64-bit system (which you are, because you suffer from this problem) you need to install additional 32-bit libaries to solve this issue. Just run:

sudo apt-get install ia32-libs-gtk

restart skype an everything will look integrated! (This libary will use 144 MB of additional space!)

Hope that works for you too!


Which application is responsible for accepting passwords when entered in diffrent keyboard layout?

Since sudo requires the correct layout, I suppose that the feature must be provided by the GUI. A very handy one, if you ask me. -- So, this is not really the OS but perhaps the window manager or the login screen?

More interesting is if this also works the other way round: Give yourself a Persian password, login with an active US keyboard layout and see if the system lets you in.


What do I have to add to this iptables setup to allow mysql access through ssh?

iptables -A INPUT -i lo -p tcp --dport 3306 -j ACCEPT
iptables -A OUTPUT -o lo -p tcp --sport 3306 -j ACCEPT

If you use a tunnel and have INPUT and OUTPUT policies set to DROP, allowing loopback traffic might be a good idea.


Connecting to Internet Through Another Computers Connection

If your ubuntu machine has the internet connectivity:

right click the network manager applet.
go to "edit connections".
In the wired tab select the the ethernet connection between the two
comps that should be there if you've
connected the computers with the
cable.
click 'edit'.
under ipv4 settings, change dhe method to "share with other
computers"


ubuntu 16.04. How to install samba with python 3.7?

I removed only two symbolic links at /usr/local/bin: python3 and python3-config and problem was resolved!


missing driver for smart card reader Ricoh Co Ltd RL5c476 II (rev b9)

Ricoh RL5c476 is a multifunction (4-in-1) device and the driver you linked supports the MMC/SD part of the chip. Unfortunately, you will have no chance of getting the SC reader part to work with Linux because, as far as I know, there are no public specifications available.

The most recent source I could track is rather clear:

  Dear Martin,

  Thank you very much for the proposal.
  However, we don't have the intention of disclosing our technical information for linux driver.

  Best regards,

(http://www.mail-archive.com/muscle@lists.musclecard.com/msg07782.html)

However, the software overview of some HP notebooks  (for instance, HP-Compaq 6910p) reports a generic Certified SuSe Linux Enterprise Desktop 10, meaning that there could be a non-free driver somewhere in the wild, but do not count on that.


Disable Alt Gr shortcuts to enable third level keyboard access

I found a workaround for this bug here on Ubuntu Forums

  To disable mnemonics you should create (if it doesn't already exist)
  ~/.gtkrc-2.0. This file should contain the line gtk-enable-mnemonics = 0 (you can add other GTK settings if you'd like). Then, restart for the changes to take effect (you may be able to log out then log in instead).


This should solve the problem:

sudo apt-get install php5-sqlite

The problem is you have PDO, but not the SQLite PDO driver installed.

Update: Since Ubuntu 16.04, you need the PHP 7 instead of the PHP 5 package:

apt-get install php-sqlite3

Source: https://bitbucket.org/phpliteadmin/public/wiki/Installation


Ubuntu 16.04 Unknown Additional Driver: Processor microcode firmware for Intel CPUs

Yes, without the microcode, Intel processors sometimes experience faulty behaviours.

In order to enable just tick the circle where it says Using processor microcode firmware for Intel CPUs... , and click Apply Changes in the lower right.


TestDisk / PhotoRec
TestDisk can sometimes recover recently deleted files using PhotoRec, which is part of TestDisk. Available on official repo and newer version on their site.

TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software: certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.
PhotoRec is part of TestDisk, and is a file data recovery software designed to recover lost files including video, documents and archives from hard disks, CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. PhotoRec ignores the file system and goes after the underlying data, so it will still work even if your media's file system has been severely damaged or reformatted.


script.sh run differently when manually opening terminal and when using .desktop launcher

As I found out in a chat with the asker, rosrun is a command he defined in his .bashrc.

Add the same definition for rosrun to your script1.sh and it should work.


Weird screen flickering issue in ubuntu 17.04 GNOME

I have the same problem with the display flickering after updating to 17.04 and 17.10.  My graphics hardware (Unity->Details)

 Intel HD Graphics 620 (Kabylake GT2)

I assume you have a 4K display.  Check Unity->Displays and if you see 3840x2160, that means your equipment supports 4K.  If the flickering becomes annoying, a temporary workaround is to reduce your display resolution to 2048x1536.  You should probably set the scale to a suitable font size.  Note that as a result of changing the resolution, your display aspect ratio will show a smaller output but it's a lot easier to look at than a flickering screen.

Intel provides a nice GUI-based graphics update tool.  However, the tool currently doesn't support 17.04+ since it's a relatively recent Ubuntu release.

Here's the link to the Intel Graphics update tool for your future reference so that you can keep an eye out for when 17.04+ driver support becomes available.

https://01.org/linuxgraphics/downloads/intel-graphics-update-tool-linux-os-v2.0.2

Hope this helps.


Cannot run convolutional.py in anaconda tenserenv

See here. The package version requires Cudnnv4. So either

you switch to cudnnv4
you install tensorflow from source as indicated in the link above


Command to convert an upper-case string to lower-case?

If the string is already stored in a variable you can use bash's parameter expansion, specifially ${parameter,,pattern} (available since bash 4.0), where parameter is the name of your variable and pattern is ommitted:

$ string="Hello, World!"
$ echo $string
Hello, World!
$ echo ${string,,}
hello, world!

Note that this does not change the value of the variable, only the output. To change the variable you have to assign the new value:

$ echo $string
Hello, World!
$ string=${string,,}
$ echo $string
hello, world!

The upper-case conversion works with ${parameter^^pattern}:

$ echo ${string^^}
HELLO, WORLD!

This works also with Unicode strings (at least with current bash versions, probably needs at least bash 4.3):

$ string='ἈΛΦΆβητος'
$ echo ${string,,}
ἀλφάβητος
$ echo ${string^^}
ἈΛΦΆΒΗΤΟΣ

If you are using zsh, you can use Parameter Expansion Flags (${(FLAGS)NAME}; available since zsh 2.5) to achieve the same results. The bash syntax does not work in zsh 1). The flag for lower case is L; for upper case it is U:

$ string="Hello, World!"
$ echo ${(L)string}
hello, world!
$ echo ${(U)string}
HELLO, WORLD!
$ echo $string
Hello, World!"

This also works with Unicode strings (at least since zsh 5.0; I did not try with earlier versions):

$ string='ἈΛΦΆβητος'
$ echo ${(L)string}
ἀλφάβητος
$ echo ${(U)string}
ἈΛΦΆΒΗΤΟΣ

1) Although, seeing that zsh had this for far longer, it should probably be: "the zsh syntax does not work in bash.


Every apt-get install returns flashplugin error, but install works

This error simply means flashplugin-installer didn't install correctly before, and you will need to reinstall it.

Run:

sudo apt-get remove --purge flashplugin-installer
sudo apt-get update
sudo apt-get install flashplugin-installer


Avoid enter press on grub on Ubuntu Server

The best way to resolve this is to login in system and than in terminal run the following commands:--

sudo apt-get upgrade
sudo apt-get update
sudo apt-get autoremove
sudo apt-get autoclean

and finally restart your system .........hope it will work for you.

And if you want, you can generate a new grub file also by

sudo update-grub


This may be the solution:

Go to the directory where Black Mesa is installed (<library path>/steamapps/common/Black Mesa/bin)
Delete or rename libstdc++.so.6.

Black Mesa appears to link to its own libstdc++ version, which is older or newer than that on your system (and used by important driver binaries, like those part of Mesa), and thus incompatible. By deleting or renaming it you force the game launcher to use your system's version of the library.

I first read about this on the Steam Forums (see pages 12 and previous) and then found a very thoroughly explanation at https://thomasvanderberg.nl/blog/fixing-black-mesa-linux/.


How to change the GUI of transmission web interface?

You can use this as a generic solution:

sudo find / -name 'web' -type d 2>/dev/null| grep 'transmission/web'

This is the default directory:

/usr/local/transmission/share/transmission/web/

I found this Web GUI alternative for a combined browser and mobile version and it uses this script to change the interface (see line 37 and 46). If it does not find it, the script then uses the command posted above.

So you can use that as a generic solution.


Updating compilers without updating the system

I would recommend to use new GCC along your existing, not upgrading it. You can find a required deb package or download binaries googling it.

Upgrading your default compiler can do a lot of harm to Your system.


How to distinguish between snap and normal application in "Activities"

You may create two new custom .desktop launchers for each in ~/.local/share/applications/.

First create a file called firefox.desktop (for the default version) in ~/.local/share/applications/. Open it with a text editor and put the following lines and save the file.

[Desktop Entry]
Comment=default Firefox browser
Terminal=false
Name=Firefox (default)
Exec=firefox %u
Type=Application
Icon=/path/to/icon/for/default/firefox
NoDisplay=false

Put the full path to the image (png or svg are preferable) you want to use as default Firefox's icon in place of /path/to/icon/for/default/firefox or simply put Icon=firefox if you want the default Firefox icon as per your icon theme.

Alternatively, copy the firefox.desktop file from /usr/share/applications/ to ~/.local/share/applications/ and make the changes to Name= and Icon= fields as you wish.

Similarly, create another .desktop file, say firefox-snap.desktop (for the snap version) in ~/.local/share/applications/.  Open it with a text editor and put the following lines and save the file.

[Desktop Entry]
Comment=snappy Firefox browser
Terminal=false
Name=Firefox (snap)
Exec=/snap/bin/firefox
Type=Application
Icon=/path/to/icon/for/snap/firefox
NoDisplay=false

Like before put the path to image file you want to use as the icon of snappy Firefox.

Now in Activities overview you'll see two Firefox launchers titled "Firefox (default)" and "Firefox (snap)". They will also have different icons if you have used different icons in their associated .desktop files.

P.S. You may use a GUI application like alacarte (aka "Main Menu") to create the launchers instead of manually creating and editing the .desktop files.


According to this how-to, before uninstalling MiKTeX you need to first reset your install to factory defaults using the MiKTeX console:

Launch the MiKTeX Console desktop application (search for "MiKTeX Console" in the application launcher).
Click "Cleanup" to navigate to the cleanup page.
Click "Reset the TeX installation" to factory defaults.

This resets the TeX installation to the initial state, deleting all the files and directories created by the MiKTeX installer. You can now uninstall via the command line:

sudo apt-get remove miktex
sudo apt autoremove


Google Chrome leaving processes live after closing

Well it's taken over 2 months but I've found the issue.

For some reason - probably something wrong in my installation of ubuntu - when I turned syncing off for Passwords this solved the problem and all Chrome processes close correctly after Chrome is closed.

Haven't a clue why but it works.


Particular wifi is not visible in wifi settings

I know it might seem trivial, but have you checked that the frequency band of this particular network matches one of the frequencies that your wireless adapter support?
I used to have a similar problem in which sometimes the router would change the frequency to 5GHz and I couldn't see the network anymore because my wireless adapter could only connect to networks in the 2,4GHz band. I never found out why the frequency would randomly change, but eventually after realizing this and setting it back to 2,4GHz it stopped doing it, and I had no more connectivity problems.


Purging a software package, reinstalling it, it remembers settings

It's because user specific settings are stored in your home directory and that isn't removed. Try to find either bluefish directory under ~/.config or ~/.bluefish directory under home and remove it to reset the user preference.

Update: As Zanna mentioned in the comment (which is now removed), it's .bluefish under home.


Adding a suffix at the end of each shell command

If you're using bash as your default shell, you can set PROMPT_COMMAND.

From the bash man page:

PROMPT_COMMAND
If set, the value is executed as a command prior to issuing each primary prompt.

So just paste the following line in your .bashrc to get a notification for each command:

PROMPT_COMMAND="notify-send Done"

So each time your bash prompt is called (normal behavior when a command is finished, with success or not), you'll get a notification.

Note: you'll be also notified if you press just Enter as the prompt will be displayed again.


Make a copy of your mp3, open it in Audacity and make a tiny inessential edit in it, perhaps cutting a little bit of time off the blank space at the end of it, and then save your mp3 at a slightly higher bitrate. Select File -> Export and from the Export File window select Options -> Specify MP3 Options -> and then change the Quality settings to a slightly higher bitrate. When you Export the mp3, redo every entry in the Edit Metadata window to make sure that the metadata tags for your exported mp3 have been entered correctly.


How to copy file to another machine through terminal?

Is there possibility to connect via SSH? Maybe you should consider "scp" utitlity. It's very simple, look to the manual page:

man scp

The very basic usage:

scp remote_user@remote_host:/path/to/remote/file /path/to/local/file

and vice versa:

scp /path/to/local/file remote_user@remote_host:/path/to/remote/file


DNS Reverse Lookup shows correct only with localhost

It's a stupid question, but... Are you even in control of the settings of your reverse DNS?  You can only set the reverse DNS at your ISP/Webhost.  So, if you rent the IP 46.101.84.103, it is the DNS server at Digital Ocean Inc, that will reply to these reverse queries.  Your DNS, that resolves whatever.example.com to 46.101.84.103 cannot do the reverse DNS.

You might have configured a DNS that does this (evidently that's possible and that might be your localhost), but the Internet will never ask this server, because that IP range belongs to your ISP/webhost.

That's because some DNS servers are "authorative" for certain resources.  If you own a domain name, you can set the "authoritative" DNS servers for that doman at your registrar (or use the registrars DNS).  For example, if I do:

$ dig tude.lu

; <<>> DiG 9.10.3-P4-Ubuntu <<>> tude.lu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53410
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;tude.lu.           IN  A

;; ANSWER SECTION:
tude.lu.        300 IN  A   85.93.203.237

;; AUTHORITY SECTION:
tude.lu.        43200   IN  NS  dns2.jawtheshark.net.
tude.lu.        43200   IN  NS  dns1.jawtheshark.net.

;; ADDITIONAL SECTION:
dns1.jawtheshark.net.   411 IN  A   149.154.152.102
dns2.jawtheshark.net.   579 IN  A   162.252.172.158

;; Query time: 133 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Mon Aug 08 20:54:46 CEST 2016
;; MSG SIZE  rcvd: 137

You notice the "authority section"?  Well, in a DNS query, that means that anything regarding tude.lu, must be asked from one of those two servers (dns1.jawtheshark.net and dns2.jawtheshark.net).  Your local DNS may cache the results, but ultimately, only those two servers can be trusted to give correct results.  They are "authoritative".

That's for domain names (basically, "normal" DNS queries).  For IP ranges, the same exists.  The thing is: an IP range is not linked to a domain at all.  The IP range is another resource all together.  So, let's take the IP you gave.  Who is authoritative?

$ dig -x 46.101.84.103

; <<>> DiG 9.10.3-P4-Ubuntu <<>> -x 46.101.84.103
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 65419
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;103.84.101.46.in-addr.arpa.    IN  PTR

;; AUTHORITY SECTION:
84.101.46.in-addr.arpa. 1466    IN  SOA ns1.digitalocean.com. hostmaster.84.101.46.in-addr.arpa. 1470460984 10800 3600 604800 1800

;; Query time: 1 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Mon Aug 08 20:53:02 CEST 2016
;; MSG SIZE  rcvd: 122

Again, the information we want is in the authority section.  It seems to be the primary (ns1) nameserver of digitalocean.com.  If you do not have access to the configuration of that DNS server, you will not be able to change the reverse IP lookup.  Now, that doesn't mean you can't set it, because many hosters allow you to do that in their management interfaces.  Alas, I can't help you there and you need to ask them, go read their FAQ, or explore the interface they have given you.

What I assume, but of course I may be wrong, is that you configured a DNS server on your localhost that is configured to reply the PTR records (reverse lookup), but the Internet at large will never query that machine, because... it's not authoritative.
So locally, it obviously works: your server "thinks" it's authoritative, but it's not.

Of course, I might be totally mistaken with my assumption.

Hope the reply is not all that confusing.  DNS requires a quite deep understanding and the "authority" concept is very important.


As far as I know there is no way to do it quite as easy as you suggested.
One way to handle your situation might be to define a compose key and create an ~/.XCompose file. These are some example lines in such a file:
<Multi_key> <v> <v> : "w" U0077
<Multi_key> <V> <V> : "W" U0057
<Multi_key> <3> <3> : "6" U0036

With that you can do for instance:
Compose followed by Shift+V followed by Shift+V => W
Compose followed by 3 followed by 3 => 6
HTH


With 4.16.0-041600-lowlatency from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16/ this bug seems to be gone.

I also discovered this bug report on launchpad but can't confirm the observations with the mentioned kernels. I guess it's helpful ressource anyway..


The file you downloaded is a torrent file. You need to open the file with a torrent manager like this. After downloading the complete iso file, burn it to your pendrive with tools like unetbootin. You can easily find other information on google.


Linux doesn't support the TRIM operation on NTFS partitions, so you CAN'T enable it. (If it would support it, then yes, you should enable it.)


Error installing Ubuntu , how to remove and install it again

First , you need to Uninstall Wubi from windows , as you remove/uninstall any Program in windows or through any Uninstaller Utility.

if that doesn't help then Use this Specific  Unistall Wubi tool from here How do i uninstall Wubi and also refer the How do I manually uninstall Wubi?.

How do I reinstall Wubi?

Run Wubi.exe again ( After the above uninstallation process). Wubi will detect that there is an existing installation and you will be offered an option to uninstall. You may want to backup the installation files (the ISO) in order to avoid having to download them again. Note that when you reinstall, the system virtual drive (root.disk) is reset.

Recommendation

I would highly advise you to use Ubuntu in Dual-Boot setup, and not through Wubi. You can refer this guide to install it.

How do I install Ubuntu?


GNOME session not starting after filesystem corruption

Log in and try startx

Is your /home on a separate partition?


To install mate-terminal in Precise (12.04) you need a PPA:

ppa:ubuntu-mate-dev/precise-mate

Follow the steps below…

First install software-properties-common, we need add-apt-repository

sudo apt-get install software-properties-common

After that

sudo add-apt-repository ppa:ubuntu-mate-dev/precise-mate
sudo apt-get update
sudo apt-get install mate-terminal


Are you using a 64-bit version of Linux with a lot of memory and the attached disk is a relatively slow one (any USB 2 will qualify)?

In that case the problem could be that Linux  can locks/delay for long time on big writes on slow devices; it depends on caching too much data during writes. It's a known bug that should be fixed in newer kernels.

See http://lwn.net/Articles/572911/

Workaround: enter a shell root (do that with care --- you are now root for every command)

sudo -i

and issue:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

If it works, you can add the two lines above to your /etc/rc.local file.

(This is a repost of my answer in U&L SE).


Why does deleted files also appear in directory

The file with tilde is called backup file and made everytime you edited a file on an editor. If you want, you can recover the file from that backup. Otherwise, delete it also.


installing wine produces error about my internet connection

Open
Software sources and check all repositories

open the update manager and press check button

Then press install button in the software centre


I have an errormessage in a localized ubuntu, how to get the english version of that message?

What I sometimes do is just paste the error-message in google +  use the search term "translate launchpad" or "translations launchpad".

Dutch example: "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt herstarten?"

Then Google: "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt herstarten? translate launchpad"

Choose a page (this is sometimes a bit tricky), and with a bit of luck you get a page that looks like this:

Hope this helps.

Note that this only works for programs that use launchpad for translations. But most Ubuntu programs do, so it's worth trying.


Send all OpenVPN traffic through proxy or TOR proxy?

For this, I'm assuming that you have installed tor using apt-get install tor and not using the TOR browser bundle.

Add this line to the /etc/tor/torrc file to tunnel VPN traffic:

SocksPort 9150 PreferSOCKSNoAuth

Then you will need to tell OpenVPN to use a proxy.
Add this to your VPN config file:

 socks-proxy localhost 9150
 socks-proxy-retry

Restart tor:

sudo service tor restart

Now you should be able to run OpenVPN AFTER tor has established a connection to the TOR network.

sudo openvpn --config path/to/vpn/config/file


After upgrading to 12.04 from 10.04, can't login to PHPMYADMIN

It could be that your phpmyadmin configuration was somewhat "customised" and that it's no longer compatible with the way your MySQL server's configured.  This should normally by handled properly when upgrading both.

If you don't understand your phpmyadmin configuration or didn't set it up yourself, some issues with phpmyadmin's configuration in Debian/Ubuntu can be overcome by purging and reinstalling the phpmyadmin package, or perhaps simply with sudo dpkg-reconfigure phpmyadmin.


Ubuntu will not install alongside Windows - No Option

Before starting the installation of Ubuntu you should make sure that you shutdown Windows completely. If the installation still don't show options, you should verify and repair any error that your partitions should have. For that, boot up Windows and run:

chkdsk /f C:

for each partition you have, example if you have 3 partitions called: C, D and H, you should:

chkdsk /f C:
chkdsk /f D:
chkdsk /f H:

This process could take a while, or require you to restart the machine.


Here is what I did

Created a folder to share, on Windows named it Ubuntu-Windows share.

Right clicked the folder and selected the share tab.

Added users and permissions.

Opened Hyper-V Ubuntu machine, opened the file manager and chose Network.

From there the process is straight-forward, clicked Connect to Server entered Host Ip address and entered login details;

Now can easily transfers file from Host-Guest vice versa:

Syncing in Host OS

and in Guest OS

That's all!


diffie-hellman-group-exchange-sha256 not work with all software after upgrating to 16.04 - OpenSSH_7.2p2

I have found when connecting to various ssh servers (in this case, ones run by financial institutions), that for many the diffie-hellman-group-exchange methods do no work with Ubuntu 16, while they worked fine with Ubuntu 14. It has to do with negotiating the key size after accepting the method. The OpenSSH in Ubuntu 16 won't accept less than an 2048 bit key, while the older OpenSSH accepted a shorter key in this context. The work around for the client is to exclude those. So in /etc/ssh/ssh_config I have:

HostKeyAlgorithms +ssh-dss
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,curve25519-sha256@libssh.org

The first line, allowing DSS, I know is less secure. But the connections are needed, and I don't control those servers. The second is the full list of supported key exchange methods (ssh -Q kex) with just the two problematic diffie-hellman-group-exchange-* methods left out. It would probably be better practice to list those in the reverse order, as this can be take as order-of-preference, and the list as I have it puts the newer, stronger methods last. In any case, leaving out the ones that won't work with the servers you need to connect with, or alternately specifying a single, known-compatible on one the command line, is the way around the problem you and I have seen.


After using Boot-Repair I cannot change screen resolution

To test if setting screen resolution works, you can edit the grub menu entry similar to a nomodeset entry.

Press e for edit, scroll to linux line and add after or replace quiet splash with your correct video X by Y setting like:

video=1366x768-24@60

If that works or whatever setting does work you can add it to grub to make it permanent. Each reboot and edit of grub as you boot is a one time change.

gksudo gedit /etc/default/grub
sudo update-grub

Add it to the same line as the quiet splash setting you currently have:

GRUB_CMD_LINUX_DEFAULT="quiet splash"

Should be this?

GRUB_CMD_LINUX_DEFAULT="quiet splash video=1366x768-24@60"


How to add keyboard layout switcher to top panel?

Ok, problem solved. I restored the default keyboard layout settings and then re-added the additional keyboard layouts I need. Now the switcher has reappeared in the panel.


Will it cause harm when abort ubuntu software upgrade halfway?

Don't worry you aborted while the packages started to download, the packages are not in process of installing so it will not cause any problems. Try cleaning the partially downloaded packages (if there) in this folders

/var/cache/apt/archives/ or /var/cache/apt/archives/partial

by using sudo apt-get autoclean and sudo apt-get clean


How to mount an old HFS System 7 Macintosh floppy with write access?

It appears, though I'm not sure that hfsutils only allows traditional mounting in read only mode. Please correct me if I'm wrong about that, but for now this is the less convenient workaround I found: https://linux.die.net/man/1/hfsutils

hfsutils comes with a set of commands for managing files etc. on HFS partitions.


So I've just figured out how to do it. I made a wordpress blog and wrote how I did it. Hope it's gonna help somebody.

http://goof848.wordpress.com/2011/12/20/how-to-setup-ubuntu-11-10-on-a-inspiron-17r-n7110/


Are personal settings overwritten during distribution upgrades?

From a technical viewpoint, all the files in your home directory will not be touched during an OS update. This fact contains the answer to your question: Since, under Linux, programs generally store their settings in hidden directories under ~/, the settings will be kept.

However, only retaining the settings does not mean that nothing will change for you: If, during an update, app A is replaced by B , the settings from ~/.asettings will still be there, but there's no program left to work with them. Your "user experience" will be that A and everything you configured there are lost, and you'll have to start configuring B instead (or simply install A manually again).

Another problem arises when programs change heavily, for example when KDE moved from version 3 to 4. It may well be that a program changed so fundamentally (consider Amarok 1 vs Amarok 2) that the old config files, although still there, are ignored.


the only way i got this working was by applying this on machine ubuntu1

chmod -R 777 /opt/share

then set "valid users" like this in /etc/samba/smb.conf

[share]
...
valid users = testuser

this way only specified users can access the share anyways so no real need to set ACL for this case since the user is supposed to have rwx anyway


What is the difference in between adding "read" or "read -rn1" to the end of a bash script?

read waits for a line ending with a newline, then ends. So only the enter key allows you to complete the command and, therefore in your case, to close the terminal window.

read -n1 waits for a single character, then ends. So a single press on any key terminates the command and, therefore in your case, closes the terminal window.

However, I don't see the usefulness of the -r option in your case

For more info on the bash builtin command read:

man bash (see read in the SHELL BUILTIN COMMANDS section)
help -m read


It could this known issue I found in the official CUDA 7 documentation: http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#resolved-issues-title.

In section 7.1, the second point states this:

"The Canonical repackaging of the NVIDIA drivers on Ubuntu 14.04 may fail to upgrade cleanly to the latest version due to conflicts with the /etc/OpenCL/vendors/nvidia.icd file. To address this issue, remove the nvidia-opencl-icd-* package and then try the upgrade again. For more information, see https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331-updates/+bug/1328762."


Windows 7 not booting after installing Ubuntu 14.04

This is very strange,  for I had Win 7pro 64bit before and I installed Ubuntu 14.04.1 paralell to it.  When I rebooted the PC asked me which System I want to run.  Did u perhaps Format u HDD before ?  If so then I suggest to reload Win 7 and then load Ubuntu 14.04.1 parall to it in the Workstation ( Arbeitsplatz ).  It will ask u in the Instalmenu,  how much HDD Space u want to save for Ubuntu.
I doubt that this is the answer u wanted,  but thatś how I did it.  So what do u have to loose,  just try it ;-)  I hope this will work for u,  good luck !!!  Just one last tipp,  keep ubuntu 14.04.1 lts,  don't update to 14.10 !!!


I can't be entirely sure but inspircd might be forking out the way when it's run so Upstart doesn't know where its PID really is. If that's the case, it can be fixed because Upstart has two stanzas for handling forking processes:

expect fork catches processes that fork once (imo, most likely the case here).
expect daemon catches things that fork out twice... Which this may be doing.

So try this:

description "IRC Daemon Upstart Script"

start on startup
start on runlevel [2345]
stop on runlevel [016]

respawn
expect fork

nice -5

exec su bash -c "cd /home/ircuser/inspircd/run; /home/ircuser/inspircd/run/bin/inspircd -- --config=./conf/inspircd.conf" ircuser

And if that doesn't work, check my su-statement to make sure it works from the command line and then change expect fork to expect daemon and give it another whirl.

Edit the bash wrapper might be doing it more harm than good. This might be a better exec:

exec sudo -u ircuser /home/ircuser/inspircd/run/bin/inspircd -- --config=/home/ircuser/inspircd/run/conf/inspircd.conf


A detached GPG signature can be created like so:

gpg -ab -o SignedFile.gpg FileToSign

Options used are:

-a to create ASCII output instead of binary
-b to create a detached signature,
and -o to specify the output file.


Why does Fn+A keybinding not work in Zenbooks?

The OP wants to express the function of the keybinding fn+a i.e. Fig. 1 Print of the keybinding in the keyboard where it has the lamp -symbol with the word auto; please, comment if you know what is the name of this feature exactly

Below you can see that the keybinding combination returns zero bytes i.e. its function is connected nowhere.
Options to solve the case

Use the graphic package xserver-xorg-video-intel, edit /usr/share/X11/xorg.conf.d/20-intel.conf TODO Similar approach is here in the thread How to Enable Brightness Buttons in 16.04 of Zenbook? but I am not sure about the precise method what to change.
Use modesetting i.e. purge the Intel graphic package, and find an alternative stable method.

Experimenting the keycodes in UX303UA

Do xev, press fn+a and press fn+a where you see that there is a difference between the two keybindings in the system, but the action is not run

KeyPress event, serial 37, synthetic NO, window 0x3c00001,
    root 0xe6, subw 0x0, time 112925284, (10,-18), root:(10,34),
    state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x3c00001,
    root 0xe6, subw 0x0, time 112925284, (10,-18), root:(10,34),
    state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

MappingNotify event, serial 38, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248

KeyPress event, serial 38, synthetic NO, window 0x3c00001,
    root 0xe6, subw 0x0, time 112926726, (10,-18), root:(10,34),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XmbLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

KeyRelease event, serial 39, synthetic NO, window 0x3c00001,
    root 0xe6, subw 0x0, time 112926790, (10,-18), root:(10,34),
    state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
    XLookupString gives 1 bytes: (61) "a"
    XFilterEvent returns: False

Hardware: Asus Zenbook UX303UA
Ubuntu: 16.04
Linux kernel: 4.4-4.7
GPU: Intel integrated
Graphic packages: xserver-xorg-video-intel, modesetting


If you want that http://www.mywebsite.com/ is always be sent over https you should use redirect because use mod_rewrite isn't the recommended behavior.

According to Redirect Request to SSL Apache wiki page:

  When using SSL, you will frequently have at least two virtual hosts:
  one on port 80 to serve ordinary requests, and one on port 443 to
  serve SSL. If you wish to redirect users from the non-secure site to
  the SSL site, you can use an ordinary Redirect directive inside the
  non-secure VirtualHost

So, try to add this directive in your non-secure VirtualHost:

Redirect permanent / https://www.mywebsite.com/

If you want anyway use rewrite rule, you should add these lines in non-secure VirtualHost:

RewriteEngine On
# This will enable the Rewrite capabilities

RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already HTTPS

RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
# This rule will redirect users from their original location, to the same location but using HTTPS.
# i.e.  http://www.mywebsite.com/foo/ to https://www.mywebsite.com/foo/

as described in HTTP to HTTPS Apache wiki page.

Your configuration doen't work, because it is not defined a non-secure VirtualHost (usually on port 80) that handles http requests and redirect them to secure VirtualHost.

Try adding these lines:

<VirtualHost *:80>
   ServerName dev.dom1.com
   Redirect permanent / https://dev.dom1.com/
</VirtualHost>

In this case you don't need a DocumentRoot because this VirtualHost is redirecting everything.

Rewrite rule shown in your configuration file protect secure VirtualHost from being accessed via http protocol, for example http://www.mywebsite.com:443/ will be https://www.mywebsite.com:443/

You should also check that your site linking to the correct page (https) from within your HTML pages.


Vim test if options are valid before setting

if exists('*pathogen#infect')
" The function pathogen#infect() exists
else
" The function pathogen#infect() does not exist
endif

Use :help exists() for more infomation. In addition to variables, exists() is also able to test for &options, *functions, :commands, #event autocommands.


how to resolve these problems to install synaptic package manger in Ubuntu 12.04?

open your terminal with CTRL+ ALT+T and paste these commands one-by-one.

    sudo rm -rf /var/lib/apt/lists/lock
    sudo rm -rf /var/lib/dpkg/lock
    sudo apt-get install synaptic

hope that helps.


upgraded to 19.04: unable to disable desktop icons

I'm on ubuntu 19.10 and had the same problem. The only way I managed to disable it is to add ['desktop-icons@csoriano'] to /org/gnome/shell/disabled-extensions via the dconf Editor.


Run lsb_release -sc in a terminal, remember the output.

then edit /etc/apt/sources.list (e.g. by running sudo gedit /etc/apt/sources.list) and edit those 4 lines, replacing &(lsb_release/-sc) with the previous output.


Can't set alias in zsh --- command not found?

The problem is the space around the = in the command.
Look:

[:~] % alias a=ls

this works as expected

[:~] % type a
a is an alias for ls

But

[:~] % alias b =ls
[:~] 1 %

This does not work. zsh see two words, b and =ls; it uses the pathname expansion on the second one, and execute alias b /bin/ls --- it exits silently with  error code 1 because neither b or /bin/ls are alias (alias without = checks if a name is an alias).

[:~] 1 % alias c ="ls -l"
zsh: ls -l not found
[:~] 1 %

This fails in a more strange way; the shell is trying to expand the full path of the command "ls -l" (with the embedded space in the command name) and so it is failing in looking for it.


Yo need to define the remote Directory.
Your command tries to put the file on /home/myhomedir/Dropbox/backup/ but this directory doesn't exist on the remote backup server.

Try:

put /home/*myhomedir*/Dropbox/backup/rajedb.backup /

(See the last trailing slash?). That should work.


Will 12.04's network manager work on my Lenovo S12, it doesn't in 11.10?

I had a similar problem when I was using 11.10 and here's how I fixed it.

http://solancer.blogspot.in/2011/10/network-icon-disappeared-in-ubuntu-1110.html

If the issue is with connecting an USB modem then using Gnome PPP dialer will solve your problem.


I have the same problem and found a solution which worked out for me.

Type in terminal:

sudo -i  (to get a root shell, sudo gedit is not recommended)
gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Save the file and close the file.
Finally, in terminal: update-grub
exit  (to end the root shell)

I found it here: Dell Studio 1569 Cannot Shutdown in Ubuntu 11.10 or 12.04


Huawei Technologies Co., Ltd. E353/E3131 contains software intended to be automatically started. Wifi doesn't work

You're solving the wrong problem here. Why run the script when you can just have the system auto-detect your modem and Just Work™.

If you run a modeswitch command on the modem, it will activate itself as a modem instead of mass storage, and you system will automatically detect it as such.

Reading your lsusb output, we have this:

Bus 002 Device 003: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)

So, let's make the mode auto-set to modem mode. In a terminal, run the following command:

sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules

At the very bottom of the opened file, paste in this exact string:

# Huawei E353/E3131
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f01", RUN +="usb_modeswitch '%b/%k'"

Unplug your modem and reboot the system. Upon restart, plug in the modem. The system should automatically detect it as a modem and connect you to the internet. You won't need to auto-run anything, and you won't have the partition mounted on your computer.

(source)


how to leave a process running in backgroun on a terminal

You might be able to detach the processes from your terminal and leave them running in the background but there would be no way to reattach them later.

To achieve what you describe, you would need to use screen, tmux or a similar tool that allows reconnecting.

See How to keep processes running after ending ssh session?


Ubuntu 20.04, Killer E3100/AX1650i working on MSI GS75 10SGS

I solved this problem upgrading the Kernel version of Ubuntu to the 5.9.10.
Following this tutorial you can upgrade the Kernel manually easily:
https://itsfoss.com/upgrade-linux-kernel-ubuntu/
Remember that if you want to use the BIOS Secure Boot on the new Kernel you have to sign the Kernel:
https://gloveboxes.github.io/Ubuntu-for-Azure-Developers/docs/signing-kernel-for-secure-boot.html
Otherwise you have to disable the Secure Boot or the Kernel will not start.


I found this solution

1) Decide on the name of your package. Standard debian notation is all lowercase in the following format:

Code: <project>_<major version>.<minor version>-<package revision>

2) For example, you could name your first package...
Code: mypackage_1.0-1

3) copy all all your program files to mypackage_1.0-1

4) create DEBIAN directory inside mypackage_1.0-1

5) create control file inside DEBIAN with below content (modify it as your package)

Package: mypackage
Version: 1.0-1
Section: base
Priority: optional
Architecture: i386
Depends: libsomethingorrather (>= 1.2.13), anotherDependency (>= 1.2.6)
Maintainer: Your Name <you@email.com>
Description: my Package
 When you need some sunshine, just run this
 small program!
 (the space before each line in the description is important)

7) Now you just need to make the package:

Code: dpkg-deb --build mypackage_1.0-1


How to create LVM also using the partition that has the whole system on it?

One "advantage" of LVM is that you can always add to it running live, so that part you can do over ssh.

You can not downsize the initial "/dev/nbd0 mounted as /" live or over ssh , the partition must be unmounted to reduce the size.

Note : With LVM it is easy to increase the size, but reducing the size can sometimes be difficult or impossible.

To decrease the size of a LVM see - https://www.linuxtechi.com/reduce-size-lvm-partition/ or similar. Just make a backup first ;)

IMO it is faster, easier, and more reliable to make a new, smaller LVM partition and copy the data over rather then downsize a LVM.


In my situation I was transferring the files via WinSCP as text based.  Found out that '.png' files need to be transferred via binary.


I'd suggest changing the NAT adapter to a network bridge adapter. NAT means it is essentially using the IP of your host, which in this case is 192.168.1.10. From there, Virtualbox will act as a router.

Setting it to network bridge adapter will connect the virtual machine to your "real" network.


You can quote the commands:

watch "du -h filename.txt && df -h"

And they'll be executed together.


Unity hangs at login after upgrade to 15.04

All I had to do was post a question here. Some combination of the above worked finally. The last thing I did was:

sudo apt-get purge fglrx lightdm && sudo apt-get install lightdm ubuntu-desktop

and then

dconf reset -f /org/compiz/
setsid unity

from Unity missing? Can't see top or side panels


error when running "apt-get install cassandra"

Basically those errors are due to missing dependencies.

If you look at the ppa in question - https://launchpad.net/~andrei-pozolotin/+archive/ubuntu/maven3 - you will see that there are no packages available for utopic

http://ppa.launchpad.net/andrei-pozolotin/maven3/ubuntu/dists/

Thus you are getting a 404 error when trying to install maven.

I am not really familiar with maven or cassandra.

Your options are :

Find another ppa for maven that has packages for utopic
Build maven (and dependencies) from source code.

Really, the main problem you have is 14.10 is beyond end of life and you should really upgrade or install a supported version of Ubuntu


Internal microphone not working in laptop MS-6837D with Ubuntu 12.10

Try to install Pulseaudio Volume Control (pavucontrol)  and check if your input port and profile selections for your sound card are correct. Such settings appears to be missing in the regular Sound Settings in Ubuntu.

General troubleshooting from here:

Open pavucontrol.
Click the Configuration tab.
Locate the correct sound card (just one in your case, probably).
Select the appropriate profile. For regular analogue sound, you should select something like Analogue Stereo Duplex. Options depend on the capabilities of your sound card.

Screenshot (KDE, but looks similar in Unity):

Click the Input Devices tab.
Locate the correct sound card again.
Check the setting of the Port selection for it. My laptop offers me three options: Internal mic, Microphone (jack) and Line In.
Check if it's unmuted.


Try installing python-dev, libffi-dev, libssl-dev, libxml2-dev, and libxslt1-dev packages. Once these are installed, pip install scrapy will work fine.

sudo apt-get install python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev
sudo pip install scrapy


About ubuntu as server and configuring ip tables

funny you ask - I was perusing the Ubuntu Server Guide for 13.04 just now. You might find it helpful:

https://help.ubuntu.com/13.04/serverguide/index.html


You can use ~/.ssh/config to specify the ports to use for the hosts (and for setting many other nice things; check the man page man ssh_config):

# ~/.ssh/config

Host 67.12.21.133
  Port 6774

Host 67.129.242.40
  Port 6774

When doing this, you have to use the option -3 to scp, which copies the files through your local machine. Otherwise, scp issues the scp command via ssh on the first host, so it actually runs

 ssh -p 6774 denny@67.12.21.133 scp -rp /home/denny/testapp1.txt denny@67.129.242.40:

and then the ~/.ssh/config of the first remote host (67.12.21.133) is used instead of your local one.

When you have setup your ~/.ssh/config correctly, this should work:

scp -rp3 denny@67.12.21.133:/home/denny/testapp1.txt denny@67.129.242.40:

Of course, you can also copy the contents of the ~/.ssh/config file onto your first remote host, and then you can use scp without the -3 option, which will probably speeden up the transfer.

Or you can use the trick that scp uses and use such a command line:

ssh -p 6774 denny@67.12.21.133 scp -rp -P 6774 /home/denny/testapp1.txt denny@67.129.242.40:

(Note the different case of the port parameter for ssh and scp: ssh -p 6774 vs. scp -P 6774)

PS: I got this information from the OpenSSH bugzilla where I entered this as a bug: https://bugzilla.mindrot.org/show_bug.cgi?id=2020


Brightness controls doesn't work on a MacBook Pro 5.5

No mention of what Ubuntu you are using so this is a SWAG.

Recommend /etc/pommed.conf:

#
# Configuration file for pommed
#

# General configuration
general {
    # fnmode: functions keys first (no need to use fn) or last
    # Value is either 1 or 2, effect is hardware-dependent
    fnmode = 2
}

# sysfs backlight control
# nVidia machines, will fall back to nv8600gmt if not supported by the kernel
lcd_sysfs {
    # The sysfs backlight control is a generic interface provided
    # by the Linux kernel for backlight control on most graphic cards.
    # The brightness range can differ depending on the hardware.

    # initial backlight level [12] (0 - 15, -1 to disable)
    init = -1
    # step value (1 - 2)
    step = 1
    # backlight level when on battery [6] (1 - 15, 0 to disable)
    on_batt = 6
}

# ATI X1600 backlight control (MacBook Pro v1 & v2)
lcd_x1600 {
    # initial backlight level [200] (0 - 255, -1 to disable)
    init = -1
    # step value (1 - 127)
    step = 10
    # backlight level when on battery [80] (1 - 255, 0 to disable)
    on_batt = 80
}

# Intel 945GM, 965GM backlight control (MacBook v1-v4, MacBook Air v1)
lcd_gma950 {
    # initial backlight level [0x6f] (0x1f - 0x94 usually, -1 to disable)
    init = -1
    # step value (0x01 - 0x20)
    step = 0x0f
    # backlight level when on battery [0x40] (0x1f - 0x94 usually, 0 to disable)
    on_batt = 0x40
}

# nVidia GeForce 8600M GT/9400M/9600M GT backlight control
# (MacBook Pro v3-v5, MacBook v5, MacBook v2)
lcd_nv8600mgt {
    # initial backlight level [12] (0 - 15, -1 to disable)
    init = -1
    # step value (1 - 2)
    step = 1
    # backlight level when on battery [6] (1 - 15, 0 to disable)
    on_batt = 6
}

# Audio support
audio {
    # Use amixer or alsamixer/alsamixergui to determine the sound card
    # and the mixer elements to use here.

    # sound card to use
    card = "default"
    # initial volume [80] (0 - 100%, -1 to disable)
    init = -1
    # step value (1 - 50%)
    step = 10
    # beep on volume change
    beep = yes
    # mixer element for volume adjustment
    volume = "PCM"
    # mixer element for muting the speakers
    speakers = "Front"
    # mixer element for muting the headphones
    headphones = "Headphone"
}

# Keyboard backlight control
kbd {
    # default value for automatic backlight (0 - 255)
    default = 100
    # step value (1 - 127)
    step = 10
    # ambient light thresholds for automatic backlight (0 - 255)
    on_threshold = 20
    off_threshold = 40
    # enable/disable automatic backlight
    auto = no
    # idle timer - switches off keyboard backlight automatically (timeout in seconds, -1 to disable)
    idle_timer = -1
    # idle tickms - timer tick rate in milliseconds
    idle_tickms = 200
}

# CD/DVD drive ejection
eject {
    # enable/disable eject key
    enabled = yes
    # CD/DVD device
    device = "/dev/dvd"
}

# Beeper
beep {
    # enable/disable beeper
    enabled = no
    # WAV file to use (from pommed: goutte.wav or click.wav in /usr/share/pommed)
    beepfile = "/usr/share/pommed/goutte.wav"
}

# Apple Remote - deprecated
# Note: the appleir driver is required for this to work; this driver has been
# obsoleted with Linux 2.6.22, so unless you are running a kernel < 2.6.22 or
# use the appleir driver on a newer kernel, this won't work.
# You should use LIRC instead.
appleir {
    # enable/disable the appleir support
    enabled = no
}

source


My understanding of it was you plugged it in and it "just worked". The more technical assumption has been the box works out what resolution it can support based on the EDID codes sent from the monitors and then it sends its own EDID code onto the graphics card announcing that and subsets of that resolution. At least, that's how I'd do it if I were making them.

With a Nvidia card, you'd probably want to use the nvidia closed-source driver and nvidia-settings to set the resolution.

But I don't own or haven't tested one so I could be completely wrong.


Set up Logitech K380 for Linux Ubuntu 16.04 LTS

I have a Logitech K480.

First put the keyboard into pairing mode using the manual for instructions

Open bluetooth manager and press on the "+" to add a device

Bluetooth manager should find a device with name Logitech K380, click on Logitech K380 and then next.  You should be prompted to type a PIN in on the bluetooth keyboard, enter the PIN followed by the Enter button and you should be connected


VLC with hardware acceleration crashes if launched from the Unity Dash

Strange, I have the AMD C50 with ATI 6350 integrated and have VLC from the ppa, in my case so far with all HD movies I am yet to see VLC crash even when launched from the Dash. What does your VAINFO return btw?


As far as I understand it Cryptkeeper is no longer being developed, and there are some really bad vulnerabilities. https://www.theregister.co.uk/2017/01/31/cryptkeeper_cooked/

I compress files and password protect them that way.


Windows not aligned properly in the preview in Dock on Ubuntu 19.10

That's what worked for me:

First way, not very elegant

Go to the file usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/windowPreview.js and open it.

Inside class DashToDock_WindowPreviewMenuItem extends PopupMenu.PopupBaseMenuItem comment the line

// We don't want this: it adds spacing on the left of the item.
this.remove_child(this._ornamentLabel);

Save the file. Restart the GNOME shell (Alt+F2, r) and VOILÀ.

It seems like the original Dash-to-Dock used a trick to fix items showing with extra space on the left. Somehow, this extra space doesn't exist on Ubuntu Dock and the items touch the left border.

Proper way

The one to blame for the misalignement id the empty ubuntu.css file  inside usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/ that seems to overwrite the stylesheet.css file that contains the specs for the alignment. Just by deleting or renaming it, the issue is solved.

And setting border:0px; in the stylesheet.css file, inside #dashtodockContainer.dashtodock #dashremoves the nasty pixel line between the dock and a maximized window.

Note:
This works for both 19.10 and 20.04 LTS, that use the same version of the Ubuntu Dock.


High load, low cpu utilisation - system crashing periodically

It seems this was caused by a missing graphics card driver. In this case for nvidia. I installed these drivers and disabled UEFI safe boot and have been crash free for over a day.


Disable Fn-keys brightness change on Dell Inspiron E1405

It may help to set acpi OS and vendor in the bootloader by editing grub.cfg, as mentioned here, by adding this:

acpi_osi=Linux acpi_backlight=vendor

To the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub. You then need to run sudo update-grub and reboot to make the changes.

This I find works on a few machines, to get brightness to be less jumpy etc


[Ctrl][Alt] causing windows to maximise vertically

Go to settings > keyboard > shortcut tab and create a new custom shortcut using these values:

Name: [What ever you want]
Command: false
Shortcut: Ctrl+Alt


SD Card is not being read by Ubuntu 12.04

You can mount you device using udisks utility.
Type following command in terminal

udisks --mount /dev/sdb1

It should mound your usb device.


DVI to VGA converter not working (Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller)

Check your converter. If there is no bulky conversion area (aside from normal sized heads), it is probably a fake cable, especially if bought off eBay.


I installed an alpha or beta, am I up to date with the final release if I keep upgrading?

The beta uses the repositories as they are updated -- it is not a fixed snapshot of Ubuntu as it was when the beta was released.
If there are no more updates to be installed, then congratulations! You are running the final Ubuntu release. There is nothing else you need to do.


WebCam is not recognized on my Samsung 300v5a-s19

The solution was so simple and close

The issue was that the webcam is switched off at boot time with the Samsung Tools.

I accidentally discovered that in the settings of the Samsung Tools webcam toggle is set to "Last Status", which essentially means "Disabled", as the camera was never turned on before. I assign a shortcut key [Fn] + [F4] to turn on/off the camera. And now the camera switches on and off, and even works.

I apologize for making this stupid question.


I don't have a link handy but the main differences are the following:

Ubuntu:

Main distribution
Uses Unity as the desktop environment
Close to what people sees when people says "Linux desktop"

Kubuntu:

Uses KDE as the desktop environment
Pretty-looking. I personally describe it as a Mac OS X/Windows hybrid, visually speaking.
Generally slower on lower end/older hardware
Might use more disk space.
Has the best MIME-Type association system/launcher, in my humble opinion. (kde-open)

Xubuntu:

Uses XFCE as the desktop environment
XFCE is a fork of the old GNOME desktop, resembles GNOME 2 in appearance, aimed at being lightweight but still usable.
runs decently on lower end/old hardware
Not exactly "super fast", but better faster than GNOME/Unity/KDE

There's also Lubuntu and Fluxbuntu which are using different desktop environments, respectively LXDE and Fluxbox. Fluxbox would be the fastest and lightest, but not exactly user-friendly, especially if you come from another non-unix-line Operating System.
Other distributions that are lighter and that might work better depending on how old and powerful this computer is, but I will let you do the research about those.

As noted in this answer's comments, LXDE is not actively developed anymore.


Not able to resize, shrink partition as I installed Ubuntu on my entire hdd

You can resize a mounted partition. Run gparted live disk to resize your HDD partition.

OR

Boot your Ubuntu installation disk. Click on Try Ubuntu. After that, open the terminal with Ctrl + Alt + T and run the below commands to install gparted.

sudo apt-get update
sudo apt-get install gparted


can I open excel files in ubuntu using python?

There is a python library for handling Excel and .ods files, pyexcel-ods.

If you only want to read some data, you may also convert your .ods file into a .csv format ('save as ...' in Excel or LibreOffice), which is easy to read.


A factory reset of the phone will not reset your PIN-code as that is the code to your SIM card.  You need to enter the PUK-code or get a new SIM card from your phone provider.

To do a factory reset, look here…


I can't seem to update Ubuntu; Software Updater is blank

It is a known bug for the moment, the cpu also runs at 100% with this bug.

A quick fix is, open the program named software & updates uncheck unsupported updates(xenial-backports).

This fixes the problem for now.


Why do some urls in Firefox change when copy / paste?

This is because of encoding to UTF-8 to make sure hyperlinks (and other contained data in the URL) work even though they contain symbols or country specific letters. You can read more about this on http://www.blooberry.com/indexdot/html/topics/urlencoding.htm if you are interested.

If you just want to get rid of it, there's an easy solution. Go to about:config and set the following line

  network.standard-url.escape-utf8: false

This should fix your encoding of links.


apt-get upgrade failure on libglib2.0-bin

Try the following:

sudo apt-get remove --purge libglib2.0-bin
sudo apt-get update
sudo apt-get install libglib2.0-bin
sudo apt-get -f install
sudo apt-get dist-upgrade

Note from comments: there appears to be a bug as described here There shouldn't be an /etc/etc/ folder path.  I don't know how you got it. Try to reinstall dpkg with sudo apt-get install --reinstall dpkg if that fails try sudo apt-get remove --purge dpkg and install it again with sudo apt-get install dpkg.


Ubuntu is installed but not booting.I am using a windows 8 pre-installed laptop

the new windows 8 computer tends to have UEFI as a BIOS replacement and in that case you should use a different kind of partitioning and system for loading OS (instead of MBR): have you checked if your windows 8 computer is using UEFI?


Installation of wine32 in a docker container

The Undetermined error and the fact that the OP tried to download from an Ubuntu server, rather than from a PPA repository, are common to my situation. I am using Ubuntu 16.04 and no containers. In my case I was fetching packages from a national download server, and switching to the main server sorted out the issue.

In other words, the undetermined error was some remote problem under the hood of the download server. I have documented this solution in https://askubuntu.com/a/1216074/446253 too


1 or 2 partitions for 2 op-systems (Windows 7 + Ubuntu)?

I advise you start by simply booting the desktop editions, you may wish to try Ubuntu (unity), gnome edition, and kubuntu (kde), just to see what you like.

Assuming your hardware works and you like ubuntu you would then install.

Ubuntu will need at least 2 partitions, one of swap and one for Ubuntu.

In general I would use a minimum of 10 Gb for the root partition. In general your swap partition should be = to the size of your ram.

I think you are asking about a wubi install, installing alongside windows. wubi has advantages and disadvantages, but is no longer maintained, so you can not use it with 13.04

In general I do not personally like wubi, but if yo like you can use it.

You will want to back up your data and read the installation guides before you install.

See also

https://help.ubuntu.com/community/GraphicalInstall

https://wiki.ubuntu.com/WubiGuide


You can use PulseAudio to pipe outputs of most of Linux applications to other applications.

Run pactl load-module module-virtual-sink sink_name=insertsomefancynamehere in your Terminal.

Install pavucontrol and run it. You should see all applications connected to PulseAudio server. Make sure application you want to stream (eg. Spotify) is playing something and is visible in Playback tab.

Change it's output to virtual sink you've created. Now click Recording tab and to the same for application that is used to do streaming (eg. TeamSpeak).

TeamSpeak should hear Spotify now :D


I must say that it doesn't, the Gnome-shell themes are not entirely compatible.

The themes that are supported by Unity are GTK+ & GTK2 & GTK3.

You can download this themes from this place, or find more in Google. After download the theme, you have to install it.
e.g.:

There are other themes that you can install more easily (from the terminal).

And don't forget that you can make your own theme for Unity!


Imho it's a feature, I always use it since it's faster (I don't have to move my fingers from the arrow keys to return). Though it's strange that it isn't mentioned in the manual, they only write about return...


When upgrading pip, get "The directory... is not owned by the current user and the cache has been disabled."

You may use sudo's -H flag. It says there in the error message:

  If executing pip with sudo, you may want sudo's -H flag.

So, correct way would be:

sudo -H pip install --upgrade pip

-H flag sets $HOME variable to the users home by the way.


Boot ubuntu from USB option not available?

My USB stick was detected as a removable HDD, so instead of a removable device see if a flash drive has been added to your list of hard disks to boot from in the bios.(while it is plugged in)

If not try F11 for a manual boot menu (my Asus Mother board has this option).

To burn an ISO to a CD, don't just drag it to the CD, this will only put the file on the CD, use Nero/IMG burn or which ever is your profered CD writing software and 'Burn disk image' this will unpack the ISO onto the CD and create a bootable disk.
Im sure that from win 7 upwards right clicking will give the option to 'burn image' also

The Ubuntu website has a step by step guide for creating a bootable CD.
https://help.ubuntu.com/community/BurningIsoHowto

the boot priority order remains the same make sure that CD-rom is higher than HDD and it will boot from the CD


Cant import ovpn file - Key file contains "client" which is not a key-value pair

There is a known bug in NetworkManager : configuration files with inline certificates can't be imported.

There are several workarounds which can be taken:

Use the this python script which extract the embedded certificates and rewrite the ovpn config to use separate key and cert files. (reference)
Execute the ovpn config using command line:

sudo openvpn your-ovpn-config-filename.ovpn

separate lines which contains port into several lines:

remote xxxxx.yyyyyyyyy.de 443

To be:

remote xxxxx.yyyyyyyyy.de
port 443


You may be able to jog your memory with one or both commands below
ls -artl /var/cache/apt/archives

this will provide a list of the packages with the most recent ones listed near the end.
If an alphabetical approach appeals to you, then try
sudo apt list

When you find the package, then try
sudo apt remove pkgname

Another approach is to try finding the package name in your command history if you installed it with the terminal program
history | grep apt

will return all the commands you entered to manage packages.
If you used the dpkg command instead, then
history | grep dpkg


Nautilus - screen tearing after scrolling

I had this problem too. I no longer have it since I installed Ubuntu Gnome 16.04.

The following solved it for someone else, so you might want to try it:

Add the following

__GL_YIELD="USLEEP"
KWIN_TRIPLE_BUFFER=0
KWIN_USE_BUFFER_AGE=0

to /etc/environment.


How do I bind the super key (windows key) to the applications menu in the lxde desktop environment?

Note that after editing lxde-rc.xml you have to run openbox-lxde --reconfigure in order to see the change.


Error on Ubuntu boot up - "recovering journal"

Step #1:

Lets first check your file system for errors.

To check the file system on your Ubuntu partition...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot


Synchronising data between differently sized, and intermittently connected, devices

I think you would like to make your own personal "Dropbox" at your home server.

There is a project called lipsync:

"A lightweight service that provides automated file synchronization between multiple hosts

lipsync is an open source, lightweight service that provides automated two-way, Dropbox file synchronization in Linux by utilizing OpenSSH, rsync, and lsyncd. lipsync is a the realization of a popular blog post of mine named HOWTO build your own open source Dropbox clone Since I made the posting I’ve received a great deal of interest, and had time to test and architect a workable solution. Thanks to everyone that read, commented and encouraged the further development of this idea!"

Here is the idea:


How to make Alt+Tab switch applications in Lubuntu 20.04?

After a lot of search in the documentation Appendix F Hotkeys shortcuts and Chapter 3.2.14 Shortcut Keys,I figured out that it is just not possible.
If you read the Openbox Bindings section and the Actions Documentation, you won't find any command to switch applications instead of windows.


Trying to dual boot Windows 8.1 with Ubuntu on Acer Aspire 779G

First of all, you do not need to disable "Secure Boot" to install Ubuntu any more. It looks like your computer is with bios, not UEFI, becuase it was natively with Windows 7.

You do not need to do anything special to install in dual boot with Windows 8. Just do not forget to shut down Windows properly. It is hibernated by default.

So just install Ubuntu normal way, like with Windows 7. Good luck!


Error during installation of Ubuntu 14.04 (LTS) in windows 8.1

Download the correct iso. make sure you know 64bit or 32bit.
Make sure your system meets the requirements, especially if your going for ubuntu 14.04 this is not a light weight distro. since your using windows 8, i assume your system qualifies.

I strongly suggest a bootable usb flash drive with atleast 2gb avail.

Programs to create usb:

unetbootin, it is simple and almost impossible to mess up
universal usb installer.

Before flashing the iso. image you should make sure your usb drive is formatted, and i suggest formatting to fat32.

 Some say to create a small partition for misc. data you might want to use for backup, but they leave out that if you are going to do that, the misc. data partition must be ntfs and it has to be the first partition.
Boot up and hit f12 (sometimes other keys depending on the computer) during startup, this will bring you to the boot menu, go over to boot options with the arrow keys and then hit enter to drop down the list of boot options, arrow down to your flash drive and hold shift and press the + sign to move it into the number one spot.
reboot your computer now and it will boot into the live usb, and if everything was done correctly you will be running ubuntu 14.04 live session. now what is supposed to happen is, your supposed to be able to install ubuntu either as a complete install or side by side (dual boot).

DO NOT USE WUBI (installing from within Windows).

I suggest going with a regular install and when ubuntu asks if you want a side by side or full, you choose your preference. either way, you will have to partition your hard drive, a lot of people say that ubuntu handles that for you, but i strongly suggest you do this manually to make sure its done the best way possible. when partitioning the hard drive, i would create the desired amount of space for the ubuntu side, say you have a 1TB HDD, and you want to give half around 500GB to ubuntu, i suggest formatting the ubuntu side in EXT4, from there you will want to leave something called a linux-Swap partition off the back, usually double the amount of ram you have is a good size, so 8gb ram the linux-swap would be 16gb, it can be smaller and it wouldnt hurt, but i wouldnt go bigger. also, seperating the two partitions i would leave about 2mb of allocated space. some people like to divide their linux partition up more, a spot for the bios/boot another small spot for the system files but i think thats over kill and ive never had a problem with the way i do it.


Try reinstalling some packages like the upstart and initscripts packages, etc.


What is the mount point for an FTP server opened in nautilus?

The mount point is in $HOME/.gvfs/, a virtual file system that is only accessible by the user who owns the session.


Can not get Ubuntu 12.04 to sleep or suspend on Toshiba Satellite L35

I had your symptoms on a HP 2000 laptop, without the Windows.  In my case, it used to work before the upgrade to 12.04.

My solution:

Disable the Nvidia proprietary drivers.  In my case, the one with updates wouldn't load and the original was "active".  I removed it, leaving no Nvidia drivers at all.
Start Ubuntu in 2D mode.  I think I have tried Ubuntu, Gnome, Gnome Classic, and Gnome Classic (no effects).  One of them may also work, but I'm sure '2D' does.

That's it.  I can suspend and resume now.  Hope this helps someone.


Install go-mtpfs with

sudo apt-get install go-mtpfs

Create a directory:

sudo mkdir /media/Redmi5

set the ownership of this directory with

sudo chown -R $USER:$USER /media/Redmi5

Then you can mount/unmount this directory with:

Mount:

go-mtpfs /media/Redmi5 &

Unmount:

fusermount -u /media/Redmi5

You will have to do this every time you want to mount it.
File transfers are extremely slow.

This is the best solution I have found so far.


Limiting access per SSH to specific accounts to LAN/specifc IPs?

You can restrict by IP for a specified user. Add below line in /etc/ssh/sshd_config:

AllowUsers user@x.x.x.x

Also you can do as below if you need more than one IP:

AllowUsers user@x.x.x.x user@y.y.y.y
OR
user@x.x.x.*


Moving Steam (installed w/ Wine) to another HDD without reinstalling games

Find the folder that steam saves games into, MOVE it to your second drive. Then link the new directory to where the old was
ln -s /mount/drive/games /home/user/.wine/path/to/games


Why does Nautilus ask me to "... empty the trash before you unmount?"

On mounted volumes Nautilus does not move the trashed files to your main trash directory in your home folder as that wouldn't make much sense for huge files.

Next time you trash something hit Ctrl+H or select View Hidden Files from the menu.  You will notice a .Trash folder lingering in your mounted drive.

The file is actually still on the drive until you permanently remove it.  I guess it's just Nautilus' way of helping you keep things tidy, especially since you might be hooking the drive to other OSes.

I suppose a way to suppress the dialog would be to create your own trash/temp folder on each drive and move the files you want to trash but not delete just yet there.  You could make Nautilus scripts/actions to point the files to your new folder.  Since the files would be on the same drive there would be no overhead (i.e., the move would be instant/not cost any cpu) and you wouldn't be bothered by dialogs.  I personally have a small (2GB partition) I use as a temp/share with Windows area for misc. odds and ends.  I find it works quite well to get thinks out of the way.  Of course that is not practical for big stuff, but you get the idea :)


Try this

sudo apt-get install tasksel

After installation invoke taskel from terminal

sudo tasksel install lamp-server

follow this link

http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/


Ubuntu 21.04 | Join Office365 Active Directory when installing

The domains you see in the O365 Admin Center are actually Azure Active Directory domains, rather than actual Active Directory domains. Azure AD is managed in the cloud and is separate from Active Directory Domain Services.
If you have a domain-joined workstation, you can find the correct domain name to use by putting this into PowerShell (on Windows 10 1607+, or older if you install a newer version of PowerShell):
Get-ComputerInfo -Property CSDomain

The installation GUI freezing up definitely sounds like a bug though. I feel like there should be a timeout or something if there's not an acceptable response.


Keyboard locks in IntelliJ IDEA on Ubuntu 14.04

There is a an open issue in jetbrains youtrack for intellij idea that recommend two solutions:

Keyboard input may be unlocked by restarting IBus daemon from a console:

ibus-daemon -rd

IBus can be disabled for IDEA by unsetting env. variable XMODIFIERS, but ability to input national characters in IDEA will be lost:

XMODIFIERS="" idea.sh

I have used the second one and fixed my problem.


Try using a port checker tool like YouGetSignal and see if you have properly configured your port forwarding. Run the Minecraft server and check if port 25565 is available on your IP address.


Install Ubuntu 12.04 in ntfs or fat partition

You can use the windows installer to install it on the same partition as windows.
According to This question from another forum and this question you can not use ntfs or fat as file system for a standard ubuntu install because it doesn't support the necessary priviliges.
I would always use a linux partition as the root and you can always make a data partition as ntfs that you can write to from both windows and linux. If you can't change the partitions you may be out of luck, though.


Just use the following easy steps:

Hook your printer up to your router and give it a fixed IP address.
Go to the dash and type printers
Click on the icon
Click on <kbd>+</kbd> Add
(type your password if needed)
Click on network printer
Wait a bit
Click on the Canon MX520 that now shows up.
Click on Forward
Click on "Canon" then Forward
Click on "MX520" then Forward
Click on "Apply"

Done!

And as you seem to be a beginning Ubuntu user, here's some advice on How to install software on Ubuntu for the future ex-Windows user!  ;-)


package .NET desktop application for UBUNTU

Yes, it is possible to package a .NET application as a deb package, and you can tell it that it depends on mono so that it will be installed if not already present.

The best way to do this is to use xbuild to build your mono application. Here is the lines from my debian rules file, for my mono application widemargin

#!/usr/bin/make -f

include /usr/share/cli-common/cli.make

override_dh_auto_build:
    xbuild $(CURDIR)/WideMargin.sln /p:Configuration=Release

Then put the following line in your control file:

Depends: ${cli:Depends}, ${misc:Depends}

This will automaticaly calculate your dependencies (including mono) and specify them for you.

The result is that when you install your Deb mono will be installed if it is not already present.

If you need further help with debian packaging of mono applications then the best place to get it is on #debian-cli on IRC OFTC server. These are the people responsible for mono packaging in debian and are really friendly and helpful.


I am trying to understand step 6 in https://help.ubuntu.com/community/MovingLinuxPartition

Step 6 of MovingLinuxPartition refers to something called [instance]. What is that?

The sentence below the command line with [instance] tells you:

Where [instance] is the version you want to make bootable

When I do ls -l /usr/lib/grub, I get just one folder called i386-pc which is likely the “instance” you are looking for.

The "disks" application is actually gnome-disks. Is there a CLI equivalent for if you are working on a server?

Yes but there are multiple CLI tools and ways used to do the tasks integrated into Disks. The page you are referring to speaks about modifying mount options. This can be done by editing the /etc/fstab file manually. If you don’t know how to do it, refer to similar questions or ask a new one describing your specific situation.


'undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' while compiling bochs

You need to add -lpthread to the Makefile under LIBS


how to set free hard-disk size correctly?

There will always be a risk of data loss when you resize a partition with data on it.

That said, since you're making the partition larger, it should be a non-issue (though the partition software will likely still complain).

The usually-recommended partition software is gparted, which you can get from the repos. Using it, it should be fairly straightforward to do what you need to do. Here's a general run-down:

Delete the swap partition.
Find the home partition and find the resize command
Resize it to use the newly-available space

You may have to do this from a LiveCD, since /home is mounted when you're logged in (I haven't resized partitions under Ubuntu in a while, so I don't know offhand whether it will let you resize while its mounted), but the steps will be the same in either case.

Edit To provide a little better understanding of how partitions work, it might be good to think of it in terms of image editing.

The Gimp has a feature called "Resize canvas", which allows you to resize the editable area of your image, without resizing the image that's already there.

If you resize your canvas to a size smaller than what your image currently takes up, then it will warn you that resizing the canvas will result in some of the image being cropped.

However, if you resize the canvas to a larger size than what you started with, you don't get this warning, because the canvas fits the image and has room to spare.

The same goes for hard drive partitions, basically. When you resize a partition, you're changing the amount of "canvas" on which data can be placed.


Switch language shortcut bug [ubuntu 14.04 Gnome]

Go to Systems Settings -> Text Entry -> under Input sources to use: click Russian. Then click the little keyboard icon to open the Russian window and display the Russian keyboard layout. Is the Russian keyboard layout displayed in the Russian window? If the Russian keyboard layout isn't displayed in the Russian window, you can add it by clicking on the plus button (+) to open the Choose an input source window, selecting the Russian language from the list of keyboard input languages, and then clicking the Add button to add the Russian keyboard layout.

If this doesn't work, then there is another possibility. Did the Panel language switcher icon work properly in the beginning? If so, did you ever have boot problems with your computer and then used the startx command to start the X.Org X Window System?


How to allocate unallocated space of hard disk in Ubuntu 12.4 after installation

Here is what you can do:

Start a Terminal session by typing Ctrl+Alt+T
Type gksudo gparted and hit Enter
Type your password in the window that pops up
Find the partition Ubuntu is installed in. If you are unsure what it is, type sudo df in a Terminal session and hit Enter. The filesystem mounted on / will be the Ubuntu partition.
Right-click the partition and select Resize/Move
Expand the Ubuntu partition into the unallocated space
Profit!


If you don't have any specific requirements that force you to use Eclipse 3.8, I suggest that you get a never version of Eclipse. If you have a look at This  Ask Ubuntu question you get a nice description on how to install Eclipse from source.


Installed Ubuntu 12.04.01 with Windows XP but lost access to Windows XP

Hm, it could be a problem with Grub's GFX mode. You could enable textmode for the boot menu:

Open the terminal and edit the file /etc/default/grub.cfg e.g. with nano:

sudo nano /etc/default/grub

And remove the # from the line

#GRUB_TERMINAL=console

so that it becomes

GRUB_TERMINAL=console

Save & exit. Then update the grub configuration with

sudo update-grub

In the output of the command, you should see a Windows entry somewhere. Now reboot and see if the boot menu appears.


VIM, when I shell to prompt using :!bash I'd like the command prompt to reflect me being in a shell

Vim sets the VIMRUNTIME (and VIM) environment variables within the shell from :sh or :!bash, so you can detect it that way in your .bashrc:

if [ "$VIMRUNTIME" ]
then
    PS1="vim: $PS1"
fi

The above will prefix your existing prompt with "vim: ". You could change it to something else, like just vim $:, if you wanted. Put that at the end of the file so that your normal prompt has been set up by then, so you can either use it or replace it.

You can't do the same for Ctrl-Z because that really does return you to your original shell - it's not a new session, it's the one you started vim from in the first place, so it has the same environment and settings as you started with.


Disable "Search Photos" Lens shortcut (Super+C) and Assign to Shutter

I managed to solve my problem by combining two solutions I found online

Change Dash Lens Hotkeys
Shutter as Default

Steps to Solve:

Open a terminal
Enter the command: sudo gedit /usr/share/unity/lenses/photos/photos.lens
Scroll to the bottom of this file and change Shortcut=c to Shortcut= (or if you do use the Photo Lens, you can set it equal to another letter)
Save and close gedit
Enter the command: setsid unity
Open the Keyboard settings (type Keyboard in dash)
Select Shortcuts tab.
Select bottom left option for Custom Shortcuts
Click the + button to add new shortcut
Enter details, Name: Shutter Selection, Command: shutter -s, Click Apply
Click Disabled and enter your desired shortcut (Super+C) in my case.
Close Keyboard Settings.
Log out and log back in.

Note: shutter -s is to take a selection screen grab, you may want another option, check shutter help to determine what flag you want.


In another forum this same issue came up. The root of the problem stemmed from the computer being 64 bit but Pogo seemed to need a 32 bit JRE. The individual installed icedtea-gcjwebplugin and Pogo finally worked.


Python 3.6 is available in Ubuntu 17.04, yet it's not the default, see the package python3.6.

Why not make it default then? See here for the full story.

When will it be default? The latter source says:

  I plan for 18.04 LTS to ship only Python 3.6

If you want to install Python 3.6 in Zesty, do

sudo apt install python3.6

and run it via

python3.6


How to disable wayland in 17.10 in gdm3 login screen

You need to edit /etc/gdm3/custom.conf, change this line:

[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false

to

[daemon]
# Uncoment the line below to force the login screen to use Xorg
WaylandEnable=false


After executing this command, I can use ibus again. I don't understand why :(( Thank god.
ibus-daemon --xim -d -r


Is there a ubuntu supported X.org alternative (i.e. with security in mind)?

Wayland is supposed to be a complete replacement for X, not an addon, and it addresses the problems which concern you. Note that at the moment Wayland is not production ready and there is limited driver and toolkit support for it.

It seems that Ubuntu does not have any plans to integrate Wayland at the moment, and wants to create its own display server called Mir, which may also address some of your security concerns. Mir is also not ready for general use.

DirectFB is a bare bones solution for embedded systems which gives programs direct access to the video card's framebuffer. It does not have any security mechanisms.

Another solution is not to run a GUI at all.


Is there an equalizer in the BASE Ubuntu 14.04?

There are 2 in the repositories for specific soune systems:

Alsa:

sudo apt-get install libasound2-plugin-equal

LV2:

sudo apt-get install eq10q

For pulse you are bound to be needing a PPA. Link to some PPA's (in case you change your mind ;) ):

Is there any Sound enhancers/equalizer?
System-wide equalizer for Ubuntu 13.10


Not able to install ubuntu 15.04 on 64 bit OS

How much ram do you have?

Running the trial "live session" to "try" ubuntu requires a certain amount of RAM and so does the installation.

If you don't have much ram, you should run the following command to see if swappiness is in use:

sudo swapon -s

if nothing is listed, you can mount your swap partition to enable swappiness during the installation process so that you don't run out of RAM in the middle of the installation.

First, run the following command to identify your existing swap partition:

lsblk

Then, run this next command to identify the UUID of the swap partition:

blkid

Now that you have identified the location of the swap partition as well as the UUID, you can run the following command to enable swappiness to use your swap partition. For example:

sudo swapon -U 123456-sbcd789012-987654321

You will need to replace "123456-sbcd789012-987654321" with the actual UUID obtained earlier. I used that number as an example, of course.

If you can't sign into Ubuntu to get to a terminal, you should be able to press CTRL + ALT + F2 where you should be able to run the commands from a text session there. If you cannot access a text session on F2, you can try F1, F3, F4, F5, or F6; any one of these will do fine.

To return to the graphical normal ubuntu interface, use CTRL + ALT + F7 or sometimes CTRL + ALT + F8 and quite rarely sometimes CTRL + ALT + F2 or CTRL + ALT + F1 on newer versions of ubuntu using systemd.

If all that still fails, you should maybe look into installing using the mini.iso media. Click here for more info.


To open grub-customizer simply type sudo grub-customizer in terminal and don't use ./ before that command.


Find out my user's group name without a terminal

I thought usually when creating a new user (during installation too), Ubuntu creates a usergroup with exactly the same name as the username. So for example my username is bytecommander and therefore I'm also (the only) member of the group bytecommander.

I hope this helps you. Please don't forget to accept the best answer to your problem or to give votes to improve the answerer's reputation (and yours, by accepting)...


There is probably a better way than digging through the file-system. I'll share what I know. Hopefully somebody smarter knows a better way.

1) Check for duplicate running processes

If you had the same process running multiple times, that could create the conflict that you described and you might be able to stop here.

ps -ax

if you know the process name, then try:

ps -ax | grep <name-here>

2) Make sure that the package is really uninstalled:

If you run the command below, you'll see that it's not installed or you'll see the corresponding files that are still on your system.

dpkg -L <name>

If you had a few package with similar names, you could do the following:

dpkg --l | fgrep <name>

Once you found what the package was, you could then use the first dpkg command to find all of the files associated to it.

3) Reinstalling and then searching

If you wanted to search through the file system directly, you might not find results right away. Because the package might be partially uninstalled with pieces of it left behind, you might have to know exactly what you're looking for or re-install and then actually view all of the directories and files it touches. You might try reading the man pages on find. Just know that it's not hard, but it's also not straight forward like locate.

4) Package maintainer

You could type the following:

apt-cache show <name>

This is neat for two reasons. If there is a package currently installed, it will show the package twice. The top one is available and the bottom one is the installed version. You may find some information that can lead you to the package maintainer.

I'm hoping one of these will get you up and running until you find a nugget or get a better solution.


Problem while recovering 1TB disk erased with startup disk creator using testdisk

11. [P] for list files and look if it seems it
  12. [q] to quit list files
  13. [Enter]
  14. Write to save new partition table to MBR.

P only shows you the files, not recover them. You have to press q then Enter and then write the partition table. That's all!


you can simply uninstall Krusader, and if Nautilus is the only file manager left, Ubuntu will automatically set it as the default file manager.


Recreating the partition table and then letting Ubuntu create new partitions (either during installation or manually via fdisk or a GUI partition manager like GParted) may not be forensically secure, but if you perform a secure wipe of the entire drive then do the above, you should be fine for anyone with fewer resources than the CIA or NSA.


Main Menu is also known as alacarte

Funnily enough in Software Center it is also known as Main Menu!

Once installed -from dash...


Application not found via the "Search your computer and online resources" Ubuntu Button

For lightdm/unity once you bring the application through terminal an icon should appear in that launch bar on the left.  Right click it and select pin/add to launch bar. There should be something similar in KDE. Yeah some apps just don't show up in search I guess , but it's mostly seems to be common in command line apps.


How do i completely remove Avast Antivirus On Ubuntu

Uninstall from GUI:

Go to Ubuntu Software Center
Click the Installed icon
Type avast in the searchbox, which is in the upper right corner of the window
Click the listed item and click Remove

Uninstall from Terminal:

Press CtrlAltT to open Terminal
Type sudo dpkg -r avast4workstation_1.0.6-2_i386.deb ,  then press the Enter key.
If prompted, type your password then press Enter. Your password won't be displayed when you type. This is normal. Don't worry.


Nonresponsive UI starting a few days ago; no obvious resource shortage

If you recently upgraded to the 2.6.35-25 kernel this past week, it's causing some folks including myself a lot of problems, but not exactly what you are describing (CPU overloading):

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/703553

In case that could have anything to do with your problems, try booting to the previous version of the kernel in grub, 2.6.35-24


Judging by your log, it looks like FGLRX, AMD's proprietary video driver for ATI Radeon cards, is the culprit.

And it...

... looks like ...

.. you're not ...

... alone.

After reading those (looong) pages, not one yet proposed a definitive solution. So the approaches I suggest you are:

Upgrade your Catalyst to the latest version. IIRC, it's 12.6 now. I also have an ATI card, a Radeon HD 7770, and it works great with 12.6.
Try other versions too. 11.4, 12.4. Download package from ubuntu or build it yourself directly from AMD.
Or simply forget about FGLRX and go with the default, open-source, usually trouble-free drivers. Just notice that while it gives less headaches than AMD's proprietary driver, it is considerably slower for high-end 3D games. But for "normal", non-gaming use you won't notice any  difference.

Gook Luck!


stuck on login screen, with Ctrl + alt +Fx not working

Boot a live USB and boot into "Try Ubuntu" option. Make sure you are connected the net
open the terminal ( Ctrl+Alt+T )  or enter tty ( Ctrl+Alt+F1 ) and do the following

sudo mount /dev/sda1 /mnt

sudo mount --bind /dev /mnt/dev

sudo mount --bind /proc /mnt/proc

sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

apt-get update

apt-get upgrade

Reboot

Let us know of any errors or whether or not it helped.

Note: if this process doesn't help, repeat steps 1. and 2. , and in addition to that do

sudo apt-get install gdm

You will be prompted to choose default greeter, so choose gdm.

In case that also fails, repeat steps 1. and 2., and do

sudo apt-get install --reinstall ubuntu-desktop


Evince Document Viewer - Failed to execute child process "nemo" (Permission denied)

Rather than turn off protection completely, you can add a line for every admissible tool to the block /usr/bin/evince { ... } in

/etc/apparmor.d/usr.bin.evince

Lines should have the form

/path/to/binary ixr,

Then restart AppArmor:

sudo service apparmor restart


Ubuntu Server 17.04 enable numlock without desktop environment

I created rc.local file as suggested by @muru and described at https://askubuntu.com/a/919598/158442, then executed commands mentioned earlier and now numpad works when I connect over SSH.

For it to work in VirtualBox I added these lines to rc.local:

# Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
    /usr/bin/setleds -D +num < $tty
done

And after reboot everything works!


How do you install software and updates without a password in 12.04?

Here is the answer you are probably looking for:
Run apt-get without sudo

This way you have to set it for each program you want to use for installing things without specifically given root permission. e.g. for software-center it should look like this:

%usernameofaaffectedperson% ALL=NOPASSWD: /usr/bin/software-center


Name of the lubuntu screen brightness programme

You can use xfce4-power-manager if it's not working out of the box. In 13.10 I haven't used any power manager but brightness is working now. Must be something included in kernel or X updates.


Ubuntu 18.04 LTS highlight color for dialog buttons is too little visible

I confirm it is a pain to make a difference between the buttons.

I did what was suggested increase the highlighted button bezel thickness (GNOME)

vi ~/.config/gtk-3.0/gtk.css

Add the following to the file gtk.css (make a backup if unsure):

button {
    outline-style: solid;
    outline-offset: -2px;
    outline-width: 2px;
    outline-radius: 2px;
}

Create the directory if not present.

mkdir -p ~/.config/gtk-3.0

Save the file 'gtk-3.0', logout and login.

Then it is much more readable. Have a look to the screen dump attached.


How can I type a Unicode character (for example, em-dash —?)

Ctrl+Shift+U, then 2 0 1 4 and Enter

or

Ctrl+Shift+U+2014

Control-capital-u means Unicode, and the four-digit hexadecimal number for em dash (or any other Unicode character) can be found via the Character Map in Ubuntu (gucharmap).

The first option allows you to separately type the correct digits for your character, which appears upon hitting Enter or Space. You can also edit the numbers you typed using backspace before pressing Enter.

If this shortcut doesn't work check if your input method is iBus.