Ubuntu server cannot access internet, however can use SSH

When you set a static IP address, you must also set DNS nameservers.I suggest you amend /etc/network/interfaces to:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
    address 192.168.1.120
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 192.168.1.1 8.8.8.8

Restart the interface:

sudo ifdown eth0 && sudo ifup -v eth0

Test:

ping -c3 www.ubuntu.com

Your /etc/resolv.conf is also incorrect. Please amend:

nameserver 127.0.1.1


How to remove gnome settings from ubuntu 20.04 with unity desktop?

After you've install Unity Desktop and, logged into it, use:

sudo apt remove ubuntu-gnome-desktop
sudo apt remove gnome-shell

This works for for Ubuntu 16.04 to 20.04 and even 20.10 (Groovy). Source:

Ubuntu – How to remove Gnome Desktop Environment without messing Unity DE? (Ubuntu 16.04)

Although article is written for Ubuntu 16.04, you can verify the package is still around for 20.04 (called Focal) by visiting https://packages.ubuntu.com/focal/ubuntu-gnome-desktop:

Personally I use Unity all the time but like to keep both desktops installed. Occasionally I need to answer other users' questions about Gnome Desktop.

Note: ubuntu-gnome-desktop might not be installed

Because it is a transitional package since 18.04 these instructions from:

Why and How to Install Unity 7 Desktop on Ubuntu 18.04 LTS

Tell you to simply use:

sudo apt remove gnome-shell

The article doesn't mention ubuntu-gnome-desktop needing to be removed. This article includes additional tips on setting up Unity Desktop.


