Ubuntu 18.04 freezes on shutdown/restart on Dell XPS 15' 9560 & won't boot after hard shutdown

This most likely needs the nouveau.modeset=0 fix...

ie: add GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0" to /etc/default/grub file.

But you can only do that if you can boot..

So, you would need to press e when you see the grub load screen.
and then manually edit the grub settings

so that the GRUB_CMDLINE_LINUX_DEFAULT line looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0"

assuming that allows you to boot, add the setting permanently
by running:
sudo gedit /etc/default/grup
and making the change there.

also How do I set 'nomodeset' after I've already installed Ubuntu?


Bluetooth not working on XPS 13 9360 running 16.04.1

You need to install firmware for this adapter. It is not in the linux-firmware package for 16.04. You can install firmware from 16.10 this way:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161.1_all.deb
sudo dpkg -i linux-firmware_1.161.1_all.deb


ThinkPad T440p docking station: no sound on external speakers

This post helped me with the same issue.

Or maybe you try this setting:

options snd-hda-intel model=lenovo-dock


The error "Error: Connection activation failed: no valid VPN secrets' might be caused due to the issue with login user privilege. So try to edit the following,

/etc/NetworkManager/system-connections/CONNECTION_NAME

After doing this change the password-flags=0 instead of 1 then add your password.

[vpn-secrets]
password=YourPassword

Start the VPN connection with  sudo nmcli con up id ConnectionName and this will help you to fix the problem.


Screen resolution is low in tty with fglrx?

This is because fglrx (the proprietary AMD Radeon device driver) does not support Kernel-Mode Setting (KMS).

In the GRUB (boot loader) configuration file located in /etc/default/grub there is a setting called GRUB_GFXMODE you can set it to GRUB_GFXMODE=1200x900. Then you need to run sudo update-grub2.

Run vbeinfo in GRUB to see which graphics modes your graphics card supports.


E:The package picasa:i386 needs to be reinstalled, but I can't find an archive for it

apt is trying to reinstall or update the picasa:i386 package, but the system does not find the corresponding .deb file. The apt and apt-get commands try to obtain the packages from PPA repositories. If you installed picasa (or another software) (1) downloading a .deb instead of using these repositories or (2) using a dead repository, you may end with packages you cannot update.

If you need Picasa, you may try to find the software you used to install it.

I tried to install the Picasa by adding the old testing repository of Google. However, I got an W: Unable to download ... error after configuring the testing repository that included Picasa.

# it does not work !!
$ sudo sh -c "echo 'deb http://dl.google.com/linux/deb/ testing non-free' >> /etc/apt/sources.list.d/google.list"
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FAC5991
$ sudo apt-get update

Apparently, the installation process uses Wine and the windows version of Picasa. You may try to download Picasa from other non-google sites.

If you do not need Picasa. I think you must uninstall the (unsupported) picasa.

    $ sudo apt-get remove picasa
    $ sudo apt-get autoremove


I also had this problem with the distribution version of FreeCAD 19.  It does appear that because this is a snap package with its own virtual environment it cannot access 'normal' file system installations such as graphviz.
Running the AppImage instead of the distribution version allowed me to access the Dependency Graph which requires graphviz in FreeCAD.
Perhaps someone knows a way to work around this shortcoming of the Ubuntu distribution of FreeCAD.


Need help configuring apache on Ubuntu 20.04

In Ubuntu (and in other distros), Apache configuration is organized in multiple files for easier maintenance and upgrading. You would find:

/etc/apache2/apache2.conf: Main config file for global configuration, usually discourage to modify this file.
/etc/apache2/conf-available/: Directory where you can add different configurations files to keep things well organized.
/etc/apache2/conf-enabled/: Directory that contains symlinks from /etc/apache2/conf-available directory. Every file or symlink in this directory is automatically included by apache2.conf.
/etc/apache2/sites-available/: Directory to keep your sites configuration files. If you have multiple websites hosted on your Apache, you can have multiple files here, one for each one. Otherwise, you can just use the 000-default.conf file that already exists there.
/etc/apache2/sites-enabled/: Directory that contains symlinks from /etc/apache2/sites-available directory. Every file or symlink in this directory is automatically included by apache2.conf.
/etc/apache2/mods-available/: Directory where all the available Apache modules are stored and their configuration files.
/etc/apache2/mods-enabled/: Directory that contains symlinks from /etc/apache2/mods-available directory. Every file or symlink in this directory is automatically included by apache2.conf.

There are few commands that makes creating and deleting these symlinks from *-available to *-enabled a bit easier, like:

a2ensite: Enables a site by creating the symlink to sites-enabled.
a2dissite: Disables a site by deleting the symlink from sites-enabled.
a2enmod:  Enables a module by creating the symlink to mods-enabled.
a2dismod: Disables a module by deleting the symlink from mods-enabled.
a2enconf:  Enables a config by creating the symlink to conf-enabled.
a2disconf: Disables a config by deleting the symlink from conf-enabled.

Most likely, you would just need to modify the file /etc/apache2/sites-enabled/000-default.conf with your site config if your requirements are simple. For more complex scenarios, is recommended to have your own site config.


How do I set up SSH authentication keys?

The answer you are looking for is here. Following is the excerpt from it :

Run the following command to create an SSH key pair. You can leave the passphrase blank if you do not wish to "unlock" your key each time you use it:

ssh-keygen -t rsa

The output will be similar to this

Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A

Then you'll need to copy the new key to your server.

After copying the SSH keys you can log into your machine without a password.


How to find files in subfolders from txt file and copy them?

I don't know a lot about xargs, but the following should loop over your text file and copy the file into the destination folder one by one.

while read p; do
    find 1 -name "$p" -exec bash -c 'cp "$1" DESTINATION_FOLDER' _ {} \;
done < files_name.txt


Unable to use/type letter "d" within terminal on Ubuntu 13.10

I think I've seen something like this and it was caused by an incorrect readline config. Remove ~/.inputrc, reopen your shell and try again.


Ubuntu 12.04.3 LTS how to avoid windows going off the current workspace

Press and hold Alt button, then click on anywhere in the windows to drag it. You don't need to click on title bar to drag the window.


Is there a CD Ripper compatible with Creative Zen MX?

I think the issue could be the tags that CD Rippers use - they usually create ID3v2.4 tags which some Zens can't handle.

Possible Solution 1

Asunder CD ripper will rip to either ID3v1 or ID3v2.x tag format depending upon the information on the CD.

Install asunder and lame from the software center.

Run asunder - and select the preferences button followed by the Encode tab.

Tick the MP3 checkbox and uncheck the ogg checkbox.

Then rip your CD.

Possible Solution 2

Use Banshee or another tool to import your CD.  Banshee will tag your mp3 in ID3v2.4 format

Correcting ID3 Tag information

Since Asunder will sometimes not write ID3v2.3 tags and Banshee will write to a tag format that your Zen will not understand, you will need to use another application to correct the tag format.

EasyTag is such a program - just to confuse everyone, there are two versions in the Software Center.  Check EasyTag - Help - About - Extensions. If it says v2.3 support is disabled, then install the other "easytag" in the software center - on natty this is version 2.1.6.

Ensure EasyTag Settings - Preferences look like this:

highlight the file or files and add some text to the comment field. N.B. you can use the usual shift - click method to highlight multiple files.

click the save button - a prompt should display indicating that it would like to write the changed tag information back to the file.  Click Yes

Transfer to your Zen and confirm that the tag information is displayed correctly.


i had the same problem some years ago and was having the same problem again after installing ubuntu 18.04. it was a kernel problem then, and i think it may be a kernel problem now.

after updating the kernel the problem was fixed for me.

to update kernel see:
Updating kernel question

to download last stable kernel (which worked for me):
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16.6/

in my case i downloaded:

linux-headers-4.16.6-041606_4.16.6-041606.201804300418_all.deb

linux-headers-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb

linux-image-unsigned-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb

linux-modules-4.16.6-041606-generic_4.16.6-041606.201804300418_amd64.deb


Bluetooth and WiFi do not connect on Pavillion 15 HP

For the wifi, it does help if your access point is set to a single channel instead of auto and use WPA2 only with AES, no WEP or TKIP

The backported drivers might work better than the ones with your current kernel, see instructions http://forums.linuxmint.com/viewtopic.php?f=90&t=187963&start=20#p974596

One thing you need to do before backports is sudo apt-get install linux-headers-generic build-essential


Cannot get wireless network after suspend

Try this (Problems with networking after suspend) or this (How to restart the networking service?), there should be something in all the solutions what can help you.


Before installing VirtualBox guest additions tool, run the commands below on the Ubuntu guest machine first.

sudo apt install linux-headers-$(uname -r) build-essential dkms

After installing the packages above, restart and continue installing the Guest Additions Tool.

To install VirtualBox Guest Additions software on Ubuntu virtual machine operating systems, select the Devices from VirtualBox host application menu and click Insert Guest Additions CD image…
view image

Click run to begin installation.
view image

After installation is done reboot and you should be full screen.


Does this lock signifies anythting?

Yes if the lock is placed over blutooth icon, it means your bluetooth device is currently doing some operations.Lock will be automatically released when the corresponding operations are finished.

How can I send files from phone to PC?

To send files from your phone to pc,

Open personal file sharing  from dash.

Enable Receive files in Downloads folder over Blutooth option at the bottom.And also enable Notify about received files option(To get notification upon received files via bluetooth).

Now send a file from your phone to PC.It will receive and then save the file inside ~/Downloads folder.


Of course. I never even have to use "sudo" with using "scp".

Mind though: as with all remote copy-ing the servers need to be setup to allow it. You can even use "scp" without having to use a user and without providing a password if you want.


After Dual Boot installation I cant boot to ubuntu 16.04

Make sure that you are installing in the same boot mode. (UEFI/Legacy BIOS).
Make sure that Ubuntu is 1st (or above Windows Boot Manager) in boot sequence in firmware settings.


Are pre-existing files in a mountpoint directory safe and uneffected?

Don't worry about your files, they won't be overwritten while the directory they're in is used as a mount point. Unfortunately, when you mount over that directory they are completely invisible to the system. There's no trivial way you can access them while the directory is being used as a mount point. If you need to use them, you'll have to unmount the filesystem there first.


Ubuntu GNOME - "Software" app stuck in "Pending"

While I have seen many proposed solutions to this issue, none of them solved it for me. It turns out that the problem was, strangely enough, with my network configuration. I had manually edited /etc/network/interfaces and set a static IP address, DNS servers, and a DNS search domain. I removed the manual configuration, rebooted, and let NetworkManager handle the connection. GNOME Software began immediately working, and I have had no problems since. It's important to note that I had correctly set the manual configuration, and had no issues whatsoever with the exception of the Software app.


