WiFi connected but no internet, ASUS laptop with Realtek 8821ae/Ubuntu 15.10

Follow this troubleshooting guide and posts the results:

Start by pinging yourself , if you cant check drivers and that it is being detected.
Ping your gateway. if you can't check that you dont have static ip addressing from a different subnet.
If possible try pinging a machine in the local lan using its ip.
Try pinging 8.8.8.8 which is google dns server. If you can do it then you have internet access and its most likely a dns issue.
Finally ping www.yahoo.com , if you can do it then you should not have problem to navigate from any browser. If you cant check your dns servers
if pinging to www.yahoo.com works from your terminal but you cant navigate using the browser check that it doesnt have a static proxy setting.


scp autocompletion displays websites as well as file names

It got it from names of files in current directory, /etc/hosts file, ~/.ssh/config file and ~/.ssh/known_hosts file.

Check the script /usr/share/bash-completion/completions/scp from package bash-completion.


How can I give access to a single wordpress folder to some 3rd person in Ubuntu?

www-data is the key here: that is the group. You can add users to a group so they have access to files and directories based on the groups permissions.
The command would be:
 usermod -a -G www-data {user2}

{user2} will then be able to change files that are connected to this group  (besides the files he can change that he owns himself).
If needed you could even create a new group, connect that one to the 2 users and restrict user2 to specifically those files connectecd to that group. Apache uses www-data as user but that user can also have more than group www-data.

I saw/found that, along with 777 access to this website2, he also, automatically, is getting a read access to full root folder and all its sub-folders.

chmod 777 is never the answer unless you also include the sticky bit.


Cannot run program - 'org.gnome.desktop.interface' is not installed

quite later, but try to install gsettings-desktop-schemas.


How to update ntpd to the latest version to patch the latest vulnerability?

Install checkinstall, read man checkinstall and use checkinstall to keep track of the files installed.
Download, build and install the version of ntpd that you need, overwriting Ubuntu's. Check to see that you can make uninstall (by reading Makefile), or keep track of the files installed.
When Ubuntu updates ntpd to, or beyond, the desired version, return to the source directory and make uninstall. Then sudo apt-get install --reinstall ntpd should get you re-synchronized with the official version.

Note: I have not tried this, so I may be wrong.


Default to python3 for '/usr/bin/env python'

That's because env is searching python in your PATH, not on any shell builtin, or alias or function. As you have defined python as python3 as an alias, env won't find it, it will search through PATH and will resolve python to /usr/bin/python (which is python2).

You can check all the available locations of executable python, in bash, do:

type -a python

You are out of luck if you want to use an alias in shebang as by definition, shebang needs to be an full path to the interpreter executable, which the env should resolve python to when you use /usr/bin/env python. To interpret the script using python3 use the shebang:

#!/usr/bin/env python3


Shell script not installing python3-pip correctly

Probably your apt-get command fails without you noticing. It is not clear what version of Ubuntu you are working on, but at least in 16.04 the package "python3-audio" does not seem to exist, making the command fail.

Try putting the correct name of the package (probably "python3-pyaudio") in your script.

In general it looks like a system like ansible instead of a shell script would be more appropriate for what you are doing here.


Try using R --vanilla - an .Rprofile can break it - mine does...


snap "heroku" is already installed, see 'snap help refresh'

You can simply do
sudo snap remove --classic heroku
and then reinstall with
sudo snap install --classic heroku


Where does software go after it is downloaded?

Clamav is a terminal based application, so your best bet is to open a terminal and type man clamav. Doing that will tell you if it has been installed, since you won't have the manual page for it if it hasn't. Then you can read the information to learn how to use it.

Note that clamav is only effective against Windows viruses. These by their nature cannot work on Linux and antivirus on Linux is therefore really just to avoid you passing viruses on to Windows users e.g. through Word documents.

Linux is not immune to malware, although a well organised and maintained Linux system is extremely well protected compared with Windows.

If you are security conscious, consider installing chkrootkit and rkhunter, as well as a script blocker in your browser to block javascript when you surf the web e.g. No-Script. If you have open ports (e.g. if you use SSH), you would also do well to set-up a firewall e.g. gufw.


How to create a wifi hotspot using wifi connection

Go to settings and click on Network

Now click on Wireless(if not already selected) and then click on "Use as Hotspot"(below list of available networks)

Click on turn on (It may ask for name, password, encryption type etc. if you haven't ever used it.)

This method works for me...


I have now found the answer - I am using Okteta instead! This program sends the output to a printer in normal "hex-dump" format. Bless is probably good if you need a spacial file or print format, if you can make it work.


The attempt to mount a file system with type vfat in SCSI1 (0,0,0), partition #1 (sda) at /boot/efi failed

FAT is a filetype often used by windows, but also by UEFI. The first you have replaced, but the second is needed to boot the system. It's generic so Ubuntu can install a new UEFI. Windows can use the TPM chip to do a secure boot, which verifies that the windows you are running is coming from microsoft. But since your trying to run Ubuntu, which isn't using the same keys.
Secure boot is a function you may need to switch off. You can do that in the 'bios' by booting into it using F2, F10, DEL or anything shown in the first seconds of switching on the PC. Make sure the PC is switched off fully, there are some fast boot states where it will jump straight over the BIOS selection
If that doesn't work I would wipe the harddisk clean and start the installation of Ubuntu from the beginning. So if you really don't need anything from disk SDA you can boot into the Ubuntu installer and then jump to a terminal (press ALT+F1 or CTRL+ALT+F1 or use F2 through F6).
You can delete all the partitions if you run fdisk on /dev/sda and delete and write the new partition table to the disk.
alternative fdisk programs are called cfdisk, sfdisk, cgdisk and sgdisk. For me cgdisk would be the weapon of choice.
The shotgun approach to disk wiping is to write all zero's to the first few sectors, effectively wiping all previous partition tables and file structures.
Here writing all zeros over the current efi and a bit over.
dd if=/dev/zero of=/dev/sda bs=1M count=528


rsync usually only copies what's missing or changed, there seem to be also some GUIs for it.

The command for you might look like as follows, copying recursively and preserving permissions, timestamps etc. (archive), verbose output, use compression (zip) during transfer, showing Progress:

rsync -avzP /media/oldhd/ /media/newhd/ in some casese you may need to prepend sudo if files are from different users.


Performance cost of running Ubuntu from external hard drive

USB 2 is rubbish. There. I said it.

It is fairly universal and it's allowed us to get a lot of extra hardware attached to our computers but for transfer speed, it's just no good. Around 20-30MB/s would be typical in my experience.

Might not sound terrible but an average internal drive manages 70-100MB/s and a great SATA drive can touch 300MB/s. There are of course even better products but they're prohibitively expensive.

USB 3 is far better but although we've had drivers in Linux longer than any other platform, they're still pretty buggy in my experience. You might ask him to try upgrading the kernel to 2.6.37 and then trying USB3. The last two kernels since Maverick's 2.6.35 has had a few USB3 changes. This similarly might not fix anything - Grub could equally be the issue.
eSATA would be the ideal for an external drive. I don't know what your friend's computer has in the way of ports (or what his external disk provides), but eSATA will wipe the floor with USB 2 (probably even USB3 in real-world tests). If he has it, use it. If he has a spare PCI-E slot, perhaps a little eSATA card might be a better bet (they're quite cheap).

Seek time will probably be the biggest improvement over Firewire (and USB3). It doesn't matter too much for storing big media but when you're buzzing between lots of small files (like the Linux boot), it makes a huge difference.
Firewire might be an option if he has that option on the drive and computer... Firewire is often criticised for being slower than USB but spec for spec, it's actually a lot faster in practice for data transfer. Seek speeds are similar.
If he has a fast network adapter and some spare cash, a network-attached-storage device might be a nice option. You can get two-drive units quite cheap that can share their files over NFS. If you have gigabit connections at each end this can translate to a fairly steady 100+MB/s
Finally, if nothing else seems like an option... Ask him why he's being such a jessy and get him to repartition. You can resize the Windows partition non-destructively (ie it stays there all warm and happy, just a bit smaller).

Just set aside ~10gigs for the core Ubuntu install and a base profile and then just symlink big media in from the external drive. Boot time and responsiveness will improve huge amounts.


What I did was to simulate more the Mac behaviour, for the right click, you put two fingers in the touchpad and then tap with another finger.

This is accomplished with a package, install it with:

sudo add-apt-repository ppa:mactel-support && sudo apt-get update && sudo apt-get install xserver-xorg-input-mtrack

Then, create a file in '/etc/X11/xorg.conf', I use nano, you can use gedit if want a window application, just replace nano with gedit:

sudo nano /etc/X11/xorg.conf

And insert this in that file:

Section "InputClass"
     MatchIsTouchpad "on"
     Identifier      "Touchpads"
     Driver          "mtrack"
     Option          "Sensitivity" "0.85"
     Option      "FingerHigh" "12"
     Option      "FingerLow" "1"
     Option          "IgnoreThumb" "true"
     Option          "IgnorePalm" "true"
     Option          "TapButton1" "0"
     Option          "TapButton2" "0"
     Option          "TapButton3" "0"
     Option          "TapButton4" "0"
     Option          "ClickFinger1" "1"
     Option          "ClickFinger2" "3"
     Option          "ClickFinger3" "3"
     Option          "ButtonMoveEmulate" "false"
     Option      "ButtonIntegrated" "true"
     Option          "ClickTime" "25"
     Option          "TapButton2" "0"
     Option          "TapButton3" "0"
     Option          "TapButton4" "0"
     Option          "ClickFinger1" "1"
     Option          "ClickFinger2" "3"
     Option          "ClickFinger3" "3"
     Option          "ButtonMoveEmulate" "false"
     Option      "ButtonIntegrated" "true"
     Option          "ClickTime" "25"
     Option          "BottomEdge" "25"
     Option      "SwipeLeftButton" "8"
     Option      "SwipeRightButton" "9"
     Option      "SwipeUpButton" "0"
     Option      "SwipeDownButton" "0"
     Option      "ScrollDistance" "75"
     Option      "VertScrollDelta"          "-111"
     Option      "HorizScrollDelta"         "-111"
 EndSection

This will also add the natural scrolling (like default in mac), if you don't want the natural scroll. remove the "VertScrollDelta" and "HorizScrollDelta" lines.

You need to restart Ubuntu.

I did more tweaks on my Ubuntu, you can check them here:

http://lobotuerto.com/blog/2015/03/02/ubuntu-en-una-macbook-pro/

Use a spanish translator or feel free to ask.

Good luck!


Realtek RTL8723BE wifi card not detected and no internet via Wifi or Wired connection

If you do not have any internet connection, you can download the package using another computer, a phone, etc.

The package is HERE

You will also need DKMS installed. You can find the DKMS package for Ubuntu 16.04 HERE

Copy these two files to the Ubuntu Home folder (~/) and run in terminal

sudo dpkg -i dkms*.deb rtlwifi*.deb

Then reboot.

If a signal is still too weak, run

echo "options rtl8723be ant_sel=2"  | sudo tee /etc/modprobe.d/rtl8723be.conf

and reboot again.


How to get rid of youtube html5 player from firefox

I have found a solution just download an app called (YouTube™ Flash® Player) from the firefox store It will automatically/force youtube to play with flash player not HTML5.


How do I reenable "open in new window" option in Ubuntu 13.04?

You can add a new context menu for this by:

sudo apt-get install nautilus-actions

Then from the Dash Search run:
Nautilus-Actions Configuration Tool

Define a new action (Click on the “+” in the menu bar)

Now Fill in the parameters in the Action Tab:

[x] Display Item in selection contextg menu
[x] Display item in location context menu
Context Label: “Open in New Window”
[x] Display item in the toolbar
[x] Use same label for icon in the toolbar

Now Fill in the parameters for the Command Tab:

Label: “New Window”
Path: “nautilus”
parameters: “%b”
Working directory: “%d”

Click on the Save icon.  You should now have a new context item:

“Nautilus-actions actions” that will include your new “New Window” option.

I found this at:

http://ubuntugenius.wordpress.com/2013/06/30/ubuntu-13-04nautilus-3-6-fix-open-selected-folders-in-new-windows-with-nautilus-actions/


Is there a desktop tool for delicious.com (aka del.icio.us)?

Webmarx is a browser-independent bookmark manager.


Ubuntu X mouse focus button issues - With Solutions

While typing this I remembered the original config file name I used; so Googled it ...

nano /etc/X11/xorg.conf.d/rat5custom.conf
Section "InputClass"
    Identifier "Mouse Remap"
    MatchProduct "Saitek Cyborg R.A.T.5 Mouse"
    MatchDevicePath "/dev/input/event*"
    Option "ButtonMapping" "1 2 3 4 5 6 7 2 9 10 11 12 0 0 0"
EndSection

Could this be better refined?? Using something from xorg.conf


Mic not working for Logitech C615HD in Ubuntu 14.04.1 LTS

Editing the Input Setting under gstreamer-properties did the trick. If that doesn't work on its own try changing the input settings in the global 'Sound' system setting as well.


Wine is just a software compatibility layer. This means that it implements functions which are not available on Linux/Mac. You can use it as-is, although it may be difficult for you, since its user interface is oriented to more experienced users.

PlayOnLinux makes using Windows software on Linux easier. It contains scripts for setting up specific applications and also pair them with Wine version on which they run best.

It depends which task you are trying to complete. PlayOnLinux fits most of basic tasks.


Prevent DHCP overriding NTP configuration

This is https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1823098

I can't remember the exact version where this was changed, but until they fixed a bug where the DHCP-provided servers were not always picked up (I can't find the bug reference at the moment), one workaround was to put a tab in front of the peer, pool, or server directives in your /etc/ntp.conf.  This doesn't fully solve the problem, because the DHCP-provided NTP servers are still included in the configuration, but at least it doesn't get rid of the ones you've explicitly configured.  Depending on your patch level, this may not work.

To fully fix this, you'll need to patch or remove /etc/dhcp/dhclient-exit-hooks.d/ntp.  I'm not sure which change would survive upgrades better.  If removing the file works, that's probably the cleanest solution.  Otherwise, a patch like this might do the trick:

--- ntp.orig    2020-05-19 07:46:05.205292208 +0000
+++ ntp 2020-05-19 07:46:15.513301281 +0000
@@ -61,4 +61,4 @@
 }