It appears to be a missing feature. :-(

There is a bug filed for this issue: #505323, GDM's settings bar inaccessible with keyboard

See How do I subscribe to a bug for instruction on how to follow the progress of this bug. If you are already logged in to launchpad and ready to go, click "This bug affects me".

If you really need it, you can use a different display manager, kdm for the moment. Note that it has a big bundle of dependencies. You can also go ahead and ask a question here on how to set a keyboard shortcut that doesn't depend on gnome running.

There is a keyboard shortcut to shut down your system that is available all of the time, but it's rather tedious and complicated:

Alt+SysRq+(R, E, I, S, U, O).

That is, hold down alt and sysrq, then type REISUO, or REISUB to reboot. The SysRq key is the Print Screen key on most keyboards (on some laptops, it's Fn +Print, or Alt+Fn+Print)

It's not a completely clean shutdown either (although it's good enough). I'm sorry to say I think that's as good as it gets at the moment.


Can't get the right colors in gnome terminal

The base16-default.dark.sh script in  base16-gnome-terminal installs the Base 16 Default Dark profile for the Gnome terminal.
In order to actually use it, you need to activate the profile via Terminal → Change Profile → Base 16 Default Dark which applies the profile to the current session.

You probably want to use it as default profile. In order to do that, you need to go to the Profile preferences via Edit → Profiles… and choose the Profile used when launching a new terminal.

Additionally the Gnome terminal has 256 color support, which you might like to activate. In order to do that, you need to run source base16-default.dark.sh script from base16-shell.
To make the changes permanent add the following lines to your ~./bashrc file, presuming you're using bash:

# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/base16-default.dark.sh"
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL

Try to run the colortest script from the base16-shell repository in a new terminal session to see if everything worked.


Why does node.js need administrative permissions to access my windows share even though the share's premission is 0777

The folder is owned by a different user. Only the owner of the folder or root can change the permissions using chmod. Therefore, in my case, sudo is required as my user does not own the folder.


MATLAB installation using Software Center

The package called 'Matlab' in Software Center is actually just an integration package (called matlab-support). As explained in the package description (apt-cache show matlab-support):

 This package does not provide MATLAB. Instead, it configures an
 existing MATLAB installation to integrate more comfortably in
 a Debian installation.
 .
 Currently it provides /usr/bin/matlab through the alternatives
 system, offers to work around incompatibilities between the libraries
 bundled with MATLAB and system libraries, and provides a helper
 utility meant to be used by other packages to compile MEX extensions.
 .
 Install this if you would like your MATLAB installation to behave more
 like an ordinary Debian package. Other packages may depend on
 this one if they install MATLAB code, for example in order to
 compile MEX extensions.

You will need to obtain your own licensed copy of Matlab for Linux first.


Install root certificate on Ubuntu 14.04 64-bit

For me, placing a root CA certificate in /usr/local/share/ca-certificates and running update-ca-certificates works fine. This doesn't affect Firefox or Google Chrome, since they use their own certificate stores, but tools like wget work fine.

According to man update-ca-certificates:

It reads the file /etc/ca-certificates.conf. Each line gives a pathname
of a CA certificate under  /usr/share/ca-certificates  that  should  be
trusted.  Lines that begin with "#" are comment lines and thus ignored.
Lines that begin with "!" are deselected, causing the  deactivation  of
the CA certificate in question. Certificates must have a .crt extension
in order to be included by update-ca-certificates.

Furthermore  all  certificates  with  a  .crt  extension  found   below
/usr/local/share/ca-certificates   are   also  included  as  implicitly
trusted.


The IDJC pages at Sourceforge.net also explain what you experienced happens when they don't have a package ready, and explains how you can resolve dependencies and install from source.

They say to run this command to resolve the dependencies:

sudo apt-get install build-essential libc6-dev libglib2.0-dev libjack-dev jackd libvorbis-dev libsamplerate0-dev libsndfile1-dev python-gtk2-dev libmpg123-dev libavcodec-dev libavformat-dev libtwolame-dev libmp3lame-dev libflac-dev python-mutagen libspeex-dev

then offer the steps required to build from source, after you Click the relevant link for downloading libshout-idjc from that web page (currently https://sourceforge.net/projects/libshoutidjc.idjc.p/files/libshout-idjc-2.4.2.tar.gz/download/ to get version 2.4.2), then in a console type the following.

cd Downloads
tar xzvf libshout-idjc-[version].tar.gz
cd libshout-idjc-[version]/
./configure CFLAGS="-O2" --prefix=/usr
make
sudo make install
sudo ldconfig

Navigate to http://sourceforge.net/projects/idjc/ and hit the big green Download button. Wait for the download to finish. Make a note of the version number, then complete the install with

cd Downloads
tar xzvf idjc-[version].tar.gz
cd idjc-[version]/
./configure CFLAGS="-O2" --prefix=/usr
make
sudo make install


Wiley 15.10 upgrade; Kernel 4.2.0-18 AMD Radeon RS880 chipset not able to enter luks passphrase to boot

Comment converted to an answer as it worked..

This is a problem with the initramfs , not the kernel. Boot to recovery mode and run

update-initramfs -u -k all

Reboot


How do I export recordings in Mythbuntu?

mythnuv2mkv allows you to convert any .nuv to other standard formats with the ability to look in imdb for titles and other information about the files.

I have not personally used it but it sounds very easy to use and the necessary tools (other than the script) are available for Ubuntu:

mythtranscode - mythtv-transcode-utils (multiverse)
perl - perl (main)
mplayer - mplayer (multiverse or non-free(medibuntu))
mencoder - mencoder (multiverse or non-free(medibuntu))
wget - wget (main)
ImageMagick - imagemagick (main)
bc - bc (main)

Give it a go and drop a comment if it does not do what you are looking for.


Running a custom command from the Terminal icon in the dock on Ubuntu 18.04

You could simply change the default settings in you gnome-terminal profile, or

You could create a new launcher item, based on the current gnome-terminal.desktop file.
This file is located at /usr/local/share/applications/gnome-terminal.desktop. Copy it to ~/.local/share/applications/ and edit the Exec= and Name= lines accordingly and add it to your dock. I would suggest to use a different file name when copying the original gnome-terminal.desktop file.


Fat and ntfs partion wont support file permissions ,just copy the file to the home folder or desktop and try again


Cron jobs show up in GNOME Scheduler but don't execute

Gnome Scheduler is just a pretty front-end for at and crontab. And in default Ubuntu, cron mostly runs anacron which is responsible for running periodic tasks on machines that may not be on when the task is supposed to fire.

Things to check are:

is cron running? ps -C cron
is cron configured? cat /etc/crontab
is cron calling anacron from /etc/crontab?
is anacron installed? ls /usr/sbin/anacron
is cron or anacron logging any messages at all? grep CRON /var/log/syslog

For the last step, logrotate may have archived older syslogs so if grep gives no result try

(cat /var/log/syslog.[0-9] ; zcat /var/log/syslog.*.gz) | grep CRON

My guess is that gnome-scheduler is setting up jobs with the wrong permissions (probably as you and not a superuser) and therefore the complaints will appear in the syslogs.

response to update

Given the shell prompt in your crontab -l example, you almost certainly listed bakhtiyor's per user crontab which may not have the permissions to run your (somewhat opaque) jobs.

The syslog entries will show if the jobs are being run at all, and if so, if the jobs complain.


Graphics glitches and artifacts with Ryzen 5 3400G APU

Same problems can be observed with Ubuntu 20.04 LTS / Ryzen 3 3200G / Gigabyte B450M S2H /
16GB (2x8GB) DDR4 3200.
Workaround 1:
Disable IOMMU in BIOS.
Workaround 2:
Add iommu=pt to command line in /etc/default/grub following the steps below.

Run
sudo nano /etc/default/grub

Make the GRUB_CMDLINE_LINUX_DEFAULT line look like this
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"

Update grub by
sudo update-grub

Reboot with
sudo reboot


Why doesn't Ubuntu nvidia-current support the later proprietary drivers for LTS releases?

There's always a tension in LTS releases between supporting the latest hardware and ensuring that existing hardware works.

For the kernel on 10.04, this is supported with the linux-backports-* kernels - they're kernels from the current development release, so include the most current hardware support. Importantly, they're opt in - if you need them, then you can install them, but if your hardware worked at 10.04 release we can be much more confident that your hardware will continue to work with the default (2.6.32) kernel than with linux-backports-*.

For Ubuntu 12.04 there are analogous nvidia-current-updates and fglrx-updates packages. We can update these without fear of breaking hardware that worked at release, and users who need them can opt-in.

Major driver updates - for example, from the 195 series drivers to 295 series drivers - carry serious risks of making things which currently work fail.  This is unacceptable for an LTS: people use the LTS precisely so they don't get breaking changes.  The nvidia-current-updates solution avoids this problem.


Unity not working on 14.04 after compiz configurator change

Unity doesn't load, no Launcher, no Dash appears

This thread partly answers the question, but still not full. It really does help when you enaable ccsm, but you'll yet see empty screen even after reboot after the descrubed manipulations. However if you reexecute

dconf reset -f /org/compiz/
setsid unity
unity --reset-icons

everything works fine.. also I'm not very sure if reinstallation of unity, ubuntu-desktop and compiz had made some help here.


Normally "after-some-time-problems" are related to heat issues. I would try to test your graphic card for hardware failure. You can boot windows or a live CD and see if you get the same problems. If it is the case than probably your laptop is broken.


Try using the Startup Applications application.
You can find it either by searching for it (both Unity and Gnome Shell allow you to quickly search for applications), or in the Other section of applications (this section you can access again from either Gnome Shell or Unity but also from the classic applications menu in Gnome 2.x)

Applications may be startup in other ways, such as commands in scripts and etc. It is probable that the application's startup you are trying to edit is not accessible from the application I suggested to you.


SSH is meant to accept (secure) connections over TCP/IP. To use SSH over a serial port, you'd need something acting as a TCP client and "forwarding" data from/to the serial port, such as socat.

This (source) should be enough, assuming /dev/ttyS1 is your serial port, 115200 is the desired baud rate ("Speed" when using PuTTY for Serial connection) and you have sshd listening on port 22 (which is the default):

socat -d -d tcp:127.0.0.1:22 file:/dev/ttyS1,b115200

-d -d, according to the manual:

  Prints fatal, error, warning, and notice messages.

I have not tested this, as I do not have a serial port at the moment.

If you just need login and run shell commands over the serial port, you can run getty, agetty or even screen on a serial port.
The SerialConsoleHowto guide is outdated, but this answer might help.


How can I make Ubuntu my main OS on a Chromebook?

Simply updating crouton to the latest version should solve this problem. As for completely getting rid of Chrome OS, I would look into Chrubuntu. It allows you to dual boot Chrome OS and Ubuntu, allowing you to specify the hard disk space for each. You also have the option of installing any other Linux variant via a bootable USB stick. In addition, newer chromebooks have the option to boot via SEABios, allowing you to use the full Linux kernel and not the one provided by Chrome OS, so investigating this further would definitely be worth your while.


I just got over a similar problem with my ACER laptop, maybe the trick can help!

Problem : After disabling fast boot and secure boot, my laptop would not recognize the USB stick.

Solution I came up with :

remove the USB stick
boot and enter BIOS
reset default settings & reboot
re-enter BIOS
disable "secure boot" and enable the F12 function (which allows you to select the boot device on start up)
insert the USB stick
save settings and reboot
mash F12 like crazy
select USB to boot
Make a happy dance of joy

I sure hope this can help someone, since I spent a lot of time searching solutions to this problem, to no avail!


Set default JDK version on Launchpad packaging system

But are you sure you have OpenJDK installed. Do not forget that there are 2 different packages. JRE which is the java runtime environment. This will allow you to run java applications, but not compile. In order to compile, you will need to install the JDK, java development kit. In ubuntu there is openjdk-7-jdk and openjdk-7-jre. Make sure you have both installed.


Process on port 80 blocking apache2 service

Could be an issue with your firewall.
Try sudo ufw allow 'Apache Full'; sudo systemctl restart apache2 and see if that helps.
If not, please provide a little more detail as to the commands you need to run in order to get the server working again. Worst case scenario, you can make a bash script with the commands and then make a cron job to run them at startup (not the best solution but it works).


Xubuntu: Can I align the clock / notification / wifi etc area to the right - like win xp?

You can proceed as follows:

Add new item to the panel and select Separator
Drag the Separator and drop it between the windows icons and the notification area
Right-click on the separator and access Properties
Select Transparent and check Expand.

Now it should behave.


How to change the path of a folder to point to one in Windows

If you wish to access your music files in your Windows mount by using your ~/Music folder you can use mount --bind to mount the path to your Windows files in to your ~/Music folder.

You could make that automatic by adding the following /etc/fstab line (after the line that mounts your Windows partitions) using your favorite text editor, ie:

  sudo nano /etc/fstab

/path_to_windows_files/music_folder /home/your_username/Music bind defaults,bind 0 0

where:

path_to_windows_files/music_folder: is the path which contains the
mounted Windows music files
your_username: is your username or the name of the user that will
have the files mounted

Close it with Ctrl+x and select y to save the file.


As JPbuntu has alluded to, adduser and deluser are the recommended ways to add and remove users on an Ubuntu system from the command line.

Graphically, you can add and remove users in the GNOME Control Center. Or you may prefer the users-admin utility ("Users and Groups"), which gives you greater configurability. users-admin is not present by default--to get it, install the gnome-admin-tools  package.


What to do if Installation in virtual machine says "no detected operating systems"?

VirtualBox will create a file drive inside your Windows file system that emulates a disk by itself.

It is not (unless specified) using a real hard disk. Since that virtual disk is empty, the Ubuntu installation inside the vbox will give you only the option to initialize and create a new partition.

You should not worry about modifications actually happening to your hard disk, the only thing affected will be the virtual drive you just created when adding a new vbox, it is safe to press next and create new partitions.


Burned DVD essentially has no content and the DVD is not bootable when creating on Mac OSX

I'm pretty sure SimplyBurns does ISO's. It's a decent alternative to the built in ISO Burner if that isn't working for you. It can be found at http://simplyburns.sourceforge.net/


I set /sys/module/hid_apple/parameters/fnmode to 2 and it gets overwritten to 1 on each reboot

After editing /etc/modprobe.d/hid_apple.conf and putting options hid_apple fnmode=2, you need to run:
sudo update-initramfs -u

Reboot after that.


Expanding a disk/volume "live" without adding more partitions/disks

This is what I came up with, after several different tries, and tested with a VM running Ubuntu 16.04 with ext4 (not using LVM, and not trying to increase the root disk, just an additional disk) on an ESXi 6.0 host.

Just extending the disk size on the VM, did nothing, dmesg didn't mention any changes had happened.

So:

echo 1 > /sys/class/scsi_device/2\0:0\0:/device/rescan
dmesg now mentions there has been a capacity change from old size to new size
Running resize2fs/parted/partprobe at this point, is still completely unaware of the new disk added, fdisk F can see the extra empty space, but there's no way to really add it to the existing partition
run fdisk and delete the partition (yes this needs to happen), then create a new partition, and it will pick up the proper size.
run resize2fs to grow the ext4 filesystem.

I hope that someday  Linux gets proper storage management support. It's ridiculous to have to delete partitions to expand disk sizes in 2017.


Ubuntu 14.10 thinks my laptop is a phone

Just use the localized version of Settings for desktop settings. The English version gives the phone settings. I don't know why the Ubuntu 14.10 upgrade pulled that it, but be careful not to remove it, as you will not be able to open any of the system settings without it (I know, it's a mess).


Go to Options -> OSD -> Subtitles only

About Subtitle:enabled, it only appears when there's an external subtitle file (.sub, .srt..). Im not sure you can disable that without disabling subtitles entirely.


How to get an Starting Double Boot Menu (Linux / Windows)

I think you would be looking for something like this:
How do I set the grub timeout and the grub default boot entry?

The preferred way to install dual boot is install Windows first, then Linux. That way you get the grub dual boot menu. Otherwise Windows overwrites the master boot record. Glad you figured it out though!


Can /etc/rc.local access file in ubuntu encrypted home folder when system startup?

No. The whole idea of encrypted home directories is to have the directory be unavailable, unless the user is logged in.


Default file open/save sort by modified?

Take a look at the file ~/.config/gtk-2.0/gtkfilechooser.ini. You should see something like this:

[Filechooser Settings]
LocationMode=filename-entry
ShowHidden=true
ExpandFolders=true
ShowSizeColumn=true
GeometryX=2064
GeometryY=1053
GeometryWidth=768
GeometryHeight=638
SortColumn=name
SortOrder=ascending

Change SortColumn=name to SortColumn=modified.

I found out about this file from this launchpad issue, although there the author states that changing the setting there did not work for him. It does work for me, whereas making the change in dconf-editor does not. This also answers How do I set the default sort order in open file dialog to “Name”?, but I do not have sufficient reputation to answer it there.


Shutter 0.94 in Ubuntu 18.04.1 taking wrong screenshoots

Thanks to @Videonauth in the comment changing the login to Ubuntu Xorg now this work. Also the question from @pomsky route me to the solution. Now XDG_SESSION_TYPE is x11


VIM in gnome-terminal keeps printing weird 001B character

I have found the reason those escape appear by disabling everything in my .vimrc file and reenabling incrementally. For those people with the same problem, it is caused by the following setting in the .vimrc file:

set visualbell "Use a visual error indicator instead of a beep

Removing the above line fixed the problem.

Silly and logical, but well... There you have it.


How to get caps and num lock lights to show when in console

This might comes with some strings attached on how it work (with GNOME 3 running in a another TTY, the indicator lights got confused), but setleds seemed to work for me (in a TTY console, not in a terminal):

$ setleds
Current default flags:  NumLock off   CapsLock off   ScrollLock off
Current flags:          NumLock off   CapsLock off   ScrollLock off
Current leds:           NumLock off   CapsLock off   ScrollLock off

Which no arguments is shows the current status of the keys.
You can also change the status of the caps lock etc with

setleds -D -caps
setleds -D +caps

For more info readman setleds


Purpose of email at the end of SSH public key

Most likely to identify who created the key.

It is just a comment. But as said at 1: probably so you know you created it. Useful when more than 1 administrator is administrating the system.

Yes, you can add anything in place of your e-mail. And since it is the last part of it you do not have to use anything special for spaces etc.
Extra: ssh-keygen -c to change it for RSA1 keys (only works for RSA1).


How to automatically turn off hard drive when not used?

This part from Put HDDs in standby after X minutes using hdparm doesn't work might help:

  Is AHCI enabled in your BIOS? If not try turning it on and re-trying.


On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.

You want to add the following include:

#include "cuda_fp16.h"

And comment out the line:

typedef unsigned short half;

The file is located at:

/usr/share/blender/scripts/addons/cycles/kernel/util_half.h

The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.


Run this command

sudo top

Find out the culprint process and then kill it

sudo kill -9 <pid>

Also look for some of the services that might be always running. For more details, refer to this link


I am using Ubuntu 15.10. Apparently I had to run the kubernetes/cluster/ubuntu/download-release.sh file. This solved the problem for me. Thanks anyways guys!


Juju Openstack - manual modifications to code are overwritten

A hacked up approach would be to make the changes in

  /var/lib/juju/agents/unit-charmname-unitnumber/charm/

This way the hooks wont overwrite your changes.


Black screen on boot after AMDGPU-Pro install (16.04)

When your system is booted and you're at the black screen issue the following keyboard command: CTRL-ALT-F2. Login with your account. Then, run the command:

amdgpu-pro-uninstall

This should uninstall the driver and hopefully get you back working again.


Unable to login during boot without reinstalling Graphic drivers

Yes, the nvidia driver uses a kernel module.  When the nvidia driver, VirtualBox, ndiswrapper, and one or two other packages are installed, they hook into a system called dkms.  DKMS will automatically build copies of these modules for any new kernel that is installed (after the package manager installs linux-whatever-image and linux-whatever-headers, it runs dkms which rebuilds these modules one-by-one).

So, Ubuntu 14.04 only has nvidia-331 drivers in it's usual packages.  But, the solution if you want dkms to do it's thing and have these newer drivers is to add a new software source: ppa:xorg-edgers/ppa

With xorg-edgers added as a software source, you should find nvidia-346 packages are listed, and indeed newer ones should be listed as they come out.  This repo is meant to for installing newer video drivers than your distro would have otherwise, both stable drivers that are just a bit newer, and "bleeding edge" development versions.  So I wouldn't be surprised if the newest nvidia package doesn't come out same day nvidia releases it.

Plan B, if you don't want to do that:  dkms doesn't really need you to have a package to work. Per the man page, it looks as though you can add a arbitrary kernel module source tree into dkms and it'll take care of the rest.  The nvidia .run file places a kernel module build directory somewhere or other, pull it into dkms and it should take care of itself.


How can I install the new Cantarell fonts available in Gnome 3.28 on Ubuntu 18.04?

You can grab the latest from the Cantarell github page, and build it from source:
https://github.com/madig/cantarell-fonts/releases

The latest release is 0.101 from Mar 15 2018.

Build and install are very simple:

sudo apt install python3-pip meson ninja-build
pip3 install --user fontmake
pip3 install --user git+https://github.com/adobe-type-tools/psautohint.git@v1.1.0#egg=psautohint
meson build
cd build
sudo ninja install

Result:

Installing appstream/org.gnome.cantarell.metainfo.xml to /usr/local/share/metainfo/org.gnome.cantarell.metainfo.xml
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Thin.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Light.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Regular.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-Bold.otf to /usr/local/share/fonts/cantarell
Installing /home/valiano/cantarell-fonts-0.101/prebuilt/Cantarell-ExtraBold.otf to /usr/local/share/fonts/cantarell


Ubuntu 14.04.1 LTS desktop installation hangs

Try the 32 bit (i386) install of the 14.04.1 download. The 64 bit version won't work on your 32 bit system.

If you need the 64 bit version, I can't help you with that - someone else might chime in with a virtual solution, but I have no experience in that area.


Had the same issue today. Simply press Ctrl+Alt+T for terminal, then unity --reset. After that enter ccsm and switch the Unity plugin on. That did the trick for me as well.


just try next :

sudo watch smbstatus

This will continually redisplay a CLI status of SMB connections, like 'top'.


Ubuntu Server Wirless Network Setup for Dell Inspiron 1300

If your wireless device scans and sees both networks, then the driver/hardware combination is working.

Second, WEP is quite insecure. I suggest you set both routers to WPA2-AES.

Finally,  suggest you set up /etc/network/interfaces something like:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_wpa_key>
dns-nameservers 8.8.8.8 192.168.1.1

Be sure to select a static address outside the range used by the DHCP server in the router, switch or other access point. Of course, substitute your details here.

Get the system to read and use the changes:

sudo ifdown wlan0 && sudo ifup -v wlan0

Did you connect?

ping -c3 192.168.1.1
ping -c3 www.ubuntu.com


Upgrade from 16.04 to 18.04 hangs on boot

You may have a problem with an older computer, with an older GPU. Try this...

boot to recovery mode
choose root access

type:

sudo mount -o remount,rw /      # to remount the disk r/w

sudo pico /etc/gdm3/custom.conf # edit this file

change:

#WaylandEnable=false

to:

WaylandEnable=false

Then reboot.

Update #1:

Based on additional information from the user, I'd recommend that we check the file system to make sure it's ok.

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

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

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

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


configure: error: cannot find the required ev_run() function despite trying to link with -lev

You should install all needed build dependencies (-dev packages) with :

sudo apt-get build-dep i3-wm

and then retry your ./configure procedure.

You may be also interested with adding PPA to your system:

i3blocks-gaps for Ubuntu 16.04 LTS (xenial) from ppa:monettes/i3wm-gaps
i3-gaps-wm for Ubuntu 16.04 LTS (xenial) and Ubuntu 18.04 LTS (bionic) from ppa:kgilmer/regolith


How to enable 1280x800 resolution in tty?

Install hwinfo since that is the only way i know how. (sudo apt-get install hwinfo OR sudo aptitude install hwinfo)
Go to the console (gnome-terminal or any other) and type sudo hwinfo --framebuffer and you will get a short or long list depending on what video card you have. The list will look something like this:

Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x0347: 1400x1050 (+1400), 8 bits
Mode 0x0348: 1400x1050 (+2800), 16 bits
Mode 0x0349: 1400x1050 (+5600), 24 bits

Lets say you want the 1600x1200 16Bit Resolution. Then you take the Hex value to the right, in that case 0x0346 and you write it down.
Open /etc/default/grub. You will find 2 lines similar to this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

On the second one, edit that line so it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="vga=0x0346"

As you can see you just put the hex value at the end of the linux line in the grub file and save it. Exit, and type sudo update-grub. Wait until it's finished and reboot.


My wireless has suddenly became disabled by hardware switch, BIOS, rfkill, fn+f8 do nothing

I found the answer in a thread over at ubuntuforums.  I had to remove the battery and disconnect the charger, press the power button for at least thirty seconds, put it all back together and boot into bios.  From there I had to restore system defaults, save changes, and presto, wireless is working again.  I gather that this is a fix specific to toshiba laptops without a physical wireless.

This fix also works on Acer Travelmate 2450


Don't know how I missed this:

$ sudo aptitude install ldtp python-ldtp

Works like a charm! At least now I understand better how pip install works!


Increase connection Timeout connect to server

The optimal place to put this is in your ~/.ssh/config file.  Putting these options in /etc/ssh/ssh_config will make the change for all users on the system which is often undesirable.  Additionally, these changes will not be portable were you to move your home directory for another server.  Within your config file one can make a change as follows:

Host example-server
    HostName server.example.com
    Port 2200
    User example-user
    ConnectionTimeout 20
    GSSAPIAuthentication no
    ForwardAgent yes

Performing the changes in this way also allows you to make additional configuration changes which would not be available in the GUI interface (such as port number, or changing GSS API support).

From there in the "connect to server" interface, simply reference the name "example-server" rather than the fully qualified domain name (FQDN) to use these options.


Ubuntu 14.04 battery status unknown or 0%

What you're describing has to be a failure of either the battery voltage sensor, Ubuntu's driver or handler for that sensor, or of the battery itself.  Long run life rules out bad cells that would display as a dead battery, so it's either a sensor failure or a software issue.  Try booting from live media (DVD or USB) and see if the battery display still reads zero.  If it does, you have a hardware problem; otherwise, it's an issue with the software that reads and displays the output of the sensor and can likely be corrected with software solutions (reinstalling one or more packages, or worst case reinstalling Ubuntu clean).

I'm guessing it's the sensor (a software failure would likely give some result other than a consistent zero reading, such as loss of the battery icon entirely), but I don't know, for that machine, if that's inside the battery housing or on the machine's motherboard.  If the battery is removable, you may be able to buy a replacement battery at a reasonable price from a third party (not Apple).

With bad cells ruled out, the only harm you'll risk by running with the machine as is, is not knowing how much run time you have left, so that's an option (adding a countdown timer widget set for less than your tested battery life would help avoid unexpected shutdowns).


The command you are trying to type is "mousepad", not "Mousepad". Linux cares about case (upper/lower).

gksudo mousepad

will run mousepad as root. Your command,

gksudo Mousepad

will not find anything to run, and simply exit ("nothing happens").


Disable all Unity keyboard shortcuts using the command line

I have no idea why you would want to do this and I should warn you that it may well be complicated to get the shortcuts back. If this is really what you want to do, the commands below will disable all keyboard shortcuts. Both those set up through Unity's GUI and any you might have set up using ccsm

A. Disable the Unity keyindings

First make a backup of the current bindings so you can re-enable them later

gsettings list-recursively org.gnome.desktop.wm.keybindings |
   perl -pe 's/(.*)\s*(\[.*?\])\s*$/$1\t$2\n/' |
    while IFS=$'\t' read -r key val; do echo -e "$key\t$val"; done > old_settings

This will create a file called old_settings in the following format:

schema key <TAB> value

For example:

org.gnome.desktop.wm.keybindings unmaximize <TAB> ['<Control><Super>Down']

Now disable the shortcuts

gsettings list-recursively org.gnome.desktop.wm.keybindings |
    perl -pe 's/(.*)\s*(\[.*?\])\s*$/$1\t$2\n/' |
        while IFS=$'\t' read -r key val; do gsettings set $key ['']; done

Explanation

gsettings list-recursively org.gnome.desktop.wm.keybindings : this lists all keybindings and their current values
perl -pe 's/(.*)\s*(\[.*?\])\s*$/$1\t$2\n/' : this simply adds a TAB character (\t) separating the value from the key. This step is needed to be able to read them properly in the next one.
while IFS=$'\t' read -r key val : go through each line and read the key into $k and its value into $val. $IFS=$'\t' means split on tabs so that the key and value are read correctly.
gsettings set $key [''] : this actually sets the value to blank, effectively disabling your shortcuts.

Note that you may have to log out and log back in again for this to take effect.
Get (some of) your shortcuts back

while IFS=$'\t' read -r key val; do
    gsettings set "$key" "$val"
done < old_settings

WARNING: This will probably not work for all settings since some of them seem to have an extra parameter @as in the key name and I don't know how to deal with that one. As I said, this is all not a very good idea.

B. Disable your custom shortcuts set in ccsm

gsettings set org.gnome.settings-daemon.plugins.media-keys active false

This time, getting them back is easy. All you need to do is run

gsettings set org.gnome.settings-daemon.plugins.media-keys active true


How to set up OneDrive on Ubuntu 16.04LTS?

I've just found suitaible way of accessing and mounting OneDrive in Ubuntu 16.04 with Rclone-Browser

1)
Downlouad the Rclone program here and install it on your system: (the version in the standard Ubuntu repository only works for Onedrive personal edition.)
https://rclone.org/downloads/   or directly from this for Ubuntu 64 bit systems: https://downloads.rclone.org/rclone-current-linux-amd64.deb