How to install packages from Launchpad which are not in a PPA?

In the case of your example you can't find because there are none

https://launchpad.net/ubuntu/lucid/+source/ndoc/1.3.1-6ubuntu1


This is pretty close to Xpadder for linux...

http://qjoypad.sourceforge.net/#introduction

And another...

http://pingus.seul.org/~grumbel/jstest-gtk/


I'm not quite sure what exactly is your problem, since you're mentioning cd yourself, but just to confirm: to change a working directory in terminal, you use cd command:

cd /path/to/directory

External disks are usually mounted under /media, so to get to your disk, you can type

cd /media/

then press Tab, which will show you files and sub-directories in that directory. Type a few first letters of the sub-directory you need and press Tab again. When the full path is entered, press Enter. Easy.

To run a shell script from that disk, the easiest would be to use something like

cd /media/MyDriveName/somedir/somesubdir
bash scriptname.sh

Note that you're invoking bash and passing it the name of the script, instead of running the script directly, like this:

cd /media/MyDriveName/somedir/somesubdir
./scriptname.sh

the first version don't need the executable bit to be set on the script file.


How to completely delete all files pertaining to a program

You can remove all the files belonging to a given package by using

sudo apt purge <package name>

So in your case:

sudo apt purge LanMessenger

If you also want to remove dependencies which are no longer used, you can then run:

sudo apt autoremove


Ralink MT7601U (148f:7601) Wi-Fi adapter not working on Ubuntu 16.04

The problem was apparently the kernel that was corrupted because other stuff did not worked as well. I erased Ubuntu completely and than reinstalled 16.04 and the Wi-fi  dongle just works and no special installation to be done.

Thanks anyway for checking and putting your comments.


There is only the FOSS drivers already installed. The closed source driver from AMD/ATI don't support anymore this card.


Dell Wireless 5808 Gobi 4G LTE (Sierra Wireless MC7355) not connecting in Ubuntu 19.10

Looks like I've got it resolved by updating the card's firmware to the latest version. Everything works fine now.

Make sure you select the correct carrier.

As a side note, I recommend doing this update from Windows if you can, the process is much more painless.


You could not change ownership or permissions on ntfs partition the way you're trying to do it.

You could only mount it with required uid of user you want to be the owner of the partition.

Find out your user uid and gid by:

$ cat /etc/passwd | grep $(echo $USER)

Find out your ntfs partition UUID by blkid command execution.

Mount your partition in /etc/fstab with your user's permissions and ownership:

UUID=1EB89832B8980B03    /mnt/super    ntfs    rw,uid=1000,gid=1000    0   0

Add also noauto option if you do not want it to be mounted automatically at boot.

Even binding

sudo mount --bind /mnt/super/test ~/test/newtest -o rw,uid=0,gid=0

will change nothing. Ownership will remain as you specified there in /etc/fstab or as it is now in case of mounting it using nautilus or other file manager.

If you want everyone reading and writing permissions on that partition, you could change uid and gid to 65534:

$ cat /etc/passwd | grep nobody
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin

in /etc/fstab:

UUID=1EB89832B8980B03 /mnt/super ntfs rw,uid=65534,gid=65534 0 0

Also, you could find some info about mapping windows/linux users here. But I didn't try it and could not answer if it works as you want.


Carry out the following:

apt-get install php5-imap

However it's not enabled by default so enable it with:

php5enmod imap

Then bounce apache:

service apache2 restart

Done.


You can use UDF file system as packet writing and it effectively works as USB drive (or as diskette). See this link.

For example, BluRay discs as well as DVDs are usign UDF file system.
You just need to make it with UDFtools and mount it read/write.


The portion of the error message you want to look at is:

/etc/pm/power.d/99macbookair6: Permission denied

which says you do not have sufficient permission to execute /etc/pm/power.d/99macbookair6.

Even if you have some command here executable by you, you would still get permission denied error for:

echo 0 > /sys/module/hid_apple/parameters/iso_layout

In a nutshell, you can do:

service rc.local start

only when you have all entries in /etc/rc.local executable by you (and also rc.local must be readable by you obviously). Same goes for brothers of start i.e. stop, restart etc.

To get your current setup working, the most sane way is to run the command as root:

sudo service rc.local start


Boot a live session on your laptop from installation DVD or USB. Within live session in the file manager identify your drive. Open terminal and change directory to your home folder on the drive.

With

sudo chmod 755 /path_to_your_home_folder

you can fix your file permissions.

Note: path to your home folder will be in the live session like this: /media/disk_UUID/home/username


Access a print queue on a Windows print server on a different network

First of all I can start the old(?) print manager by starting the system-config-printer program. Here is a good guide: How to add a printer in gnome-shell

I think I managed to solve my problem. In order to avoid storing the password in plain text in /etc/cups/printers.conf I need it to prompt me for my AD username and password every time I want to print something, which is what I want.
As far as I have figured out there are two important lines in /etc/cups/printers.conf that are relevant for my problem.

AuthInfoRequired username,password
DeviceURI smb://domain/print.mycompany.net/printqueue_ps

I need the AuthInfoRequired line in order to be prompted for my username and password.
If I specify my AD username on the URI line then it will still ask me for my username and password but apparently just ignore what I type, resulting in a failed authentication. I originally figured that if I specify my username but not my password then I will only have to provide my password every time I want to print something. Apparently it does not work this way. It always defaults to my Ubuntu username and not my AD username. I have not figured out a way of fixing this.

Please note that you have to stop CUPS whenever you want to edit /etc/cups/printers.conf manually.

$ sudo service cups stop
$ sudo nano /etc/cups/printers.conf
$ sudo service cups start


Assign programs permanently to different sound-outputs in Pulseaudio?

https://launchpad.net/earcandy

https://launchpad.net/~earcandy-devel/+archive/ppa

Its not complete but it allows you to push sound to headset..

btw pulse audio will not be doing this by default, the developers do not agree that sound should move devices in this way.

I should add to any one who knows a little python, help would be gratefully accepted to finish this app off..


Problem with the Ubuntu-Windows double boot

Windows Recovery Environment should work just fine. It certainly will not wipe out your Ubuntu install. Select Windows Recovery Environment and press "enter." You will be fine.


Permission denied after trying to create mysqldump, even after creating .my.cnf file

I created another user as me because I couldn't even get into mysql with root rights.

This helped. I made myself a new mysql user.

mysql> USE mysql;
mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY '';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'YOUR_SYSTEM_USER'@'localhost';
mysql> UPDATE user SET plugin='auth_socket' WHERE User='YOUR_SYSTEM_USER';
mysql> FLUSH PRIVILEGES;
mysql> exit;

$ service mysql restart

That did not work with creating the dump but based on Micahel's advice I just changed permissions to the folder that was getting access denied errors so that it was writable to myself. Also made it readable to the user group.

chmod 740 jordan
chown jordan:jordan /home/jordan/tutorialinux/backups/db/

After that I could create the dump.


Serious CPU Scaling screw up that I need help solving ( underclocked and cant go back)

To anyone having a similar issue, check your fans.
One of my fans is not properly working and since it cant work, the CPU throttles at 400Mhz.
To fix this issue all I had to do was the following commands:

  sudo modprobe msr;
  sudo wrmsr 0x1FC 2

This makes the CPU stop throttling and goes back to normal CPU frequencies.


Ubuntu 12.04 upgrade: Grub update-grub fails after update

This is apparently a bug in Ubuntu. Package grub-common contains the missing file but in another place. I added a symbolic link to allow the file to be found.

I ran this command:

ln -s /usr/lib/grub/grub-mkconfig_lib /usr/share/grub/grub-mkconfig_lib

Afterwards update-grub succeeded.


Problems with the drivers, mouse and display

Install the video card accelerated driver

sudo apt-get install xserver-xorg-core xserver-xorg-video-nouveau

Reinstall the mouse driver

sudo apt-get --reinstall install xserver-xorg-input-mouse


Kernel panic at boot - Ubuntu 14.04 with 3.13.0-140-generic

SOLVED: Uninstalling Teamviewer solved the problem! Only tried it because it was mentioned in the posted Screenshot.


No package 'gstreamer-0.10' found when installing openFrameworks

The script in OF for ubuntu is a bit flawed for a user build & will not run the first 2 lines unless run from a root terminal.

They should or you can edit the script & add sudo to the beginning of the first 2 lines, as in -

sudo apt-get update
sudo apt-get install 'blah blah'

Then you can run from your normal user terminal prompt

Additionally while either libjack0/libjack-dev or libjack-jack2-0/libjack-jack2-dev can still be used, they/you should switch the dep to the latter which is more current.


Getting "size mismatch" when using apt-get on multiple packages

It turns out that there is not a problem with apt-get but my company. There is an internet policy that blocks all keywords with 'video' in the url. I discovered this by viewing the contents of the libopencv-video2.3_2.3.1-7_i386.deb in /var/cache/apt/archives/partial. It contained html from the web filter giving me a notice that I'm in violation of my internet blah blah blah.

Who would have known that their lead research engineer would have had a policy applied so trivial as this?

Lesson learned: ask your IT dept to give a block of addresses that are exempt from stupid policies and charge them back for the time wasted by me and those trying to help...


How do I enable SSL in Cherokee without libcherokee-mod-ssl?

Have you checked their installation guide? There you can find a PPA (i guess maintained by Cherokee Team) that provides Cherokee and the package you need.

So, if using a PPA is an option, just follow those instructions:

sudo add-apt-repository ppa:cherokee-webserver/ppa
sudo apt-get update
sudo apt-get install libcherokee-mod-libssl

Good luck!


Execute the following commands in terminal

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

where <PUBKEY> is your missing public key for repository, e.g. 8BAF9A6F.

Then update

sudo apt-get update

ALTERNATE METHOD:

sudo gpg --keyserver pgpkeys.mit.edu --recv-key  <PUBKEY>
sudo gpg -a --export <PUBKEY> | sudo apt-key add -
sudo apt-get update

Note that when you import a key like this using apt-key you are telling the system that you trust the key you're importing to sign software your system will be using. Do not do this unless you're sure the key is really the key of the package distributor.


automate sshpass when server is asking a "yes/no" question

To answer the OP's question about entering "yes" on the ECDSA key fingerprint prompt, and I would only advise this for localhost SSHds - never in anything more than an experimental docker container setup, you can do the following:
sshpass -p 'password' ssh \
  -o StrictHostKeyChecking=no \
  username@127.0.0.1 -p 2222 'whoami'

A use case? You could have a nobody user that is the only user who is allowed to password-SSH into a machine (all other users are set to require keys). You could then just get some system info you need, say, as you experiment with orchestration.
sshpass -p 'meminfo' ssh \
  -o StrictHostKeyChecking=no \
  meminfo@127.0.0.1 -p 2222 "egrep 'Mem|Cache|Swap' /proc/meminfo"

