SSH works except from internet via cellphone and juice app

My primary thought:

Able to connect internally, not externally. Verify your MASK value.

ifconfig -a

Review the target systems interfaces file, or Network Manager configuration. Verify the following is set for your interfaces file (if used):

netmask xxx.xxx.xxx.0 ;adjust accordingly
gateway yyy.yyy.yyy.yyy ;adjust accordingly

Within Network Manager, disable IPV6. And verify the correct subnet mask/gateway for your subnet.


DISK IS LIKELY TO FAIL SOON - failing now

As smartctl output suggests you have "16600" reallocated sectors on your disk, which is really high for the number of bad sectors on a disk.

Reallocated_sctor_ct is a Pre-fail property and its threshold for your device is "30" however your device status indicates a really bad number: "1".

It may not fail right away (or might) however you will definitely lose a lot of data if you keep using it.

Take a backup as soon as it's possible for you, and take the device to warranty if it has any.


Server 14.04 - How to make all files in folder with same permissions

go to directory in which you want to change permission then
use below command for files:

find . -type f -exec chmod 660 {} \;

it will change all file permission to 660

and for directory use :

find . -type d -exec chmod 755 {} \;

it will change all directory permission to 755.

entry that start with d shows directory and entry strart with - shows file.
for example drwx------ is directory.


View list of all available unique icons with their names and thumbnail

gtk3-icon-browser is a graphical application to list themed icons.
To this date, it is still under development and available for 15.04 (vivid) and newer releases. Its development can be traced back to this blog post dated 2014.

Screenshot 1: gtk3-icon-browser (3.24.18) in Adwaita theme viewing Tango icon theme, with normal (left) and symbolic views

Screenshot 2: gtk3-icon-browser (3.24.18) with search input "save" and a pop-up window showing icon details, viewing Tango icon theme (left) and elementary Xfce icon theme

Quick review based on above screenshots:

Nicely formatted list of all unique icons: Yes ^1
Contains the icon name: Yes ^2
Preview thumbnail: Yes
Location of icons: No ^3
Icon theme origin: Yes ^4

Reference notes:
^1: This tool will show as icon view by default (no way to change into list view). Either single-click or double-click on each icon will show all available resolutions for that icon.
^2: The newer version of icon browser (since 3.22.30 or so) has added a button "Copy to Clipboard" to the pop-up window, which allows to copy the icon name with a single click.
^3: This tool most likely looks into /usr/share/icons directory (without mentioning locations for each icons) and pulls additional information according to the icon naming specification.
^4: This tool only shows the icons for current theme. To show icons for other theme, change appearance of the desktop environment from current theme to another theme.

The icon browser requires GTK+ 3.13.4 or newer. Install the relevant package gtk-3-examples in 15.04 (vivid) or newer releases.
sudo apt-get install gtk-3-examples
gtk3-icon-browser

First tested in 15.04 (vivid), and latest in 20.04 (focal).
Related sources:

Source code of gtk/demos at master for GNOME/gtk on GitHub.

New icon browser tool for GTK+ developers in development on Fedora Magazine

Mentioned briefly with screenshot in this answer on Ask Ubuntu.


gedit background becomes black when I open a very large file

First, graphical editors all have their limitations in handling very large text files. They will choke sooner or later as the number of lines increases. They will choke sooner or later when the lines become longer (try creating a very long single line in gedit).
Therefore, avoid having to deal with such large files for manual edits, and prefer to use dedicated tools to view or edit such large files.
Still, Gedit has come a long way in supporting opening and editing quite large files. For me, it opens a 180 000 lines text file without any issue. For larger text files, a blue dialog is implemented showing the progress. At that point, I also see the issue with the black screen. However, that issue appears not related directly to Gedit, but rather is related to limitations in the the graphical toolkit, GTK.


How can I run "Video for everybody" in current ubuntu (i.e. without specially compiling the latest ffmpeg)?

See my answer to the metadata question; to remove metadata with an up-to-date ffmpeg, you can simply:

ffmpeg -i input.mp4 -map 0 -map_metadata -1 -c copy output.mp4

As for your actual question: the avconv in the Ubuntu repositories can output H.264, AAC (albeit it doesn't have libfdk_aac, so you'll have to rely on the lacklustre internal ffmpeg AAC encoder), theora video and vorbis audio. I don't know if it supports VP8 video, but if it does then the commands listed in that SU question should work perfectly well.


Ubuntu Studio nvidia driver not loading after update

I had the same problem with my GTX 1050 Ti and Ubuntu Studio 20.04.
I now, after two months using Nouveau, got it working: I installed the "nvidia-driver-435" through the GUI and then installed the corresponding "linux-modules-nvidia-435-lowlatency" package using the terminal. Rebooted the system and the resolution was 1440p as expected.
Of course, it would be great if it would install this package automatically!


Can't install Clementine, dependency issue

I just tried installing it, and it worked.  Here is what I did.  I just just pressed Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

sudo apt-get install clementine

When it was done, I typed Clementine in dash, clicked on it, and it works.


Try with the 'nomodeset' kernel boot option (see here for instructions). This is a common problem for nvidia cards as they need a separate driver. You might want to try it without the dual monitors as well if the nomodeset doesn't work by itself.

After booting, go to "Additional drivers" and install the nvidia driver.

If the nvidia driver in the repository doesn't do the job, you can use the x-swat ppa or look here: http://www.nvidia.com/object/linux-display-ia32-275.09.07-driver.html


Headphones not detected on Ubuntu 15.04 on the Alienware 15

Try this, it worked for me... :)

In Terminal enter command: alsamixer
An ASCI UI will open, use arrows keys to find the item; "HP/speaker Auto Detect". It will say "Off" next to it.
Press the M key on your keyboard and the "Off" tag will disappear.
Re-plug your headphones. (in my M14X R2 it worked in MIDDLE jack output)
Enjoy!


Alt-tab (suddenly?) disabled in root account on Gnome Classic (with/without Effects)

It appears that this has something to do with the Gnome Classic with Effects WM. Executing metacity --replace reset the WM to a Gnome Classic without Effects version and facilitates this functionality.


Getting error sudo: pam_authenticate: Module is unknown

try

sudo pam-auth-update --force

to update pam configuration. If it works well and good otherwise possibly you dont have all the needed modules installed..


To try all the encodings, choose one of your files, eg mychosenfile.mp3m, and then loop
through all the encodings. With luck you will find one that seems to be ok.
This just lists the possible new names:

file=mychosenfile.mp3
for enc in $(convmv --list)
do  echo $enc: $(convmv --parsable -f $enc -t utf-8 "$file")
done