sudo dpkg -i rclone-current-linux-amd64.deb

2) Rclone-browser

Download the rclonebrowser form here: https://github.com/mmozeiko/RcloneBrowser/releases
or install via a ppa (not yet for ubuntu  18.04)
sudo add-apt-repository ppa:mmozeiko/rclone-browser
sudo apt-get update
sudo apt install rclone-browser
After installing both packages, start rclone-browser from the dash.

  select n for new remote and give it any name that suits you. Onedrive would be fine.

Select 18 Onedrive (number can change)

leave blank twice

select personal or business

select Y if you are running a normal desktop system.

Now the browser should open and you can login in your onedrive account

now return to the terminal and conform with Y

press Q to exit and return to the rclone-browser and press the refresh button.

  Now you should see your onedrive account and  you can open it by double clicking

You are now able to mount it and see it in Nautilus. It is NOT a locally available filesystem. It is still remote. Some programs can read and write to this remote drive, and some don't. A workaround is to open a secon TAB in Nautilus, copy the files you need to the second TAB. Use them from there and copy them back afterwards.

Source:
Rclone and Rclone-Browser


I think that should be:

cat file_with_command_in | telenet ip port

that way you send all input including newlines etc. (Which I suppose you could do from the command line, but a file is easier).


How to install OpenCV 3.1 for Python 3.5 On Ubuntu 16.04 LTS?