-ntp_servers_setup
+#ntp_servers_setup


How to start Tomcat7 in Eclipse 4.4 under Ubuntu 14.04?

There are possible configurations that would work out for you in line with creating symbolic links to tomcat7 directories but the simplest would be you to download a tomcat tar ball, extract it in your home directory an point eclipse to it


Can't purge/remove nvidia-364. Dpkg returned an error

Solved, unfortunately, by a complete fresh install.
But I had some trouble with gnome environment and ended up giving it up.
So be aware.
Thank you.


Unable to change hostname in Ubuntu 18.04 server on Virtualbox

This can be solved by changing preserve_hostname to true in /etc/cloud/cloud.cfg

To reiterate:

Set preserve_hostname true in /etc/cloud/cloud.cfg
Update hostnamesudo hostnamectl set-hostname ubuntu-1
reboot


ext4 File System got damaged due to improper write

Run this for both sdb1 & sdb2. If external drive and you are sure everything is unmounted, you can run from inside your working Ubuntu. Others may need to use live installer.

From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)

e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p trys fixes where response not required

sudo e2fsck -C0 -p -f -v /dev/sdb1

if errors: -y auto answers yes for fixes needing response

sudo e2fsck -f -y -v /dev/sdb1

also see:

man e2fsck


Node post-installation failure - 'cloudinit' running config-apt-configure with frequency once-per-instance

The link provides the solution:
https://bugs.launchpad.net/maas/+bug/1735950/comments/12


Why does my Shotwell app think it is 2012?

Shotwell does not display the current time.  In your screenshot, the date/time at the bottom left reflects the timestamp of the selected photo.

If the dates of the photos in Shotwell are incorrect, the first thing you should check is the clock in your camera.  If your camera has the right date but the photos do not, please file a Shotwell bug so this can be investigated.

For photos you've already imported, you can edit the times on the photos from within Shotwell.  Just select one or more photos and select Adjust Date and Time from the Photos menu.


Evolution threads extra lines before signature

You can disable the signature dashes altogether and, if you want, insert them manually into your signature.

You will need a dconf editor, either the graphical one or this:

sudo apt install dconf-cli

Now you can change the setting:

dconf write /org/gnome/evolution/mail/composer-no-signature-delim true

Source: https://geekphreek.com/remove-the-signature-dashes-from-evolution/


In your example, you are declaring a netmask of /25 on each interface.  But for an address of 10.50.1.129 with a netmask of /25, the source address of 10.50.1.10 is not on the same network (valid IP addresses for the /25 are in the range 10.50.1.129-255).

You must either declare your network so that the source address is within the network (so using a /24 or shorter netmask), or you must add a host route for 10.50.1.10 declaring it to be on link.

Given that you say that the IP address only ever sends traffic and does not listen, I think it is appropriate to just use a /24 netmask.


Skype group chats will not work on the current version of Skype (It is a known bug reported on their forums for Linux users & other places). You can voice talk, but typing something or having actual access to the chat will not work.

With that said, the Skype for Linux (Alpha Version) will work (Confirmed by me). You can send text, images and other normal stuff done on the chat (Be it 1 to 1 or group chat). The options you get are "Send Photos and Files" and "Send Contacts". I have uploaded an image where you can also see a group of 8 I was chatting on while also having the option to upload (Using Ubuntu 16.04)

Note that, although it says "Alpha" it works much better and has more features than the "Current" version found on Ubuntu 16.04 and previous versions. Each incremental update to Skype in the past was simply making things worse. The Alpha version is here to solve all issues (I hope).

Using Skype Alpha with Current Skype 4.X on Linux will not work as pointed by Pilot6. If the Alpha user calls, the Current Skype Linux User will never get the call. If the Current Skype Linux user call the Alpha, the Alpha user will get the following message:

This person tried to contact you but there was a problem connecting the call, try calling them back.

This is because Skype Linux 4.3 clients always use p2p and the Alpha version does not support this. Because of this you cannot establish a call between Skype 4.3 clients and Skype for Linux Alpha.


Upgrade or uninstall cuda to allow apt-get to work

After Cleaning cache, you can try these,

dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 sudo dpkg --purge
df -h
sudo apt-get purge nvidia*
sudo apt-get -f install
sudo apt autoremove

Hope, this might help you. Cheers


How can I tell upstart to restart a service when a different service is restarted?

Since the postgresql server is still using deprecated System-V init script there are two options:

Emit events from the existing System-V init script
Port existing System-V init script to upstart job

In both cases you can use start on started-postgresql and stop on stopping-postgresql in your job. As mentioned in the comment  my-openerp will start/stop always on started/stopped postgresql and not only after upgrade.

If you opt for emitting events from the existing System-V init script you will need to add in /etc/init.d/postgresql:

# just before the service is started
initctl emit starting-postgresql
# just after the service is started
initctl emit started-postgresql
# just before stopping the service
initctl emit stopping-postgresql
# just after the service is stopped
initctl emit stopped-postgresql

For details see Helpful Tips in Writing Services section on Ubuntu Boot up Howto page.

In case that you opt for creating Upstart job the simplest configuration might look like this:

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

exec su -c "/etc/postgresql/bin/postgres -D /usr/local/pgsql/data" postgres

More elaborated Upstart config can be found here.

I would play around and instead of starting postgresql on runlevel [2345] perhaps say

start on filesystem and net-device-up IFACE!=lo

or

start on started networking

You might also consider adding kill timeout stanza

kill timeout 300


How do I improve virtualbox ubuntu performance

Virtualbox being what it is (running one operating system on top of another), you will always notice a hair of a thing of speed difference between your host operating system and your virtual machine.

You could try assigning more ram or more cores temporarily just to see whether it improves performance at all.  Also make sure your CPU execution cap is at 100%.


No background options other than default pictures

First remove the picture:
gsettings set org.gnome.desktop.background picture-uri ''

Then apply RGB value, for example: gsettings set org.gnome.desktop.background primary-color 'rgb(66, 81, 100)'

This will give it a nice blue/grey color, almost identical as we had it in Color options before they removed it.

@PRATAP: Rather than opening a new thread.  Just curious, is the solid color removal just temporal? I've noticed it existing in the documentation. Any infos on whether it will be returned?


You need the jdk-8u20-linux-x64.tar.gz package. Unpack it somewhere (/usr/share for instance), it is ready to work.

But you can experience some conflicts with OpenJDK which is most probably already installed on your computer. If you want to make sure a jar file is executed with Oracle java, start it from the command line using java full path:

/usr/share/jdk-8u20-linux-x64/bin/java -jar a_jarexecutable.jar

Hope this helps