Alternatively, you can rename the files to the song track and title taken from the id3 tag if they have one.
For example, (this just echo's the mv command):

find mydir -name '*.mp3' |
while read file
do if newname="$(id3info "$file" |
        awk -F': ' '
         /^=== TRCK/{ track = $2 }
         /^=== TIT2/{ title=$2;gsub(" ","_",title) }
         END        { if(title!="")printf "%02d_%s.mp3\n",track,title }
        ')"
   then dir=$(dirname "$file")
        echo mv "$file" "$dir/$newname"
   fi
done


Drivers for graphics and cpu of amd with UBUNTU 16.04LTS

It seems that currently there are no supported drivers for this OS, UBUNTU 16.04LTS from AMD.

I guess this is why no one could answer my question.


Can autopilot use an existing Ceph cluster?

Autopilot uses a reference architecture that co-locates compute (Nova) and storage (Ceph OSD) on the same nodes. As a result, consuming an external storage cluster is not necessary.


How can i run tor through chrome on linux?

It is not impossible to configure chrome to use Tor. You can do this by, for eg:

google-chrome --proxy-server="127.0.0.1:8118;https=127.0.0.1:8118;socks=127.0.0.1:8118;sock4=127.0.0.1:8118;sock5=127.0.0.1:8118,ftp=127.0.0.1:8118" --incognito check.torproject.org

or by other methods as described here.

Note that this is highly discouraged, because using any browser besides Tor Browser with Tor is not going to give you the protection you needed. The Tor Project advises against this because their discussions with Chrome team to add missing APIs, mainly - Web Request, Content Scripts, and the Proxy APIs - that would be useful for privacy enhancing extensions, were unsuccessful. There are also several bugs that should be dealt with before even a low-grade privacy-by-design can be provided through Tor in Chrome's Incognito mode.

So, in short,as said in the FAQ :

  Currently, it is impossible to use other browsers and get the same
  level of protections as when using the Tor Browser.


Your problem is not that there is a missing mount button. Your problem is that currently, your partition is corrupt because of your unintentional attempt to format it.
You (unintentionally) started formatting. Thus, a new file system was being created. However, you interrupted the process. As a result, the new file system being created is not properly written: a partition is seen, but no valid file system is recognized by the system.
You now need to reformat the partition, and have the formatting correctly go to completion, to put a valid file system on that partition.
If there is data on that drive for which you do not have a backup, there will be a problem. You can attempt data recovery, but it is not trivial.


The Ubuntu theme was not ported to GTK+ 3 yet and therefore only a fallback is available. This also affects the current 11.10 Alpha 1 and will most certainely change in the future prior to the Oneiric Release and might be ported back to Natty (I am referring to here).

You can also try to manually set the theme to "Adwaita" in your appearance preferences rather then waiting for the Ubuntu themes beeing ported which should have been installed with Gnome 3 if you want the standard look (e.g. like in Fedora).


LibreOffice crashes after installing AMDGPU-PRO drivers

Try this:

cd /opt/amdgpu-pro/lib/x86_64-linux-gnu/

mv libamdocl64.so libamdocl64.so.bak

ln -s libamdocl12cl64.so libamdocl64.so

It worked for me, I'm Running Linux Mint 18.3 with kernel 4.10 and amdgpu-pro 17.30

Regards
hotschi


I need help getting the "Text Entry" notification bar icon back (the one that changes keyboard input method)

This is very easy to fix, simply do the following:

Open up the Dash menu and type Text Entry and press Enter.

You will see the following application open.

Make sure the checkbox for Show current input source in the menu bar is ticked (see picture below).

Also make sure the languages you want to switch between is listed in the box (in my example I have English (UK) and Arabic).

If your languages are not in the list, add them using the + button.

Select your language and then press Add.


Upgrade install from 12.04 to 14.04 was interrupted

Best to du is to boot up you pc with an ubuntu live cd and put in an external hard drive Save all data frim there and than resinstall ubuntu compleatly . This may be the quickest and easiest fix for you.


if they are debs then it will just work normally


H800 Logitech headphones not working properly

Just wanted to report that after upgrading to Kubuntu 15.04, and KDE 5, switching between bluetooth profiles works fine.


Just use teamviewer if you are know how to use it. http://www.teamviewer.com/en/download/index.aspx#downloadAreaLinux

You could use VNC but I find it a bit sluggish but this should help.
https://help.ubuntu.com/community/VNC


Can't Update Apt to get Recent Version of npm

You can install a more recent version from here:

https://github.com/nodesource/distributions/blob/master/README.md

Example for version :Node.js v13.x:

curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs


I can't save Steam games to external flash drive because it is Read-Only, help?

You need to type sudo chown instead of chown to gain permission. You will be asked for a password. The device should be mounted at (example) /media/username/devicename .

sudo chown -R username:username /media/username/devicename

For permissions:

sudo chmod -R 777 /media/username/devicename

If that doesn't work, use sudo to unmount the device like this:

sudo umount /media/username/devicename && sudo -K

and then remount the device by removing and reinserting it.

(you will need to change "username" and "devicename" to the actual names)

Another trick that sometimes works is to insert the device and reboot Ubuntu. When you boot and then log in, the device should automount with all the proper permissions.

Finally, if it's an sd card, don't forget about the lock switch on the side of the device.

Please post any errors.


there's a few tweaks that are recommended.

http://www.howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance/

I'm a bad use case, I don't usually use as many partitions as is recommended, but I would put my /tmp in ramfs most computers have more then enough memory for this.

and /home I would put on a regular drive.

your programs/configs don't change that often.  IMO I think your $HOME changes a lot more frequently, and /tmp is written frequently which is why I allocated some space in ram.

These aren't necessarily the best choices, just what I've done myself.


Good way to update numerous packages with minimal MySQL downtime

Generally what I do with production servers that are dedicated for a database engine is hold a package, preventing them from being updated until I’ve had enough time to test the update in the development and/or staging environments.
You can do this with apt like so:
sudo apt-mark hold {package}

This makes it possible to install all the other updates for a system without potentially breaking something in the database. When you’re ready to update MySQL, you can remove the hold like this:
sudo apt-mark unhold {package}

What’s nice about this method is that updates and security patches can be applied to the server weekly while the database updates are performed only during scheduled maintenance windows every quarter. (Unless something really important needs to be pushed out, of course).


Can I use Ubuntu 18.04 Screen sharing with vino with Mac OS X Mojave Screen Shareing

In the end I just had to disable encryption.

sudo gsettings set org.gnome.Vino require-encryption false

As a bonus note, you can check the value of require-encryption via the command:

gsettings list-recursively org.gnome.Vino | grep encrypt

To know more, this site is helpful: https://linuxconfig.org/ubuntu-remote-desktop-18-04-bionic-beaver-linux


As a user, is there any way to change the "confinement" of a snap package?

As a user, you have a limited amount of flexibility over how you want individual snaps confined. You can install a confinement: strict snap in devmode, for example:

$ sudo snap install --devmode <snap name>

You can also install a confinement: devmode snap in "jail" mode (i.e. treat it as strictly confined):

$ sudo snap install --jailmode <snap name>

What you cannot do, however, is install a confinement: classic as anything other than classic, or similarly a confinement: <not classic> snap as classic.

This limitation isn't to be annoying, it's because confinement: classic snaps are built entirely differently than confinement: <not classic> snaps, and in virtually all cases running them under another model would result in a segfault or something similar. This has to do with the fact that confinement: classic snaps do not use the core snap as its rootfs/execution environment like the other types of confinement, so it finds things like libc in a totally different place.

In general, I don't recommend taking advantage of the ability to install snaps under different confinement models unless you're utilizing them as a developer testing out your snap. Otherwise you'll be using the snap in a way that is probably completely untested by the snap author, and may or may not work properly.


How to setup VSFTPD for multiple users including adding specific directories

You just have to modify the startup call for vsftpd. The user_config_dir argument will tell the server to look for a configuration in the directory /etc/vsftpd_user_conf/luis if the user luis logs in. Analogously with any other user that logs in. I guess that if no configuration file is found the server will fallback to the default one.

Anyway, take a quick read at this manual page (which you can access too from  the terminal with man vsftpd) : http://vsftpd.beasts.org/vsftpd_conf.html

This other guide can help you with using custom directories for your server: http://gofedora.com/how-to-configure-secure-ftp-server-vsftpd/


Start programming in PyCharm like in Windows and install everything that belongs to the current project in one venv. Whenever you install a Python package specifically for a project, PyCharm adds the packages that were installed to the project's venv where PyCharm will find them automatically.

If any of the project's Python packages are installed from the default Ubuntu repositories PyCharm will find them automatically too, if you select the Inherit global-site packages option when you create a new project.

Select File -> New Project to create a new project. Click the triangle marked by the mouse cursor in the below screenshot to show the new project's options.

Then check the Inherit global-site packages checkbox and click the  Create  button in the lower right corner of the Create Project window.


Vinagre only gives 800x600 RDC resolution, how to increase?

I couldn't figure it out either.  I'm now using remmina based on this post: http://www.jonathanmoeller.com/screed/?p=3411

remmina has more (or easier to find) settings, right when you set up the connection.

-Amir


Sorry, but I found this out the hard way. In the time between Ubuntu Oneiric and Ubuntu Precise, an X.org commit broke the ABI that nvidia-173 uses to communicate to the X server.

Since nvidia-173 is not supported by nVidia, they aren't going to do anything about it, and since it isn't free software, no-one else can, either.

Your options are twofold:

Switch to slow nouveau (sudo rm -rf /etc/X11/xorg.conf)
Buy a new graphics card.


Ok, i found the answer myself, sorry for the spam ;-)

In any case if someone else got the same problem, here is what fixed it:

the permissions for the users home folder were all set to d--------- for that user. After setting them back to something usefull with

find /home/username -type d -exec chmod 755 {} \;

and

find /home/username -type f -exec chmod 644 {} \;

everything is working fine again...

One question remains though, how could a power outage possibly cause this problem?????


Copying specifig files from multiple folders to one target folder?

use the -t option