I found this.

OpenCV on wheels.

  Unofficial OpenCV packages for Python.

Installation was painless for Ubuntu 16.04:

pip3 install opencv-python

Check the installation:

python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.2.0'


Does Ubuntu 14.04 support PHP, Mysql, Apache?

Open terminal (by pressing Ctrl+Alt+T) and run this command:

sudo apt-get install tasksel

after finish run this command

sudo tasksel

then select lamp using space bar and go on the installing instructions.


How about this?

lspci -vv  | grep -e ':'[0-9] -e "Latency"


How do I convert from wav to GSM under Ubuntu?

Difficult to do under a standard installation of Ubuntu but not completely impossible. Possibilities are:

The best way is to use a suitable compiled FFmpeg with the following commmand line:

ffmpeg -i test.wav -c:a libgsm -ar 8000 -ab 13000 -ac 1 -f gsm test.gsm

But Xenial's FFmpeg is not compiled with libgsm unfortunately so this cannot be easily accomplished without recompiling.
Another more workable option is to use sox:

sudo apt-get install sox libsox-fmt-all

and then use the following command line:

sox test.wav -r 8000 -c 1 test.gsm

This works well under Xenial Xerus.
A third option is to use the libgsm-tools package by running the following:

sudo apt-get install libgsm-tools

and then using this command line:

toast -p test.wav

but this produces an unplayable file under Xenial so not a good option...
And for those who like to use a gui audacity can produce playable gsm files but this is not possible under Xenial's package unfortunately...

Not a happy situation for Ubuntu with the only reasonable option being to use example no. 2 with sox...


Onenote web doesn't work on Xubuntu 16.04

Their site is broken, maybe on purpose (although the Hanlon's razor and wide experience with their broken standards, non-conformant hardware, lack of drivers, suggests that MS just lacks good engineers). The problem is that it shows empty page for most (all?) browsers except of Internet Explorer.

How did I know it? I assumed it because in ancient past existed sites that only worked with Internet Explorer, so I installed addon to fake user agent, made it to look like IE8, and — voilà — site suddenly works!

To solve the problem you have to do the same. Also, I'd highly recommend to create a forum topic about the problem on MS site (so that the problem was publicly known by MS), and, perhaps, send a bug-report to MS support.

MS is known to have bad support for many apps (skype, drivers, just out off top of my head), so I'd also recommend to check an alternative to One Note (I can't adice it myself, because I didn't use anything like this, but linked suggestions are highly upvoted, perhaps worth a try; or, at least, leaving a comment what do you miss. And remember, those apps are FOSS, so you can easily find their bugtracker, and create a new "feature request" there.).


How to install RA3 uprising on ubuntu without origin?

I think you should give it a try and upload this question to a forum that has to do with Ra3. They might help you better, as not many ppl that use ubuntu (and are surfing this forum) might play Ra3.


How does redirecting a command output to a file deals with opening and closing that file?

File redirection (<input, >output, 2>error) is handled by the parent shell. The executed command (sar in your example) sees only the file handle (0 => STDIN, 1 => STDOUT, 2 => STDERR) and reads/writes via the file handle. The executed program doesn't even know that anything's redirected.

Since the file (> a_file.txt) is opened by the parent shell, when the executed program exits, the parent shell simply closes it, which automatically flushes any buffers.


Here is a similar issue. Try to check you grub settings as described by link.

Thanks.


after uninstalling ubuntu the boot entry is still there

If the grub menu is the issue, you'll have to do some careful editing to get it to work. I am not sure what your exact setup is, but I'll assume that you want to reinstall ubuntu on the same drive or partition that the old uninstalled setup was on. I am fairly sure there is an option to reinstall or upgrade ubuntu, or at last resort format the driver/partition and then install, under the custom install option when you boot from the external installation device. Also remember to hit a key like F11 (varies by computer) to choose which boot medium you use when your computer is initially turning on to actually reach the installation process.

Edit: If you just want to remove the grub entry, just do a quick search and find something like http://www.howtogeek.com/howto/ubuntu/clean-up-ubuntu-grub-boot-menu-after-upgrades/


Can't find internal hard drive when installing Ubuntu

If your computer is a 2018 Mac, it likely has something to do with the T2 chip.

As I don't have the hardware available, let me direct you to the discussions that I've read.

Reddit
The T2 Security Chip is preventing Linux installs on New Macs even
with Secure Boot set to
off


Find the installation directory of OpenCv

You can add following lines to /etc/bash.bashrc using your favorite text editor so that you dont have to export path everytime.

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

and restart your system.


Sporadically unable to connect to ubuntu 14.04 LTS server using domain name

After your last edit with nslookup it seems that for some reason, the DNS servers that your ISP is pointing to your router are out of date or probably your ISP running a transparent proxy and they are caching the results of the no-ip checker. With the second command, which forces nslookup to use google DNS everything looks ok.

Most proxies that ISPs run are set to cache content only on a single port, port 80, so you will maybe get lucky by using a different port. According to this no-ip dynamic updater uses port 80, port 443 and port 8245. So change

http://dynupdate.no-ip.com/nic/update

to

http://dynupdate.no-ip.com:8245/nic/update

In your router configuration. This should solve the problem.

The other solution will be to change your DNS to google - this is explained here


How do I connect a windows machine to a Linux machine to play Minecraft with my daughter?

Method 1:

Make sure both computers are turned on and are on the same network.
Open a local world in the computer you would like to host it on.
Hit "open to lan"
On your daughter's computer open Multiplayer. Wait for about five seconds. The LAN world on the main PC will show up. Select it and hit Join Server.
Voila!

Method 2:

If you would like to, get minecraft_server.exe or .jar from the offlicial Minecraft website minecraft.net
Open the file on the main computer. Go onto your daughter's computer and open up Multiplayer. Click Direct Connect and type in "localhost" hit join and Voila!


How can I remove GNOME shell(desktop environment) but remain Unity?

By default your ubuntu has unity unless you removed it.

for removing gnome

sudo aptitude remove gnome-shell

and then you may need reboot or just logout and login by unity desktop.


in /usr/share/applications you will see the .desktop file for sublime. Open it and change the path of the icon.

I prefer using alacarte, wherein I can directly change the icon from a GUI. Launch alacarte by typing alacarte. If you dnt have it then sudo apt-get install alacarte.

But I guess, for just one single application, I think it is good to edit the .desktop file manually. Remember there are many icons for sublime and the 48*48 fits the best.


How can I make Ubuntu recognize 2 different speaker pairs through an audio splitter?

I don't think this is possible. Most splitters simply forward the same audio to both speakers (or headphones as is my case). Even if your splitter could do more than that, there is no way for the audio device in your computer to send out two separate stereo streams.

What you need is a different audio device, maybe a 4.0 or 5.1 usb sound card.


Moving LXD containers to clean install of 16.04

On your old Ubuntu 14.04:

Publish your Container:

lxc publish --force 'name of container" --alias 'new name'

Example:

lxc publish --force 'lxc-wordpress' --alias 'lxc-image-wordpress'

Export image:

lxc image  export 'new name'

The output is something like this:

efaa243331f0a7c175376edaf796545a01ad09bb47f25a297b798e09fe66ee66.tar.gz

Show size of export:

    du -h efaa243331f0a7c175376edaf796545a01ad09bb47f25a297b798e09fe66ee66.tar.gz

Backup your export image.
Backup your containers profile/s
you can show with:

lxc profile list

You can save your *tar.gz in whatever secure place.

Install Ubuntu 16.04.2 and configure your LXD environment

Copy your backup image and, inside their directory, start import

Import your container images:

 lxc image import efaa243331f0a7c175376edaf796545a01ad09bb47f25a297b798e09fe66ee66.tar.gz --alias lxc-image-wordpress

Create and start your container based on your image:

 lxc launch lxc-image-wordpress lxc-wordpress


Unable to mount cifs with iocharset=utf8

Probably, your Kernel doesn't contain the nls_utf8.ko module.

If it's your case, you will see similar entries in your dmesg output:

[  612.598233]  CIFS VFS: CIFS mount error: iocharset utf8 not found
[  612.598547]  CIFS VFS: cifs_mount failed w/return code = -79

To confirm it, you can try to find the nls_utf8.ko module:

ls /lib/modules/$(uname -r)/kernel/fs/nls/nls_utf8.ko

To fix, install a kernel witch contains this module, like linux-generic or linux-image-extra-virtual.

In my case (Ubuntu 14.04), the solution was:

apt install linux-generic
reboot

In newer Ubuntu versions, maybe you will need one of the linux-modules-extra kernel packages (tks @pxlinux). For example, if your current kernel is linux-generic:

apt install linux-modules-extra-$(uname -r)-generic
reboot

More info can be found at this answer at superuser and at this bug report at Launchpad.


Help me understand the different parts of journalctl´s error code

maj 01 10:13:02 kontor pulseaudio[1198]: [pulseaudio] pid.c: Daemon already running.
^--date--time-^ ^host^ ^prcesname^^PID^: ^program generated content................^

prcesname is really Process Name, and PID is the Process ID. The program generated content is produced by the program (pulseaudio in this case), and can be anything. Here, the [pulseaudio] program, inside it's pid.c module, found that the (pulseaudio) daemon was already running, causing the attempt to Start a daemon to fail.

See man logger;man 3 syslog;man -k pid.


How to make a script that copies files from different subject folders?

Here is an example how the FOR loop can be applied within a bash script to solve this task:

#!/bin/bash

# Execute do-done inner part for each "item" under "folder/subjects/"
for subject in folder/subjects/*
do
    # Check whether the source file exists
    if [[ -f ${subject}/mri/norm.mgz ]]
    then
        # ${subject##*/} will cut the parent path from the value of the variable '$subject'
        echo "Processing: ${subject##*/}"

        # Create the new subject directory
        mkdir -p "folder/investigation_folder/fs_norms/${subject##*/}"

        # Copy the .mgz file into the new directory
        cp "${subject}/mri/norm.mgz" "folder/investigation_folder/fs_norms/${subject##*/}/"

        # Do the conversion to .nii (I'm not sure this is the correct syntax of mri_convert that you are using)
        mri_convert "folder/investigation_folder/fs_norms/${subject##*/}/norm.mgz" "folder/investigation_folder/fs_norms/${subject##*/}/norm.nii"
    fi