I'm fighting similar problems now. This new system is difficult to understand and debug.
As for the exact error you mention, I've seen people claim multiple causes and I've even run in to it myself. I suggest using the installer's second tty (Ctrl + Alt + F2) and reading the logs at /var/log and /target/var/log. In my case, the problem was that the squashfs did not have my repository signing key in it, so apt could not verify the signature for the repos on the install image.
The cd unmount thing seems to be a bug. I get it all the time, even for successful installations.


The cleanest way I found to fix this issue is to use nmcli.
Begin by identifying your existing wifi connection (we'll assume it's called mywifi):
nmcli conn show
NAME                                UUID                                  TYPE      DEVICE
mywifi                              xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx  wifi      wlp1s0
...other connections here...

We then use the nmcli interactive editor to fix the key-mgmt in use as follows:
nmcli conn edit mywifi
===| nmcli interactive connection editor |===
Editing existing '802-11-wireless' connection: 'mywifi'

nmcli> print wifi-sec.key-mgmt
802-11-wireless-security.key-mgmt: wpa-psk

nmcli> describe wifi-sec.key-mgmt

=== [key-mgmt] ===
[NM property description]
Key management used for the connection.  One of "none" (WEP), "ieee8021x" (Dynamic WEP), "wpa-psk" (infrastructure WPA-PSK), "sae" (SAE) or "wpa-eap" (WPA-Enterprise).  This property must be set for any Wi-Fi connection that uses security.

nmcli> set wifi-sec.key-mgmt sae

nmcli> verify
Verify connection: OK

nmcli> save persistent
Connection 'mywifi' (xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx) successfully updated.

A reboot is likely required after this.
Background info:
"The WPA3 standard replaces the Pre-Shared Key exchange with Simultaneous Authentication of Equals" (SAE) per Wikipedia.
A quicker way to achieve the above is through direct manipulation of the connection file as follows:
sudo sed -i -e '/key-mgmt=/s,wpa-psk,sae,' /etc/NetworkManager/system-connections/mywifi.nmconnection

This is possibly a bug in NetworkManager's UI?  If multiple users confirm, I'll raise a defect report.


How would ubuntu 14.04 run on my hardware

It will run fine. I would prefer xubuntu for a touch of a lighter system, but in the end the ram eaters will be the applications like Firefox, whatever system (windows, (x)ubuntu) you are running.

And I would recommend 16.04 of course,since it is the current lts version.


The WiFi is disabled when I start with Windows and then go back to Ubuntu. A restart is required for WiFi to start

"Fast Startup" in Windows can cause these types of issues.
On your Windows install, go thru your power options and disable Fast Startup. This will cause Windows to shut down and boot normally, instead of using the hybrid suspend.


It was not an issue with the i8042 controller (my fault)

After more research in this awesome place, I could understand that BusyBox comes up when the system could not mount the root filesystem.

As this answer suggest, starting a live Ubuntu and restoring a previous superblock will make it work.

The controller for i8042 seems to be a different issue :-)


How do I set icons in the top panel with arbitrary spacing, as was possible in 10.10?

Ok, this page and some more googling gave me the answer: How to revert to GNOME Classic Desktop?  That is, the options are a) work with Unity b) use the option for 'classic gnome' in gnome 3, which has some small differences from the gnome 2 panel such as the one I asked about above c) downgrade to, say, 10.10.  Thanks for the responses.


Is it normal for Alpha versions to randomly uninstall packages?

Depends on how you update. Doing partial upgrades offered by the Update Manager usually gets you into trouble like that.

IMO the safest way is to update via command line (using apt-get) and paying attention to what's about to happen.

  I'm just curious as to why packages decide to leave.

Basically because you updated when dependencies were not satisfiable. The system then decides what needs to be done (removed) to create a consistent state.


sftp - how to connect to non-default port?

You can use the -oPort=port_number option

sftp -oPort=port_number host_name

  man sftp

  sftp - secure file transfer program

  sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config] [-o
  ssh_option] [-P sftp_server_path] [-R num_requests] [-S program] [-s
  subsystem | sftp_server] host

  -o ssh_option Can be used to pass options to ssh in the format used in ssh_config(5). This is useful for specifying options for which
  there is no separate sftp command-line flag. For example, to specify
  an alternate port use: sftp -oPort=24. For full details of the
  options listed below, and their possible values, see ssh_config(5).


Ubuntu store always not loading in ubuntu 20.04, why is that?

The issue was with the VPN connection I was testing that time.
As soon I stopped using it, no more issues with 'Software Center'.


usb wireless mouse pointer with touchscreen jerky/non-responsive in ubuntu but fine in Windows 10

i just use this command line to fix my wireless mouse. It's working fine on my Ubuntu 18.04. So just copy and paste my command line below:-

Install XServer:

sudo apt-get install xserver-xorg-input-all

Remove old XServer:

sudo apt-get --purge autoremove xserver-xorg-input-all && sudo apt-get install xserver-xorg-input-all

After this finished, reboot your PC...
and see the magic..hehehehe


It is working.  It only shows notifications for @-replies.


Just in case it's not completely dead, try this:
WARNING! HIGHLY DESTRUCTIVE! CHECK WITH FDISK THAT YOU ARE ERASING CORRECT DEVICE! SDB IS USED IN COMMAND AS QUESTION CONTAINS SDB DEVICE!
dd if=/dev/zero of=/dev/sdb bs=1M count=100
This will zero (erase) first 100MB of the usb device. If there is any partition info it's usually at start of device, and will get nuked this way.
After that try Gparted to add new partition to USB and format it.


In Ubuntu 15.10 and Debian Jessie there is a file /etc/rsyslog.d/20-ufw.conf. It contains at the bottom # & ~. Remove the # in front of it to uncomment it and refresh rsyslog with the command /etc/init.d/rsyslog restart so that it takes in account the configuration change.


What do I need to have GUI to auto detect & connect to Wireless Network

Why not use network-manager and network-manager-gnome. The latter provide the nm-applet that goes in the system tray and allow to configure connections.

It used to work also with LXDE.

To start it at login, copy it to the personal autostart directory:

cp /etc/xdg/autostart/nm-applet.desktop ~/.config/autostart/


openssl s_client is basically the SSL version of netcat. You can use it to set up a SSL/TLS connection to a server, and then send the protocol data. As you're connecting to a IRC server by the looks of the command, you'd have to send IRC protocol Commands.

But this is probably not what you want. You probably want to use a IRC client to connect to the IRC server. Suggested IRC clients are hexchat, irssi, and many others.


How to install git server on my ubuntu desktop 12.04

You shouldn't need to install a Git server on your local machine to work with Git. Git is a distributed version control system (DVCS), ss such there really is no idea of a Client and Server. Instead you just have clients, as many clients as you want, which can talk to each other.