The result would be something like this.
Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
SSHPASS searching for password prompt using match "assword"
meminfo@127.0.0.1's password:
SSHPASS detected prompt. Sending password.
SSHPASS read:

MemTotal:       16369628 kB
MemFree:          683412 kB
MemAvailable:    8847748 kB
Cached:          6544572 kB
SwapCached:          460 kB
SwapTotal:       2097148 kB
SwapFree:        2071928 kB

Then you can nmap a cluster or Pis (or docker containers) on your LAN and then automate checking how they are doing without adding NodeJS or Python or a health API service.
If you're finished experimenting and want to clean up those rubber-stamped ECDSA fingerprints, you can run:
ssh-keygen -f "~/.ssh/known_hosts" -R "[127.0.0.1]:2222"

Warning: I must remind everyone that even the above with a nobody user can be dangerous if they find some privileged command that has the suid bit set - nobodys could still run as root!


Openning NetworkManager's edit connections window from terminal

The correct command is nm-connection-editor.


I accidently typed the command sudo chmod -R 0444 /

There's no going back or solving this.
All you can do is try running a live ubuntu or some linux dist, access your files push them to cloud or drive, to ensure you don't loose your data and then reinstall OS


This is a workaround that achieves the same goal:

xbacklight -set 77
redshift -t 6100:6100 -g 0.8:0.8:0.8


Can't detect my graphics card (Nvidia GT 620M) on Xubuntu 11.10 & 12.04

This is nvidia-optimus enabled laptop and this isn't supported in linux by nvidia.

Please see discussion over here with same problem.

The laptops with optimus won't work with nvidia drivers. It requires bumblebee to disble nvidia card and use it to some extent via virtualgl

bumblebee isn't a real solution (like when you are using the device for development). see here Can't use nvidia card/driver on optimus notebook.

If your laptop has BIOS option to disable integrated GPU and use only nvidia one then only you can fully use the device.

Or

If the device is  wired to HDMI port you can use the device in an external monitor. For external monitor setup see here → https://github.com/Bumblebee-Project/Bumblebee/wiki/Multi-monitor-setup


Major opcode of failed request: 18 (X_ChangeProperty)

is usually caused by a locale issue. See issue 1420

You quickly check if this is the problem by running:

LC_ALL=C steam

If this is your problem, set LANG=en_US.UTF-8 in /etc/default/locale


Missing disk space. Total - Files != Available

Linux will not remove files from the file system, which are still opened by an application. In your case this could be some large VM images.

Example:

Create a large file check the disk usage. Also use sync to avoid caching effects:

$ sudo sync; df -h /dev/sda1
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda1       886G  278G  564G  33% /
$ dd if=/dev/zero of=large count=1024 bs=10M
$ df -h /dev/sda1
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda1       886G  288G  554G  35% /

Now open the file in a other shell for example with tail and leave it open:

$ tail -f large

Go back to the first shell and delete the file and check the file system size:

$ rm large
$ sudo sync; df -h /dev/sda1
  Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda1       886G  288G  554G  35% /
$ lsof /dev/sda1 | grep large
tail      15255 username    3r   REG    8,1 10737418240  5520283 /some/path/large (deleted)

lsof shows, that the file was delete, but it is still used by some processes. Now go back to the tail shell and terminated it with Ctrl-C:

$ tail -f large
^C
$ sudo sync; df -h /dev/sda1
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       886G  278G  564G  33% /

Back to normal. So you need to find the opened files and terminated the processes holding the file handle.


How can I use a Huawei E1750c USB modem?

Take a look at this answer: How do I set up an MTS MBlaze modem? Placed here for your convenience.

  Have you tried ejecting the modem? Do
  not unmount. Simply eject the USB mode
  which will result in the modem be
  recognized as a modem. Then it will be
  available as an internet connection in
  your favorite Network Manager.

  The setup then will be achieved by
  simply clicking on the connection and
  following easy setup process.

  This worked for me in the Huawei
  Modems listed here: How do i configure
  huawei usb modem

  Give ejecting a try and please inform.

  Good luck!

I hope this can give you a clue.

Good luck!


Nordvpn causes some local services to malfunction from my Ubuntu Server 20.04 LTS

You can bypass nordvpn by whitelisting whatever you need.
You can whitelist ports (e.g. default ssh port 22):
nordvpn whitelist add port 22

You can whitelist whole subnets (e.g. your local network)
nordvpn whitelist add subnet 192.168.0.0/16

To make minidlna work, you can whitelist the UPNP/SSDP broadcast address:
nordvpn whitelist add subnet 239.255.255.250/32

I don't know how much that impacts your privacy but I do know that it gets rid of the pesky error minissdp.c:313: error: sendto(udp_notify=9, 192.168.0.1): Operation not permitted.
This will allow your local devices to discover your minidlna server. To enable actual streaming, you'll also need to either whitelist your local network or the minidlna port (8200 by default).


Reinstall/Reconfigure GUI Ubuntu 2015.04

Finaly found it after 30min or so of more browsing. What i had to reinstall was the ubuntu desktop using:

sudo apt-get remove --purge ubuntu-desktop
sudo apt-get install ubuntu-desktop
sudo service lightdm restart
Switch back to display (ctrl + alt + f7) or reboot (sudo reboot)


Terminal message "Access control disabled"

This error is produced by the xhost program that is used to allow or deny access to the X server for any host.
In other words, this is a tool used to block or allow the usage of the X Server by graphical application that could be ran remotely. As such, it can be a security problem as remote graphical application could be able to directly connect to your X Server and access other local resources.

It is like you have this command configured to run in one the profile file of the shell used. Check if you don't have the xhost command mentioned in one of the profile file :

Globally, in /etc/profile and in any files under /etc/profile.d
Locally, in your home directory in .bashrc (for Bash shell), .profile or any other shell's profile files.

More info about Xhost at this link.


Menu -> System -> Preferences -> Keyboard Shortcuts (in gnome)
For xfce I found this:

  GNOME directly queries X11 for its media keys support, so you don't need to manually configure it. However, Xfce doesn't, and you'll have to manually get the keycodes and set the symlinks. This is actually kind of simple if you know how to do it. Here's how:

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


You SHOULD add imaps to the list of protocols in the /etc/dovecot/dovecot.conf to enable port 993.

protocols = imap imaps


OpenCV says module object has no attribute face

As mentioned by steeldriver, I needed to download opencv contrib modules and compile them with opencv to get the face recognition features.


You should hit Escape and use the write command:

:wEnter

This will write the file to disk and keep the file open.

:wqEnter

Will write and quit the editor.


Troubles with Acrobat Reader within Firefox?

You could try to embed Evince, the default PDF reader, into Firefox. To do this install the mozplugger package.

sudo apt-get instal mozplugger

You can then create a file in the '.mozilla' folder in your home folder called 'mozpluggerrc' and edit the contents to add the following:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
application/x-dvi: dvi: DVI file
    : evince $file

Mozplugger Documentation


There is the lucid-bleed PPA. It is a PPA that backports the latest stable versions of several applications to Lucid Lynx.

Add it like this:

sudo add-apt-repository ppa:lucid-bleed/ppa

To install the latest version of Octave you just have to update your archives and install it.

sudo apt-get update
sudo apt-get install octave

If you already have Octave installed then just do an upgrade.

sudo apt-get update
sudo apt-get upgrade


i just bought an HP HSTNN-105c laptop online from the previous owner. KNOW NOTHING...HELP

There is a manual. It's well laid out for new users and will answer most basic usage issues.

Other than that, just putting each of your questions into Google (or our search bar) will get you a result. You aren't the first Ubuntu user; these are all problems that somebody has asked and has been answered.

Other than that, you seem fairly determined to do everything but for no discernible reason. That's not a healthy way to learn anything. Focus on what you need to do right now, find out how to do that, and carry on.


“You do not appear to be using the nvidia x server" in BumbleBee

You probably already solved this or switched to another setup by now but...

To run bumblebee drivers on steam games, you can either open steam with optirun (or primusrun), which will run steam and all the games on it on the GPU, which uses more power just having steam open, or you can open steam normally and choose which games to run on the GPU by right-clicking the game->Properties->Set Launch Options->optirun(or primusrun) %command%

If the steam/the games configured for the GPU don't open after you try that, switch commands (optirun->primusrun or primusrun->optirun). If it still doesn't work there's a problem with your bumblebee driver installation.

To make nvidia-settings open with the desktop/menu shortcut:

Open a terminal
sudo nano /usr/share/applications/nvidia-settings.desktop
Find the line starting with Exec=
Make the line 'Exec=optirun nvidia-settings -c :8' (without the quotes, of course)
Ctrl+O and Enter to save
Ctrk+X to close


Network Manager, create multiple lan connection configuration for the same wired card

On Ubuntu 11.10 with Gnome 3, you will only get the stripped down version of the gnome control panel's network manager (like when you are running gnome-control-center network from terminal).

If you want to configure a second (or more) wired network connections, run nm-connection-editor. It lets you add new connections.


"What kind of things should I check to track down the root of this issue?"

You need to look at the stuff that's common to both transfers. Were you transferring the same file? Could that file be croupt? Were you out of ram for file caching? How was your CPU?

Encrypting an partition usually has this type of side effect. Remember in order to transfer your file you have to decode it locally then transfer it to the destination. This is transparent to the copy program/calls but it still has to be done. If you are trying to transfer huge files, the memory that holds temporary decrypted copies of the file (well bit of the file) may have been full.

Check your free memory during a transfer using free -m or just free and see what it says is available for buffers and cache.

Also keep in mind that Linux caches file operations. So just because the user process thinks data has been copied doesn't mean anything has actually be written to physcal media. This causes smaller files to write really "quickly" but larger files have a "burst" of speed, then when the cache fills they slow down. It's not usually so noticeable, but if your caches are full, or your low on free memory (for new caches) or your CPU is under-powered (very common when people encrypt things), then it's going to take longer.


How to update from 12.04 LTS to 14.04 LTS in Terminal

Back up your important data before you start any such thing.

Type the following command to update package list and instal the update-manager-core package if it is not already installed:

sudo apt-get update
sudo apt-get install update-manager-core

Next, type the following command to upgrade the Ubuntu server to the latest release such as LTS 14.04 from the command-line. This is the recommended command as the server has no graphic environment or if the server is to be upgraded over a remote connection using ssh client:

do-release-upgrade

The do-release-upgrade will launch the upgrade tool. You need to follow the on-screen instructions.


It depends on what metapackage you've installed TeXLive with. There's basic ones, regular ones and full ones. I believe that the installation of texlive-full does pull XeLaTeX it in.