done


Steam installation error in Ubuntu 14.04 LTS

Try these instructions:

Run steam --reset in a terminal.
Restart your computer.

This should reset/reconfigure the steam files properly.


Changing dual-boot system to pure Ubuntu

The first and the third options are the safest bet.

The choice depends on how much time and data you have. If you have little to no data then simply archive, format, and do a clean install.

However, if you want to simply and quickly go pure Ubuntu without any hiccups, just format the windows partition to ext4 with gparted, and have it as a separate data partition.


Allow/Deny a user from binding a range of ports

Based on the article I'm attaching you have a few possible options and you can combine them:

SELinux - As was stated earlier you might have to set a policy to restrict this to specific processes such as bind system calls and the like.
GRSecurity - The article is stating that you would have to make this application specific so I'm wondering if you just defined the application as the users shell (i.e. /bin/bash) this might work.

There are others listed that seem to fall in line with GRSecurity, but if you do pursue GRSecurity you need to make sure that your kernel has it enabled.

How can I restrict ports for users to bind to?


end kernel panic - not syncing: corrupted stack end detected inside scheduler

The kernel version of Ubuntu OS image that you are trying to install requires a later version of VMWare Workstation in order to run.

There are known (vmware) compatibility issues between versions of workstation and later linux kernals.

For example, I run VMWare Workstation 10.7 and can only install up to Ubuntu 16 by using a patch (which I never have).  I am limited to Ubuntu 14.  Unfortunate, but that seems to be sales model that VMWare have adopted.

It's a compatibility issue.  Hope that helps.


Move data from one drive to another drive

If you are already in the Ubuntu desktop, when pressing the "Windows" key (the one between Ctrl and Alt), you open the dash. There, you can type to search. Type "disk utility" and hit return. You should open a program like the one from this screen-shot:

.

There, in the left column you can see a list of your local drives. Find the one you are looking for, click on it, and you'll see in the main panel a description of the internal partitions of that drive. Click on the one you want and click the button that mounts that partition. That way, you'll be able to access your files through the file manager.

You can then plug a USB flashdrive to save your files, or upload them to the internet.


External Drive Data is not available on other OS other than Ubuntu

I tired these steps on windows and it works for me

Click on "Start" --> In search bar, type cmd. Right-click on the command prompt

that appears in the search and select "Run as administrator".

"Command Prompt" will be opened.

(If you are using Windows XP then open the command prompt directly)

Here I assume your external hard disk drive letter as G:

Enter this command.

attrib -h -r -s /s /d g:\*.*

You can copy the above command --> Right-click in the Command Prompt and

paste it.

Note : Replace the letter g with your external hard disk drive letter.

Now check for your files in external hard disk.


Ubuntu 10.04 Cant Adjust brightness on my lenovo Thinkpad?

oh，I've met this problem before.All you need to do is:

sudo gedit /etc/X11/xorg.conf

find segment like this:

Section "Device"
Identifier    "Default Device"
Driver    "nvidia"
Option    "NoLogo"    "True"
EndSection

change it like this

Section "Device"
Identifier    "Default Device"
Driver    "nvidia"
Option    "NoLogo"    "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

JUST ADD THIS LINE:   Option "RegistryDwords" "EnableBrightnessControl=1" !

Then restart,It will work.


How to remove docker package from apt update?

If you followed the repository or convenience script method (the first in this site)
Do :
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm /etc/apt/sources.list.d/docker.list

and then rerun sudo apt update


Not able to create user on Ubuntu 14.04 (32 bit)

Since there's a warning about some lockfile, I assume that some process who changed user or group information failed at some point and the file persisted.

First check, whether a process still claims this file: fuser /etc/subgid.lock. If nothing is returned, you can safely remove this file sudo rm /etc/subgid.lock.

Then it should work again.


Use gnome-terminal as the Fzf launcher in GVim

Determined by trial and error by adding and/or removing options:

let g:fzf_launcher='gnome-terminal --disable-factory -x bash -ic %s'


Geting error message " E: Unable to locate package qt3-dev-tools"

You can install wine in 13.04 easily by following method:

Open Terminal and execute the following commands:

$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine1.6
$ sudo apt-get install winetricks

More info on configuration and use


If you are able to, put Ubuntu onto your pen drive, as you probably did when installing Ubuntu; then boot from said USB on your laptop, and install and run a program called "Boot Repair" using these commands;

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

Then click "Recommended Repair" and do as it tells you.


How to see what installed packages I have never used for cleaning purposes

UnusedPkg: A Tool to Search the Oldest Unused Packages in Ubuntu From Terminal

UnusedPkg sorts and lists down the oldest unused packages. The sorted list is displayed with the size, package name and number of days the package has been idle for.

With the help of the list , you can determine the packages that are unnecessary and needs to be removed from the system. You can download its .tar.gz package from the download link given at the end of the post.

To install the UnusedPkg in Ubuntu, extract the downloaded package archive and obtain the unusedpkg folder. Then, move the unusedpkg shell script inside that folder to /usr/bin/ folder.

If you don’t have the root access, you can run the script from the unusedpkg directory only.

Once installed, you can run the tool by running following commands in the terminal.

unusedpkg

Warning: To avoid any problem, before uninstalling or removing any package, you have to manually check its timestamps  using unusedpkg info  or manually with ls -alu

Download UnusedPkg


Your GPU is not supported by the newest proprietary drivers - the newest series that supports it is 340, according to https://www.geforce.com/drivers (don't try to install your driver from there - it'll go wrong). The 340 series Nvidia driver is not compatible with the Xorg 1.20 server, so you'll have to use Nouveau.

Could you please clarify when exactly does your screen go black? Is it after booting the installation USB, or after finishing the installation and rebooting?


I removed /etc/X11/xorg.conf.d/20-intel.conf and it started working again.


Use  rsync.  Something like this should work:

rsync -av --ignore-errors /defective/disk /safe/disk

It will copy all files that can be copied.  Errors will be ignored, and the copy continues.  If you omit that, the copy will stop upon an error.

Do note you might be interested in making a block by block copy of your disk.  This will create a huge file.  You can do this with dd.

dd if=/dev/defectiveDisk of=/target/disk/block-by-block.imh bs=1G conv=notrunc,noerror

This gives you an image of all recoverable blocks

This image, you can later mount as a loopback device.  That way you can concentrate on saving your files without straining the defective disk.


How to map the Caps Lock key to Left Alt in Ubuntu +18?

I started considering the solutions from here and here, but I couldn't make them work.

I found the solution here:

  https://unix.stackexchange.com/questions/9635/how-to-assign-another-modifier-to-alt-key-for-x11