cd /root/directory/for/photos
# mv -t /destination/directory */*.jpg
cp -t /destination/directory */*.jpg

https://manpages.ubuntu.com/manpages/xenial/en/man1/mv.1.html
https://manpages.ubuntu.com/manpages/xenial/en/man1/cp.1.html


Bluetooth mouse not connecting to laptop?

Check to see if the relevant compatibility is installed via synaptic/Ubuntu software.

Theres no reason why it shouldnt work, unless its not a standard bluetooth HID. You might need to install specific compatibility, try searching the software by your device class and or name.


Ubuntu 20.04: Why does turning off "wi-fi can be turned off to save power" turn my wi-fi off?

That's not what it means. Turning that off turns the WI-FI off, not the computer's ability to turn Wi-Fi off. It has the "turning Wi-Fi off can save power" subtitle to tell you why you might want to turn Wi-Fi off. Just leave it on if you want Wi-Fi, or off if you don't.


What is the "Wanna Cry" ransomware's possible impact on Linux users?

If it helps and to complement Rinzwind's answer, first the questions:
1. How does it spread?
Via Email. 2 friends were affected by it. They send the email to me to test under a supervised environment, so you would basically need to open the email, download the attachment and run it. After the initial contamination, it will systematically check the network to see who else can be affected.
2. Can I get affected by using Wine?
Short answer: Yes. Since Wine emulates almost every behavior of the Windows environment, the worm can actually try to find ways on how it can affect you. The worst case scenario is that depending on the direct access wine has to your Ubuntu system, some or all parts of your home will be affected (Did not fully test this. See answer 4 below), although I see a lot of roadblocks here for how the worm behaves and how it would try to encrypt a non ntfs/fat partition/files and what non-super admin permission would it need to do this, even coming from Wine, so it does not have full powers like on Windows. In any case, it's better to play on the safe side for this.
3. How can I test the behavior of this once I get an email that has it?
My initial test which involved 4 VirtualBox containers on the same network ended in 3 days. Basically on day 0, I contaminated on purpose the first Windows 10 system. After 3 days, all 4 were affected and encrypted with the "Whoops" message about the encryption. Ubuntu on the other hand was never affected, even after creating a shared folder for all 4 guests that is on the Ubuntu desktop (Outside of Virtualbox). The folder and the files in it were never affected, so that's why I have my doubts with Wine and how this can propagate on it.
4. Did I test it on Wine?
Sadly I did (Already had a backup and moved critical job files from the desktop before doing so). Basically, my desktop and music folder were doomed. It did not however affect the folder I had in another drive, maybe because it was not mounted at the time. Now before we get carried away, I did need to run wine as sudo for this to work (I never run wine with sudo). So in my case, even with sudo, only the desktop and the music folder (for me) was affected.
Note that Wine has a Desktop Integration feature where as, even if you change the C: drive to something inside the Wine folder (Instead of the default drive c), it will still be able to reach your Linux Home folder since it maps to your home folder for documents, videos, download, saving game files, etc.. This needed to be explained since I was send a video about a user testing WCry and he changed the C Drive to "drive_c" which is inside the ~/.wine folder but he still got affected on the home folder.
My recommendation if you wish to avoid or at least lower the impact on your home folder when testing with wine is to simply disable the following folders by pointing them to the same custom folder inside the wine environment or to a single fake folder anywhere else.

Am using Ubuntu 17.04 64-Bit, partitions are Ext4 and I have no other security measures apart from simply installing Ubuntu, formatting the drives and updating the system every day.


Ubuntu one uses lots of system resources, but does nothing

There is a bug for this here. Other bugs on this keep getting marked private so they are not visible. Please go to the bug and flag as "affects me to" If you need to attach log files so the Ubuntu One team can diagnose the problem, please open a separate bug.


Granting write permissions to a group to www folder in Ubuntu 14.04

First you must make the directory owned by webadmins

sudo chown username:groupname /path/to/directory (-R , optional, recursive)

So there are a few ways to do this, but to Just change the groups permissions the easiest is

sudo chmod g=w /path/to/directory (-R , optional, recursive)

this will make it ONLY have write permissions tho, so you'd probably want

g=rw

If you plan on using linux, you need to learn about chown and chmod, watch some youtube short videos and read some wiki's.


Setup Ubuntu with Apache to redirect subdomains to other internal ip's and different ports

Firstly, ssh goes to port 22 on the server unless the client is reconfigured to use some other port, either with -p port on the command line, or with a more permanent setting in /etc/ssh/ssh_config. I will assume you have got that sorted, so that your ssh something.domain.com goes to port 80 on the server (well, on the router, which presumably is set up to forward it to the server).

Next, (and now I've learnt something new), you adapt and apply the instructions from http://www.karlrunge.com/x11vnc/ssl-single-443.html

That is, you download and run that connect_switch perl script, which is the connection dispatcher based on targeted host name.


My advice to you would be to make absolutely certain your installation is fully updated.  As I am not a mint user, I'm not sure how to advise you, but if it is anything like Ubuntu, it should be as easy as pressing the windows key on your keyboard, typing UPDATE, pressing enter, and then pressing on the CHECK button, prior to pressing on the UPDATE button.

May I ask why you chose MINT over Ubuntu?


You shouldn't delete the desktop files in /usr/share/applications because then you also can't start them using the dash. Instead unlock them all from the launcher.

First do a backup by

gsettings get com.canonical.Unity.Launcher favorites > ~/.default_locked_launchers

Then remove them by

gsettings set com.canonical.Unity.Launcher favorites '[]'

This should unpin all applications for the current user. If you want to restore the original applications do

gsettings set com.canonical.Unity.Launcher favorites "$(cat ~/.default_locked_launchers)"

EDIT: you can do this for all users following the steps in this post.


Remove files from /var/cache/apt (NOT archives)

From Ubuntu Wiki

  Apt stores two caches in /var/cache/apt/: srcpkgcache.bin is rather useless these days, and pkgcache.bin is only needed for faster
  lookups with apt-cache (software-center has its own cache). Removing
  those two buys 26 MB, for the price of apt-cache taking an extra two
  seconds for each lookup.

Hence, safe to remove


Is it possible to place windows with keyboard shortcuts in Gnome-Shell?

Install gconf-editor.

sudo apt-get install gconf-editor

Now, run gconf-editor ( Alt+F2 gconf-editor)

Go to apps/metacity/window_keybindings and edit the move_to_center / move_to_corner entries to your liking. (see screenshot:)


The indicator will not show if only one layout is available.  Once you add another keyboard layout, the indicator will show.  See images below.


SSH asks password when invoke it in script

Try to use the -i argument.
From the man:

-i identity_file
         Selects a file from which the identity (private key) for RSA or
         DSA authentication is read.  The default is ~/.ssh/identity for
         protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro-
         tocol version 2.  Identity files may also be specified on a per-
         host basis in the configuration file.  It is possible to have
         multiple -i options (and multiple identities specified in config-
         uration files).

Then you can specify the key to use for each host.


Unmounting network file system on shutdown

Either try adding davfs2 to /etc/init.d/unmountnfs.sh, and, once you get it working submit a patch against davfs2, or

Try the workaround in the resource you linked to, "For filesystems which do rely on _netdev for correct unmounting at shutdown, for example when using an NBD, a static mtab will be the only way to use _netdev in wheezy" May apply, with the consequences listed.


Please use Virtualbox(www.virtualbox.org).It has lot of more features.Also Install the Extension Pack.

In VMware Player you can resize the program window.


KDE Failing to set global proxy settings

That's because you didn't specify the protocol in the http_proxy value. As the output says:

  connection to 3128:80 (0.0.12.56)

That's totally different from what you're trying to achieve I assume. It's interpreting example.myproxy as protocol, 3128 as IP address in decimal notation (0.0.12.56 in dotted form) and the default port 80.

Try using this instead if this is a regular HTTP proxy on port 3128 at example.myproxy:

http_proxy='http://example.myproxy:3128/'

Regarding applying settings in KDE or any other desktop environment; please make sure to log out and log back in for settings like this to become effective, as it concerns environment settings which are inherited from parent processes (your KDE login session).


Ok, I found the root of my problems: it is using an extra keyboard (maybe this has to do with the fact that it is wireless, not sure about that).

If after manually fixing the problem as described I then re-plug the keyboard - I get into the same situation with $ setxkbmap -option not working and caps not behaving.

Apparently the config is read before the keyboard is detected or something like that. Now the question would be how to fix this, but I guess googling will help.

For now I can just write a tiny script with

setxkbmap -layout us -option caps:ctrl_modifier

inside, and run that after restart (or maybe even put that in .bashrc).


fatal error: ext/type_traits.h: No such file or directory

Reinstalling libstdc++-5-dev fixed this. steeldriver provided this solution in a comment:

  Have you tried simply re-installing the libstdc++-5-dev package?

– steeldriver Dec 19 '16 at 19:07

The original poster confirmed that this solved the problem.

For the benefit of others who find this question by searching, one way to completely reinstall that package is to run:

sudo apt-get update
sudo apt-get --purge --reinstall install libstdc++-5-dev

The reason this is able to solve the problem is that the libstdc++-5-dev package provides C++ standard library headers.


Connecting to server which is conncet to VPN

You could try following:

Find out the ip adress of the ssh-client curl ifconfig.co

Than log in to your server and find out it's gateway ip: ip route

ip route
default via 192.168.178.1 dev wlan0  proto static  metric 600
192.168.3.0/24 dev eth0  proto kernel  scope link  src 192.168.3.1 linkdown
192.168.178.0/24 dev wlan0  proto kernel  scope link  src 192.168.178.66  metric 600

In my case my gateway has the ip 192.168.178.1

Now set up a route (in your server) like this: ip route add client-ssh-ip via gateway-ip in my case: ip route add 80.128.240.55 via 192.168.178.1

Now you can try to activate your vpn and check if you are still able to log in via ssh. As soon as you reboot your server the route rule will be lost. As soon as your ISP changes your IP the route rule will become useless either. Perhaps as an alternative you can bind your ssh port to the gateway somehow with iptables but i never did this.


How to hide an application from window switcher (alt-tab) in 14.04

You also need to install the extra plugin.

press CTRL+ALT+T to open a terminal
type sudo apt-get install compiz-plugins-extra
press Y a couple of times

Window Rules should be there now.


How to capture a printed log from `gnome-terminal -x`?

Each command run in the command line is, in order:

interpreted by the shell;
interpreted by the executable;

In this case | makes the shell interpret sudo gnome-terminal -x sudo fio myjog | tee mylog as two commands piped to each other (sudo gnome-terminal -x sudo fio myjog and tee mylog, the first one piped to the second one).

The result of this is that the output of sudo gnome-terminal -x sudo fio myjog is piped to tee mylog; since gnome-terminal doesn't output anything, mylog is empty.

Use the -e option to pass the command to be executed as an argument;

Commands passed through the -e options are executed in sh;

In this case, since you want to use a pipe, which is a bash (and other shells) feature, you'll need to explicitly run the command in bash (on a side note: you don't need sudo to run gnome-terminal if you're going to use sudo in the argument to the -x / -e options):

gnome-terminal -e "bash -c \"sudo fio myjog | tee mylog\""


ubuntu one saying i have wrong email or password even though i have triple checked and reset password?

You can try to change your password by doing

sudo passwd <username>

If it says you are not part of the sudoers file you can ask the system owner. If you are the owner you have to boot into recovery mode. How to enter recovery mode


Can be done manually by adding aw-qt in the Startup Applications.

Reference: ActivityWatch / activitywatch  Document how to autostart for all platforms #116


I had exactly the same problem - same icons missing as well. I had stupidly uninstalled gnome-bluetooth, and nothing was fixing it. So I did what user282306 (r00t) suggested -

sudo apt-get install ubuntu-desktop

And I've got them all back again.

Kudos @user282306 (previously r00t) for the suggestion.


Terminal user/machine information changed?

Open /etc/hostname file and change the name

gksudo gedit /etc/hostname

You can use hostname command check the current hostname used by your system.


Ubuntu 20.04: Fresh installation crashes before any prompt screen

The installation media as well as the iso, both were just fine. It seems the issue was with the default graphics driver that comes with the desktop iso. I booted through the safe graphics mode, and it worked decently.


'net usershare' returned error 255: net usershare add: failed to add share share. Error was Operation not permitted

I ran Caja as sudo and created the share


This is quite simple actually. Just run this command:

sudo chvt 1


After Upgrade from 14.04 to 16.04 login screen runs in a loop while console login works

I ran into this after updating from 15.10 Wily Werewolf.

I use Nvidia's prime-select command to enable and disable the dedicated graphics card. (After using Ctrl+Alt+F1 and logging into the console) I disabled my GT 540M graphics card with sudo prime-select intel followed by sudo reboot.  Upon reboot I was able to log into Unity.

Obviously this is more of a short-term fix and as the other answers have indicated, perhaps the long term solution will be related to  replacing or upgrading the Nvidia drivers or allowing the existing unsigned driver to run by disabling secure boot.  But hopefully this at least gets you to the desktop!

Edit: The Nvidia driver can now be installed using the official PPA, per this answer:

sudo apt purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-364


Ubuntu stops booting at 'Stopping network device security'

Sooooo... after a day searching i found the problem.

I don't know why or how but there was a bug in the gdm init script. I have no idea how it got there though.

The way i found it was by trying to restart it manually by doing sudo /etc/init.d/gdm restart

Then it said there was something wrong on a line and i removed it.

It does start now just not on boot. will look into that later, at least i can work now.


If you use dual-boot Windows and Ubuntu (or have access to another Windows machine), install the Logitech Windows software for the Unifying Receiver, and their Mouse software. Any settings that you make in Windows will be remembered in Ubuntu. Here's the download link...

https://download01.logi.com/web/ftp/pub/techsupport/options/Options_7.10.3.exe

If you don't have Windows, install Solaar in Ubuntu, and it'll give you ways to pair the Logitech mouse/keyboard, and many times, control some of the additional features of your mouse/keyboard.

sudo apt update

sudo apt install solaar solaar-gnome3


skype and thunderbird indicators missing after 14.04 updates

This command should re-enable missing indicators :

sudo apt-get install indicator-applet-complete


How to switch applications/windows in 11.10 as in 11.04?

To switch between windows of the same kind, you use alt+the button above tab. When you have alt+tab open, you can also press the down arrow key to show the open windows as previews. It's mostly the same as the before mentioned.


It looks like an issue with the nouveau (kernal video) drivers.  Try booking up with the "nomodeset" option.

press the shift key when the bios screen clears
Select grub menu;
Press e to edit;
arrow down to the kernel boot line where it says "quiet splash";
type "nomodeset" -without the quotes- at the end of this line;
Press ctl-x to save and boot.

Once into the desktop, choose Additional Drivers and install the recommended Nvidia driver, though you won't be able to use it until you've installed Linux and restarted.


How can I backup casper-rw on a persistent USB?

If you created your persistent live drive with mkusb, there is a system for it described at this link.

Generally, you should boot

from another drive (the easy option if you have another [Linux] operating system)
if from the persistent live drive, boot it live-only; you can edit the boot option at the boot menu

and then you can use for example sudo rsync ... or sudo tar ... to backup

the whole partition for persistence
or if a file for persistence

loop-mount it and backup on the file level
or copy the whole file for persistence to the backup media.

If you have both a folder called casper-rw, which is empty, and another one called casper-rw1, I think that there are two partitions for persistence. Both are automatically mounted, and the second one to be mounted was given the mountpoint /media/ubuntu/casper-rw1 (or something similar depending on the flavour of Ubuntu).

Please be aware that there can be both confusion and corruption of data, if you boot with two (or more) partitions for persistence connected. It is OK to boot into one persistent live drive, and connect another persistent live drive afterwards (when the boot process has finished and you are at the desktop).


Laptop doesn't wake from sleep Ubuntu 16.04

I had the same issue with my Dell with ATI grapics. I installed the 4.4.8 kernel release and fixed sleep and flaky wifi issues.

To check if you have older kernel:

uname -a

Steps to install 4.4.8 kernel: http://linuxdaddy.com/blog/install-kernel-4-4-on-ubuntu/


Could you check the contents of /media? Also start a terminal session and type in the following:

tail -f /var/log/syslog

Then insert a USB key. In the output that is displayed you'll see a line like this hopefully:

Mar 26 11:43:45 dt-ca-its-linux01 kernel: [11512.782402]  sdb: sdb1

The /media directory now also shows this:

user@linux01:/media$ ls

5F07-50A5 <- This is the USB key.

Let us know if any of this shows up and then we'll work on the issues from there.


isn't the ubuntu logo related in any way to the The Pax Cultura emblem?

No.
Plain and simple, that's the answer - their logo has only a visual relation to the Ubuntu logo.
While I do agree with you that they look similar, the Ubuntu logo, commonly referred to as the Circle of Friends is supposed to represent the community and the meaning of the word "Ubuntu".
From the About Ubuntu page:

Ubuntu is an ancient African word meaning 'humanity to others'. It
also means 'I am what I am because of who we all are'.

Thus, this leads to the "Circle of Friends" name for the logo, because Ubuntu means "I am what I am because of who we all are".
About the "Circle of Friends" logo name - from the Ubuntu Design page for the Logo:

The Circle of Friends
The Ubuntu logo is made up of the Ubuntu wordmark and the Ubuntu
symbol. This symbol is called the ‘Circle of Friends’.

From a wikipedia page that talks about Peace symbols (including the Pax Cultura emblem):

... Roerich came across numerous later examples in
various parts of the world, and knew that it represented a deep and
sophisticated understanding of the triune nature of existence...

Basically, although they look similar, they have no actual relation.


Question about Ubuntu 12.10 extracting a .tgz file in the wrong directory

I am not sure what you wanted to accomplish here, but you told your computer to do exactly that.

running a program via sudo executes it in the context of the root user, all files created in that process will normally belong to root. The -C / parameter of tar, tells tar to extract to the / Directory, you actually need root permissions to do that at all.

If you just want to unroll the file contents into your home directory, simply run
tar -zxvf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz, you may want to make sure, you are in your home directory first by enterin cd ~.

You might want to consider using a graphical program like xarchiver for unzipping, depending on what you demand of yourself (maybe ou want to become a command line crack, this would be a honourable goal ;-).


Freshclam is the clamav database updater.  You can reduce the amount of times that it goes out and updates the clamav database anywhere from 0 times a day (no updates) to however many you want.  12 times a day means once every 2 hours.  Right now, it is probably set to 24 times (once per hour).

To set it run:

sudo dpkg-reconfigure clamav-freshclam

You can also set freshclam to a manual update by setting the Virus database update method: on the second screen of sudo dpkg-reconfigure clamav-freshclam to manual.

After the above is set, then simply run sudo freshclam to update:

$ sudo freshclam
Mon Jan 20 17:16:09 2020 -> ClamAV update process started at Mon Jan 20 17:16:09 2020
Mon Jan 20 17:16:09 2020 -> daily.cld database is up to date (version: 25701, sigs: 2150284, f-level: 63, builder: raynman)
Mon Jan 20 17:16:09 2020 -> main.cld database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Mon Jan 20 17:16:09 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)

Hope this helps!


Is it possible to pin certain apps to a workspace in Unity?

Yes it is.

Install CompizConfig Settings Manager using

sudo apt-get install compizconfig-settings-manager

Run it by searching for ccsm in Dash, and scroll down to Place Windows under Window Management. Check it, click it and move to the Fixed Window Placement tab. Under Windows with Fixed Viewports, click New. Click the big, green Plus sign to the right. Leave the dropdown menu to Window Class to get all instances of the program to run in same workspace.* Click Grab and point the cross-hair to the application you would like to set the option for. Click the app. Then set the grid location and you should be done!

*: I'm unsure of the effect of the other options, but on thing that can be annoying with the window class option is that if you move your application to a different workspace after you have opened it, then any dialogs will still open in the set workspace. It can be confusing.


404 Fetching Error when tying to update xubuntu 14.04 to 16.04

In my case the access to one particular file from default/current mirror was very slow.

wget http://us.archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-amd64/Packages.xz

I tested a bunch of mirrors and used the one that was quick and worked.


Intel NUC running Ubuntu 16.04 booting hangs for five minutes if LAN cable unplugged

Change "dhcp" to "manual" in /etc/network/interfaces for that NIC.

for instance,

# The primary network interface
auto eth0
iface eth0 inet manual

I got the exactly same output. However, I do believe it is quite normal due to NetworkManager work-flow. NetworkManager try to get the IP address for the LAN cable port with default DHCP setting. If no such kind of service there, you will fail eventually.


Lubuntu lxpanel fails to display icons correctly in vertical mode

Unfortunately that's a long known bug that has not been fixed yet. The bug report can be found here on launchpad. If it affects you please click “this affects me” on that page to let the developers know.


Well you can at least use containers and KVM to achieve that by using snapshots.

For LXD this might be as easy as:

lxc launch ubuntu-daily:b b
lxc exec b bash
# do some work
lxc snapshot b b-state-1
# do some other work, but revert later
lxc revert b b-state-1

If you realize a config is nice you can even clone keep this container but clone the old snapshot to a new name to continue with other experiments. The options are nearly limitless. See sections "Snapshot management" and "Cloning and renaming" in this blog. From there you can go as needed.

And if even with all the nice features system containers have these days that isn't enough you can achieve the same with libvirt and snapshots for VM Guests with Disks or even live snapshots depending on your needs.


No boot manager after new Ubuntu installation

In Windows 7 open an admin prompt and type:

bcdedit /enum all /v >bcd.txt

attach bcd.txt when posting back.

This will show all entries you have in Windows BCD (boot config data).

Wubi method of installation is using chainloading of Grub over Windows boot manager.
Ubuntu itself is placed in a virtual disk (a special file on disk).

You should have a

  boot sector loader

entry in BCD to chainload Grub.


Ubuntu starts boot and then hangs, after installing second hdd

first of all, you need to make sure the second disk was not created using dd. Because if you did, dd cloned the UUID from the first drive.
If you look into the grub bootloader, you will see the thing it points to is usually UUID of the disk. Example:
      search --no-floppy --fs-uuid --set=root  8062267c-ff0f-4cda-844a-f46c0abcdefg

this UUID can be seen on the list of disks printed by sudo blkid
if the second disk has the same UUID like the first one, the grub bootloader will use that to start.
If that's the case, use
How do I change UUID of a disk to whatever I want?
to change your second disk uuid


A cursory examination of an Ubuntu 12.10 installation I've got suggests that the efivars kernel module is now built into the kernel rather than installed as a module. Most notably, here's an entry from /usr/src/linux-headers-3.5.0-19-generic/.config:

CONFIG_EFI_VARS=y

This indicates that the support is built into the kernel. The effect of this module is to create the /sys/firmware/efi directory, and it's present on the system in question.

When a module is built into the kernel, you don't need to load it, so you can ignore any instruction to do so, so long as you're sure the module is built into the kernel. In the case of efivars, just check for the presence of /sys/firmware/efi.


Can I use other open source libraries in the application contest?

You are free to use any libraries you choose as long as they are available to the user using the normal Ubuntu app installation method. This means that the library needs to be in the archives already, or included with your application.  As long as you can do one of these, the application is admissible for the App Showdown contest.  Be aware that your entry will be judged only on the code you wrote and the value it adds on top of the libraries you are using.


Ubuntu 16.04 disk partitioning , app installation and /boot cleaning

As per your partition table:

Your $HOME partition is correctly configured and detected as such by the OS. As for downloading packages, anything you download using your browser or external downloaders will get downloaded to your $HOME partition. But the packages downloaded for upgrades get downloaded to /var/cache/apt/archives/. That's how apt works, you can't change that but don't worry because once the upgrades are installed, those files get deleted automatically.
You do not have a seperate partition for /boot.
To delete residual files or folders of wine do:

sudo find / -type f -iname '*wine*'; sudo find / -type d -iname '*wine*'

That should bring up almost all of the residues of Wine. Delete those to free up some space.
Also you might run the following command to remove any other residues from any other applications.

sudo apt-get autoremove; sudo apt-get clean

Finally, install bleachbit and run it twice (once as user and once as root) to free up some more space from your hard-drive.


I think you want ecryptfs-recover-private to "recover  data  from  [your] encrypted  home  or  encrypted private partitions.  It is useful to run this from a LiveISO or a recovery image." It can use your old login passphrase to unwrap your ecrypfs mount passphrase and access your data.

You could also use ecryptfs-unwrap-passphrase with your old login passphrase to find out what the ecryptfs mount passphrase is directly.


How to connect a "calculator" button on a keyboard with a call of a calculator?

if you are using Compiz Config Settings Manager (CCSM) You can use the "Commands" Plugin to "Assign bindings to arbitrary commands". The "Commands" Plugin can be easily installed by dropping the next in a terminal: sudo apt-get install compiz-plugins-extra.

Its powerful key grabber may have better chances to catch the custom keyboard buttons presses in order to provide the proper key binding which can be assigned to the proper command in the list. A Key Binding for a command, this is: "Run command 0" will invoke the line that you write in the Commands section related to the "Command line 0".

In the "Commands" tab of the "Commands Plugin", we write the arbitrary commands that we wish to be executed when we hit the proper key or key bindings, as shown in the next screenshot:

Then we click on the "Key Bindings" tab of the same window in order to enable the proper key bindings for the command. Please notice that I placed the command for the calculator in the "Command line 1" thus the key bindings will be which corresponds to the "Run command 1" as shown in the next screenshot.

What I did to see the "Edit Run command 1" key bindings it was to click in the "Disabled" button to the right, which showed me a window with a checkbox, after enabling it showed the options. Then simply hit the "Grab key combination" and press the proper button in your keyboard. Please notice that the key bindings corresponds to the "XF86Calculator" key.

This way you can define as many custom key bindings to fit your needs.

Good luck!

P.S. Compiz Config Settings Manager can be installed from the Software Center or by dropping sudo apt-get install ccsm in a terminal.


System Boots to intrafms, no access to GUI

I assume you have already destroyed ALL files on your hard drive, (or all  of your hard drives if you have several), and you are not trying to  get ANY of your files back at this point.

For example, the following instructions will destroy any Windows recovery partition.

I would try re-installing the same version of Ubuntu from a Ubuntu Live USB / dvd.  But before you run the install, you can try and reset your drive to a more pristine state.   Here are some Terminal commands.

I wrote these commands assuming /dev/sda is your main hard drive, and you have no other hard drives (apart from the Live USB you boot from).  You may need to adjust them, particularly if you use an NVME drive instead of a SATA drive.  A good way to look at your drives is the Terminal command  lsblk.

sudo wipefs --all /dev/sda*
sudo dd if=/dev/zero of=/dev/sda bs=1M count=10
reboot

The first command will look for filesystems on any existing partitions, and very surgically destroy them.  It will also surgically destroy the partition table.  This includes formats which store some data at the end, which includes GPT partition tables.

The second command will replace the first 10 megabytes of your drive with zeros.  This should more crudley erase the partition table (in the first 1MB), the identifying header of a filesystem that was in the first partition (in the next 1MB), and any associated boot blocks.  And maybe the second partition, if the first partition was very small.


You can try using ocrfeeder or gimagereader to convert handwritting to editable text. Then you will be able to Copy&Paste it to excel.

Both this programs need a lot of tweaking, I recommend reading documentation.


Is it possible to add players to Xfce panel (volume) indicator applet?

Yes there is. You need to run Dconf Editor.
(This is not limited to Xfce.)

But:

As specified by Takkat in a comment, this will fully work only for players controlled by MPRIS and DBus. This type of players will automatically be listed if installed. (This means that dfconf will not be useful to add such programs, as they are automatically added, but only to set the preferred ones, with the play/pause and next/previous buttons, and to remove unwanted players by adding them as 'blacklisted'.)

A sort of workaround for "unsupported" players like DeaDBeef or SMPlayer is to set them as 'preferred', which will display the play/pause and next/previous buttons. The buttons will not work as intended for these programs, but the players can be started with the 'play' button.

In the image below, for ex., the unsupported DeaDBeeF (as well as the supported Audacious) can be started, but SMPlayer cannot. After adding smplayer in the list of 'preferred', a big 'play' button appears (after logout) which can be used to start the player - yet not for play/pause the media.

(Log out and in to activate the new settings.)

http://www.howtogeek.com/113897/how-to-remove-media-players-from-ubuntus-sound-menu-add-your-own/


To know your swap partition, run swapon -s.  Let's say it reports /dev/sda6.

Open /etc/default/grub and find the line with GRUB_CMDLINE_LINUX_DEFAULT=.  This is the list of kernel command line options GRUB will pass to Linux.  Add resume=/dev/sda6, so the line

GRUB_CMDLINE_LINUX_DEFAULT="nosplash enable_mtrr_cleanup=1"

will now look like this

GRUB_CMDLINE_LINUX_DEFAULT="nosplash enable_mtrr_cleanup=1 resume=/dev/sda6"

Save the file and run this to enable the new configuration:

sudo update-grub2


find a process' time in the current state

Sadly it is not possible to tell how long the process has been in the current state (or at what time the process state changed last) - the kernel doesn't keep this kind of history.

Imagine the vast amount of overhead (processor-time-wise and memory-wise) to keep the timestamps of every context-switch (several hundred to several thousand per second).


How to set DNS and edit etc/resolv.conf on Ubuntu server 16.04?

Nameservers play an essential role in directing traffic on the Internet by helping to connect your domain name with the IP address of your web server. To do this, they help web browsers and other services access your domain's DNS records.

From this link
To edit /etc/resolv.conf the file will be overwritten by the system, but it's still possible to edit /etc/resolv.conf
First to install resolvconf with:
sudo apt install resolvconf

Edit the /etc/resolv.conf, you can remove lines or add lines, this is a example of a nameserver line:
nameserver x.x.x.x # x.x.x.x can be like 8.8.8.8(chrome's DNS)

Then edit the file /etc/resolvconf/resolv.conf.d/head and add the lines from /etc/resolv.conf you edited. Finally you run:
sudo resolvconf -u


Try to update (apt-get update) from terminal, see what's failing, and then use the software sources to disable whatever is failing.


I used apt-get purge eclipse and then apt-get install eclipse and it still did the same thing. I ended up purging Sun JDK and reinstalling Eclipse and it installed OpenJDK. All works again.

However, I'm a little disappointed that it wasn't working with Sun JDK. Oh well. Whatever.


Inspiron 7520 Power Management 12.10 after sleep mode

There are two types of "sleep", one where it retains memory and trickles power and the other thats saves the memory to hard disk and totally shuts down.

http://manpages.ubuntu.com/manpages/hardy/man8/pm-action.8.html

Might be the reason? Using wrong "sleep"?


Ubuntu freezes with no way but restart the system

To sum this issue up, I was able to resolve the issue. In my situation, the problem was caused by the Intel Graphics for Linux driver.

In order to use DisplayLink MST, I had installed the driver before. After removing the Package and falling back to the packages provided by the Ubuntu repositories, the problem disappeared.

A procedure how to remove the Intel driver, please refer to this answer.


Brightness keys don't work on a Toshiba Satellite t110

In terminal:

sudo gedit /etc/default/grub

Look for the line that says this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Modify it as to say

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the file, shut down the window and insert the following in the terminal:

sudo update-grub

Reboot your laptop and (hopefully) it will work. I'm not guaranteeing anything, but this worked for my Acer and seems to work for a lot of models.


New to Ubuntu ive installed on dual boot running windows 8.. very buggy and freezes. HELP!

Wubi and Windows 8 do not behave together.  You cannot use it effectively with Windows 8, as it just generally does not work.  That was one of the reasons that Wubi was dropped and removed from 13.04.

What I would suggest is that you use VirtualBox or some other virtual machine software to load Ubuntu onto, so that you can run it while running windows, as Wubi and Windows 8 don't work together.


Make use of newer wireless drivers which are activated but not in use

The "Additional Hardware" utility (called jockey) sometimes doesn't behave correctly, when you compiled the drivers yourself. You can just deactivate the driver and then activate it again to accomplish what you want to do. After that, restart.

What happens "under the hood":
jockey makes sure the driver is not blacklisted in /etc/modprobe.d/ and that other conflicting drivers are blacklisted.

If this doesn't work, do it by hand: First figure out the name of your current driver by running lsmod | grep mac80211.

mac80211              205402  1 ath5k
cfg80211              126496  3 ath5k,mac80211,ath

In this case the driver is ath5k. Prevent this driver from loading by adding the line blacklist ath5k to any file in /etc/modprobe.d/.

Now make sure your new driver (say ath_pci) is loaded on boot, by adding its name on a new line in the file /etc/modules.


filename of video downloaded using youtube-dl consists of random characters at the end of filename.name

Simple, use this in your command -o '%(title)s.%(ext)s' see here

https://github.com/rg3/youtube-dl/blob/master/README.md#output-template

To set as your default create this folder/file .config/youtube-dl/config

Just add the option to that file on single line, info see here

https://github.com/rg3/youtube-dl/blob/master/README.md#configuration


14.04 - GPG error, public key not available

Found this server for this key but unfortunately seems down.

apt-key adv --keyserver hkp://subkeys.pgp.net --recv-keys D46F45428842CE5E

At least try this:
Try to import all missing GPG keys


Show notifications with notify-send when application is full screen?

Use "urgency".

I tested with notify-send version 0.5.0 and gnome-terminal in full screen mode.

$notify-send -u critical foobar "foobar is a nice word."


When using * in bash how do I output to the same file

You can try with a for command line

Test with a 'dry run',

for i in *.png;do echo convert -resize 1024X768 "$i" "${i/.png}.jpg";done

and when its output looks good, remove echo and do the conversion,

for i in *.png;do convert -resize 1024X768 "$i" "${i/.png}.jpg";done

Alternative with find and rename

If you want to avoid a loop in bash, you can use find,

find -maxdepth 1 -name "*.png" -exec echo convert -resize 1024X768 {} {}.jpg \;

and when its output looks good, remove echo and do the conversion,

find -maxdepth 1 -name "*.png" -exec convert -resize 1024X768 {} {}.jpg \;

After that you can use rename to make the target file names nicer (prune the clumsy double extension)

rename -n s/.png.jpg$/.jpg/ *.png.jpg

and when its output looks good, remove -n and do the real renaming,

rename s/.png.jpg$/.jpg/ *.png.jpg

There are probably ways to do this in one step (without renaming), but I don't know how. Maybe someone will chip in and describe a way to do it.


What you see is part of the MyUnity 4.0 development branch, not yet released and not yet usable.

You cannot install it at the moment as far as I know.


Backward Slash & Piping Operator key not working in 18.04

There was definitely a config file in /home which was causing this problem. I reinstalled the OS formatting my / but the problem persisted ... I deleted all config files in /home, but quite a few were auto-generated back again.

So I formatted also my /home also while reinstalling the OS, and the problem was solved!


How to partition for dual-boot Linux/Windows

The, in my opinion, best way to reformat your drive is:
1)defrag the windows partition(not something i do unless i'm resizing a drive)
2)shrink it with windows tools to whatever size gives you enough space
3)leave the recovery partition alone in case you need to re-install for whatever reason
4)in the ubuntu installer create whatever free space - swap partition you need
5)done

It lets you do a windows re-install if you don't have the disk and it just works.

Windows doesn't HAVE to be on the first partition on the disk.  The install windows first thing you're hearing is that if you install windows second it will wipe out the MBR and you'll have to re-install grub.


Can't reach wi-fi signal on Ubuntu, but can do it on other OS/devices (ath9k)

Ok, we solved it!

Using Atheros driver ath9k. If you have the same problem, please follow these steps (I found it here):

Open the Terminal
Install the build dependencies if you don't have it already (but it is installed by default):

sudo apt-get install build-essential
Type the commands (steps 3-9): wget http://www.kernel.org/pub/linux/kernel/projects/backports/2014/01/31/backports-20140131.tar.xz

Here you can get the latest ones from kernel.org site, but this version corrected the issues and it is the latest at the moment of this post!

tar xvf backports-20140131.tar.xz
cd backports-20140131/
make defconfig-ath9k
make
sudo make install

(type your password)

sudo update-initramfs -u

(type your password if needed)

Reboot your pc.

Remember that after a Kernel update (sudo apt-get dist-upgrade) we have to repeat the steps 4 to 9.

This is useful for Atheros wireless cards, but if you have some issue with other manufacturers, try installing the backports drivers for them from kernel.org.


Why can't other users access my SAMBA share without force user = me?

The problem was because of an issue with flow of permissions. Everything worked when I changed the parent directory's (to the directories that were shared) permissions to allow reading for other users.


How to create empty document in Ubuntu 13.10?

Run this command in a terminal:

touch "$HOME/Templates/Empty document"

"Empty document" should now show in the menu.


The problem seems to be in vlc-nox, that is not removed when Ubuntu is upgraded.
If you remove it at first, everything should work OK. Something like that:

sudo apt-get remove vlc-nox
sudo apt-get autoremove
sudo apt-get update

And then install vlc (3.0 worked for me):

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

That should make it work. This PPA contains daily changing, potentially unstable or broken development builds. See the PPA description:

  This PPA contains daily builds from the VLC development branch.


Touchpad scroll not working on HP Pavilion dm3 laptop

The following commands fixed it for me (temporarily until reboot):

sudo rmmod psmouse
sudo modprobe psmouse proto=imps

And to make it permanent

sudo gedit /etc/modprobe.d/options

Add this line:

options psmouse proto=imps

Source: http://puzzlescript.wordpress.com/2010/07/04/fix-scrolling-not-working-on-touchpad-in-ubuntu-10-04/

Note: This fix will make the touchpad be recognized as a mouse instead, which will remove some features specific to touchpads such as disable while typing.


How to upload a CSV file to 'openldap' and 'moodle' server?

Moodle is web-based, you do not need the users to log into the server.  You have two choices with Moodle, the best is self-registration, but if you do want to upload a file you need to follow these instructions in the documentation.

If you need them to all use the same machine to log on, then why not create a guest account that just logs them into the machine, other wise just give them the address of the moodle site you set up, and they can log into moodle from a web browser.


12.04 - Update Manager - failed - previous update incomplete

Remove some files

sudo rm -r /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update

Force the installation of tzdata via

sudo apt-get install --reinstall tzdata

After that

sudo apt-get dist-upgrade


For firefox go to Edit -> Preferences:

Choose Content

Then Choose Advanced

Clear the checkbox (shown above) and choose the font settings you want.

For Thunderbird Edit -> Preferences and adjust the font choice under HTML to your liking.

Sources: Comment from @JoKeR and Firefox and Thunderbird preferences


Have a look at DeVeDe video creator.  It's in the repositories and I've used it for making .iso files prior to burning them to disk.  Most photographers/vidographers would shudder at the thought of permanently altering the original since anything you do to is is going to change or degrade it in some way.  The MP4 is already a compressed format, so any further compression you achieve is going to be lossy.

Consider backing up your important original files on an external medium to free up space on your hard drive.  I'd recommend a portable hard drive - I actually have two hard drives with my original photographs and all subsequent work.  One is used as an off-site backup and gets rotated regularly with the current backup.


Matlab isn't included in the Software Center because it's a closed source and proprietary program. However, just downloading the installer for Ubuntu (R2013a specifically) from MathWorks and using all default settings worked fine for me on 64-bit 14.04.

If you downloaded it, you'll have to unzip it first. If you have an installation CD or DVD it should auto-mount when you insert it.

Then just browse to the correct folder in a terminal using cd and execute:

./install

If you want to install it to someplace like /opt you'll have to preface that command with sudo.

See also:

Install using your MathWorks account
Install using a key file


There is a help text in catalina.sh. I will quote it here:

#   Do not set the variables in this script. Instead put them into a script
#   setenv.sh in CATALINA_BASE/bin to keep your customizations separate.

#
#   JAVA_HOME       Must point at your Java Development Kit installation.
#                   Required to run the with the "debug" argument.

# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.sh, in rare case when it is needed.
CLASSPATH=

if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then
  . "$CATALINA_BASE/bin/setenv.sh"
elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then
  . "$CATALINA_HOME/bin/setenv.sh"
fi

When you starting tomcat using catalina.sh, it searching for file setenv.sh and sourcing it. It is searching in CATALINA_HOME or CATALINA_BASE.

So the better way to set JAVA_HOME for the tomcat is:

Create a script named setenv.sh in the folder CATALINA_BASE/bin, if it does not exist already.
Add this line to setenv.sh

export JAVA_HOME=/opt/java/jdk1.8.0_05

Make it executable.

Why you should use this solution:

Setting environment variable in script is safer. Always try to set variables as locally as possible. Try do not use /etc/environment, /etc/profile and others if you really do not need Global Environment Variable. Setting JAVA_HOME in setenv.sh gives you ability to use different tomcats with different applications that need different version of java, but running by one user. Other user environment would not be affected by you.


Remove the broken file

sudo rm /etc/network/interfaces

Create a new one

sudo nano /etc/network/interfaces

and add the lines below

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

Correct the permissions

sudo chmod 644 /etc/network/interfaces


SETUP for sending Mail via postfix to GMAIL

You can use the package ssmtp to send emails. I am using this package to send me reports of my daily backups.

To install:

sudo apt-get install ssmtp

You will need to edit the files /etc/ssmtp/ssmtp.conf and /etc/ssmtp/revaliases to use your email account.

To test if it works, try to send yourself an email:

ssmtp <your email address>

Then type your message, press enter, and finally press ctrl+d.

For detailed instructions on setting up ssmtp, check out this article.


You can use apt-mark for holding a package.  The command should be

apt-mark hold <packagename>

From apt-mark

apt 1.2.26 (amd64)
Usage: apt-mark [options] {auto|manual} pkg1 [pkg2 ...]

apt-mark is a simple command line interface for marking packages
as manually or automatically installed. It can also be used to
manipulate the dpkg(1) selection states of packages, and to list
all packages with or without a certain marking.

Most used commands:
  auto - Mark the given packages as automatically installed
  manual - Mark the given packages as manually installed
  hold - Mark a package as held back
  unhold - Unset a package set as held back
  showauto - Print the list of automatically installed packages
  showmanual - Print the list of manually installed packages
  showhold - Print the list of package on hold

See apt-mark(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).

Hope this helps!


Can't connect to wireless network with Linksys WUSB11 v.2.6 adapter, networks visible

We see a lot of these entries in your logs:

ieee80211 phy0: wlan0: No probe response from AP xx:yy after 500ms, disconnecting.

You might set a longer wait time:

sudo -i
echo "options mac80211 probe_wait_ms=3000"  >> /etc/modprobe.d/mac80211.conf
exit

Sometimes, it also helps to set the correct reulatory domain; check yours:

sudo iw reg get

If yours is blank or incorrect for your country from here, then explicitly set it. http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

gksudo gedit /etc/rc.local

Right above exit 0, add the correct code:

iw reg set US

Of course, set your code if not US. Proofread, save and close gedit. Reboot and tell us if there is any improvement.


Solved with the following code for Ubuntu 16.04, as explained here

mount /dev/sda1 /mnt
for dir in /dev /dev/pts /proc /sys /run; do
    mount --bind $dir /mnt$dir
done
chroot /mnt
update-grub2


Remote Desktop via xrdp: Missing items in Applications menu and indicator applet

Turns out to be a case of bad config and misunderstanding of how the GNOME Flashback environment is normally initialized. After looking through the related configuration files - /usr/lib/systemd/user/gnome-session.service and
/usr/share/xsessions/gnome-flashback-metacity.desktop, I came up with the following modifications to emulate the same behavior for xrdp:

/etc/xrdp/startwm.sh:

# these global variables are set during normal login through gdm greeter
export DESKTOP_SESSION=gnome-flashback-metacity
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export GDMSESSION=gnome-flashback-metacity
export XDG_SESSION_DESKTOP=gnome-flashback-metacity

These exports should be set somewhere before . /etc/X11/Xsession (when the xsession gets started)

~/.xsession:

# starting the session through systemd, just like normal login through gdm greeter
/usr/lib/gnome-session/run-systemd-session gnome-session-flashback.target

Running gnome-session command directly was causing the indicator icons to not show up (similar to Gnome-panel applet "Indicator Applet Complete" is missing icons). So while this has been addressed with the use of run-systemd-session, I haven't identified the portion that starts gnome-panel (the panel that houses the indicator icons) during normal login, so for the xrdp xsession, I had to add gnome-panel to Startup Applications.


Run following commands:

sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/

This will uninstall the dependencies and related packages that were installed along with eclipse. This should do the trick.


Installing PulseEffects on Ubuntu 18 LTS

Installing PulseEffects
Ubuntu 18.04
These describtion is taken from how-to install PulseEffects on Ubuntu 18.04.
Open a terminal and type
sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt update
sudo apt install pulseeffects --install-recommends

But be aware, these is 3rd party software.
Ubuntu 19.10 and Newer
Maintained inside Debian main repository by hosiet.
To install pulseeffects on latest Ubuntu systems, run:
sudo apt install pulseeffects


Can't connect WiFi printer to Ubuntu 19.10

It looks like your printer is connected to your router by Wi-Fi, because it has internet access. You need to find out it's local IP address. There must be a way to get this information from the printer: either by LED if there is one, or to print network settings.

After you know the IP address, you can add a network printer in Ubuntu. Network search doesn't work out well.

You don't need to "connect" the printer to your laptop if you have standard network settings where all clients are in the same sub net and have access to each other.


Encrypt them (perhaps just use the standard utility to zip them up and use a password, or even several layers) and then place them somewhere where you know where they are but others would not, if you want to keep them really hidden then give them names that don't make them look out of the ordinary, you could also put a . infront of each in the filename to make them hidden on the Linux and Unix file systems.

Though normally you will be asked to set a passphrase for them so they will have already been encrypted.

I just store mine though in the GNOME Keyring, that keeps them reasonably well protected and encrypted. But then people do know where to find them, so it's your choice really.


Dolphin (file manager) shortcuts config-file location

You can look at ~/.local/share/kxmlgui5/dolphin/dolphinui.rc.

The way I dug that out: I made a shortcut with Meta+Ctrl+B to report a bug. After that, I used find to find which file in my home folder was modified as a result.

Here's part of the file:

<!DOCTYPE kpartgui SYSTEM 'kpartgui.dtd'>
<kpartgui version="14" name="dolphin">
... lots of deleted stuff ...
  <Action shortcut="Meta+Ctrl+B" name="help_report_bug"/>
 </ActionProperties>
</kpartgui>


If you are upgrading to Kubuntu then no need to copy anything, just install Kubuntu package.

Use one of these commands:

sudo apt-get install kubuntu-desktop
sudo apt-get install kubuntu-full

kubuntu-full includes kubuntu-desktop and also has some additional packages.

You can see how to install Kubuntu here also.


sudo -fdisk -l result

Partition table entries are not in disk order
Disk /dev/sdc: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0x00019063
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048    30722047    15360000    c  W95 FAT32 (LBA)
/dev/sdc2   *    30722048    31266815      272384    c  W95 FAT32 (LBA)

I've only put in the usb stick as the block insert doesn't seem to work so I had to copy and paste each line.
But as windows doesn't see the other block this will do as the intent was to install
    http://antivirusLivecd.4mlinux.com

onto the small partition but still have most of the stick available for copy between linux and windows.
so my problem is solved and explained

Thanks very much


MSI Z170A Gaming M5 with Linux (dual-boot)

I did find this ! So it looks like the newest kernel has added the device ID for Killer E2400 network card.


Routing traffic over p2p1 and tun0 correctly

In my case, eth1 is the device I want to be an available gateway on my LAN, and ppp0 is the name of my VPN connection when it's active on that machine (connects via eth0 but for deadswitch security we won't name it in the routing).

Setup your IPtables for NAT from the LAN to the VPN-connected gateway:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i ppp0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o ppp0 -j ACCEPT

Remember to save your iptables and activate IP forwarding.


Acer Aspire reports 432MB RAM but has 1GB installed

There are two senarios that has happened either something is wrong with your RAM DIMMs or something is wrong with the software on your computer.

RAM DIMMS:

try to remove one at the time to see which one of them is working or
not. (just to be sure)

The system:

Go into BIOS and reset all settings to default. Remember your old settings... Just in case

By the way, what does BIOS say of your amount of RAM?

If this doesn't work, add a comment and let me know.


Type the following in terminal.
sudo apt-get install ibus ibus-m17n m17n-db m17n-contrib ibus-gtk

Now Goto System>>Preferences>>Keyboard Input Methods Or Type ibus-setup in terminal to start the daemon.After starting the daemon IBUS Preferences will be opened.

Select the Input Method tab and from the drop down Add Hindi language and click close.Now open open office word and you can start typing in Hindi by pressing Ctrl+Space if you press Ctrl+Space again you can start typing in English.

Typing in Open Office Word:

You can toggle between both the languages by pressing CTRL+SPACE.


Ubuntu 14.04 on vmware player - menu options not visible

The following steps solved this problem for me:

Shut down the guest machine.
Right click on VM, and select Settings.
In Virtual Machine Settings window select Display, and uncheck the
    Accelerate 3D graphics option on the right pane.


Pretty sure I broke something when I deleted the old partition and resized the current Linux partition

Based on what you have said in the comments (nothing important on the drive), just do a clean install of your operating system. I'd probably choose 14.04 over 12.04, but both are supported - just select "use entire drive".


It's there on 16.04.3 LTS:

$ cat /etc/issue
Ubuntu 16.04.3 LTS \n \l
$ apt search sound-juicer
Sorting... Done
Full Text Search... Done
sound-juicer/xenial 3.18.1-1 amd64
  GNOME CD Ripper

I prefer a cli tool like cdparanoia, but I'm old-fashioned that way :)


If you can use DHCP, do it and delete all DNS settings from the interface, let router assign you the right DNS server to your network card, if you do your settings manually in /etc/network/interfaces or else, you may configure multiple settings for one interface, wlan0 and wlan0:0, one for school and one for other, there use only the necessary DNS servers in each profile.

An easy way to see, what is supplying you with wrong IP address, use dig command against schools nameserver.

$ dig @10.162.X.50 pop.univmtl.ca

Look for A record, your primary nameserver should be the one in school with IP 10.162.XXX.162. If this is right, it means probably another nameserver is being used. Too many of nameservers does not help as first found is served, same applies for /etc/hosts.

Short term fix would be to alter /etc/hosts and add line when in school, make a script.

10.162.XXX.162 pop.univmtl.ca


Eclipse will at seemingly random times cause random characters to be inserted or deleted when editing a file

I've seen this happen specifically when eclipse has trouble determining multiple functions of the same name.  My solution is to break those functions in to separate files.


Install Canon TS3122 drivers on Ubuntu 16.04.5 LTS

Visit the official Canon driver download webpage.
Download cnijfilter2-5.50-1-deb.tar.gz.
Open cnijfilter2-5.50-1-deb.tar.gz. with the Archive Manager application, and extract the cnijfilter2-5.50-1-deb directory.
Open the terminal and change directories using cd to the cnijfilter2-5.50-1-deb directory, and then change directories again to the packages directory which is located in the cnijfilter2-5.50-1-deb directory. There you will find two .deb files, one for 64-bit (cnijfilter2_5.50-1_amd64) and the other one for 32-bit (cnijfilter2_5.50-1_i386). Select the .deb file that matches your OS architecture. In this example it is cnijfilter2_5.50-1_amd64.deb.
Install the printer driver.

sudo apt install ./cnijfilter2_5.50-1_amd64.deb


Drive has a code instead of its normal name

It was so because I had turned on automount using gnome-disks. One should also correct mount point folder when turning automount on:


If you only have occasional need of >1GB of swap space, you may consider creating a swap file in addition to the dedicated swap partition, which will avoid having to dig up a live CD/USB and resize partitions.

Create a swap file:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

Add it to your /etc/fstab file so that you don't have to manually re-enable it each boot.

/swapfile none swap sw 0 0

You can set the priority of the two swap areas separately if you want the system to use the dedicated partition with higher priority. Add a pri=N option to the mount options in /etc/fstab, eg:

UUID=xxx...yyy none swap sw,pri=10 0 0
/swapfile none swap sw,pri=1 0 0


Sincerely, your script is a mess. Before to start with bash scripting, you should read first something like: Bash Guide for Beginners.

Now, your script should look like:

#!/bin/bash
#systemstat

case $1 in
"-r")
    COUNT=`ifconfig eth0 | grep 'RX packets:' | cut -d: -f2 | awk '{print $1}'`
    DATE=`date +"%H:%M:%S"`
    echo -e "Time\t\tTotal Packets eth0"
    echo -e "$DATE\t\t$COUNT"
    ;;
"-c")
    VENDOR=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d: -f2 | awk 'NR==1'`
    MODEL=`cat /proc/cpuinfo | grep 'model name' | cut -d: -f2 | awk 'NR==1'`
    MHZ=`more /proc/cpuinfo | grep 'cpu MHz' | cut -d: -f2 | awk 'NR==1'`
    echo -e "CPU Model:\n $MODEL"
    echo -e "Vendor:\n $VENDOR"
    echo -e "MHZ:\n $MHZ"
    ;;

*)
    echo -e "Usage: `basename $0` OPTION\n\tOPTIONS:\n\t\t-r -> some explanation\n\t\t-c -> some explanation"
    ;;
esac

See also: Using case statements.


The Ubuntu website has a download page and a guide for running the Ubuntu 13.04 Live CD.


How do I finish my Ubuntu installation on virtual box?

Eject disk from your Virtual Machine or restart machine and start press F12 to open boot menu (if EFI enabled, ESC key.), select HDD.


One choice would be to use an overlay filesystem for the /etc directory.
More exactly:
Assuming you want to encrypt the /etc folder only when the disk is accessed offline (because online you would definitely need it):

one choice would be to have another partition for the /etc folder;
then, encrypt/decrypt this entire partition using LUKS.

If you want more, you can encrypt the whole filesystem using LUKS or TPM.
If you want to prevent also changing the content inside the /etc folder:

then use the overlay on the /etc folder as described here, but for the /etc mountpoint:
Example OverlayFS Usage

Here's some Ubuntu tutorial for this (adapt it to your situation):
https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019
success!...


How to change the screen resolution in VNC viewer for Ubuntu 12.04 without a monitor?

You can change resolution when you connect to monitor-less PC via VNC by executing the following command:

xrandr --fb 1280x1024

Source:
http://www.x.org/archive/X11R7.5/doc/man/man1/xrandr.1.html


How do I detect wireless broadband on Ubuntu?

If your networks card is configured and running Ubuntu already does that. On your taskbar you can see an icon wich contains all the networks Ubuntu detects.

If you like you can try tools to better see the networks avaiable to you.

Gnome-network is one of those tools, Wicd is another.

You should give this site a read


Cannot create bootable USB with partitions

The problem was in the partition table. Using the default GPT was not working. I used mkusb to build the persistent drive chosing an MSDOS partition table and it worked just fine.


Cannot play (or rip) Audio CD (but DVD and Data play)

Fundamentally the audio CDs that I was trying to play are non-standard audio CDs and probably cannot be read by my combination of DVD-ROM and Linux software.

Specifically these CDs are "Filippa Giordano" and "il rosso amore" both published by Warner Music Europe.  Eventually by chance I loaded "Con Amor a Mexico" published by Sony Music and to my astonishment it loaded and played automatically!

The murky background to this problem is explained on the following Wikipeda page: https://en.wikipedia.org/wiki/Copy_Control.


HDMI issue with Macbook pro 8,1 on Ubuntu 14.04

Try to update to Ubuntu 14.10.

I have the same model of Mac, and audio/video works as expected, if you want to duplicate the content of your monitor in your TV, in the "Screens" Control Panel of Ubuntu, check the "Mirror screens" option.


Enabling Macro Keys of Alienware 17R4 and utilizing them on Ubuntu 16.04

I have the same problem on my AW15R3 and solved it

first install the following packages on ubuntu

sudo apt install  ghc libusb-1.0-0-dev cabal-install git pkg-config python-usb -y

then get the scan code of each key from the following command:

dmesg | grep -i code

for example when I press the macro key 4 the following message is printed that indicate the scancode is e015

[ 1737.342249] atkbd serio0: Unknown key released (translated set 2, code 0x95 on isa0060/serio0).

Now the "e015" is the scan code and you need to map that to a free keycode in the system. This could happen by running sudo setkeycodes e011 204
so create a script under /etc/init.d to map the scan codes to a free keycodes available for all keys.

Please note that you need to execute the below commands on Linux console not on the x-server (Ctrl+Shift+F3 to switch to Linux console from X). Use sudo vim /etc/init.d/keyremap and
map the codes to the keycodes:

sudo setkeycodes e011 146
sudo setkeycodes e012 148
sudo setkeycodes e013 149
sudo setkeycodes e014 203
sudo setkeycodes e015 204
sudo setkeycodes e016 184

Then make the script executable by chmod +x keyremap

Finally use xmodmap utility to map the keycodes to keysym so your Xorg can understand and catch the key events using vim ~/.Xmodmap:

  keycode 154 = XF86Launch0
  keycode 156 = XF86Launch1
  keycode 157 = XF86Launch2
  keycode 211 = XF86Launch3
  keycode 212 = XF86Launch4
  keycode 172 = XF86Launch5

Then run sudo xmodmap ~/.Xmodmap

Now you can map the XF86Launchx to any action by using the keyboard shortcuts:

You can create an entry in rc.local so these scripts are executed automatically when machine boot up.


How can I monitor Windows XP internet history over a network? (Im ubuntu 12.04)

If the browser is Firefox 3 (or newer) you could share over network the mozilla folder where the file places.sqlite is stored. This file can be analysed by sqlitebrowser  for example.


Thunderbird: enable drag and drop to move email into folder

After an update and reboot, it is now working.


How can I expand the size of my Ubuntu installation without reinstalling?

Wubi is great for experimentation of Ubuntu. If you really want more than 30 GBs of space you might want to consider actually dual-booting. The thing is that Wubi uses Windows' native filesystem and is very susceptible to the corruptions and downsides of it. To be using Ubuntu heavily enough to warrant over 30 GBs of usage... it might be worth your while to take the plunge and just install it.


Maybe it's a problem with Ubuntu and Win 8 DualBoot as ist was reported here: http://www.h-online.com/open/features/Linux-and-Windows-8-Fast-Startup-puts-data-at-risk-1780640.html

What happened if you use Unity without Changes for a longer time? Also dataloss?
What happened if you use another Desktop like XFCE?


What does the command name "dd" stand for?

The syntax was inspired by the DD (data definition) statement of OS/360 JCL.
Source:GNU

More Reading Here


The problem was solved by following two suggestions made to me (one in the comments above):

I uninstalled McAfee and disabled the secure boot in BIOS.

(For the record, the secure boot was enabled in the process of making Aspire E15 accept booting from somewhere other than the Windows partition.)


Issue with 64-bit application execution under wine (missing "Microsoft.VC80.CRT" assembly, msvcr80.dll)

You can try to manually replace the library. Open the Libraries tab and type the library name:

msvcr80

http://prnt.sc/sbjiua


Script to send Email if Log grows past 90M

sudo gedit /etc/crontab

Add the following line to the bottom of the document:

00 *  * * *  MYUSERNAME  bash /path/to/my/file &> /dev/null

This will run the /path/to/my/file with bash every hour, if you want to change the frequency, read more about CronTab.

As for email sending, that is a much larger setup for another question, that has already been answered. Something like this is a start, but Google is your friend for this one.


Unable to load Ubuntu after installing Windows

Your grub2 installation was removed from the MBR by the Windows installation.

Please follow the instructions in the Recovering Ubuntu After Installing Windows wiki page, the graphical method should restore your grub2 install that was over written by the Windows installation.

  Insert your Ubuntu CD, reboot your computer and set it to boot from CD in the BIOS and boot into a live session. You can also use a LiveUSB if you have created one in the past.
  Install and run Boot-Repair
  After this, click "Recommended repair" and apply. If you are willing to use the advanced options, make sure you leave the "Reinstall GRUB" checkbox ticked.
  Now reboot your system. The usual GRUB boot menu should appear. If it does not, hold Left Shift while booting. You will be able to choose between Ubuntu and Windows.

The recovery method should detect both your new Windows and the Ubuntu install.


Yes there is and I am using it. Just grab the deb files and install using gdebi or dpkg -i.

amd_64

i386

You can grab from ppa as well or here.


How do you append to environment variable in Upstart?

You can't append variables inside an upstart script, you need to use an external file and source it inside a script section:

create a /etc/default/myjob file with content like:

env PATH=$PATH:/mnt/data/src
env PYTHONPATH=$PYTHONPATH:/mnt/progs/link
export PATH
export PYTHONPATH

then in /etc/init/myjob.conf source it where you need it

script
    . /etc/default/myjob
    exec command
end script

while this would look unnecessary complicated it is actually correct because an init script file is supposed to change between packages version while /etc/default/appname are configuration files and aren't overwritten by default


Avoiding backing up system-managed files

Just back up /home (user files and settings) and /etc (system settings) - everything else can restored by reinstalling Ubuntu and installing software from the repositories.

If you've manually edited any other locations (this includes installing software from using other methods than package manager), you will need to back up those as well.


Is there a Magnifier app for Ubuntu? I want to use a bounding box with the mouse on a part of the screen and magnify it for our eyes to Zoom

Please see the following related answer:

Default screen magnifier?

The accessibility settings in 14.04 appear to have been changed to only include "enhanced zoom desktop", but you may find this a suitable alternative to a magnifier.

After installing compizconfig-settings-manager per the linked answer, you will want to configure the enhanced desktop zoom such that you have a zoom in and zoom out key, at a minimum. From there, you can zoom as needed. The zoom follows your mouse as well, making it somewhat similar to a magnifier.


Can I run MS Office apps installed under windows?

MS Office makes extensive use of the Windows registry - for application data and registered DLLs etc.

Lets assume you had two MS Windows installations - you couldnt just point one MS Windows installation at the MS Word executable of the other installation.  It just wouldnt work.

Thus it is the same for Ubuntu.  You will need to have the installation media for MS Office and install it with-in wine or PlayOnLinux.

If you had the actual MS Office documents themselves located on Windows, then you dont need to copy these to Ubuntu - just open Nautilus and browse to your Microsoft partition.

Linked Question:

How well does MS Word 2007 and MS Power Point 2007 work in Wine?


Ubuntu Server - Minimal Virtual Machine AND OEM Install?

This is no direct answer but maybe the JEOS vmbuilder will help you to achieve that task? Even though the article appears to be from 12.04 vmbuilder is still released and up to date.


Issue with second monitor on Ubuntu 18.04 startup

I would first make sure you know what driver is installed.  You can do this from the GUI or from the command line.

nvidia-settings --version

Then you can change what version you are using by seeing what is available

sudo ubuntu-drivers devices

And then installing the one you want.

sudo apt-get install nvidia-theNumberYouWant

Sometimes a purge is recommended before you start.

sudo apt-get autoremove --purge nvidia-*


just like SEWTGIYWTKHNTDS said above you can
fully shutdown your windows by restarting,
pressing SHIFT  + click shutdown in Start Menu,
or using this command in admin command prompt
shutdown /s /f /t 0

and you can uncheck the option Turn on fast startup in settings


Based on port 1194 I guess you use OpenVPN.
OpenVpn documentation in the FAQ recommended fallowing

  Which ports do I need to open in my firewall for Access Server?

  Short answer: TCP 443, TCP 943, UDP 1194 Long answer: By default
  OpenVPN Access Server has 2 OpenVPN daemons running. One of them on
  UDP port 1194 and another on TCP 443. We recommend that you use the
  UDP port because this functions better for an OpenVPN tunnel. However,
  many public locations block all sorts of ports except very common ones
  like http, https, ftp, pop3, and so on. Therefore we also have TCP 443
  as an option. TCP port 443 is the default port for https:// (SSL)
  traffic and so this is usually allowed through at the user's location.
  TCP port 943 is the port where the web server interface is listening
  by default. You can either approach this directly using a URL like
  https://yourserverhostnamehere:943/ or by approaching it through the
  standard https:// port TCP 443, since the OpenVPN daemon will
  automatically internally route browser traffic to TCP 943 by default.
  (https://yourserverhostnamehere/).

But my recommendation, from battle field, is to allow all traffic from vpn server ip address

sudo ufw allow from ip_address_of_vpn_server

Do not specify proto because OpenVPN use both, tcp and udp

Edit 1

Also you can create script to auto reconnect when tun0 is down.

Add a simple script to caled tun-upin /etc/network/if-down.d/ which content is

#!/bin/sh
# filename: tun-up

if [ "$IFACE" = tun0 ]; then
  sudo ifup tun0
fi

make it executable

sudo chmod +x /etc/network/if-up.d/tun-up

Edit 2

Ok, we allow wrong address.
First we need to catch correct ip address to allow traffic.

Start terminal and run command

tail -f /var/log/system | grep UFW

then try to connect to vpn sever. In terminal you will see block off

May 25 08:18:22 xxx kernel: [259789.025019] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:23:cd:f4:8c:29:08:00 SRC=XXX.XXX.XXX.XXX

In block find SRC=XXX.XXX.XXX.XXX, this is address who send traffic to you, in most cases this will be public ip address of vpn server.

This ip address must add in ufw rules on first please, because you talk and exchange traffic with this address before is tun0 up.

Rule is

sudo ufw insert 1 allow from XXX.XXX.XXX.XXX


Welcome to AskUbuntu!

Because of the fact that you installed Ubuntu on an ext4 partition, Windows can't "see" it, and so it doesn't even recognize that the disk space is there. To have Windows see the partition it would have to be set up on a Microsoft format (FAT, FAT16, FAT32, NTFS). Ubuntu/Linux can see/read Windows formats, but Windows can only read Microsoft formats.

As for the reason that you can't start Ubuntu, did the computer do anything, or did it just boot directly to Windows. I guess I should ask, did you watch the computer the entire time it was booting?

GRUB, the Boot Loader that allows you to choose the OS you want to load (Windows, Ubuntu, etc.) only displays the choice for about 10-15 seconds before automatically booting the default choice. If you didn't watch the entire time and explicitly choose Ubuntu, it may have accidentally booted Windows instead of Ubuntu.

Best of Luck on solving your problem!

EDIT:Problem Solved!

Quote: @Shubhanyu Veldurthy

My problem is solved. I used boot repair disk from sourceforge. This is the link: http://www.sourceforge.net/projects/boot-repair-cd


Keep calculator from opening a new window every time I press the "Calculator" button on the keyboard?

The tiny script below will do what you want. You need to install wmctrl for it to work:

sudo apt-get install wmctrl

After you've installed wmctrl, paste the text below into a file and call it whatever you want. I called mine calc-activate.sh.

#!/bin/bash
#This script switches focus to gnome-calculator if it is running.
#If it is not running, it will run gnome-calculator.

if [ "$(wmctrl -l | grep Calculator)" != "" ]; then
    wmctrl -a "Calculator"
else
    gnome-calculator &
fi

After saving, the text file, make it executable either by right clicking and going to the permissions tab and checking off the Execute  boxes, or do it from the terminal with the chmod command).

Now you can set your multimedia keys:

For Ubuntu 11.10 and earlier, go to: System → Preferences → Keyboard Shortcuts
For 12.04 and later, hit the Super key, type "shortcut" then hit Enter.
Now find the "Launch calculator" shortcut, click on it and hit backspace to disable it.
Now you can add a new custom shortcut. Point the command to the full path of the script you just saved. Click on the new command and press the calculator button to assign it. Voila!

Please note: Since wmctrl looks for a program titled "Calculator" the above script snippet might not work with other languages. To fix, change Calculator so it matches the window title of gnome-calculator.

Danish example:

if [ "$(wmctrl -l | grep Lommeregner)" != "" ]; then
    wmctrl -a "Lommeregner"
else
    gnome-calculator &
fi