If you need the command-line tool xelatex, you'll just need to install texlive-xetex.

To teach fishing, rather than feed you fish:

Go to packages.ubuntu.com
Scroll down to Search the contents of packages
select packages that contain files whose names end with the keyword
fill in xelatex
Hit search.
Enjoy the results, e.g.

/usr/bin/xelatex   texlive-xetex


First of all. Apache and Nginx are Web servers - not dns servers. They do not resolve anything. This question has nothing to do with DNS, but everything with how web servers handle requests.

  I need app1.mydomain.com to be resolved by apache and
  app2.mydomain.com to be resolved by nginx. Both on port 80. Is it
  possible?

No, this is not possible. Two applications cannot listen to the same port. You can solve this in two ways:

Have Apache listen on port 80, and proxy requests for app2.mydomain.com to nginx, listening on a different port, and serving app1.mydomain.com straight.
Opposite. Have nginx proxy for Apache.

Or - make both hosted by the same webserver. Apache and nginx are in many instances interchangeable on the technical level, so from the applications perspective it should not really matter. Management-wise they're rather different.

I note that you run nginx on port 8080, so I assume you want to use apache  as a proxy. Then create a new Virtual Host for apache, e.g. /etc/apache2-sites-available/app2.mydomain.com.conf:

<VirtualHost *:80>
   DocumentRoot "/var/www"
   ErrorLog "logs/app2-error_log"
   CustomLog "logs/app2-access_log" common
   ServerName app2.mydomain.com
   ProxyRequests Off
   <Proxy *>
          Order deny,allow
          Allow from all
    </Proxy>
     Proxypass / http://localhost:8080/
</VirtualHost>

Then run sudo a2enmod proxy_http; sudo a2ensite app2.mydomain.com; sudo service apache2 reload.

This will enable mod_proxy, mod_proxy_http and make apache forward any requests for the VirtualHost app2.mydomain.com to nginx, which according to your config is running on port 8080.

I've not tested this config, so some tweaking may be needed.

As a sidenote: why do you need nginx? According to the nginx setup it just proxies a request for some other webserver running on port 2368. You can proxy directly using apache...

mod_proxy-documentation may be handy in tweaking it.


Tor browser bundle - Vidalia is missing but appears to be working?

Newer Tor Browser bundles integrate the functionality of Vidalia in Torbutton, a browser extension for Firefox. A standalone vidalia window won't show up. Instead, it looks like this:


Installing Haskell Platform from source on Ubuntu 13.04: Can't find OpenGL

Install the following:

sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglc-dev
sudo apt-get install freeglut3-dev
sudo apt-get install libedit-dev
sudo apt-get install libglw1-mesa libglw1-mesa-dev

Then

./configure
#now build
sudo make install
cabal update

source: http://nathanwiegand.com/blog/2009/07/haskell-platform-on-ubuntu.html


how can I print multiple odt files from the command line?

lowriter -p file.odt does the job for one file. The help text* says it works on multiple files, so you could use lowriter -p *odt to do the lot, or some form of shell script to specify those you want...

I didn't test this on multi files myself, but do use it for singles.

*The output of lowriter --help is helpful!

lpr is sending raw data to your printer, and .odt files are not raw text; it will print a .txt or .asc file OK.


Prevent suspend if logged in via ssh to another machine

You could use caffeine and add the SSH application to the list of applications.


Only HDMI Soundcard listed, not onboard (Ideacenter Q180)

It turns out the Audio is handled by the video driver. The fglrx video driver has to be installed. How this is done was answered in another question. In my case I actually installed "fglrx-experimental-9" package, because even now when sound was working youtube videos were not fluent.

Finally, to get everything working really smothly as a media center pc I recommend installing XBMC.


First of all go here /lib/x86_64-linux-gnu
move these files to /root: libc-2.17.so libdl-2.17.so libm-2.17.so libpthread-2.17.so librt-2.17.so

Commands to go into the directory /lib/x86_64-linux-gnu and copy the files to /root,

sudo -s
cd /lib/x86_64-linux-gnu
cp libc-2.17.so /root
cp libdl-2.17.so /root
cp libm-2.17.so /root
cp libpthread-2.17.so /root
cp librt-2.17.so /root

Then you need to launch bash with predefined LD_PRELOAD:

LD_PRELOAD=/root/libc-2.17.so:/root/libdl-2.17.so:/root/libm-2.17.so:/root/libpthread-2.17.so:/root/librt-2.17.so bash

Commands to remove the files in /lib/x86_64-linux-gnu directory,

rm libc-2.17.so
rm libdl-2.17.so
rm libm-2.17.so
rm libpthread-2.17.so
rm librt-2.17.so

after that dist-upgrade or fix-missing package will works:

apt-get -f install

OR

apt-get -f dist-upgrade


Default editor for git set to nano--how?

My wild guess you have set nano as a default system editor, but you can try to update it with

    sudo update-alternatives --config editor


How to safely install ubuntu studio on second partition where kali linux is now?

1) Make sure you have copied off all data from Kali's partition you might find useful.
2) Delete all the contents of sda2 after booting from the Ubuntu in sda1  .
Create a LiveUSB with Ubuntu Studio after confirming the download of Studio matches its checksum.
3) Shutdown and then reboot with the Studio Live USB.
4) Choose install and select Something Else when it asks for where to install it.
5) Should GRUB2 not give you the option to boot Studio after install completes and the PC reboots, perform a Boot Repair with https://help.ubuntu.com/community/Boot-Repair


If you just use fsck to check the volume you can run

fsck -nf /dev/sda1

n -> dry-run: will not do any change (just checking)
f -> force  : sometimes it says clean but you can force a new check

If you want to fix filesystem errors, first unmount your partition: umount /dev/sda1


If you can navigate to them, changing resolution in Displays to one your monitor can do at a stable 60 hertz or switching the window manager to Marco (no composition) in Mate Tweak are my work-arounds.
Keep in mind my APU is a A12 on a budget Lenovo laptop so YMMV.


The installer was trying to write to the drive treating it as a ext4 partition, however since Windows had been installed on it it may not have been properly formatted as ext4.

Make sure when installing you reformat the entire drive using the default partitioning options (unless you have a specific need to change the options).


convert -bordercolor white -border 20 input.jpg output.jpg

will add a white border of size 20 pixels to image. You just need to find out how much px is an inch (dpi) of image.
More examples can be found here.
In case of my test image, it had saved dpi info in it. I could get it using identivy -verbose and it look like this:
$ identify -verbose tiger.jpg
Image: tiger.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Mime type: image/jpeg
  Class: DirectClass
  Geometry: 600x400+0+0
  Resolution: 96x96
  Print size: 6.25x4.16667
  Units: PixelsPerInch
  Type: TrueColor
...

As you can see, it has 96x96 dpi as units are of type PixelsPerInch.
In that case 2 inches on my image is 192px.


Perf top - warning perf not found for kernel

I'm unfamiliar with your particular kernel version which tells me that are either trying to install software for an unsupported release and should likely upgrade or your running a custom kernel. All I can tell you with any certainty is that perf is in the tools directory of the kernel source tree and that you can obtain the sources for your major version of the kernel here.


a script to shutdown the other pc in the network if they donot respond to ping command

If your question could be rephrased "how do I remotely signal a machine to shut down after I've determined that it can't react to remote signals?" then the answer is "You Can't."


Brother DCP-7065DN, Ubuntu 14.04 64bit: Can print to network printer but cannot use the scan function

Download and install drivers from the Brother website.

Select 'Driver Install Tool' download and install. This will install the lpr, CUPSwrapper and scanner drivers. Make sure you get the right ones for your operating system (i.e. 64-bit or 32-bit). I did this step over and over again and so I can't remember whether the package installed the right ones first time or not. The brother website has instructions for installing the drivers, make sure you follow them.

Open terminal and enter

  brsaneconfig4

This should come up with something like this

    USAGE: brsaneconfig4 [-OPTION]   OPTION:
   -a name=FRIENDLY-NAME model=MODEL-NAME ip=xx.xx.xx.xx
   -a name=FRIENDLY-NAME model=MODEL-NAME nodename=BRN_xxxxx
               : Add network scanner
   -r FRIENDLY-NAME [FRIENDLY-NAME ...]
               : Remove network scanner
   -q          : Query supported models and available network scanners
   -d          : Diagnosis
   -p          : Ping (for network scanners)
   -s:[LABEL]  : Save current configuration
   -l:[LABEL]  : Load saved configuration

Find the IP address by plugging in and turning on the printer and then hitting the menu button until you get 'Network' press the down arrow button to select 'TCP/IP' then  'IP Address'. Alternatively you can do this by using brsaneconfig4

    brsaneconfig4 -p

Then you'll have to create your scanner for the scanner programs to see by entering this in terminal

    brsaneconfig4 name=put the name you want to call your printer here model=DCP7065DN ip=xxx.xxx.xxx.xxx

where x's are the numbers from the IP address you've just discovered. Then RESTART YOUR COMPUTER!!

    sudo reboot

To get the scan button to work you need to run the scan key (this bit is apparently 64bit or 32bit specific) so there may be some issues here if you don't have the right one.

    brscan-skey

then test if it sees your scanner

    brscan-skey -l

this should show you the name you just entered for the scanner.

Edit Apparently you need to run brscan-skey command once every session that you want to use the scan key. Open Startup Applications and enter

brscan-skey

as a command to get it to run automatically.

Apparently you need to have gimp installed to use the printer/scanner scan button. It is certainly the program that opens the scans on my computer.

You need to have installed sane-utils, but brother mention this in their instructions.

All done!
Good luck!

p.s The printer stopped working over the network for only my ubuntu computers after an update. I found that it was not accepting full length ip addresses (that is 3digits.3digits.3digits.3digits). It started working again after I took out any zeroes at the start of any 3digit sequence, so .066 became .66 in the device url section of the printer properties under printers in the general settings e.g

socket://192.168.001.066

became

socket://192.168.1.66


How do I count the clicks of the mouse buttons?

xinput can do what you need, Lukasz. You can have an one-liner (well, not exactly an one-liner, but you'll press ENTER only once :-D) for that, but first you must do some work. I swear it's pretty easy, I'll just explain most of the things here for the sake of clarity.

Open a Terminal, and type:

xinput list

You'll get a nice list of pointers, keyboard buttons, etc., like this excerpt from mine:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ USB+PS/2 Optical Mouse                    id=10   [slave  pointer  (2)]
⎜   ↳ PS/2 Mouse                                id=13   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS GlidePoint                  id=14   [slave  pointer  (2)]

My USB mouse is right at the second line, and you see that its ID is 10. Locate your mouse in the list and note its ID, you'll need it for the main command for what you want.

If you want to check if you got the right ID, run xinput test <id>. If you move the mouse, click buttons, etc., you should see lots of info lines going up on your Terminal. It's listing everything you do with your mouse. If nothing happens, try another id from your pointers list that makes sense to you, you probably chose the wrong one at first (this really shouldn't be that hard).