It achieves what I was looking for, although in a rather ugly way (I would very much prefer to create a new xkb option with this remap, but I couldn't make that work)

Update

The solution above doesn't allow me to keep two different keys for LALT.
Instead, I followed this guideline with the following symbol definition:

// This changes the <CAPS> key to become an Alt modifier,
// but it will still produce the Caps_Lock keysym.
hidden partial modifier_keys
xkb_symbols "alt" {
    replace key <CAPS> {
        type[Group1] = "ONE_LEVEL",
        symbols[Group1] = [ Caps_Lock ],
        actions[Group1] = [ SetMods(modifiers=Mod1) ]
    };
    modifier_map Mod1 { <CAPS> };
};


Print pdf file directly without opening it?

Use lpr to print PDF files directly from the command-line
I don't think you can do that directly, no.  However, there's a command line program called lpr which sends pdf files directly to the printer.  So if you have doc.pdf, you should be able to print it with lpr doc.pdf (assuming you're in the right folder on the command line).
You can also view the printer queue with lpq - besides the queue, this shows which is the default printer, and what its status is...
See the other answer for how to add lpr to the right-click menu.


/var/www/html/ is the default for DocumentRoot that Apache uses if no  DocumentRoot is configured.


You should be able to install italc and then control the users
desktop with it.

sudo apt-get install libitalc italc-client italc-master


I/O error after suspend when booting from external USB hard drive

Suspending to an external HDD always works because the HDD is available when suspending.  Resuming depends on your BIOS to "wake up" devices in the correct order, so the only option you have is to upgrade your BIOS or to turn off suspension.

I got rid of this by installing the X screen saver and turning off suspend in system settings as in this answer: 12.04-Laptop freezes everytime I close my lid


HP laptop running Ubuntu 18.04 facing booting problem after kernel update

you can rollback the update and use an older Kernel for now
try this:
How to change kernel at boot


How do I terminate all idle incoming ssh connections?

Open up terminal, Ctrl-Alt-T. Then:

sudo gedit /etc/ssh/sshd_config
Set (or modify) the following options:

ClientAliveInterval 600
ClientAliveCountMax 0

Save and exit the editor.
Run sudo service ssh restart

ClientAliveInterval sets the period after which, if the server sees the client as idle, it will send a "keep alive" request. If it gets no response, the client is disconnected. ClientAliveCountMax is the number of times such a keep alive is requested before disconnection. By setting it to 0, the keepalive is never sent and all clients idle for more than 10 minutes (600 seconds) are disconnected.


Ubuntu 18.04 performed "apt-get upgrade". Now, Slow Computer -- Graphics card Hardware Driver Update?

Have you tried
sudo apt autoremove

Also try this
sudo dpkg --configure *


Open a tty (control-alt-f2) and see if you can login, edit the file with vi or nano and remove the line you added. (control-alt-f1 gets you back to the graphical interface) (control-alt-f7 if you use unity).

If a tty closes itself too use a live dvd session and edit the file from a live session.


Show full disk usage after recovering files using Photorec to the home directory & deleting them as root

When I used Photorec as root to recover files it also created directories as the root in my home directory.Too delete those directories root privileges are essential, I really didn't hit Shift+Del to delete them only moved to trash as root.
I found all of my undeleted recovered files in /root/.local/share/Trash/files. I deleted them with Shift+Del & recovered 51.3GB of space. This thread " deleted photorec backup files taking up disk space" in Ubuntu forums helped me to find the solution.


Is there a graphical (GUI) front end for hdparm?


How will Ubuntu affect the battery life of my Galaxy Nexus?

Seeing the relative lack of information about this I don't think anyone is really aware about it other than the developers working on Ubuntu for Phones at Canonical.

I'd expect that as with Ubuntu for Android there will be a way to run a terminal window (either by linking up to a PC) or being able to run it straight from the phone, in which case a user could type the command: upower -d (or a similar equivalent for the Phone OS if there is a different one) into the terminal window to check the power consumption of the device.

Obviously this will vary slightly depending on what you're doing, but you'll probably be able to open relevant apps to "simulate" what you usually use your phone for, before testing and you'll have a relatively good estimate on how it performs.

Disclaimer: As there is no official documentation on this at the current date, this is just going by the assumption that the Ubuntu for Phones OS behaves very similarly to the Desktop, as such this is but an educated guess to attempt to answer your question.


Ubuntu 12.04.3 LTS Bind Upgrade Question

I don't know if it is safe or not, but you should be able to upgrade by using this PPA for Bind. I would uninstall the old version and then install the new version from this PPA by using the following commands.

sudo add-apt-repository ppa:malcscott/bind9.9
sudo apt-get update
sudo apt-get install bind9

The webpage for the Launchpad PPA is here.


It appears I had misconfigured file type associations in FileZilla:

It is supposed to look like this:

  html /usr/bin/gedit

  php /home/denis/netbeans-7.2.1/bin/netbeans

  . /usr/bin/gedit


Why is the name of the minimized app not shown while using the Numix theme in Lubuntu?

LXDE panel is not currently supported. I have no knowledge about LXDE, so I would love if someone steps up and adds support for LXDE panel.

About no option to edit, I don't know about that either. Numix uses standard color definitions, so I have no clue why there is no edit option. Again, i'll love when someone helps me with it.


Failing to remove installed package, apt-get says not installed

Your apt list command does not indicate that samba is installed, just that it is available. Try

apt list --installed samba

or

apt-cache policy samba


Install the official Ubuntu ds9 (sudo apt-get update && sudo apt-get install saods9).

If you are using Conda/Anaconda environment, I found your error with both Anaconda2-2019.10 and Anaconda3-2020.02. To solve it, downgrade the default ds9 v8.0 to v7.4 with the command conda install ds9"<8". That worked for me (Ubuntu 16.04 LTS).


That's the showmode option:

:set showmode

To make it permanent, create or modify your $HOME/.vimrc file and add the previously mentioned command in it, without the colon:

set showmode


Dual booting Lenovo Thinkpad X1 Windows 10 with Ubuntu Mate?

If 'Install alongside Windows' option is missing, it's better to try out 'Something else'.
Here you have to manually format the new partition you have created.
You should atleast have the following two:

1) Swap: Select the partition and click on '+' symbol to add swap.
Allocate memory equal to your RAM size and select 'Swap' in use as option.

2) Root: Again click on '+' and use following configuration:

Size = Your remaining partition space

Type for the new partition = Primary

Location for the new partition = Beginning

Use as = EXT4 journaling file system

Mount point = /

Now continue with 'Install now'.

Refer these articles for more information:
https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/

https://itsfoss.com/install-ubuntu-dual-boot-mode-windows/


There is a add-on available for Thunderbird that allows docks such as docky and awn that use Dbus to display unread mail counts.


Since the game will be only for Windows (probably) , you will need to install it through wine.

But there is also a scrabble game natively for Ubuntu, called PyScrabble. You can install it via executing sudo apt-get install pyscrabble in the terminal or search for "PyScrabble" in the Software Center and install it.


Where are the thumbnails of a new image located?

Depending on the programm that processes the thumbnails, the "icons" are usually located either in ~/.thumbnails/ or ~/.cache/thumbnails/.

The file name of the thumbnail is the md5sum of the full path + .png extension. So for finding the thumbnail of a given file you can use this function:

find_thumbnail(){
    full_path="file://$(realpath -s "$1")"
    md5name=$(printf %s "${full_path// /%20}" | md5sum)
    find ~/.thumbnails/ ~/.cache/thumbnails/ -name "${md5name%% *}.png"
}

Usage:
======
find_thumbnail /path/to/file.bmp
find_thumbnail ~/Pictures/file.jpg
find_thumbnail file.jpg
find_thumbnail "file with spaces.tif"


I found my own solution. The configuration packages and other data where under $HOME/.config/sublime-text-3. Once I removed that folder, all was golden.


I have run into a similar issue with Canon LBP3010 printer. It turned out that after some time being powered on, the printer would put itself into a different state where its USB connection no longer works. Not sure why, but what helped in my case was to just restart the printer. Simply reconnecting the USB cable would not help, because the printer would still remain in that weird state.

I have tried it on Linux kernels 4.9 and 4.12, on 3 different computers including Raspberry Pi 3 model B. None of them would even recognize the printer as an USB device after it has put itself into this weird state. There were just errors of the following kind:

Device not responding to setup address
device not accepting address
and eventually unable to enumerate USB device

I suspect it is a consequence of Canon printers implementing some kind of power saving mode where they also disable the printer's USB interface.


How to assign custom action to mouse middle click (something like libinput-gestures for mouse)?

you can do that with two packages installed..

xbindkeys and xdotool

sudo apt install xbindkeys
sudo apt install xdotool

create a file name .xbindkeysrc in your home folder

touch /home/user/.xbindkeysrc
gedit /home/user/.xbindkesyrc
paste the below content

Content:

"xdotool sleep 0.5 key Super_L"
b:2

run xbindkeys -p

Please note that when you click mouse middle button which is b:2 It will simulate key press of Super_L only for once.. again if you press b:2 It don't do anything as opposed to pressing Super_L

Example:

pratap@i7-4770:~$ touch /home/pratap/.xbindkeysrc
pratap@i7-4770:~$ gedit .xbindkeysrc
pratap@i7-4770:~$ xbindkeys -p
pratap@i7-4770:~$


You need to exit the classic confinement.  You can use the "exit" command for this.  Then you will be in the basic Ubuntu-Core filesystem confinement, and you can run "shutdown".

As a side-note: I'm running Ubuntu-Core Snappy on a DragonBoard, and it makes me crazy too.  For a Raspberry Pi that you're just using as a hobby project, I highly recommend using a regular (i.e. not snap-based) distro, because all of the generic instruction you'll find on the web will have a much greater chance of working.


Gournal looks like it stopped development in 2005 - thus the dependency in your question cannot be satisfied by the Natty packages.

As such, you will need to download the source package (the .tar file) and extract it.

In the folder you will see install - run this in a terminal

sudo ./install

This will install the perl gournal packages.

However the application still will not start without the gnome2::print perl module.

You could install this from CPAN - my brief experiment with this threw-up lots of compilation issues - but the application did start.  Just dont press the "print" button.  My guess is this section in gournal will need to be rewritten/updated to use newer supported perl print routines.

pre-requisites

sudo apt-get install libextutils-depends-perl libextutils-pkgconfig-perl libgnomeprintui2.2-dev libgtk2-gladexml-perl libgnome2-canvas-perl libxml-mini-perl

install missing perl module

sudo perl -MCPAN -e 'install Gnome2::Print'

Now start the application by running gournal:


Is there a way to let the interpreter know the second path is the same as the first path in the terminal?

You can access history expansion for the current line in both bash and zsh using the event designator !#

So for example to grab the last argument $ of the current line !# and substitute .temp in place of .oga:

mv /usr/share/sounds/freedesktop/stereo/camera-shutter.oga !#$:s/.oga/.temp

Alternatively, in bash, zsh and other shells that support brace expansion you could simply do

mv /usr/share/sounds/freedesktop/stereo/camera-shutter.{oga,temp}

Note that brace expansion works differently from shell globbing - it does not care whether the result matches an existing file or not.


Sound is not working properly in ACER ASPIRE 4736Z

I think, your speakers are broken. If not try installing PulseAudio sound driver. It compatible with every hardware.


Since sda1 is not in fstab, you must specify the mountpoint, e.g.

mount -o barrier=0 /dev/sda1 /mnt

then you will be able to find your files in /mnt.


Is there a program to track the keyboard and display it on a terminal?

There are many apps for that such as: xev , screenkey, showkey and much others.

Personally i advice you to try key-mon

To download:

first install dependency

sudo apt-get install python-xlib

download latest version of key-mon from here

now install key-mon

cd ~/Downloads
sudo dpkg -i keymon_1.17-1_all.deb

Now you can run it by command key-mon


I installed the wrong version of Ubuntu on my computer.

Either you can use boot-repair from an ubuntu live usb or easyBCD from Windows.

http://neosmart.net/EasyBCD/

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)


How to upgrade Ubuntu to a specific version?

The problem you are having is that 16.10 is end of life as of July 20 2017. Therefore the upgrader will not offer it up to you as a choice.


Are there any drawbacks to legacy BIOS as opposed to UEFI?

The main points are:

EFI-mode booting can be faster. The difference can be several seconds, contrary to what K. Darien Freeheart wrote, but the difference also varies from one computer to another; on some computers, the speed benefit can be non-existent. The effect is felt mainly in the firmware initialization, not in the Linux boot process itself.
An EFI-mode boot gives the OS access to certain EFI features. Today, the biggest of these is the ability to control the firmware's built-in boot manager, via the Linux efibootmgr utility. The kernel can also log crash data in NVRAM, but that's mainly of interest to developers. In the future, the number of things that can be done with an EFI-mode boot from a booted Linux distribution may increase.
The much-maligned Secure Boot can actually provide some security benefits, if you choose to configure it properly. You might never need or notice these benefits, but if, at some point in the future, some pre-boot malware spreads and can infect Linux-based computers, you might be glad to have Secure Boot active.
EFI provides new and different boot manager and boot loader options. In addition to GRUB, which is available for both BIOS and EFI, you can use rEFInd or gummiboot to choose the OS, and ELILO or the EFI stub loader to boot the kernel. See my page on EFI boot loaders for Linux for more on this topic.
On some computers, booting from a GPT disk in BIOS mode requires jumping through some extra hoops. Thus, booting in EFI mode may save you a bit of effort if you've got an over-2TiB disk or if you just plain like GPT.

Overall, these benefits are unlikely to be compelling for most people. Fortunately, switching boot modes is pretty easy. You can try it on a single-boot basis with most computers by preparing a CD-R or USB flash drive with my rEFInd boot manager. Boot to it and it should detect your Linux kernel(s) and let you boot it/them. (If you use a separate /boot partition, though, you'll need to add a root={whatever} kernel option by hitting F2 or Insert twice once you highlight the kernel.)


How can I copy files that are not bigger than 200MB using the terminal?

Try using the find command to build a list of files under 200MB and copy them to a dir.

find . -size -200M -exec cp -r {} dir/ \;


Will installing Ubuntu using Wubi erase Windows?

No, wubi runs under windows. So it won't remove the host OS.

It is like running virtual system.

Know more - https://wiki.ubuntu.com/WubiGuide


You're probably missing the ruby header files you need when compiling modules.

If you're on Debian/Ubuntu, install them with:

sudo apt-get install ruby-dev

Then try the bropages install again.


12.04 reports itself as quantal after installing the toolchain-test-ppa?

I had the exact same problem. In my case it was due to the fact that I had the ppa:ubuntu-toolchain-r/test enabled and even though only precise was listed as the series, the base-files package in there seems to belong to quantal. To find out from where the misbehaving base-files package is installed, use the following command:

$ apt-cache policy base-files

Find the line where the version matches the installed version and inspect the URL that is reported for that version.

If you want to keep the PPA enabled (e.g. because you want/must use the gcc-4.7 compiler), you can use apt-pinning to force the system into keeping the base-files package while allowing you to install gcc-4.7. Create the file /etc/apt/preferences.d/base-files (make sure not to use any dots in the name) with the following content:

Package: base-files
Pin: release o=Ubuntu
Pin-Priority: 1001

This will force a downgrade of the base-files package to its default version (from the main ubuntu repository) on the next upgrade.

Be extra careful about typographical errors, particularly spaces and capitalization.

Once the file is in place, use apt-cache policy base-files to determine the Candidate version. It should correspond to the version that is listed next to the default Ubuntu archive. Finally, start the downgrade:

$ sudo apt-get upgrade

When asked whether you really want to DOWNGRADE (capitalization not mine...), answer with y+Enter.


Try the program Disper:
This can be installed in a Terminal (CTRL+ALT+T).

sudo add-apt-repository ppa:disper-dev/ppa
sudo apt-get update
sudo apt-get install disper

Then do the following:

disper -l

Open Nvidia X Server Setting, you should see the external display is added. Configure TwinView should get you a dual monitor set up for your laptop. That's it.

Edit:
For the audio problem, do the following:
Open a Terminal (CTRL+ALT+T) and enter the following.

sudo apt-get install pavucontrol

Install the alsa mixer daily builds, what you can get here.

Open Pulse audio, go to the configuration tab in the drop down menu there is an option for HDMI audio out.


sleep 1; xset dpms force off

source: http://www.shallowsky.com/linux/x-screen-blanking.html

You might find suspending the computer just as convenient.


Sound doesn't work on an hp pavillion dv6 (except through headphone jack)

You should probably start here :

http://www.alsa-project.org/main/index.php/Help_To_Debug

Your problem is likely to be a bug in the "patch" code for the driver. (As in "patch panel" not "software patch".)

The process of working out what the problem is is influenced heavily by your sound hardware.

For similar problems with my Intel HDA setup, I found the HDA Analyzer utility to be helpful - this lets you manipulate card parameters manually. And also this codec graphing tool, which helps to visualize how the patch layout of the card should work.

Alas, advice for other sound hardware is outside my experience.

At a minimum level you will be able to feed back information to the ALSA team for future kernel versions. I was able to patch the kernel to fix my problem (my C is terrible, but the code concerned is quite simple), and get a fix into the main kernel with assistance from the team on the Ubuntu kernel IRC channel, but I appreciate this is probably not a standard user response to the problem :-)


Add your CD-key to your Steam account and you will get access to the game on all platforms for free.

TrailRider adds:

  You will just need to download the Linux version. This is assuming
  that the OP has a Steam key with the disk (hard to tell the way the
  question is phrased) If you use the same steam account on every system,
  you just need to click the install button to start the download.


Find an identical file with a different name

When the only difference is the name booth files should have the same content and size.

1. About the content. We can compare two files by the command diff file-1 file-2. Also we can use this command for a test in this way:

diff -q file-1 file-2 > /dev/null && echo 'equal' || echo 'different'

2. About the size. We can find a file with certain size by the command (where 12672 is the file size in bytes):

find /path/to/search -type f -size 12672c -printf '%p\n'

Or we can use a range in this way (where 12600-12700 is the file size range in bytes):

find /path/to/search -type f -size -12700c -size +12600c -printf '%p\n'

Note that, by default the command find works recursively.

3. Combine the two methods (where file-1 is our pattern file):

find /path/to/search -type f -size -12700c -size +12600c -printf '%p\t' -exec sh -c 'diff -q file-1 "$1" > /dev/null && echo "equal" || echo "different"' sh {} \;

4. Example. Let's assume we have the following directory structure:

$ tree /tmp/test
/tmp/test
├── file-1   # this is the pattern file
├── file-2   # this is almost the same file but wit few additional characters
└── file-3   # this is exact copy of file-1

The result of the above command will be:

$ find /tmp/test -type f -size -12700c -size +12600c -printf '%p\t' -exec sh -c 'diff -q file-1 "$1" > /dev/null && echo "equal" || echo "different"' sh {} \;
/tmp/test/file-2        different  # OK: here we have added few additional characters
/tmp/test/file-3        equal      # OK: this is exact copy of file-1
/tmp/test/file-1        equal      # OK: this is file-1 compared to its self

Or we can simplify the output by changing our command in this way:

$ find /tmp/test -type f -not -name "file-1" -size -12700c -size +12600c \
  -exec sh -c 'diff -q file-1 "$1" > /dev/null && printf "%s\tis equal\n" "$1"' sh {} \;
/tmp/test/file-3        is equal

Update from the comments. The following command finding for file with the same size as the file-1, and then the diff commas is involved with --brief and --report-identical-files options:

find /path -type f -not -name "file-1" -size $(stat -c%s file-1)c -exec diff -qs file-1 {} \;
Files file-1 and /tmp/test/file-3 are identical

We can compare md5sum of the files in this way:

Get the md5sum of the pattern file:

$ md5sum file-1
d18b61a77779d69e095be5942f6be7a7  file-1

Use it with our command:

$ find /path -type f -not -name "file-1" -size $(stat -c%s file-1)c -exec sh -c 'echo "d18b61a77779d69e095be5942f6be7a7 $1" | md5sum -c -' sh {} \;
/tmp/test/file-3: OK


Can't find an installed program - mathematica

For your case:

ls -l /usr/local/Wolfram/Mathematica/10.1

gives

ls: cannot access /usr/local/Wolfram/Mathematica/10.1: No such file or directory

This leads to conclusion that some error happen and you don't really install it.

so rerun the script again as mentioned here

sudo bash installer.sh

and follow instructions carefully and its better to keep the default settings


How to troubleshoot apt-get connection problems?

My first step when having problems getting packages is to choose a new server. Especially when you are having no other connection issues.

To do this you need to open the software sources dialogue which is available through the software centre.

when you open this you will see in the middle of the first tab a drop down selection. From this you need to choose other... you should then see a window similar to this

Hit the Select Best Server button this will ping all of the servers in the list and choose the closest one for you. Obviously any of the servers which are down will not be selected meaning that which ever is selected will definitely be up.

If you are still having problems after this then it is a more serious problem.

Hope this helps.


Are you resizing or moving a large partition? If so, that can take a long while and is normal. If you are partitioning an empty drive on the other side it should be over in a matter of seconds. In the later case I would just restart and try again.

There might be some RAID or encryption setups that could also take a considerable amount of time, but I have no detailed experience with that.

Another possibility is a hardware/driver problem, have a look at the output of dmesg for anything that looks like an error message. A broken drive should spam the dmesg output with new errors constantly.

For further help provide the output of dmesg and your partition layout along with the tools you use.

Another way to get more information would be to use strace -p PID (replace PID with the process id of the partitioning process), top or iotop. They can tell you if the partitioning process is currently doing something or stuck.


How do I force Ubuntu to use amd64, not i386

dpkg --print-foreign-architectures
amd64

This states that you installed your system as 32-bit, since 64-bit is "foreign" to your system architecture.
This is why apt keeps giving you 32-bit packages.

The fix is to reinstall using the 64-bit image.


You can add this: mount.cifs //192.168.1.151/_wymiana /mnt/share_2 -o user=wega,password=1234 in your /etc/rc.local before exit 0 which should be on the next line. It should mount your smb/share without any problem.


Where can I find network connection details?

Since you mentioned that you are using the GUI, I thought I'd show you how to do this through Unity.

When you use Unity, the networking stuff is handled by Network Manager.  There is a GUI method to access the connection details.

(1) Click on the connection icon on the top bar.  It may look like a plug, or parallel arrows, if you're using Ethernet and not Wifi.  Left click it.

(2) Then, you click "Connection Information".

(3) When you click that, a window with connection information will show up.  It will look similar to this.  Note that I'm on WiFi so the information you have MAY NOT MATCH exactly.

This will contain information INCLUDING the DNS servers used, the IP your computer has (NOTE: This will be whatever DHCP/ISP/Source of the IP address sets, not necessarily your public IP.), and other information.

You did mention that you wanted to tell if it's DHCP or static.  Unfortunately, unless you know how your network is set up, you can't easily tell whether the IP your computer receives is static or dynamic or DHCP-assigned.