So when you type git init in a directory and create a git repository, you've got all you'll need to commit, merge, branch, and ultimately use git. For all intensive purposes, this is the master source, the "god" source, equivalent to the SVN server. Unlike in subversion, where there is a centralized source, only one true "god"/master copy, Git works in a way that everyone who clones a git repository has their own "god"/master copy. So when you share code, each person gets the theoretical equivalent of an SVN server on their machine in the form of a portable git repository. This strongly differs from the centralized model (and lends to it's distributed nature) where if your source becomes deleted it does not affect anyone else. In fact if you lose your source you can clone from someone else who has a copy of the repository and continue as if nothing happened. So long as N+1 people have a copy of the code, if all of N lose it the code will live on.

What most DVCS tools provide is a flexibility of workflow. Many people adopt a centralized workflow using services like GitHub or Bitbucket to host a remote copy of their repository. In this setup there is still fundamentally just two git repositories. One on your machine and one on the services remote servers. I strongly recommend reading the free git-scm book before getting started to familiarize yourself with what git is, how it works, and how to use it.


How can i switch from WIFI connection to another if INTERNET connection is missing?

One way for resolve your issue is creating a system policy (or script), whose will ping some server on INTERNET for example 8.8.8.8 (google DNS). And when for example 5 packet loss, then it change network/gateway. I do this on Juniper or Cisco routers (or switchs L3), so this must be to do on linux, You need some route tools.

For me better option is to create routing option on your main router (if exist of course). All new home routers have options like DualWAN. This looks like you plug in SIM card or pick some another network/port (like your phone), and router internally monitoring connection and switching when this is necessary.


Ubuntu 16.04 update problem about third party repositories

Execute the command as a root

sudo apt-get install -f

You need elevated privileges for the package manager.


Find files with a minimum filename length

I think the simplest way is to use:

find . -name "??????????*"

where the number of ? characters is equal with n. Is simple because is hard to forget it.

But the nicest way is to use the -regex option to find file names with n or more characters:

find . -regextype posix-egrep -regex ".*[^/]{n}"

where n should be a natural number (the minimum filename length).

See man find fore more about.


sudo apt-get update failes because It can't be done securely

https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes
17.10 is not supported anymore - you should upgrade to a newer version
I'd recommend using a LTS version, those are supported for 3 to 5 years
https://wiki.ubuntu.com/Releases


How to find package name to uninstall a package?

From man apt-cache:

pkgnames [prefix]
   This command prints the name of each package APT knows. The
   optional argument is a prefix match to filter the name list.
   [...]

   Note that a package which APT knows of is not necessarily available
   to download, installable or installed, e.g. virtual packages are
   also listed in the generated list.

If you want look for installed packages, one way is to use apt list:

list (work-in-progress)
   list is somewhat similar to dpkg-query --list in that it can
   display a list of packages satisfying certain criteria. It supports
   glob(7) patterns for matching package names as well as options to
   list installed (--installed), upgradeable (--upgradeable) or all
   available (--all-versions) versions.

So:

apt list --installed 'virtualbox*'


Ubuntu server 11.04 recognize only 1 core instead of 4

Your dmesg includes the log message:

[    0.016051] SMP disabled

From taking a look through the kernel source, it seems that the nolapic kernel parameter is preventing the kernel from coming up in SMP mode. If you remove this parameter, you should have all CPUs available.

Was there some reason for the noapic and nolapic parameters? If not, you should be fine.


I do not know if this helps, but I have the same problem. Does not 'solve' the problem, but if I turn off my wifi and turn it back on, the stutter sound has gone away.  Of course, every time I reboot/boot, I have to wait for the wifi to connect, then turn it off/on to get rid of the 'stutter'  or unwelcome 'pop' sounds.


How do I reset Ubuntu on my Nexus 7 if it locks up?

If the device is locked up and will not respond to input the first thing to try is holding down the power button for approximately 20 seconds, this will power cycle the device.  If this doesn't work then perform a hard reset, press and hold the volume down button, and then press and hold the power button until the device is reset, showing the Google logo, indicating the bootloader is up.


How to make ubuntu use more RAM to cache a specific set of binaries?

There is a rather lengthy tutorial on the forums you might like:

http://ubuntuforums.org/showthread.php?t=1594694

  The guide basically explains how to create a squashfs image out of your existing Ubuntu installation and copy the entire image to RAM upon boot to speed up your OS. I will also go into some detail of how to make your /home mount from a regular hard drive thereby making sure the important information one would wish to save on their machine would remain untouched between boots.

See the guide for details.


Google Hangoust stick to the wrong display (monitor) in Ubuntu 14.04

There is trick that can help.
Open System Settings -> Display and set Launcher placement to the monitor you need to stick Hangouts windows. Push Apply button. That all.
Now you can restore Launcher placement option (show it on both screens) with no affect on hangouts.


Ubuntu Restricted Extras for 14.04 32 bit

It's hard to give you a precise answer without knowing which mobile phone you have, but here's as much as I can explain:
On your mobile phone, download the 32 bit deb file from a mirror like: http://mirrors.kernel.org/ubuntu/pool/multiverse/u/ubuntu-restricted-extras/

At present time the latest one is http://mirrors.kernel.org/ubuntu/pool/multiverse/u/ubuntu-restricted-extras/ubuntu-restricted-extras_61_i386.deb

Then transfer the file from your mobile phone to your laptop.

On your laptop, double click on the deb file, this will open up the software center where you can click 'Install'. At this point you will be prompted to type in your password to allow the installation.


GeForce 2060 not detected on a new Ubuntu 20.04 installation

Manually install Nvidia drivers by

sudo apt install nvidia-driver-440

terminal command.

Probably the maintainers forgot to add the 2060 to the list for autoinstall.


Word File corrupted while editing in Virtualbox guest (Windows7)

Your best bet is probably to use the included recovery options in Microsoft Word as it should be saving a backup copy often.


Did you "Open Main Window" -> select the connection, and then click the "Edit" button?

I've had better luck with the settings 'sticking' by using this dialog, while the connection is not open, rather than by using the "Jump to" menu item, 'quick connect' thing.


From the Ubuntu Software Center if you search for the name of the LaTeX package that you want (e.g. amsmath) you will find what you need (e.g.).

Via command line you can do the same thing with apt-cache:

apt-cache search amsmath
texlive-latex-base - TeX Live: LaTeX fundamental packages
texlive-latex-extra - TeX Live: LaTeX additional packages
texlive-math-extra - TeX Live: Mathematics packages
texlive-lang-italian - TeX Live: Italian

and then to be sure

apt-cache show texlive-latex-base
Package: texlive-latex-base

[...]

  amscls -- AMS document classes for LaTeX.
  amsmath -- AMS mathematical facilities for LaTeX.
  babel -- Multilingual support for Plain TeX or LaTeX.


I have Thunar 1.6.15 installed on a Lubuntu 18.04 system.

The image shows the View dropdown with the various options. The Show Hidden Files and View as Detailed List settings behave as expected.

The changes should be reflected in ~/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml.

Here are the contents of thunar.xml with the Show Hidden Files and View as Detailed List settings active:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="thunar" version="1.0">
  <property name="last-view" type="string" value="ThunarDetailsView"/>
  <property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_NORMAL"/>
  <property name="last-window-maximized" type="bool" value="true"/>
  <property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_SMALLER"/>
  <property name="last-details-view-column-widths" type="string" value="50,188,50,50,641,50,50,83,174"/>
  <property name="last-show-hidden" type="bool" value="true"/>
  <property name="last-separator-position" type="int" value="170"/>
  <property name="misc-single-click" type="bool" value="false"/>
</channel>

Here are the contents of thunar.xml with the Show Hidden Files and View as Detailed List settings turned off:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="thunar" version="1.0">
  <property name="last-view" type="string" value="ThunarCompactView"/>
  <property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_NORMAL"/>
  <property name="last-window-maximized" type="bool" value="true"/>
  <property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_SMALLER"/>
  <property name="last-details-view-column-widths" type="string" value="50,188,50,50,654,50,50,83,174"/>
  <property name="last-show-hidden" type="bool" value="false"/>
  <property name="last-separator-position" type="int" value="170"/>
  <property name="misc-single-click" type="bool" value="false"/>
</channel>

Of note are the values of property name="last-show-hidden" and property name="last-view".

Could it be, though I can't say why, that your ~/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml is damaged or that it doesn't have the appropriate permissions or that Thunar cannot, for whatever reason, write changes to this file?

In my case, the permissions look like this:

dkb@dkb:~/.config/xfce4/xfconf/xfce-perchannel-xml$ ls -l
total 12
-rw-r--r-- 1 dkb dkb 847 Jul 28 07:26 thunar.xml
-rw-r--r-- 1 dkb dkb 429 May  9 06:16 xfce4-power-manager.xml
-rw-r--r-- 1 dkb dkb 212 May  9 06:16 xfce4-session.xml
dkb@dkb:~/.config/xfce4/xfconf/xfce-perchannel-xml$


How to make pulseaudio and ubuntu detect the same audio device as alsa driver

the command line:

pulseaudio -k

finally worked on a clean ubuntu 14.04 up to date install.


Copy files that ends in a number from a directory

It's going to work (Includes directories too):

cp ./*[3-9] /path/to/dst

with find (only files):

find ./src -iname "*[3-9]" -type f -exec cp {} path/to/dst/ \;

using regex (only files):

find ./src -regex "^.*[3-9]$" -exec cp {} path/to/dst/ \;


Flash Animations are horizontally crunched and colors are bogus

Did you try installing/reinstalling the Adobe Flash plugin?
try:

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


How to get Rii mini BT keyboard to work under 16.04

Kazchen,

I also have a Rii BT Keyboard that I tried connecting to Ubuntu 16.04. I ran into the same exact issues as you and went down the rabbit hole of messing with my bluetooth settings which is suggested on all forums regarding this question. However, it has nothing to do with bluetooth at all (even though I received a minor bluetooth error when connecting to the device). If you can press some of your numbers on the number key row and a few of the letters on the right side, such as Y or U, and see if it responds and gives you input. The input should be a random number between 1-9 that does not correspond to what is printed on your keys. If you can reproduce that exactly, here are the steps to fix the issue:

Plug in a secondary keyboard to USB (do not disconnect bluetooth)
Numlock should be automatically turned on. Turn it off.
Voila! May require restart.


Can i prevent my system reading any USB files?

Affecting linux is not simple and chances of being affected is really negligible but still if you want then..

You can do it by disabling USB , for disabling use -

sudo echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf

it will create a line as blacklist usb-storage , to enable it again -

sudo gedit etc/modprobe.d/blacklist.conf

and search for the line "blacklist usb-storage" remove it. Be sure what you are going todo before doing anything .

hope it solves your need..


Installing for Ubuntu 14.04.2 stuck in a loop

Solved by OP in Question Edit:

  Never mind, seems like an iDRAC key mapping issue. I changed iDRAC to use Java for console and it seems to work now. Not an Ubuntu problem.


Creating torrent

A good tutorial for creating with transmission is available here, the basic steps are:

Click File > Create New Torrent...
Choose the files to include
Choose the trackers and files

You will need to seed the file at least until there is 1 complete copy on other clients, and if there is ever less that that amount download will become impossible until you seed to fill in the gaps.

Seeding with server

You will want to run Transmission and add the torrent to seed, either from the command line, or starting it with the web interface enabled.


GCC - Compile 32-bit code on 64-bit system

The gcc-multilib package only provides 32-bit support for the current default compiler.

Since you are using a non-default compiler (gcc-4.8 versus the system's default gcc-6) you will need to install the underlying version-specific multilib package explicitly e.g.

sudo apt install gcc-4.8-multilib

(or the equivalent from your favorite package manager).


Facebook doesn't work with Chromium, works fine with Firefox

As you stated yourself in a comment, after you re-installed chromium everything worked.


How do you get a list of all starting services?

See the attached link.

UbuntuBootupHowto

The command is

service --status-all


Haguichi fails to configure with an error (Ubuntu 14.10)

The solution was to install a hidden dependency (who knows why the deb file doesn't do this) and THEN reinstall the deb.

sudo apt-get install lsb

THEN

xdg-open ~/Downloads/<hamachi>.deb


Trying to install driver for TP Link TL-WN822N v4, make command fails

I suggest that you try a different repository. From the terminal:

cd ~
rm -rf rtl8192eu-linux-driver
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
sudo dkms add .
sudo dkms install rtl8192eu/1.0
sudo modprobe 8192eu

Your wireless should now be working


Cannot access PPA ppa:langdalepl/gvfs-mtp on Ubuntu 14.04

"13.10 (Saucy) and newer versions of Ubuntu contain all of these changes, so you don't need to use this ppa any more.
 More info: https://launchpad.net/~langdalepl/+archive/ubuntu/gvfs-mtp"

Run these commands in an open terminal to fix the problem.

sudo rm langdalepl-gvfs-mtp-trusty.list
sudo apt-get update

Plug the phone in and reboot. This method also works to mount USB connected devices as well as SD cards.


Bash script automatitation name change using date

I tried to reproduce your error. The result was:

1.txt is renamed to 2020-02-1.txt,
2.txt is renamed to 2020-02-2.txt,
...and so on.

If you want to remove the old filename/index from the result (which creates problems because of name clashes - there can only be one file as output), you can change your script to

# FOR LOOP TO RENAME FILES
cd /home/atlas/Documents/bash/CARPETA-ORIGEN
#UBICAR LA CARPETA
FILES=$(ls *.txt)
NEW="$(date +"%Y-%m")"
for FILE in $FILES
  do
    echo "Renaming $FILE to new-$FILE"
    mv $FILE $NEW.txt
done

But I wouldn't recommend this, because you can only rename one .txt file per folder.
However, the output of the above script is

2020-02.txt


How to configure MAAS to be able to boot virtual machines via VMware type

First, for MAAS to be able to manage VMware Workstation VMs, they must exist under the Shared VMs folder in VMware Workstation.

Next, rather than adding nodes manually and then trying to set the power type, I would recommend using the Add Hardware > Chassis feature to add the nodes. This is a much more user friendly experience, as it will automatically discover all the nodes in a particular hypervisor, and configure them properly for use with MAAS, including the power type information.

Be very careful if you are using this with a production VMware system, since performing this operation will change the configuration of your virtual machines. If you are using a VMware setup which contains a mix of VMs which will be MAAS managed and VMs which will not be, I strongly recommend renaming the MAAS-managed VMs within the hypervisor so that their names start with something identifiable, such as "maas". Then you can use the Prefix filter option and specify (for example) "maas" to manage only those nodes.

When you enter your username and password, keep in mind that for VMware workstation, I've found that the username and password are the same as what you use for your OS login. (There are ways to add another user and give it access to your VMs if you aren't comfortable with giving MAAS that information.)


How do I fix the icons after manually installing LibreOffice 4.0?

I think you've got LibreOffice's high contrast icons which happens if LibreOffice doesn't like something about your gtk theme. You can for check that in Tools > Options > View. Note the image below is from LibreOffice 3.6 and not 4.0:

Here are two links that indicate what Unity integration is required:

LibreOffice 4.0 Unity Integration in
12.04
LibreOffice 4.0 Unity Integration in Ubuntu
12.04


How to prevent Grub loader after updating to reset default OS?

The grub defaults are defined in /etc/default/grub:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
...

Open this file with your favourite editor (must be root or sudo), change GRUB_DEFAULT=3, save the file and run sudo update-grub.

For a more detailed (better) answer see this older post: How do I set Windows to boot as the default in the boot loader?


Sure, to replace the missing files in pulse audio run the following commands:

sudo apt update
sudo apt install --reinstall pulseaudio

This will replace any missing files.

It may help to delete your user's pulseaudio profile and then reboot:

rm $HOME/.config/pulse/*

Also, to list all pulseaudio files, run the following command:

dpkg -L pulseaudio

Additionally, for some reason, it often helps to install the pulseaudio volume control app:

sudo apt update
sudo apt install pavucontrol

Now, search for pavucontrol or "pulse audio volume control" in your list of installed applications or just run the pavucontrol commmand. You may get an error of "missing file" or "failed to start". If so, leave the app open and run the following instructions.

If you are still missing the files (and to actually download a copy of the files), run the following commands:

sudo apt-get update
mkdir ~/Downloads/PULSE
cd ~/Downloads/PULSE
apt-get download pulseaudio
ar xvf *
tar xvf dat*
sudo rm -R /etc/pulse/*
sudo cp -R etc/pulse/* /etc/pulse/

You can access the copies of these files in your Downloads directory and pulseaudio should start up automatically when the needed files are replaced.


After Windows Update, Ubuntu second screen not detected

I had the same problem in 2019 on my HP Omen laptop. After a pushed-windows update, my bios got updated. After that my ubuntu boot-up time increased and my second monitor was no longer being detected. The solution was to disable secure boot in the bios.


what does /path/to refer to in entering a cron job

The /path/to/command is the the path to the bin file of your command snmpbulkwalk. When you run snmpbulkwalk, you're actually running its binary file which is located probably in /bin or /usr/bin. To find out what this path is, run which snmpbulkwalk. Let's say this returns /usr/bin/snmpbulkwalk. Therefore, your cronjob would be:

*/5 * * * * /usr/bin/snmpbulkwalk -v 2c -c public -OXsq  172.16.1.210 .1.3.6.1.2.1.3.1.1.2 > /tmp/S01_ARP.txt


Remove specified packages if they have no dependencies

man apt-get provides information that the parameter autoremove is used to remove packages that were automatically downloaded to satisfy dependencies for some package and are no longer required.

So, you could use sudo apt-get autoremove to remove dependencies that are now useless.

Additional source: Ubuntugeek


probably answering this too late. but try uninstalling vim-common too. I was facing a similar problem with the error message

The following packages have unmet dependencies:
 vim : Depends: vim-common (= 2:7.3.429-2ubuntu2) but 2:7.3.429-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

I was able to solve it by uninstalling vim-common package first.

sudo apt-get remove vim-common

After that i was able to install it with no problems.


In Glade, select your entry and click the Common tab in the property editor on the right. Search for the Can focus property and make sure it's set to True.


Is it possible to set an arbitrary size for the Dash in unity?

This is not possible with Unity in 11.04 or 11.10.


I have just installed 20.04 on my Thinkpad AMD with Radion Vega graphics and I tried changing grub options and it didnt work.
Downloading drivers from AMD solved problem (after few restarts)
Resources I used:

Radeon™ Software for Linux® 20.30 Release Notes
How to install

Hope this helps, if not for you then perhaps to someone else with AMD chipsets.


12.04 Ambiance dark side bar issue when clicking folder on desktop

Nautilus became sluggish for me too (UB12.04), but no NEMO was running.

For me, removing and then reinstalling nautilus worked. Now it's lightning-fast.


No boot loader is installed in the MBR of /dev/sda

Looks like you are using UEFI booting and GPT partitioons (the newer way). So you can ignore the message about the missing MBR.

I suggest running gparted and checking if your /dev/sda2 partition has the boot flag. For some reason, that seems like a common problem. I've answered a similar question previously.


How do I set Ubuntu as my default OS on a Chromebook?

Use: sudo cgpt add -i 6 -P 5 -S 1 /dev/mmcblk0 for ARM

sudo cgpt add -i 6 -P 5 -S q /dev/sda for Intel Chromebooks

This should set Ubuntu to be the default boot OS.


Fix for "Wireless disabled by hardware key" in dual boot system win8.1/Ubuntu 13.04

On your specific machine the action key F12 turns the wireless feature on or off.

Action keys are customized actions that are assigned to specific keys at the top of the keyboard. To use an action key, press and hold this key to activate the assigned function.

The action key feature is enabled at the factory. You can disable this feature in the BIOS and revert back to standard settings by pressing the fn key and one of the function keys to
activate the assigned function.HP


Is there any command similar to qlmanage in Mac OS?

Quick Look doesn't exist in Ubuntu, so I'm going to say no to something like qlmanage.

There's gloobus, which apparently provides something similar, though I've never used it.

Nautilus (the file manager) has thumbnails, and according to this answer you can reset the cache by deleting ~/.cache/thumbnails or ~/thumbnails depending on what version of Ubuntu you're running.


Is it possible or a good idea to run a more or less secure minecraft server without having pre-experience in Ubuntu?

Welcome to ask Ubuntu! Just as a comment, I think that your question is confusing. You might want to consider being a bit more specific as to what you want. I can't tell if you are asking if Ubuntu server is secure, or how it runs, or how to get a Minecraft server running, or what people recommend for such a server, or if any one knows of a guide,etc. You will get more answers to your questions if they are short and direct :)

Now I have no experience with servers, but I found what seems to look like a tutorial as to how to setup a Minecraft Server with Ubuntu. I'm sure you have the experience to understand it: https://github.com/endofzero/Minecraft-Sheller

I found this link in someone else question on Ask Ubuntu. Maybe you could try messaging those users about setting up a Minecraft Server, they seem very experienced: Interact with Minecraft Server

I see what you mean now :) I assume trying to setup a Ubuntu server for the first time will lead to some begginer mistakes. But that's how you learn, trying! Maybe start with the basics. Here is the official Ubuntu server guide https://help.ubuntu.com/12.04/serverguide/index.html It starts with the very basics, leading up to more advanced task. I suggest you setup a test server to toy around with, that way no damage can be caused. So make some coffee, sit back and enjoy a good read of the guide:p