When you finally found the correct id, run this command:

xinput test <id>|sed -une '/release/ {      x
     /^$/ s/^.*$/1/
     G
     h
     s/^/      /
     s/^ *\(......\)\n/\1  /p
     x
     s/\n.*$//
     /^9*$/ s/^/0/
     s/.9*$/x&/
     h
     s/^.*x//
     y/0123456789/1234567890/
     x
     s/x.*$//
     G
     s/\n//
     h
}'

Copy the above as it is and paste it. Before you hit ENTER, replace <id> with that id you found. When you run it, you let it there while you proceed with using the system. Anytime you want to check how many clicks were registered, you just take a look at the terminal.

Some important comments:

Unfortunately, I'm not so good at
console, shell, commands, etc. I'm
pretty sure someone can improve this
or provide a better solution. There's
an inconvenience with my solution:
you don't really have results at real
time. For some reason, there seems to
be buffering, and you have to
generate more mouse events to read
the older ones. So if you do a click
and it's not shown, move your mouse a
bit and soon the last click will
show. Sorry about this, but I've
tried some things, but don't know how
to solve that yet. Hope it's not that
bad for you.
As you see, any
click is being counted. In case you
want to count the clicks for only one
of the buttons, replace 'release' for
'release 1', 'release 2', 'release
3', well, you got the idea. If you
want to count them all, but with
separate stats, run the command (with
the proper button indication) in a
separate terminal.

The approach I've used: xinput list <id> does the dirty job, showing everything that happens with the mouse. Then I redirect this output to sed, which will parse only lines with 'release' events. I guess it's okay to consider that a 'release' event ends the 'click process' (button down and then up). The sed script not only shows the lines with 'release', but also numbers them. This script was directly copied from info sed (section 4.7), and surely could be improved.


pactl -h

I just tried parameters like

pactl set-sink-volume 0 12000

To mute

pactl set-sink-mute 0 1


On Ubuntu 15.04 cannot use svn command with ssl v3

Try this:

Just go into ~/.subversion , and edit server, add the ssl-client-cert-file and ssl-client-password, maybe it will work.


You br0 bridge only routes traffic in your X.Y.3.0/27 subnet.

You ought to create another bridge interface for your second subnet, or expand the size of your br0 netmask.

For example, you could make another bridge, br1. You'd need to use 255.255.255.248 as your netmask in order to use X.Y.4.101 as a host IP; if you instead use 255.255.255.252, X.Y.4.101 would be your default gateway.

auto br1
iface br1 inet static
address   X.Y.4.100
netmask   255.255.255.248
gateway   X.Y.4.97
broadcast X.Y.4.103
bridge_ports eth0

If you want to join those two subnets into one which all use the same bridge interface (that is, you are not using any IP addresses from that new, larger subnet anywhere else) you can simply recalculate an appropriate netmask and broadcast address:

auto br0
iface br0 inet static
address   X.Y.3.7
broadcast X.Y.7.255
netmask   255.255.248.0
gateway   X.Y.3.1
bridge_ports none
bridge_ports eth0

The disadvantage of using this second approach is that you wind up creating one very large subnet of 2048 address, from X.Y.0.0 - X.Y.7.255

If you were willing to do some tinkering with your routing table (and I cannot recommend this suggestion, as it would break CIDR-style notation and routing) you could create a more-complicated netmask for such a subnet, excluding more IP addresses That's generally a bad idea for a whole bunch of reasons.


Access denied when trying to re-install lamp

I managed to fix it by killing all mysql processes running: ps aux | grep mysql lists the processes and then killing them with sudo kill -9 [PID]. that allowed me to start a mysqld_safe process with the --skip-grant-tables flag and this allowed me to get into mysql with mysql -u root. Following this further to reset the password for root: https://help.ubuntu.com/community/MysqlPasswordReset

Also the password column has been changed to authentication_string in the user table in mysql_server 5.7 (latest version as of now).

After doing this I got it all installed and I can access phpmyadmin now!


First, swap space doesn't generally result in significant speed increases. Swap space is used when RAM fills up, so it enables you to run more programs in a limited amount of RAM. Because disk access is slower than RAM access, by the time you need swap for this purpose, your system's speed will start to decline. Swap space is also used by suspend-to-disk operations, and for that purpose, you need at least as much swap space as you've got RAM. (That said, because Linux uses RAM for disk caches, putting little-used data in swap space can result in more disk-cache use, which can increase speed just a little, so there can be some speed benefit to having swap. I don't have any benchmark data handy, but AFAIK this effect is usually pretty small.)

Second, you can convert partitions from primary to logical form with my FixParts program, which is part of the gdisk package in Ubuntu. See the FixParts Web page for more information and documentation. You may need to resize at least one partition using GParted to make this conversion, but you'd need to do this to create new partitions anyhow, so that's probably not too big a hurdle.

Finally, the 4-primary-partition limit applies to the older Master Boot Record (MBR) partitioning system. The newer GUID Partition Table (GPT) system has a limit of 128 partitions by default, and that value can be raised. GPT doesn't use extended or logical partitions. My hunch is that you're using MBR, since if your computer is booting Windows from the disk you show, it would need an EFI System Partition (ESP) to boot from a GPT disk, and your screen shot shows no hint of such a partition. Thus, I don't think that this paragraph really applies to you. I mention it on the off chance that your screen shot is incomplete or misleading, and for the benefit of other readers with a similar question who might be using GPT.


vsftpd can't login after adding a new user

Make sure all users are actually system users ( added via useradd or while system installation ).


here you go  http://www.mozilla.com/en-US/firefox/all-beta.html


Ok, so here's how I solved the problem.

I restored my Windows 8 graphical bootloader, which wiped grub out of the boot partition. At that point I only had Windows 8 and Windows 7 in the boot menu. I added Grub 2 to the Windows 8 bootloader menu using EasyBCD. Now I can enter the Grub 2 boot menu from the Windows 8 GUI bootloader without any problems.

I guess it still is a chainloading type of boot, but now I don't have any legacy bootloaders.


What to do after Installing 12.04 LTS via WUBI?

As far as knowing if your video card's driver is installed, you can look under System Settings --> Details.  Also you can click on Additional Drivers, to see if any drivers needed.

For installing Codecs, you need to install Ubuntu Restricted Extras.  You can do that from the Ubuntu Software Center, or by clicking below

As far as making Ubuntu look like window, Why?:) You can do that  by installing themes.  You just have to look for one that you like, and install it.  Also you may want to take a look at LXDE.  I have tried installing the Windows 7 theme, but with no luck.


If it's a NTFS partition, you should follow the message advice, boot into a machine with windows then plug the drive. Check the which is the letter assigned to the drive and run the command line, press Win + R then type cmd and hit enter.

You will get the command prompt, write:

chkdsk /f LETTER:

LETTER being the letter assigned to your drive. Wait a long time (depends of the size of the drive) reboot windows twice with the drive plugged, then try to access from Ubuntu.


How can we make connecting to openvpn access server not prompt password?

Reconfigure your OpenVPN unit and file that it refers to for the configuration to provide a username/password file.
From this post on the OpenVPN.net forums, add this to your OpenVPN configuration file (NOT the SystemD unit!) that 'client' uses:
auth-user-pass login.conf

and then configure the login.conf file to have the username and password in this format:
username
password

Make sure that you use the full path to the file for login.conf if it's not in the OpenVPN directory, and whatever user that OpenVPN unit calls can access it.


Just mount your drive:

 sudo mount /dev/sdb1 /mnt


Ubuntu 16.04: Front Headphone Jack Not Detected

Can you plug in your headphones and open Alsa Mixer in terminal

alsamixer

Check if there's Headphone volume slider. If there is, set Auto-mute to 'Enabled' and change your headphone's volume.


VirtualBox Guest Additions installation problem

In terminal...

sudo apt-get update
sudo apt-get install build-essential gcc make perl dkms
reboot

then reinstall the VB Guest Additions.

Update:

purge virtualbox-guest-dkms
purge virtualbox-5.2 and any other virtualbox softwares
ls -al /lib/modules/$(uname -r)/updates/dkms and look for any leftover virtualbox kernel drivers. These need to be manually deleted.
dpkg -l *virtualbox* and dkms status should show no virtualbox software
install virtualbox-5.2 and create your VM
in the VM, choose the Devices menu, then "Insert Guest Additions CD Image"
it'll ask if you wish to install the Guest Additions
Note: if it doesn't automatically ask to install Guest Additions, you have to do it manually.

find the CD icon, on your desktop, or in Files, and open it
open a terminal in this directory
sudo ./VBoxLinuxAdditions.run


Installed google chrome beta but it shows stable version

Check your local apt-cache like so:

$ apt-cache policy google-chrome-{unstable,beta,stable}

google-chrome-unstable:
  Installed: (none)
  Candidate: 31.0.1626.0-1
  Version table:
     31.0.1626.0-1 0
        500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages

google-chrome-beta:
  Installed: 30.0.1599.37-1
  Candidate: 30.0.1599.37-1
  Version table:
 *** 30.0.1599.37-1 0
        500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
        100 /var/lib/dpkg/status

google-chrome-stable:
  Installed: (none)
  Candidate: 29.0.1547.65-r220622
  Version table:
     29.0.1547.65-r220622 0
        500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages

Here we can see the three versions of Chrome, which are installed and what's available in whatever distribution.

If you're running Chrome and haven't restarted it since upgrading, do that. Restart Chrome.

If chrome://chrome/ still tells you you're on a different version, check the output of ps aux | grep chrome (while it's running). You should see a load of instances of /opt/google/chrome/chrome running. We can check which package is providing that binary:

$ dpkg -S /opt/google/chrome/chrome
google-chrome-beta: /opt/google/chrome/chrome

If the path is different to /opt/google/chrome/chrome, do the above with the altered path. Whatever it is, it's interfering with your installation.


If you want apt to find http://ports.ubuntu.com/dists/eoan/, you need to change the URL in the line to just http://ports.ubuntu.com/. ie:

deb http://ports.ubuntu.com/ubuntu eoan main


Cannot adjust brightness on on an LG laptop with an Nvidia card

Try this: https://askubuntu.com/a/120796/54126
Confirmed working solution on clean Ubuntu 12.04 beta2 with 3.2.0-22 kernel with latest nvidia drivers. FN keys work, no need to make changes in grub or Xorg.conf


Error found when loading /home/[User]/.profile

I had the exact same issue and this is really useful, and the comments from synacticgeorge up are the fix.