How to determine startup run level for Ubuntu?

Ubuntu has replaced the traditional SysV init with Upstart. To somewhat stay compatible with SysV or runlevel based init, Upstart still supports the SysV traditions.

You can find (and change) the default runlevel in the /etc/init/rc-sysinit.conf file. The following command will do:

$ grep "env DEFAULT_RUNLEVEL" /etc/init/rc-sysinit.conf
env DEFAULT_RUNLEVEL=2

As you can see the default runlevel is 2, you can also change it to your desired runlevel.


How do I change the MIME type for a file?

To check if 'extension' mime type exist:

grep 'extension' /etc/mime.types

To create new mime type:

Open /etc/mime.types with text-editor(with root privileges)

gksudo gedit /etc/mime.types
Add extension to /etc/mime.types in following format:

text/extension                   extension

For more info click here


Where are debug symbols for backported packages?

You should post your repository list so we can see how you've added it. I would firstly report the problem to the kernel backports people, they're the only people who can sort the issue out permanently or explain why they won't.

See: https://help.ubuntu.com/community/ReportingBugs

Secondly, you could do an easier compile of the kernel by using the source package to generate a deb with symbols:

apt-get source linux-kernel
etc


What version of ubuntu do i need for a Intel Core 2 duo laptop with 6gb ram?

Those specs will comfortably run full fat regular Ubuntu. More than man enough, though you do not mention your graphical specs which could be a weak point.


How to uninstall VMware Player 4.0.3 on 12.04?

Use the switch: --uninstall-component=vmware-player

That uninstalled it for me.


Stop Screenlets from minimizing (in gnome shell)

I have been told that the Show Desktop Button extension that I forked from MGSE's Bottom Panel/Window List extension has the ability to do what you ask, but not in the same manner. But hopefully it is somewhat helpful to you.

This extension creates a button on the panel, as opposed to having a shortcut. I have been working on getting a keybinding set but I still don't have the js knowledge required for that, so any coding help possible is always appreciated and the git link is on the e.g.o link above.

This should only minimize windows and not screenlets according to comments I have received. I have not tested this, but I would love feedback on it from someone actually using some kind of widgets, so if you do test it let me know and I'll add a note to the extensions info with some due credit.


Citrix Error "You have not trusted certificate"

I've had this exact same issue with 13.4 and ubuntu 16.10

A lot of the answers I've found are nearly correct, but this worked for me after reading this guide: https://www.citrix.com/content/dam/citrix/en_us/documents/downloads/citrix-receiver/linux-oem-guide-13-1.pdf

sudo cp /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/

sudo rename 's/\.crt/\.pem/' /opt/Citrix/ICAClient/keystore/cacerts/*.crt

sudo /opt/Citrix/ICAClient/util/ctx_rehash


You could try

sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid

Source:  Ubuntu Wiki


What is the name of the disk partitioner used during installation?

I believe, the package responsible for doing installation and hence the partitioning stuff is ubiquity.

It's dependency includes libparted0debian1 package which provides the main library doing the partitioning stuff. ( you can see this with apt-cache depends ubiquity command ). But the main executable program used to do partitioning is partman and partman_server which are programs included in ubiquity. Also the installation log file /var/log/installer/partman indicating this.

I removed parted from Live session and installed Ubuntu without it successfully. Though I have to remove also usb-creator-gtk package.

partman program is not intended for normal use. See the Warning! section in the package description in debian site. This program is not packaged as a standalone but included in ubiquity package instead in Ubuntu.

There are many front-end programs available for normal use. A good GUI alternative is  gparted. gparted

I found that partman is a seperate package in debian, but it is not in Ubuntu. The program is included in ubiquity package.


Unless I'm much mistaken, your best bet is to wait a short while to see which manufacturer brings out a phone with Ubuntu pre-installed.

I would love to think that Canonical will distribute a version I could put on my rooted SGS3 but, unless take-up is poor by manufacturers, I don't see it happening given the vibes comming from their publicity. A massive shame but there we go. I feel we'd take it up far faster.


How to configure Logitech Performance MX 950?

You have probably figured this out by now, but for reference here is how to get the functionality you mentioned. The Logitech Performance MX 950 is also called just the Performance MX in some markets, so these instructions work for both the "Performance MX 950" and "Performance MX" models.

Setting up Zoom and Window switcher buttons

Install the CompizConfig Settings Manager

sudo apt-get install compizconfig-settings-manager

Open the settings manager, either through the Unity menu or by typing ccsm in a terminal.
Go to the "Scale" plugin. Under the tab "Bindings", assign Button 10 to "Initiate Window Picker For All Windows" by clicking on the button in the row with the mouse icon. This will give you the spread windows functionality, using all windows from all workspaces. If you prefer to just see the windows from the current workspace, instead assign the "Initiate Window Picker" shortcut.
Go back, and open the settings for the "Expo" plugin. Assign Button 13 to the "Expo Button" setting. This will give you the show workspaces functionality.

All the other buttons should work out of the box in Ubuntu, at least they do for me with Ubuntu 14.04. Do not be tempted to change any other settings in ccsm, as you can easily break your system with it.

Additional tip: You can run xev in a terminal to see exactly which buttons are currently pressed.

Setting up Solaar for additional settings, and managing the Unifying receiver

To manage the Unifying receiver and change a few settings on the Performance MX (scroll sensitivity, DPI settings), you'll need to install Solaar:

Add the PPA:

sudo apt-add-repository ppa:daniel.pavel/solaar

Update your sources:

sudo apt-get update

Install solaar:

sudo apt-get install solaar

Run Solaar from the Unity menu. To make it work for the first time, you'll need to unplug the receiver, plug it back in, and turn the mouse off/on.
Solaar will run in the background and show a small indicator in the top menu bar (next to the Wifi indicator). You can configure your devices or quit Solaar from there.
Solaar will add itself to the Startup Applications, which will make it start automatically on login. Personally I find the battery notifications distracting so I have disabled the Solaar entry (just remove it from the Startup Applications).


lost application menu 10.04 after upgrade

Since you say "fix it to the top bar" I can assume you have the top bar displayed.

Try:
Move the mouse cursor into the top bar and right click.
Select the "Add to Panel..." option
When the Add to Panel window appears, scroll down and select "Main Menu"
Click Add and then Close

You should now have the Ubuntu logo, Applications, Places, and System menus in the top bar.  You can also move them right and left or lock them, explore the right click options when hovering over the menu.

Note if you have too much in the top bar, some things may not get displayed because of a lack of real estate.


Is it possible to share a folder using Ubuntu One outside the home folder?

You could try using a mount --bind command. Something like

mount --bind /path/to/folder /home/username/folder_to_sync

This should make the contents of /path/to/folder available in both places.

Ubuntu-one doesn't support symlinks, but it might support binding mounts. If it does work, you can add a line to /etc/fstab

/path/to/folder /home/username/folder_to_sync    none    bind    0    0

That way it will always mount on boot.


How to get rsync to synchronize only new blocks for blockchain

According to this article, a combination of the following properties should work for you:
--partial --inplace --append

In your case that would be:
rsync -avz --partial --inplace --append --exclude-from=/exclude/file -e ssh /from/file server@ip.address:/backup/file

It also makes sense to me that a blockchain would only need "appended" data, i.e. added blocks.
In addition, --progress can be added as well.


SSH is a tool that is very good at some things such as forwarding single programs or, with firefox for example, ports, transferring data, running or managing remote servers.

Forwarding an entire desktop is not one of them however. It can be done mind you, but performance will be slow.

If you connect via ssh, you have already authenticated (logged into the system) so there is no need for lightdm. You can start a session by starting you desktop environment.

ssh -XfC -c blowfish user@server xfce4-session

Change xfce4-session to the DE or WM of choice. Light weight desktops without a lot of effects are going to perform much better then Unity and/or 3d effects / transparency.

Other options are fluxbox, openbox, lxde ...

That command will log in (via ssh) and start xfce on your XMing server. The options -X forwards X, -f puts ssh in the background, and -c uses compression which speeds things up somewhat. Performance is acceptable over a LAN for example (although slower then FreeNX or spice).

see man ssh or http://bodhizazen.com/Tutorials/SSH_overview#Options

Options to improve performance over ssh are to run a panel rather then the entire desktop. You can then start applications graphically if you wish.

You can also use a color, rather then an image, for the background. If you use an image, ssh has to constantly re-send the information when you move windows for example.

If you wish to use a desktop, use a "modern" VNC server. FreeNX is cross platform and is both secure and fast. FreeNX (NomachineNX) is, for example, fast enough to stream music over "the internet" while running a desktop.

See https://help.ubuntu.com/community/NomachineNX

Other potential options include using a web based application to manage your server such as webmin (there are other specialized interfaces) or a web based connection (several web services are available for example - http://showmypc.com/

If you are using virtual machines, spice is a cross platform server/client that is also quite fast.


Nautilus file copy from smb://server/share is 25Msec but when I mount its 4Msec

These two mechanisms use completely different codebases. Using mount will use the kernel implementation of SMB/CIFS, and mounting with gvfs-mount will use the SMB/CIFS implementation in libsmbclient (which is part of Samba).

Most likely this difference that you are seeing has to do with the fact that libsmbclient is better tweaked for your environment than the kernel implementation.


How to uninstall armory from ubuntu 12.04

You can try

sudo apt-get remove $(dpkg -l armory)

If it doesn't work, try

sudo apt-get remove $dpkg -l |grep armory)

If even this doesn't work, try this guaranteed method.

cd <folder where .deb file is stored>
dpkg -r <name of package>.deb


Correcting path setting in ~/.profile file

No, it's not a syntax error; it's just a letter which is appended after the expansion of $PATH, because the shell removes quotes...

$ PATH="$HOME/bin:$HOME/.local/bin:$PATH"i
$ echo $PATH
/home/zanna/bin:/home/zanna/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bini

So, as well as prepending local directories, it has effectively removed the existing /snap/bin from my PATH, and added the non-existent /snap/bini.

You can remove the i to repair your PATH.

To see the change, you will need to log out and back in or run source ~/.profile in any shell you are using (or launch the shell with bash -l), because .profile is read by login shells only.

If you did not make this change to your .profile yourself, you may want to restore the default file by running

mv ~/.profile{,.old}
cp /etc/skel/.profile ~/.profile

This renames the old .profile .profile.old (you could also delete the file if you wanted to) and replaces it with the default version for your system from /etc/skel.