I haven't tested this but logic dictates that you could review the file contained in the package that was updating. I'm assuming the apache2 package for your current distribution selectable from this page (you can confirm by checking your dpkg.log)

DEB files are archives, which always contain the three files — debian-binary, control.tar.gz, and data.tar.gz. We can use dpkg-deb and tar command to extract and view the files from the deb package, as shown below.

Simply extract the files from the package to a temporary location. As an example:
dpkg-deb -x  packagename.deb /tmp Adjusting the package name and target location as necessary.

Having extracted the content of the package, next extract the content of the included data.tar.gz component with tar -xvzf data.tar.gz

Locate the included envvars file (you could use find ./ -name envvars from the location you extracted the data.tar.gz file.

Having located the file navigate to that directory and use  diff envvars /etc/apache2/envvars to display the differences between your current configuration file and the suggested one.
Sources:

http://www.thegeekstuff.com/2010/04/view-and-extract-packages/

man dpkg

man dpkg-deb

man diff


Is it possible to find Snaps, FlatPaks and AppImages without installing any application into Ubuntu system?

Update 20200517: the Linux App Store development is stopped.

Yes, it is possible with new open-source web-application named (guess how) Linux App Store.

It is located on https://linuxappstore.io/ and allows to list all applications packed as Snap, FlatPak or AppImage and has search by name. Below is example for VLC:

and we can see it is available from all three sources.

The project is in active development, anyone can improve it by filing issue.

I am not affiliated with this project in any way, I just wanted to share a good tool.


The Wikipedia article has a good explanation.

Basically it spams a "yes" to wherever it is run. This can be used to automate responses to programs that ask for user verification. As an example, the following:

rm -f *.txt

is functionally equivalent to

yes | rm *.txt

It pipes the "yes" to rm, so to any question that rm asks (write protection or similar), it will immediately get a "yes" and continue.

Common programs like apt or rm have a "force" function built in, but other programs may not. This is where yes can be useful.

It can also be used as input to create a certain size of file, or to stress test a system.


How do I get ~/.XCompose to work on QT applications while using Ibus?

Install the ibus-qt4 package, otherwise the QT4 programs will not work.


It appears that unity-scope-home got uninstalled in the update.
So running

sudo apt-get install unity-scope-home

in a shell should do the trick.

I recommend logging out and in again after installing the package as unity reset seems not to do the trick completely.


Trying to read a Windows 10 system disk that was part of a Raid 1 set with Ubuntu (18.04)

After buying a program to try and recover files (which it did but not any I wanted), I determined the HD was trashed as the pointers on the disk were compromised. Nothing could be done to recover the data I needed.
No success but a determination was reached and confirmed.


Losing the Write permission to windows files from ubuntu 19.04

More than likely your Windows instance enabled fast boot. This means that windows never fully "unmounts" the drives it works with, making other operating systems only able to read them, not write. To bypass this, follow This guide, which explains in more detail what fast boot is and how to turn it off.


This is because Google have stoped support for Chrome in 32-bit linux distros.

  In a double-whammy, March will also see Google Chrome stop supporting Ubuntu 12.04 LTS (which will receive critical and security bug fixes from Canonical until mid 2017).From this March only 64-bit versions of Ubuntu 14.04 LTS (or later) will receive new versions of the browser from Google .
  Source

You should try Chromium or Opera of other browser Or
You should Install Ubuntu 64-bit.


PDF font falls back to DejaVu Sans, need a monospace replacement

This issue should be patched in the next version of Ubuntu (21.04). There is also an upstream fontconfig merge request #128 pending.

In the meantime, the following steps should help address some PDF font substitution problems:

Install fonts-urw-base35.

Create the file ~/.config/fontconfig/conf.d/10-pdf-aliases.conf with the following contents:
  <?xml version="1.0"?>
  <!DOCTYPE fontconfig SYSTEM "/etc/fonts/conf.d/fonts.dtd">
  <fontconfig>

  <alias binding="same">
    <family>CourierStd</family>
    <accept>
    <family>Courier</family>
    </accept>
  </alias>

  <alias>
    <family>CourierStd</family>
    <default><family>monospace</family></default>
  </alias>

  </fontconfig>

Then run fc-cache (may not be necessary).
You can add other font aliases to the file as needed.

See also:

wrong letter positioning and font in PDF form


How to delete recent projects from Brasero Disk Burner?

Try opening /home/(username)/.local/share/recently-used.xbel and remove entries that correspond to what's listed in brasero.


How can I make the files created by one user readable/writable by another?

So long as you are a member of the sudo group as well, you can use a file manager or something and change the permissions of the file so that the "group" users has full access to the file including write and delete files.


How to boot into Linux on a regular basis with a grub that has Windows as the default?

You could just set up a schedule in windows to reboot whenever you want and configure grub to default boot into ubuntu.


How do I remove the Ubuntu option from the Windows 7 boot manager?

I would recommend that you backup your important data in C:\ to another partition. (If you have 3 partitions, it would be the third partition. If only 2, the second partition).
Then reinstall Windows 7 on C:\.
Move back the important data to the initial location (in your case, it would be C:\), then format the duplicate Window 7 partition.
Reinstall Ubuntu to initial location. Ubuntu will install boot manager (grub).


What does a file that is dark grey in linux mean?

Run ls --color=always | less and you'll see the raw colour codes. Eg:

ESC[0mESC[01;34macESC[0m
ESC[01;34mbinESC[0m
ESC[01;34mBioWareESC[0m

It's a bit of a mess but in these cases, they're all 01;34.

Then all you need to do is look in $LS_COLORS for that colour.

$ echo $LS_COLORS | grep -Eo '[^:]+=01;34'
di=01;34

In my example, they're directories.


I had this issue on my Dell Precision 7520 since upgrading to Ubuntu 18.04.

Upgrading the kernel from 4.15.something to 4.20.10 with Ukuu seems to fix it. Instant resume after testing it by going back to bed for an hour having closed the lid and watched the lights go out.


Ubuntu 12.04 comes out of hibernate/standby randomly on Dell XPS 13

This is possibly bug #1161962 - XPS 13 wakes up from suspend spontaneously or some other related bug.

This is a bug and should be reported it on Launchpad. You will then be asked to:

Update all of your packages (sudo apt-get update && sudo apt-get dist-upgrade)
Upgrade your BIOS if an upgrade is available.
Try the very latest mainline kernel to verify the bug has not already been fixed.
Follow the instructions at DebuggingKernelSuspend.

Even if the bug is fixed in later mainline Linux kernels, it is still important to report the issue on Launchpad to ensure that the bug gets fixed in the Ubuntu kernel.


I'm still not sure I understand, but each virtualhost can only have one document root.  You can either create another virtualhost, or you can do something like create a symbolic link in the current root to the new one..
(for example, symbolically link the directory /var/www/html/pics/ to /pictures/)


Failed to create SD card (& in AVD Folder)

I just ran into the same issue on my Ubuntu Trusty development machine. You can fix this error

error while loading shared libraries libgcc_s.so.1: cannot open shared object file: No such file or directory

by installing the corresponding 32bit library:

sudo apt-get install libgcc1:i386

I wish Google would stop requiring a 32 bit development platform, Android is the only reason I'm still carrying 32 bit libraries around.


How can I turn my old phone into a pure flash drive?

It limits file size to <4GiB due to the filesystem. FAT32 has a max file size of 2^32 bytes - which is 4096MB or 4GiB.

You can try to make a different filesystem on it, e.g. exfat.

Install exfat-utils

sudo apt install exfat-utils

Make filesystem

sudo mkfs.exfat /dev/sdb

Depending on the phone, it may reformat this automatically as it probably does not recognize the format. If this is the case... well, you can pick up 16GB USB flash drives from reputable vendors like Sandisk for 2-3$


Firefox upgrade 51.0.1 Broken (Renders blank screens)

From the linked comment above to bugzilla.mozilla.org solved the issue. From that comment:

  In bug 1659988, in the 3rd patch file of
  /etc/apparmor.d/usr.bin.firefox, if you change the line (70):

owner /dev/shm/org.chromium.* c,

  to

owner /dev/shm/org.chromium.* rw,

  Apply it to /etc/apparmor.d/usr.bin.firefox

  Then, sudo apparmor_parser -r /etc/apparmor.d/usr.bin.firefox
  That is, the patch file:

36a37,39
>   dbus (send)
>        bus=session
>        interface=org.gtk.vfs.MountTracker,
44a48
>   @{PROC}/[0-9]*/net/arp r,
65c69,70
<   owner /{,var/}run/shm/shmfd-* rw,
---
>   owner /{dev,{,var/}run}/shm/shmfd-* rw,
>   owner /dev/shm/org.chromium.* rw,
206a212
>     /usr/share/distro-info/debian.csv r,
209a216
>     /usr/include/python3.[0-5]/pyconfig.h r,
214c221
<     /usr/local/lib/python3.[0-4]/dist-packages/ r,
---
>     /usr/local/lib/python3.[0-5]/dist-packages/ r,
216c223
<     /usr/bin/python3.[0-4] r,
---
>     /usr/bin/python3.[0-5] r,

So, copy the above file (no changes needed) to /etc/apparmor.d/usr.bin.firefox.patch and run the following:

$ sudo chown root:root /etc/apparmor.d/usr.bin.firefox.patch
$ sudo patch usr.bin.firefox usr.bin.firefox.patch
$ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.firefox

Now, you restart firefox and you should be good.


Ubuntu 12.04 Wireless problem in hp pavilion g6

Since you have not given wireless card name.

I am giving you example with Intel card

I will revise the answer once you give exact name. If you cannot find the name the safe trick can be used which i mentioned in additional shortcut below.

Making Intel Dual Band Wireless-AC 7260 work in Ubuntu or other Linux.

Before that some quick simple summary how it works.

The Linux drivers are part of the upstream Linux kernel. But some devices needs additional firmware to tell kernel what device is all about and how to operate it.

So we need to download the firmware from Intel website and place in

/lib/firmware of the system , simple

So head to

http://www.intel.com/support/wireless/wlan/sb/CS-034398.htm

Download the tar related to kernel you have and device you have
Extract it
Place it in /lib/firmware

Reboot your machine

Done!!

Additional notes.

All of these are also part of Linux community code

http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/

In Ubuntu, firmware comes from one of the following sources:

The linux-image package (which contains the Linux kernel and licensed firmware)
The linux-firmware package (which contains other licensed firmware)
The linux-firmware-nonfree package in multiverse (which contains firmware that are missing redistribution licenses)
A separate driver package
Elsewhere (driver CD, email attachment, website)

The ideal scenario would have been some one back porting the latest firmeware in linux-firmware for saucy. But this not been done so we can just manually
drop the file.

A additional shortcut you can follow is just download Trusty (14.04) deb file and install it. The trusty already has the firmware for it.

http://packages.ubuntu.com/trusty/all/linux-firmware/download

https://wiki.ubuntu.com/Kernel/Firmware


What is the Nvidia drivers [number] command doing?

Nvidia-331 is the name of a package, containing Nvidia drivers version 331.xx.

You can see which Nvidia driver versions exist at Nvidia site.

You can also see which versions are at xorg-edgers HERE.

If you start Ubuntu Synaptic application and search for "nvidia", you will see which Nvidia drivers are present in official repositories and what are package names.


How to only make one user authenticate via SSH keys and allow password authentication to all others

You can do that by modifying your sshd_config to add:

Match User <username>
    PasswordAuthentication no

You can do the same for groups as well by using Match Group instead

Don't forget to restart sshd after


why so many "duplicated" (i386 + x86_64) packages installed?

I would say those are dependencies for some 32bit tools you are using. Its not a waste of space because they are needed, not everything will work with 64bit so those packages are need to make sure all runs smoothly.


Cannot rebuild ISO according to Ubuntu Documentation (11/2020)

The issue was how I extracted the files from the original iso.
I used to just open the USB and copy paste with my mouse and keyboard.
Or, I would run
mount -o loop original.iso temporary/
sudo cp -r temporary/* UBUNTU_V/
But that somehow corrupts things.
I found:
https://gist.github.com/AkdM/2cd3766236582ed0263920d42c359e0f
And these commands:
mount -t iso9660 -o loop ~/original.iso /mnt/
cd /mnt
tar cf - . | (cd /tmp/custom_iso; tar xfp -)
allow to extract the files cleanly and rebuild the iso with the commands from Ubuntu documentation.
It didn't use to be so complex though.
Thank you.


No sound from internal speakers after using HDMI output

I fixed with this

$ rm -rf /tmp/pulse* ~/.pulse* ~/.config/pulse
$ pulseaudio -k
$ pulseaudio --start


This did the trick for me:

sudo npm install -g electron --unsafe-perm=true --allow-root


How can i fix keyboard and trackpad on my Surface Laptop 3?

I've been able to run it on a surface laptop 3 (intel).
there's a few steps

Use a external mouse and keyboard to install ubuntu step to step here
You need to install a custom kernel (it's only a few copy/paste). It's on the same page and follow the Debian steps.
the last issue is to enable the reboot

Let me know if you get stuck somewhere


Ubuntu Server automaticly connect to VPN at boot

Create NM connection to vpn. Supply all params.

Then create script witch will be executed when interface eth0 go up.

Create script for eth0 interface

sudo nano /etc/network/if-up.d/script

put in script this

# Check for specific interface if desired
[ "$IFACE" != "eth0" ] || exit 0
# trigger vpn connection
nmcli con up id ConnectionName

Save and exit.

Make script called script with execute permissions 755

sudo chmod 755 /etc/network/if-up.d/script

Explanation

When server go up or reconnect, server will see that and will be trigger nmcli command. Your server will be connected to vpn server


How do I install a .TGZ file in Ubuntu 10.11?

1 thing: linux is case sensitive. You used tar xfvz sunflower.tgz and state the name of the file is Sunflower.tgz. That might be the problem you face with the extracting not working.

I would advice using a PPA or a DEB if possible.

The google code sunflower website points to a Launchpad page with a PPA. This one seems outdated but the 1st link also has a deb install file: sunflower 0.1a.42-1. You can open the last one with Ubuntu Software Center and have it check the package.

Seems easier to me ;)


Problems with installing Ubuntu alongside Windows 10

You have grub installed in the MBR of sda. This is likely because of a Legacy install of ubuntu; however, there is also grub in the EFI Partition of the hard drive.

Many system will automatically, drop to legacy boot if it finds a bootloader in the MBR, but Legacy boot can not read a GPT disk, thus you error.

Easiest fix:
Enter the EFI settings (what used to be bios) and turn of Legacy support.
Some systems will call it CSM. This will force an EFI boot.

A better fix is to get a tool to erase grub from the MBR.


Nemo (or another fiile manager): add subfolders to bookmarks

Nemo works similar to Nautilus.

Ctrl+D will add a bookmark. (source)


ModuleNotFoundError: No module named 'apt_pkg' error

Its very late but could be helpful for others.

 /usr/lib/python3/dist-packages# sudo cp apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.so


The current VNC server in System/Preferences/Remote Desktop is called vino-server.  It doesn't currently support operation when Compiz (Desktop Effects) is enabled.

To work around this, you have to use a replacement vnc server.  I use x11vnc.

sudo apt-get install x11vnc

Crucially, you have to specifiy -noxdamage when you start the x11vnc server if you're intending to run Compiz.

First, initialise x11vnc with a password :

  x11vnc -usepw

and follow the prompts.  Then here's an example of how I run my vnc server:

  x11vnc -usepw -forever -noxdamage -scale 4/5 -avahi -nolookup -q

avahi will mean that the server will advertise itself using avahi (multicast dns)
scale 4/5 will mean that a 1900x1200 screen will fit on a 1280x1024 screen.
nolookup means that the server won't try to lookup the client. No long pauses.
q will suppress some of the output to console.  Or use -logfile instead.
noxdamage will get your compiz effects working.
forever just means that the server will keep running after a client disconnects.

If you do a "man x11vnc", you'll see that there's a raft of additional options.  But the ones specified above should get you running.

If you need to run this on startup, I personally run this in /etc/rc.local, but I'm sure there are better ways.  EDIT : And there are easier ways, detailed on this very site : How to run scripts on start up?.  So, I suppose the easiest is the crontab -e option, but you could also save the command as a script somewhere, then just specify it in system/preferences/startup apps.


Changing ubuntu server's language to english

First install all the English language packages:

sudo apt-get install language-pack-en language-pack-en-base manpages

Then remove the French language packages:

sudo apt-get remove language-pack-fr language-pack-fr-base manpages-fr

And that should be enough.

Edit I: some users note that you might need to update the /etc/default/locale file yourself, make sure the first line in that file reads something like:

  LANG="en_GB.UTF-8"

Edit II: some users do not seem happy with the suggestion for the English used in Europe (I am assuming the enquirer is French). Those wishing to use a different English locale can get a list of available English locales with this command:

  locale -a | grep en_


In the "Format - Cells" dialog, uncheck "Wrap text automatically" on the "Alignment" tab. All text will be displayed, unless a cell to the right is not empty.
Cell height will be adapted if your cell contains hard returns, which you can enter using Ctrl+Enter. If you do not want the cell height to be automatically adjusted, then set the row height. You can do so with Format - Rows - Height. Check the "Default value" tickmark before hitting OK if you wish the cell to have the default height: that will fill out the correct value, which you then can apply hitting the OK button.


Can't get javavws IcedTea to work (JRE OpenJDK version 8) in Ubuntu 18.04

I changed the symbolic link /usr/lib/jvm/default-java to java-1.8.0-openjdk-amd64 (instead of the java-1.11.0-openjdk-amd64)


cannot get Tails-installer on Ubuntu 14.04 LTS installed

The Tail installation instructions explicitly states that the Tails installer is available on:

Debian 8 (Jessie) or later in the backports repository
Ubuntu 15.10 (Wily) or later in a PPA (Personal Package Archive)

If you cannot install the Tails installer, you need to use GNOME Disks application instead, as instructed on the link you cite.


After installing updates in Ubuntu 12.04 the speakers have stopped working but the audio do comes from the headphones

Try restarting the computer with your earbuds unplugged.

Also go to sound settings with your earbuds unplugged to see what it says and take a screenshot if nothing you try fixes it by that method

If this doesn't work, try reinstalling your ALSA sound drivers:

sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
sudo apt-get install linux-sound-base alsa-base alsa-utils

Additionally, if using Gnome you'll probably have to do:

sudo apt-get install gdm ubuntu-desktop

Then reboot.


I have followed the post-installation instructions but still can't run Docker without sudo

Turning my machine off and on again solved the issue (logging out and back in again, as it says in the docs, didn't work for me)


I want to download Ubuntu 12.04 LTS Windows installer because I have a monthly download limit

If that is the case select the torrent version for download and throttle your torrent.

Here are the desktop links to the torrent:

Ubuntu 13.04 Desktop (64-bit)
Ubuntu 13.04 Desktop (32-bit)

You can also stop the download at any time and continue it when ever you want.

As an alternative: Canonical sells DVDs at £5.04 per single DVD (link to: 12.10 or 12.04).


Live Ubuntu USB drive with persistence - headless install

If you using dd to copy a USB set up with persistence, I don't see why that doesn't work if the USBs don't have bad blocks.
  If you want to add persistence to a USB created from the ISO, just add the word "persistent" to the kernel line (linux...)  in both grub.cfg (for UEFI machines) and the /syslinux/txt.cfg (or isolinux/txt.cfg) files.  Also create a file named casper-rw of up to 4G on the root of the USB and put an ext4 filesystem in it.e.g.:

dd if=/dev/zero of=casper-rw bs=1M  count=1024
mkfs.ext4 -F -O^has_journal -L casper-rw casper-rw

If your USBs are big, you can use a partition labeled "casper-rw" insted of the file to avoid the 4G limit of files in FAT filesystems.


Why does lubuntu 14.04 synaptic no longer reload?

"malformed file" is a syntax error. You need to check your /etc/apt/sources.list file and check the error message again as it should specify the exact line where the error occurred in that file.

use:

sudo nano /etc/apt/sources.list

to edit the file. Press CTRL + O and Enter to save the file. Then CTRL + X to exit the file and then run:

sudo apt-get update

here's a default list of sources to compare to:

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse

deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


Terminal can't install something named libgl1-mesa-dev-hwe-16.04

If you take a look into the "install_dependencies.sh" , you will see "-hwe-16.04" extension is defined by the "XTAG" variable and it used only for mesa lib (which is "free implementation of the OpenGL API"). Above the 16.04 (16.04.1, 16.04.2) you don't need this special version anymore. So when you run "install_dependencies.sh" (without the "-y" switch) simply answer "no" to the question :   "installing OF dependencies with -hwe-16.04 packages, confirm Y/N ?"


Setting the PATH in .profile works without exporting it, how?

If there is already an exported shell variable, then subsequent resetting of the variable will automatically export it.  So in this case, if you run "env" prior to where .profile sets PATH, you will probably see it was previously set / exported (either in /etc/profile, /etc/bash_profile, or somewhere else).


Poor font substitution in eVince or poor rendering

This appears to be a bug in the Cairo backend of Poppler, used by Evince. Rendering in Okular seems to be fine (uses the Splash backend). Here is a screenshot demonstrating the difference. (Left side Evince, Right side Okular.)

Related issue reports:

Poppler #981, Poppler #934

Evince #1512, Evince #1510, Evince #1439.


unsuccessful mounting of external memory - cannot access files

This

fsck.ext3: No such file or directory while trying to open /dev/sdf1
Possibly non-existent device?
fsck.ext3: No such file or directory while trying to open /dev/sdf2
Possibly non-existent device?

tells us that one of the 3 external drives are not present on the system, maybe it has hardware failure (or the USB port where it is plugged in has a failure) or simply corrupted by the force shutdown. You should check the logs for error messages or lsusb to find out which drive is missing/has the problems. Likely it is the /dev/sdd device as the UUID-s of the partitions on that drive are not found:

fsck.ext4: Unable to resolve 'UUID=[ID for /dev/sdd3]'
fsck.ext4: Unable to resolve 'UUID=[ID for /dev/sdd4]'
fsck.ext4: Unable to resolve 'UUID=[ID for /dev/sdd5]'

and

The disk drive for /home/member/USB_Disk/Disk1 is not ready yet or not present.

Because the /dev/sdd device is now missing, all the devices after it gain a lower /dev name, i.e. /dev/sde became /dev/sdd and /dev/sdf became /dev/sde. This can be the cause of this:

swapon: /dev/sde1: read swap header failed: Invalid argument
mountall: swap on /dev/sde1 [1049] terminated with status 255
mount all: Problem activating swap: /dev/sde1

as the /dev/sde1 partition is now not a swap space so it cannot be mounted as such.

And that is why /dev/sdf is missing now.

fsck.ext3: No such file or directory while trying to open /dev/sdf1
Possibly non-existent device?
fsck.ext3: No such file or directory while trying to open /dev/sdf2
Possibly non-existent device?

But this is just speculation, check the external drives or another machine and check the logs, lsusb to find out which one (or ones) have a problem.

Also the fstab you are using is inconsistent. In the beginning of the file you are using UUIDs which are fine, but in the end of the file you switch back to using simple /dev device names. Please stick to the UUID naming scheme and change these lines

/dev/sde1     none            swap    sw,pri=1     0    0
/dev/sdf1     /home/user2     ext3    defaults     0    2
/dev/sdf2     /home/user3     ext3    defaults     0    2

to use UUIDs too, as all the other lines in the fstab. If your fstab were only using UUIDs some of the problems I described above wouldn't happen. (The swap space and the /dev/sdf drive could be mounted.)

@biohazard wrote in the comments that indeed the problem was with /dev/sdd but fortunately not a hardware failure just that drive was powered off. Not having only UUIDs in fstab caused the other problems as I mentioned it above.


You cant choose between the IGP and the discrete card. You either work with both with buggy bumblebee or disable the discrete card.

Optimus tecnology doesnt allow you to choose between both of them. The IGP is the one displaying the video, the discrete cards only is turned on when is required (heavy load scenario), but the IGP is the one displaying the video on the screen always.

Nvidia is not interested in bringing Optimus to Linux, due a lot of work needed in the X and the few percentage of us using Linux.

My advice is if you are gonna buy a Sandy Bridge, buy a laptop without a discrete card and save some money, or at least, an ATI card. Linux Hybrid Graphics with ATI via vgaswitcheroo works better, but is far from perfect.

Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


How to overwrite a previously uploaded malformed upstream tarball in Launchpad's PPA?

You'll have to upload the correct tarball under a slightly different name.  It's conventional to append something like +ds in this kind of case: so foo_1.0.0.orig.tar.xz → foo_1.0.0+ds1.orig.tar.xz (and bump your changelog version from 1.0.0-1 to 1.0.0+ds1-1, etc.).  If you do it with this scheme then you should be able to drop the +ds suffix at the next upstream release.


How do I get my user back onto the sudoers list?

Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.

Then follow the instructions from How do I add myself back as a sudo user? as you tried to do before.


How to install Nintendo Emulator gfceu on Ubuntu 20.04

There are 2 ways to install it on Ubuntu 20.04

1) Via snaps...

$ sudo snap install fceux-gui --candidate

That installs it from the candidate channel.

Pros this method:

The maintainer will always get to update this one to the latest if there are any changes and it won't require any dependencies on Ubuntu packages.

Cons this method:

Problem installing it this way is that if you have all your ROMs in some directory outside your home folder then you won't be able to get to it because of snap's isolation security.  You will have to put the ROMs somewhere in your home directory.

Soft links will also not work.

If you have a massive library of ROMs on some mount for example at /mnt/romdisk/...  Well you'll struggle to get to it.  If this setup is for your kids, well it fails the KISS ideal!  (Keep it simple and stupid!)

2) Via apt in the official ubuntu repos...

$ sudo apt install -y fceu

Pros this method:

It works, it is native, it gets to any path/mount on your PC.
It just works!

Cons this method:

Well you're stuck with the repo version until either you upgrade to the next future release of Ubuntu or if through some miracle Ubuntu guys decide to upgrade to the latest version, if there is one!

Conclusion
My preference is the repo version point 2 above.  Just works, KISS for the kids, get's to any mount where you have a library of Nintendo games.
Honestly, especially now in the middle of a Coronavirus pandemic, this Nintendo emulator with all the ROMs available free on the internet is a God send!  They play while I work!

Tip: If you have an old XBOX controller, it works with it.  But works best with most games if you don't try and configure the left thumbstick but program instead the bottom left directional-pad.  Then just use the same A and B buttons!

Enjoy!


Problem running google-chrome in the Terminal

It seems to be a problem more people are having, I personally have it too:
$ google-chrome
[45844:45844:1007/232622.863002:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

In the meantime, if you don't want this error message to appear again (since Google Chrome appears to work fine even with this supposed error), you can add this alias in your ~/.bash_aliases:
alias google-chrome="google-chrome 2>/dev/null"

This alias makes the google-chrome command redirect (>) all its error output (2) to /dev/null. If you want the process to run in the background in the terminal, you can add a & at the end as well.


mysql reinstallation still getting problems ubuntu

As I see there, you have dependency problems. But, this is the first time you install mysql in that terminal?

After appears that error, introduce in your terminal:
- sudo apt install -f


Killer AX1650 wifi very slow on Ubuntu 19.04

Update : I couldn't resolve the issue with the officials drivers (even from sources).
I end up upgrading ubuntu to 19.10 and removed the official drivers, my card was recognised imediatly and works at full speed.

So simple fix is : upgrade your system.


Can I play audio files off of windows7 while I am trying out Ubuntu with just the iso disk without installing it.

Yes, you can. There is probably not audio software installed during the live dvd session so you need to load it in to memory with Ubuntu Software Center. You can also use the command line tool called "aplay" to play sounds (it supports a multitude of formats).

  Is it possible to access windows files while in Ubuntu?

Yes. Ubuntu will mount them by itself during boot unless you tell it not to.


What are the icons on the top bar called?

It's an "Application indicator":

  Application indicators provide a simple and effective API to provide
  an application icon in the notification area in the top-right part of
  the screen, and provide simple, accessible, and complete access to key
  parts of your application. With bindings for C, Python, and Mono, you
  can integrate your app into the Unity desktop quickly and easily.

Source: https://unity.ubuntu.com/projects/appindicators/


Canon MG-5550 printer doesn't install with Canon packages on Xubuntu 16.04

(1) Find root cause

Tracing cupsd process shows that it finds PPD okay, but also shows this:

stat("/usr/lib/cups/daemon/cups-driverd", 0x7ffde15f8ba0) = -1 ENOENT (No such file or directory)

A search on the file mentioned...

apt-file find /usr/lib/cups/daemon/cups-driverd

... (alternative: go to Ubuntu package content search -- /usr/lib/cups/daemon/cups-driverd returns:

cups: /usr/lib/cups/daemon/cups-driverd

And indeed several CUPS-related packages are installed but not cups.

(2) Fix root cause

apt-get install cups

I purged half-installed printer and reinstalled CANON packages.

(3) Profit!

Printer works.


Binary Operator expected message when opening new terminal

In your error message you have

/home/timi95/workspace/WEB_TECHNOLOGIES/Angular

however in the comments you've mentioned the line

/home/timi95/workspace/WEB_TECHNOLOGIES/Angular projects/test-forge-project/node_modules/tabtab/.completions/electron-forge.bash

Notice the space between Angular and projects. This is the core of the issue.

In [ command ( and yes, that's a command also known as test, not just a bracket ) the -f operator expect a single argument after it. The space makes the line appear as if there are two arguments after -f. Thus, the issue should be fixed via either quoting  the path or by escaping the space with backslash as in

/home/timi95/workspace/WEB_TECHNOLOGIES/Angular\ projects/test-forge-project/node_modules/tabtab/.completions/electron-forge.bash

Spaces in command line serve as word separators, and if they are not escaped or quoted the shell will treat the line as more words than wht you intended. Among other things, this is also one of the reasons why you should quote variables - without double quotes word splitting on whitespace, newline, or tab  (because such is the default value of IFS variable which shell consults for word splitting) will be applied.


Double-click instead of single-click in Ubuntu 12.04

If you've manually edited xorg.conf, try adding and entry for your mouse, in case it was somehow deleted:

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

  Source: http://ubuntuforums.org/showthread.php?t=1844513&page=2

EDIT As mention in the comments, this seems to be a reported bug that has stood for some time now. It may be best to add your info to Launchpad to help resolve the bug in the future.


Mapped keys do not work in some applications

This neat command solves the problem:

setxkbmap -option lv3:rwin_switch


It's merged into the Desktop edition.
From wikipedia:

Beginning with version 10.10, Ubuntu Netbook Edition uses the Unity desktop as its desktop interface. The classic netbook interface was available in Ubuntu's software repositories as an option.
Because Ubuntu's desktop edition has moved to the same Unity interface as the netbook edition, starting with Ubuntu 11.04 the netbook edition has been merged into the desktop edition.

Here is a post from canonical blog which explains more:
Ubuntu Netbook Edition folded into Ubuntu for next release

One of the benefits of the direction that’s been taken with the next release of Ubuntu is that there is no longer a need for a separate netbook edition. The introduction of the new shell for Ubuntu means that we have a user interface that works equally well whatever the form factor of the PC. And the underlying technology works on a range of architectures including those common in netbook, notebooks, desktops or whatever you choose to run it on. Hence the need for a separate version for netbooks is removed...

So, there won't be an Ubuntu Netbook edition for future cycles - if you want to install Ubuntu on your Netbook, the normal desktop install will work just fine.


The password is probably not saved in system settings.

To fix this:

Enter into "System settings -> Network"
Select Wireless in the left pane and click the Options button
Click the Wireless Security Tab.
Enter the password in the password field and click the Save button


Mullvad vpn won't connect on ubuntu 18.04

I made a client version using WireGuard some time ago.

The developers behind Mullvad have previously stated that: "WireGuard is the future". Which made me invest time into actualizing a user friendly version of WireGuard with Mullvad.

If you're interested have a look!


I figured out some ways to speed up nautilus: bookmarks and previews. But it's still not as fast as it should be ... and I have an SSD!

Bookmarks:

To fix it delete all your bookmarks, restart and then add back the ones you can't live without.

Using strace I realised that nautilus was stating lots of files for every view. Even files that were not in directory I was browsing during the trace. I think nautilus is trying to pre-cache these bookmarks.

I had one network drive as a bookmark ... this might have been the reason why nautilus was taking several seconds to load.

Preview settings:

Disable the previews in the preferences as follows:


How do I get my google contact's birthdays to show up in evolution calendar?

When creating the new calendar in Evolution, did you select the correct Google Calendar?

I would suggest attempting to retrieve the Google Calendar list and selecting the appropriate one with your contact's birthdays.  I am guessing that your default Google Calendar does not contain your contact;s birthdays.  You may end up having to bring in multiple calendars from Google.  At least that is what I had to do.  Hope this helps.


Nano (Installed by default)

nano is a GPL Licensed curses-based text editor for Unix and Unix-like systems.


nagios3 Error: Could not read object configuration data!

Error: Could not read object configuration data!

I got this error because Nagios was not running. There were no errors in the Apache or Nagios logfiles.


How to read OneDrive NTFS Folder in Ubuntu

I'm having the same problem on my Ubuntu (all versions) in dual boot with Windows 10 and OneDrive folder on a shared NTFS partition.
Seems that Windows 8.1/10 OneDrive clients create some sort of virtual volume, while the folder on the disk is just a new type of reparse point for that volume.

I've compiled and installed this NTFS 3g plugin specifically designed for OneDrive (just search for onedrive on the page)


I think you need to re-install grub and then grub will automatically find out which operating systems can be booted from. If this doesn't work, some of the partitions that can be booted should have a "boot"-flag. Check with e.g. gparted. I suggest boot from a live USB/DVD/CD and run gparted - also from the live system, mount your NTFS Windows partition - check that everything is ok. Then if everything fails, I would run the Windows install disk (knowingly, this will overwrite grub). Then you get to the point where, whenever you reboot Windows will start. And when you're here, you're almost home - THEN you run grub (from live-dvd/cd/usb) and then I'm absolutely sure that it'll find Windows and your other operating systems... I've tried this many times also. I think you'll succeed with this methodology...


Zoom fails to launch, results in a core dump and memory corruption exit code (134)

This appears to have been caused by my NVIDIA driver and/or other NVIDIA related libraries being somehow goobered after installing various NVIDIA packages such as CUDA, DeepStream SDK, etc. For example:

$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

I managed to fix this by updating/upgrading (sudo apt update/upgrade) and then rebooting.