Reboot
On login screen, CTRL+ALT+F3 and login in TTY
nano .profile   (or vi, gedit, whatever)
Remove the offending brew line.
Profit


Problem runing Matlab R2013a in Ubuntu (aparently, something to do with Java)

The error message is clearly indicating an error with your user's write permissions on the file mentioned.

Anytime you run an application that saves configuration information in the user's home directory using sudo, you run the risk that the root user will take ownership of those files/directories, making them unwriteable for your regular user when you then try to run the application without sudo.

Usually this can be fixed easily by restoring the intended ownership using the chown command e.g.

sudo chown -R $USER:$USER $HOME/<confdir>

or this specific case

sudo chown -R santiago:santiago /home/santiago/.matlab


Set new keyboard shortcuts for switching between desktop activities

KDE Activity Manager shortcuts

KDE System Settings > Shortcuts and Gestures > Global Keyboard Shortcuts > KDE Component: KDE Activity Manager - Add custom shortcuts


How can i install Canon PIXMA ip2772 Driver on ubuntu 14.04?

I am also using canon iP2772 . its basically plug and play. i just brought it , turned it on and that's it . nothing more. it shows it as 2700 series. did you try going to the printer option and see that if it is already connected?


Choosing shutdown instead logs me out of my session

This is a bug. I've experienced the problem as well.  Here is a bug report on the issue: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792


How to run BitTorrent Sync web browser gui via ssl

Easy way

Use btsync configuration to achieve this, see ./btsync --dump-sample-config configuration keys "force_https", "ssl_certificate", "ssl_private_key".

Even this seems simpler, I don't like that btsync user has access to certificate files. That's why I still prefer the next method.

Hard way

I found the solution in cyberciti.biz/faq/howto-linux-unix-setup-nginx-ssl-proxy using nginx as proxy server. Successfully installed and configured on my ubuntu server installation.

Further steps assume that you have created SSL certificates in directory /etc/nginx/certs/ (ssl.crt and ssl.key).

Install nginx

sudo apt-get install nginx

(Optional) Deactivate default configuration

sudo rm /etc/nginx/sites-enabled/default

Create proxy configuration in /etc/nginx/sites-available/proxy with contents

server {
    ### server port and name ###
    listen          443;
    ssl             on;
    server_name     your-server-name.com;

    ### SSL log files ###
    access_log      /var/log/nginx/ssl-access.log;
    error_log       /var/log/nginx/ssl-error.log;

    ### SSL cert files ###
    ssl_certificate      /etc/nginx/certs/ssl.crt;
    ssl_certificate_key  /etc/nginx/certs/ssl.key;

    ### Add SSL specific settings here ###

    ssl_protocols        SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers RC4:HIGH:!aNULL:!MD5;
    ssl_prefer_server_ciphers on;
    keepalive_timeout    60;
    ssl_session_cache    shared:SSL:10m;
    ssl_session_timeout  10m;

    ### We want full access to SSL via backend ###
    location / {
            proxy_pass  http://{destination-host}:{destination-port};

            ### force timeouts if one of backend is died ##
            proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

            ### Set headers ####
            proxy_set_header        Accept-Encoding   "";
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

            ### Most PHP, Python, Rails, Java App can use this header ###
            #proxy_set_header X-Forwarded-Proto https;##
            #This is better##
            proxy_set_header        X-Forwarded-Proto $scheme;
            add_header              Front-End-Https   on;

            ### By default we don't want to redirect it ####
            proxy_redirect     off;
  }

}

Change values your-server-name.com, {destination-host}, {destination-port} and other values accordingly.

Enable the configuration

sudo ln -s /etc/nginx/sites-available/proxy /etc/nginx/sites-enabled/proxy

Restart nginx

sudo service nginx restart


Trusty: Caffeine doesn't appear in panel after update

The 2.7 release removes the user interface and manual operation. Caffeine is now fully automatic: When the active window is full screen, Caffeine inhibits desktop idleness.

This has been changed in version 2.8 (released January 15th, 2015), which has:

a caffeine program that works as v2.7: desktop idleness is prevented for full screen applications – fully automatic with no UI;
a caffeine-indicator program that works as v2.6 and earlier: an icon is shown in the panel that enables/disables desktop idleness;
a command caffeinate, that prevents desktop idleness for the duration of a command, e.g. caffeinate steam will prevent the screen saver while steam is running.


How do I solve emacs launcher icon failures?

Run this command:

sudo wget http://garethrees.org/2009/08/19/emacs23/emacs.svg -O /usr/share/icon/hicolor/scalable/apps/emacs23.svg


I had the same problem with 12.04 and dovecot, went Googling and have a solution.

Found  a patch in this post:

Downloaded the patch (as attachment.bin) and then followed these (old) instructions:
http://www.cmiss.org/cmgui/wiki/BuildingUbuntuPackagesFromSource
on building an Ubuntu package from source.
You want the 'samba' package.....

(create a folder somewhere with space to download 23MB....)

apt-get source samba
apt-get build-dep samba

Now you want to apply the downloaded patch to the file: source3/modules/vfs_catia.c in the samba-3.6.3 folder. I couldn't work out how to apply the diff using 'patch' so applied it manually - it's only 3 lines. Rebuild the samba package, in the samba-3.6.3/ folder:

dpkg-buildpackage -rfakeroot -b

My build borked, but it did create:

samba-3.6.3/source3/bin/catia.so

which when copied into

/usr/lib/samba/vfs/catia.so

and restarting Samba gives proper vfs catia character mapping :-)

Thanks to Günter Kukkukk for the patch!!!


How to use mouse scroll to hide windows?

You're in luck! Just the other day I was trying to do this and found out how.

Press Alt+F2 to bring up the "Run Application" Dialog
Type in gconf-editor and then press Enter
Go to apps -> gwd
Double click on the mouse_wheel_action row
Type in shade as the value. Press okay and voila!


Is it possible to duplicate a file or folder in nautilus directly?

Inbuilt shortcut

You can drag files while holding down CTRL to copy them.

Keyboard independent solution using a Nautilus script

Here's a short Nautilus script that should cover your use case:

#!/bin/bash
#Nautilus script to duplicate selected files/folders

while [ $# -gt 0 ]; do

    echo "$# file(s)/folder(s) left to duplicate."
    ORIGINALITEM="$1"
    DUPLICATEITEM="${ORIGINALITEM} (copy)"
    cp -r "$ORIGINALITEM" "$DUPLICATEITEM"
    shift

done
echo "Done."

Installation instructions

Note: This is a very simple script and will fail if a duplicate file of the same naming scheme already exists in the same directory. It's also not as elegant as the naming Nautilus does by default ( (copy) is inserted after the extension).


That looks more that your xserver is not starting instead of your whole server. Isn't it?

Do you get a shell? What do you see on your screen?

Try

 dpgk-reconfigure xserver-xorg

to reconfigure your xserver.

Have a look in your logfiles

 tail -200 /var/log/syslog

or

tail -200 /var/log/Xorg.0.log

for any hints what exactly is going wrong.


From linuxtv.org this Usb DVB-T card should be supported.
So I think that you just need to copy your dvb-usbaf9015.fw in /lib/firmware/

cp dvb-usbaf9015.fw /lib/firmware/

Then reboot and check that your device is well installed:

ls /dev/dvb
adapter0

If this command returns something like adapter0 => good
If it returns nothing => not good

So if it is "good", use your TV application to see if the USB TV Tuner is recognized:

I personally use Kaffeine .
In tab Television | Configure TV, I get a new tab called Peripherique 1.

Note that for French TV, it is necessary to set the source with a shift of 167khz.


First of all, do you know how exactly the virus got onto your pc? Did you open an email, or maybe use a crack for some program that you downloaded from the internet? Was this cracked program maybe the Internet Download Manager? If somehow the virus got executed within wine, it is very well possible that it did some harm, which will probably be only within your wine installation.

If the program that you are running is some suspicious file (e.g. if it is a crack downloaded from the internet) it is possible that this program is itself the virus you are talking about. As someone else already mentioned in the comments, there are alternatives for these programs, that don't require wine to run. For now, you should consider using those. Why did you use Internet Download Manager in the first place, does it provide any functions that other (free) download managers like JDownloader or gWget do not provide ?(I'm asking so that we can provide you with suggestions for linux alternatives that provide the same functionality)

You should also consider installing clamAV, which is a virus scanner for linux. It will allow you to scan your data partition, and remove any infected files. Otherwise, whenever you copy your data to another windows machine, you will risk infecting that machine as well! You can look into this question for more information on clamAV.


There's a simple tool call Etcher which will make loading a .iso file onto the USB and have it boot into Lubuntu installer very easy.

You can find instructions on the site for using the tool, here's a briefer:

Get the .iso file from Lubuntu
Install Etcher here
Plug USB in computer and open Etcher
Select the .iso as the image to flash
Press Flash

The flashing process takes a bit of time, though Lubuntu is a rather compact OS.

From what I've gathered, the Dell laptops allow you to boot to a USB drive by pressing F12 on boot.

Once booted, the installer should launch.


Running Docker Container in Opendaylight

It seems that your machine already use port 8181.
Try using other port or check what uses that port.


Open a terminal and create the folder

mkdir -p ~/.local/share/cinnamon/extensions/

and copy the extracted folder into the created folder, e.g.

cp ~/Downloads/CoverflowAltTab@dmo60.de ~/.local/share/cinnamon/extensions/


Where does Ubuntu Tweak save the wallpaper?

It doesn't appear to cache any images. It saves the current background at /home/<username>/.config/ubuntu-tweak/lovewallpaper.jpg

I gathered this info using lsof - it only saves the files it downloads in a temporary directory while downloading, then deletes it and replaces the current one with the next one.

Gather the backgrounds you want and copy that picture for each one.


Ubuntu is based on Debian, so it's not a big deal that you ran this command. In fact, although labeled as Debian in the Anaconda Documentation website, these are the prerequisites for all Debian-based distributions in order to run GUI packages.
I'm using Ubuntu 20.04 and ran a simulation of installing these packages using the -s flag in apt-get and got the following:
$ apt-get -s install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxcomposite1 is already the newest version (1:0.4.5-1).
libxcomposite1 set to manually installed.
libxcursor1 is already the newest version (1:1.2.0-2).
libxcursor1 set to manually installed.
libxi6 is already the newest version (2:1.7.10-0ubuntu1).
libxi6 set to manually installed.
libxrandr2 is already the newest version (2:1.5.2-0ubuntu1).
libxrandr2 set to manually installed.
libxss1 is already the newest version (1:1.2.3-1).
libxss1 set to manually installed.
libxtst6 is already the newest version (2:1.2.3-1).
libxtst6 set to manually installed.
libasound2 is already the newest version (1.2.2-2.1ubuntu2.3).
libasound2 set to manually installed.
The following NEW packages will be installed:
  libegl1-mesa libgl1-mesa-glx
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst libegl1-mesa (20.2.6-0ubuntu0.20.04.1 Ubuntu:20.04/focal-updates [amd64])
Inst libgl1-mesa-glx (20.2.6-0ubuntu0.20.04.1 Ubuntu:20.04/focal-updates [amd64])
Conf libegl1-mesa (20.2.6-0ubuntu0.20.04.1 Ubuntu:20.04/focal-updates [amd64])
Conf libgl1-mesa-glx (20.2.6-0ubuntu0.20.04.1 Ubuntu:20.04/focal-updates [amd64])

As seen in the above output, most packages were already installed. Only libegl1-mesa and libgl1-mesa-glx are new packages. The situation would be similar if you use another currently supported Ubuntu release, i.e. 16.04, 18.04 or 20.10.
In conclusion, supposing that you use a supported Ubuntu release, you did nothing wrong and you don't need to worry. You correctly installed the required packages as suggested by Anaconda.


php5enmod was introduced in Debian in version 5.4.0~rc6-2 of the package php5 (see the changelog, Ctrl+F is your friend). Since Ubuntu packages are imported from Debian, it is only available in PHP 5.4+ packages in Ubuntu as well.


12.04 drops Wired Network if Wireless connects

Click on the Network Manager applet on the top panel of the screen (where you also choose which wireless network to connect to etc.).

Select Edit connections... → Wireless tab → Edit... for the wireless network your notebook connects to when you lose Internet.

Go to IPv4 Settings → Routes.... In the pop-up window, check the Use this connection only for resources on its network. Confirm your change, if you're using IPv6 you've got to do that also in the IPv6 Settings. Save settings, then disable and re-enable all networking.

Wired network should now supersede wireless network again. (It works the other way round for me - I got a wireless network with Internet and a wired without.)

(Hope I didn't misunderstand the question - I couldn't comment on your question to ask for details because I haven't got enough rep.)


Keyboard shortcut to reveal onscreen keyboard

We can do that by creating a custom keyboard shortcut to the onscreen keyboard. The onscreen keyboard used in Ubuntu is Onboard.

Search for Keyboard and move to Shortcuts tab. Go to Custom Shortcuts and click the + button. After that a small dialog box will appear. Give an appropriate name to the shortcut and enter onboard in the command box. Then, press Apply button.

After saving it, click on Disabled and hold down the new shortcut key that you want to assign to the command.

After that, pressing the keyboard combination will pop up the onscreen keyboard.


cifs mount failing after 16.04.1 upgrade (lts-xenial kernel)

This might not be possible anymore by default. Here is a walkthrough Mount Cifs

There is a note on the page:

Note: Regretfully as from version 3.3.2-1ubuntu3.2 (October 2009) this approach is no longer possible together with the "user" option. A security fix prevents reading the credentials file if you don't have read access to it. You will have to pin the packages at version 3.3.2-1ubuntu3 or 3.3.2-1ubuntu3.1 to continue using this approach as non-root.

Try something like this

mount -t cifs //server/share/directory /mnt/directory -ocredentials=/path/to/cifs.credentials,nodfs


How to lock yourself out of the primary account temporarily?

PAM

A nice not so easy to overcome approach to achieve a temporary lock out from your account is to define rules for the pluggable authentication module pam_time. By doing so we can define a certain time of the day when we are allowed to log in and use our account. Login will result with authentication failure outside these defined hours.

Tell lightdm to use pam_time:

To apply pam_time we edit /etc/pam.d/lightdm to add the following line:

account    required    pam_time.so

Define rules for pam_time:

All rules for pam_time are stored in /etc/security/time.conf. See the manpage for time.conf for details on the syntax. To e.g. deny login for user oleg on workdays from 8:00 a.m. to 5:00 p.m. we add the following line there:

login; *; oleg; !Wd0800-1700

To overcome these rules we may comment out the added lines from a root access (e.g. by booting a live system or with another user account).

Other than restricting access we may consider to further narrow this down to only some services we may not want to have access:

http; *; oleg; !Wd0800-1700

will disable internet access for user oleg on weekdays from 8 a.m. to 5 p.m..


pg_ctl is the postreSQL way to stop postgreSQL (in Ubuntu and Debian we should use pg_ctlcluster which is a wrapper for pg_ctl). The example in that link uses option `-p 5433".

As suggested by naoko in the comments below, use pg_lsclusters to list clusters.

Another way is to give a kill signal to the process running postgresqld. To stop both at once, killall postgresqld might work.

Finally as suggested in the comment by psyCHOder, pgAdmin can also stop the server, but of course that means installing that package.


Difference between Ubuntu Partitions and Windows Partitions

What I did is used gnome-disks utility to get the informations about the partitions, it showed me the names of the partitions and their ubuntu version as well i.e. it showed me that C was sda2 and ubuntu was on sda3 that was D.

My C drive was not a 83-linux partition so I used the same gnome-disks utility to format the partition and changed to partition type to linux 0x83.

After setting up the drive I used MigrateWubi to migrate from D to C, and it worked.

[Added info by Editor]

One can also see which partition is which by running sudo blkid command in an Ubuntu terminal.


Web browser can't access VirtualBox shared folder

My guess would be this is a problem with apparmor. The following command will disable AppArmor until reboot:

sudo systemctl stop apparmor

If it works with AppArmor disabled, you can either edit or disable the AppArmor profile for Firefox.


Only linux-image-5.3.0-45-generic and linux-image-5.3.0-46-generic are currently installed on your system. If you need an older kernel version, you'll have to install them via apt.


Logout/Shutdown taking very long, how to find the problem?

You said that there is no waiting time when you type sudo reboot, right? Well, if that's the case, you can just open up gedit, type in sudo reboot, save it as a .sh file, make it executable and put it in an easily accessible place. Also, make sure to run it in terminal so you can type in the password.


As far as im aware, intel does not provide third party drivers for linux and your graphics will be powered by the generic drivers from the kernel.

Edit

Ive done a bit of investigating, intel graphics drivers for linux are already in the kernel so there shouldnt be anything else to download. They do provide source code for development drivers, if you are inclined to compile them yourself for whatever reason. More info here: http://www.intel.com/support/graphics/sb/cs-010512.htm


Sending normal-urgency notifications via notify-send

The correct syntax is

notify-send [OPTIONS] <summary> [body]

Eg:

notify-send -u normal "Hello World" "Have a nice day"

Have a look at man notify-send

If you want to use an other library (in your case  irssi-libnotify) and there is a bug, create an issue on GitHub.

Example

notify-send -u critical "IRC" "This is a critical IRC notification"


Because the applications used to create those files chose to not give them execution permissions in the first place. If you want to change this then you will need to modify the applications.


Why cedilla-portuguese.sh is in default /etc/porfile.d/ list?

Because it helps those affected as explained in the file.

It needs to belong to some package, and language-selector-common appeared to be suitable. The time it takes to run that test is negligible.


Error while executing read prompt in csh and converting to multiline alias

As you have discovered, the C shell does not have a built-in read function similar to that of Bourne-type shells.

I am not proficient in csh synatax but as far as I know, the nearest equivalent is to use the special variable $< . From man csh:

       $<      Substitutes a line from the standard input, with no further
               interpretation.  It can be used to read from the keyboard
               in a shell script.

e.g.

$ cat myscript.csh
#!/bin/csh

echo 'please enter values'
set a = $<
set b = $<
echo "My values are $a and $b"

which gives

$ ./myscript.csh
please enter values
123
abc
My values are 123 and abc

Note that there are implementation-dependent differences in how assignments from $< handles multi-word input - in particular, the Tenex tcsh does not quote input by default, instead requiring $<:q to get the same behavior as BSD csh. Also there is (as far as I know) no built-in readline editing support equivalent to the bash shell's read -e.

As far as multi-line aliases are concerned, they do seem to work:

% alias jo '\
echo "please enter values "\
set a = $< \
set b = $< \
echo "My values are $a and $b"'
%
% alias
jo
echo "please enter values "
set a = $<
set b = $<
echo "My values are $a and $b"

Testing it

% jo
% please enter values
123
foo bar
My values are 123 and foo bar
%

however it's not a feature that I would recommend relying on.


Of course Dropbox synced only a link, because that is what you put inside a backup directory. But you can do a little trick that should help:

Stop dropbox
Issue following command:

sudo mount ~ ~/Dropbox/backup -o bind
Start dropbox

The command mounts (binds) your home directory to be also visible under ~/Dropbox/backup path. Then dropbox will see it and synchronize. But be careful not to start dropbox without doing a mount, as it will start to resync with empty directory and you'll end with your home directory copy downloaded


SSH Key Registration Not Preventing Prompting of Password

While Ubuntu (running GNOME) uses seahorse and the GNOME keyring to auto import the SSH keys into your SSH Key Agent, it doesn't always do that when you're using Kubuntu or another desktop environment because of different management agents.

For each of the SSH private keys in your SSH folder you want to use, you need to run ssh-add /home/$USER/.ssh/keyname to add each SSH key into the SSH agent's keyring for automatic authenticating to work.


Can't log into Ubuntu 14.04 and no command works!

The issue is that $PATH does not contain necessary directories  like /bin , /usr/bin .
that's why no command is working so export $PATH=/bin:/usr/bin would fix the issue temporarily and you can log in the normal way and edit environmental variables appropriately.


I resolved this issue by adding entry in sources.list & commenting few not required sources

sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ $(cat /etc/issue | awk '{print $1}' | tr '[:upper:]' '[:lower:]')-$(lsb_release -cs) main"

After that, it has asked me to add missing PUB_KEY

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D

After this, I did

sudo apt-get update

Issue resolved


But is that partition still available? Did you install on the whole HD or you explicitly specified the partition to install onto?

I'm thinking of two things now:
1) You installed ubuntu on your harddrive, meaning, it combined those two partitions together as one, and installed on it. All your files are gone, thus :(
2) Your partition is still available, but you'll have to mount it. Try mounting it by clicking on its name in your Home Folder.

Thanks


sshpass is used this way, ie. you have to run an actual ssh command via sshpass. In your case it will be:
sshpass -p password ssh -XC USER@SERVER

So sshpass by itself doesn't have to know anything about X forwarding, because ssh handles that. The only job sshpass does is provide the password to ssh.
Please be aware that specifying a password on the command line (like in the example above) is insecure. sshpass offers alternative methods to provide a password: from file or from an environment variable (details in link).
However, the best method to use ssh without having to type a password is to configure key-based authentication, as @user68186 mentioned. Here is a tutorial how to do that.


Using Byobu, how do you split the screen when using PuTTY?

I know this is an old question - but in case you did not get any answer....

I just started using Byobu with PuTTY, and found that I can use Ctrl+A, % to split the screen vertically and Ctrl+A, | to split the active pane horizontally.

These key commands are based on the screen program. You can find more at the screen man page.

Obviously Ctrl+A is the prefix I'm using, change that to whatever prefix you are using.

Hope this helps someone!


Can't map Esperanto characters to Alt Gr in Ubuntu 14.04 LTS (Trusty Tahr)

If all you want to do is add ĉ, ĝ, ĥ, ĵ, ŝ, and ŭ (and the capital versions) to your keyboard in the third (and fourth) positions, i.e., altgr+c=ĉ, shift+altgr+c=Ĉ, you can edit a file in /usr/share/X11/xkb/symbols. You want to edit the file for the country whose keyboard you use, so for me it would be /usr/share/X11/xkb/symbols/us. (You will have to edit the file using sudo.)

You can assign up to four characters per key (normal, 1 ; shift, ! ; altgr, ¡ ; shift+altgr, ¹).

So for example, in the us file you would change

key <AB03> { [ c, C ] }

to

key <AB03> { [ c, C, ccircumflex, Ccircumflex ] }

The syntax remains the same: jcircumflex Jcircumflex, etc. And the accent on ŭ is a breve accent, so change that one to ubreve and Ubreve.

When you are done you will have to cd /var/lib/xkb/ and sudo rm *.xkm and then reboot or just log out and back in.

There is likely a more simple way to do what you want, but I know this way works, since it's a part of how I made my own (ridiculously) modified keyboard layout.


getting randomly generated passwd for Ubuntu 16.04 cloudimage

You can use libguestfs-tool to clear the root passwd.

    sudo apt install libguestfs-tools
    virt-edit -a disk.img /etc/passwd -e 's/^root:.*?:/root::/'

See http://libguestfs.org/guestfs-recipes.1.html under "Remove root password (Linux)"

But why can't Ubuntu just put up a decent page on how to use their CloudImages for novices???


You need to install the python-boto
 package.


The notice will be something like this:

groupadd: cannot lock /etc/group; try again later.
adduser: `/usr/sbin/groupadd -g 1000 user' returned error code 10. Exiting.

Check if you have any of these 2 files

/etc/group.lock
/etc/gshadow.lock

Remove them (or copy them to a backup) and redo the adduser. Linux locks these files to stop two or more from editing the same file


Look for Disk Utility on you dash (as an option press Alt+F2 and type palimpsest)

Click on the disk you want information from, to test it click on Benchmark

To start benchmark, select Read only or Read/Write benchmark


SOCKS is a proxy server that allows TCP based application data to relay across the firewall, even if the firewall would block the packets. The SOCKS protocol is independent from application protocols, so it can be used for many services, e.g, WWW, FTP, TELNET, and others.
sockd IPaddress -j DROP , here once your proxy server has received any type/service bases request from the given IP at IPADDRESS field it will drop all the traffic from that IP.

This is similar to

iptables -I INPUT -s xxx.xxx.xxx.xxx -j DROP

In IPTables.


Control the screen resolution of an external projector with a long cable

The Lenovo W530 (and probably a series of other laptops) have both a VGA and a (Mini)DisplayPort video exit. When using the Mini DisplayPort with a VGA adapter, the discovery of the projector's resolution works (mostly) reliably.

While this is another cable to carry around, it solves the embarrassment of not being able to project.


How do I stop the steam-launcher process? It's stck in progress. Ubuntu 16.04

Open a terminal using Ctrl+Alt+T and type sudo xkill. It will prompt you to click on the process you wish to terminate. Click the Steam window. That should do it.


Packet loss when configuring multiple networks Ubuntu 14.04.2

Do you have two separate NIC's for each interface?  To the best of my knowledge, a single NIC can't run on two separate networks, so if you're configuring it to behave like such, that could explain your packet loss.

Have you looked into doing a bridge on your interfaces?


PPA error while installing Albert application launcher in Ubuntu 18.04

Albert is my favorite quick launcher, so I have it installed in Ubuntu 18.04. The errors you are getting appear to reflect temporary or perhaps permanent problems with the PPA.
Installing through PPA
The User guide of Albert refers for more instructions to a site of openSUSE. There, you click on the Ubuntu icon. You will find instructions there to connect to a PPA that is different than the one you attempted.
Installing through a .deb installation file
I prefer to install Albert by downloading a .deb installation file. The advantage is that you do not need to add an external PPA. The drawback is that the program will not automatically be updated as new versions appear. Depending on how you see it, this might actually be an advantage. Albert is in strong development, and a new version may sometimes have issues.
The second link on the page, "Grab binary packages directly", allows you to download 64 bit or 32 bit .deb installation files.. Right-click the downloaded .deb and select "Open with software installer". This will install the .deb file using Ubuntu software.


Fullscreen Still Has Taskbars at Top and Bottom

After some more Googling, I stumbled upon a fix for this problem.  Open a terminal and type the following commands:

sudo add-apt-repository ppa:oli/compiz-place-patch
sudo apt-get update
sudo apt-get upgrade

Once all that gets done downloading and installing, restart your computer.  The bars at the top and bottom should now be absent when a video is fullscreen.

If this does not work for you, here is the bug report forum in which I found the answer.

https://bugs.launchpad.net/compiz-core/+bug/976032

It contains other possible solutions to this problem which may be helpful.


add unallocated space to extended partion

The unallocated space must follow a partition to expand the partition into that space.  You may need to move partitions around to make this happen.  Moving partitions can take a very long time, and if the process is interrupted, your data will be lost, so make sure you backup first.


Logitech USB headset not working on 12.04

Finally the headset is usable now.
I just did an update recently, also additionally I've updated from the ppa:ubuntu-audio-dev/ppa

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa

sudo apt-get update; sudo apt-get dist-upgrade -y

Now the usb headset is on the input and output tabs.


Regarding the error message, your fstab probably contain a duplicate entry for the disk having the UUID 47862f8f-0d45-4f1e-94f1-bb9ce2b88d23, and you would have to edit your /etc/fstab file to correct it.

If you're not sure about how to mount properly you disk, you can have a look at https://help.ubuntu.com/community/Fstab

Posting your /etc/fstab would help confirming this and editing my answer to get it more detailed on how to fix.


Next, I used my father's USB to transfer another file from my netbook to his laptop (my USB was with my teacher at the time) and then the USB got infected.

First, how do you know? Have you scanned it? What does the virus do? How did it get there, or do you not know?

  So it means that a virus from the library computer (which runs on Windows 8) got into Ubuntu

I'm not sure what you mean here. You plugged a USB with a possible Windows virus into an Ubuntu laptop. Now maybe the virus tries to run itself as soon as you plug it in - I guess that's possible. If it is a Windows virus, maybe it runs this command:

move . C:\Program Files\NotAVirus

to move the virus to program files. But in Ubuntu there is no path called C:\Program Files\NotAVirus, or any move command. A virus running that command here, would get this error:

move: command not found

So lets summarise:

A virus is at school - possible, although unlikely in my opinion.
It moves to your USB (USB 1) - quite possible
It moves to Ubuntu - almost impossible. Okay, so you can write a virus for Linux, and you could even write one for Windows and Linux, but it's 3 or 4 times the amount of coding and gets you maybe 2% extra computers being infected. Unlikely that someone would.
Assuming it is a Cross-OS (Windows and Linux) virus, it moves itself to your Ubuntu laptop, and does what?

If you have WINE installed, so you can run Windows programs (.exe files, like SketchUp or Microsoft Word). A virus could run with WINE, but it is still limited to the artificial WINE environment.

By no means am I saying it hasn't happened, but I really don't think it has.

Have you noticed any files going missing, the computer slowing down, are there any strange processes running in System Monitor, or unusual internet connectivity?


What does "inactive" mean in "suspend when inactive for xxx mins"?

Inactive

No user interaction happened for the period of time specified.

A user interaction is a mouse movement, a button click, or a keyboard key pressed/released.

The settings allows for multiple levels of inactivity. First the screen saver is shown, a little later you can suspend/hibernate or minimize electricity use (i.e. make a PCI board go to a sleep mode like because it is not used for long periods of time.)

On a server, this can be a problem. Some servers allow for a Wake On LAN (WOL) setting in their BIOS / OS, but that takes a little while and many times the client will not wait long enough for the server to wake up.

Also, certain things such as network traffic can be considered to be a user activity. But I do not think that X11 offers that option. My server such goes to its screen saver even if the network runs full time all day.


What can I backup to avoid re-downloading the updates I have installed if I am forced to erase & install Ubuntu?

If want to backup your updates & installed packages. Just copy /var/cache/apt/archives to some another location and copy them back after fresh install. You will save many packages to be re downloaded.

Doing the above would be easy using AptonCD

Also you can use remastersys to create image of your current system and install from it with updated package and installed files. Probably it also keeps track of your settings. I'm not sure about the last feature.


How do you investigate a system crash when there are no records/logs?

After talking to guiverc in the comments, I realized that I actually had to have a package called linux-crashdump. But because the server was installed using a minimal Ubuntu template, It did not come with this package preinstalled so when the crash happened nothing was logged. That's why I couldn't find anything.
For anyone who's investigating their crash reason and wonder why there are no log files in /var/crash, make sure you install linux-crashdump so hopefully next time you can have something to look at ;)


Epson V500 no longer working after 16.04 upgrade

The problem is that you did not install iscan-plugin-gt-x770_2.1.2-1_amd64.deb. This scanner needs a plugin.

If you go to http://download.ebz.epson.net/dsc/search/01/search/searchModule, search for V500, you will find the whole bundle with iscan and the plugin to install.

If you install the plugin deb, the scanner will start working.

The direct link for the bundle is

http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=EN&CN2=&DSCMI=47266&DSCCHK=0093667d7f2f01295a0f7473e43f69142fca8f87


Lets define a new shortcut for it (\q -- please choose a better one)

:map \q "aditcat<C-x><C-r>a<ESC>

Explanation (first position in the tag to be removed):

"adit  delete inside the current tag and save it in register a
cat    change arround the current tag (including the tag) by
<C-x><C-r>a<ESC> the contents of register a

After testing, insert it in your .vimrc or similar.


How to make the apt autocompletion work in minimal system (in LXC container)?

OK, I found the problem.

There are 4 essential things required for auto completion:

Bash
Executable script /etc/bash_completion (this is the part I was missing)
Not-executable scripts in folder /etc/bash_completion.d. I believe they get installed silently together with the associated packages.
Execution of the script /etc/bash_completion within the Bash (the standard ~/.bashrc takes care of that)