Ubuntu desktop environment isn't working

Only the Wayland login option works since installing the amdgpu-pro-18.20-673703-ubuntu-18.04.tar.xz (proprietary AMDGPU-PRO) graphics driver, so uninstall the proprietary AMDGPU-PRO graphics driver and reboot the laptop.

The following command will provide you with the version of the AMDGPU-Pro stack on your system, or inform you that there are no packages found:

dpkg -l amdgpu-pro

ubuntu-drivers list will show which graphics driver is installed. Open the terminal and type:

ubuntu-drivers list

After you uninstall the non-working AMDGPU-PRO graphics driver, you can run this command to see what graphics driver Ubuntu 18.04 recommends for your Dell Inspiron 5570, if any.

ubuntu-drivers devices

If ubuntu-drivers devices doesn't recommend installing anything, then don't install anything.

Reinstall Xorg (xserver-xorg).

sudo dpkg --remove --force-remove-reinstreq xserver-xorg
sudo reboot

It's not necessary to reconfigure Xorg. Click the gear icon at login and choose a Xorg session. After that the laptop will always boot to Xorg until you click the gear icon at login again and choose a Wayland session.


Nautilus: open Extra Pane showing specific location?

It currently isn't a feature of Nautilus to do this. Although it could be suggested as a feature for nautilus team to set up.

Nautilus used to have an option for it to start-up with an extra pane.

https://live.gnome.org/Nautilus is the place to visit.

They have a sections called "Ideas", that would be the place to suggest such a feature:

https://live.gnome.org/Nautilus/Ideas


How to remove the Ubuntu Studio Startup:

The default/vanilla theme is provided by the plymouth-theme-ubuntu-logo package. Install it:

sudo apt-get install plymouth-theme-ubuntu-logo

Choose it as the preferred theme:

sudo update-alternatives --config default.plymouth
sudo update-initramfs -u

The default/vanilla greeter is provided by unity-greeter. Install and set it as the default:

sudo apt-get install unity-greeter
sudo tee /usr/share/lightdm/lightdm.conf.d/99-unity-greeter.conf <<EOf
[SeatDefaults]
greeter-session=unity-greeter
EOF


First of all, make sure, you don't require disk replacing. Check its health.

But if you want to install your system correctly the next time, select Something else during installation:

During manual disk configuration, assign your old linux partitions to their previous mount points.

But for root partition turn on a Format checkbox. Do not apply it to /home related partition as it is shown on the picture.


Command line interface to make a ogg mono from stereo

sox is a nice tool for all sorts of command line audio processing

sox your_inputfile.ogg your_outputfile.ogg remix -


Your script seems like a viable option to me. I've seen far more convoluted workarounds to issues in Linux.

Another alternative is a systemd automount which fulfills the or at least mounting automatically upon access requirement. Simple enough to implement and revert back if it's not exactly what you want.

[1] Unmount the share if it is already mounted:

sudo umount /mnt/MyShare

[2] Add 3 more options to your fstab declaration: noauto,x-systemd.automount,x-systemd.idle-timeout=30

//192.168.0.100/MyShare  /mnt/MyShare  cifs  username=<username>,password=<password>,rw,uid=1000,gid=1000,nounix,iocharset=utf8,file_mode=0770,dir_mode=0770,vers=3.0,noauto,x-systemd.automount,x-systemd.idle-timeout=30  0  0

Then do some systemd stuff:

sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target

The share will not mount at boot ( noauto ) but when the mount point is accessed ( noauto,x-systemd.automount ) and it will automatically unmount if share access is idle for more than 30 seconds - user adjustable ( x-systemd.idle-timeout=30 )


Notification Sound not working in Kubuntu 17.04

IDK if I arrived later to bring you a solution but I expect that somebody who's looking for a solution to that could find useful this workaround.

I had the same issue a few minutes ago and I believe this could help you. Seems to be there is a default setting that makes System Sounds silent in PulseAudio Volume Control. Go to the Application Launcher, type PulseAudio Volume Control, open it. Then go to Playback tab, you'll see System Sounds category. You'll see this muted. Click on Mute button, then move the volume slider to the level you want. You can make a simple test by doing VolumeUp/VolumeDown from your keyboard.


Battery life is getting shorter and it longer to charge

With the Update from Friday 09.12.2011 this problem should be solved.
I Had the sam eproblem and now my battery time is longer than 2 hours and loding is much faster.

I hope the update will help you ;-)


Upgrade 14.04 to 16.04 on laptop, boots to command line, won't accept input

Try booting from a Ubuntu live USB or optical disk.
This will not fix the problem but may allow you to get enough info on what is going on to effect a repair.  I would also attempt to run test software to see the condition of the disk.  You should be able to do this from the live system.

Good luck.


Update Manager downloaded updates but can't install them

Remove the cdrom:Ubuntu 12.04 LTS _Precise Pangolin_ - Release from the Other Software  and try again.
Since you are currently using 11.10, I reckon that entry is conflicting and interrupting your updating process.


Why database that created in phpmyadmin won't show in workbench?

You can see all the mysql databases by running the commandline mysql interface.

Bring up a terminal with Ctrl+Alt+T.

Then run this to login as root, which which has permissions to view all the databases.

$ mysql -u root -p

Now after loging in as root, run this:

mysql> show databases;

After seeing the actually database (as long as it has been properly created, you can use either this interface or the Phpmyadmin interface to give permission to the appropriate database to the userID that will be accessing it.

Some users will not be able to see databases that they don't have sufficient permission to see.

Granting access to database using the command-line:

You can do this from the commandline by looking at the database name and running this command from the root access.

mysql> GRANT ALL ON [database].* TO 'userid'@'%';

Replace "[database]" with the name of the database, not including the brackets.
Replace userid with the name of the user you are granting privileges.
Replace % with the access point.  The "%" gives permission to access from anywhere.  You can replace this with localhost or an IP address.

From the Phpmyadmin:

Phpmyadmin has a command interface for the database also.  You can click on the SQL link and type the same commands from the steps above there.


A2A
: Figured it out just now.
Turns out the last time I used this laptop, I was attempting to get the built-in fingerprint sensor to work. The laptop in question being a Dell Latitude E5570, there are no drivers available for Ubuntu for the fingerprint reader.
I removed the file located in /lib/security/howdy/compare.py forcefully and the error then became clearer: unable to load "howdy".
I went and removed this "howdy" module, and ran apt autoremove and purged the package cache. It appears to have solved the issue, as I am now no longer getting the error on launch of sudo command.


Is there a CLI software center that supports reviews and ratings?

It's horribly ugly, and not a software center by any means, but if you just want to search for software and see ratings or reviews, try the w3m browser on https://apps.ubuntu.com.

Install w3m and w3m-img (for image support):

sudo apt install w3m w3m-img

Nautilus:

lynx-cur:

The package name is given beneath the description, so you can then do sudo apt install <package-name>.

I have had some graphics issues with it, but, hey, it works!

Among lynx, elinks and w3m, only w3m was able to show the stars.


Keyboard light and screen brightness at 100% after startup

This worked for me. I'm using a Macbook Pro (late 2013).

Under /etc/rc.local , add the following lines (before "exit 0")

echo X > /sys/class/backlight/acpi_video0/brightness
echo Y > /sys/class/leds/smc::kbd_backlight/brightness

This will run at startup, so it will be your "Default" values. The first line sets the screen brightness and the second the keyboard backlight brightness. Change X and Y to the values you wish (on my Macbook, X goes from 0 to 100 and Y goes from 0 to 255).


asus tuf fx504 ubuntu 18.04 touchpad not working

I had the same problem with Asus FX504. The fix is in version 4.19.1 of the kernel. Try to upgrade to 4.19.1

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

Updated my Kernel to 4.19.1 and it works.

cat /proc/bus/input/devices

I: Bus=0019 Vendor=0000 Product=0003 Version=0000
N: Name="Sleep Button"
P: Phys=PNP0C0E/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=4000 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
U: Uniq=
H: Handlers=event2
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input4
U: Uniq=
H: Handlers=sysrq kbd event4 leds
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input5
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:13/LNXVIDEO:01/input/input6
U: Uniq=
H: Handlers=kbd event6
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0003 Vendor=046d Product=c077 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:14.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:046D:C077.0001/input/input7
U: Uniq=
H: Handlers=mouse0 event7
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=0461 Product=0010 Version=0110
N: Name="NOVATEK USB Keyboard"
P: Phys=usb-0000:00:14.0-3/input0
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:0461:0010.0002/input/input8
U: Uniq=
H: Handlers=sysrq kbd event8 leds
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=0461 Product=0010 Version=0110
N: Name="NOVATEK USB Keyboard System Control"
P: Phys=usb-0000:00:14.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:0461:0010.0003/input/input9
U: Uniq=
H: Handlers=kbd event9
B: PROP=0
B: EV=13
B: KEY=c000 10000000000000 0
B: MSC=10

I: Bus=0003 Vendor=0461 Product=0010 Version=0110
N: Name="NOVATEK USB Keyboard Consumer Control"
P: Phys=usb-0000:00:14.0-3/input1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:0461:0010.0003/input/input10
U: Uniq=
H: Handlers=kbd event10
B: PROP=0
B: EV=13
B: KEY=1000002000000 39fad9411001 e000000000000 0
B: MSC=10

I: Bus=0019 Vendor=1043 Product=0000 Version=0000
N: Name="Asus Wireless Radio Control"
P: Phys=asus-wireless/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input11
U: Uniq=
H: Handlers=rfkill kbd event11
B: PROP=0
B: EV=3
B: KEY=80000000000000 0 0 0

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Asus WMI hotkeys"
P: Phys=asus-nb-wmi/input0
S: Sysfs=/devices/platform/asus-nb-wmi/input/input12
U: Uniq=
H: Handlers=rfkill kbd event12
B: PROP=0
B: EV=100013
B: KEY=1000000080000 0 800000000000 0 0 a1606f00900000 8200027800701000 e000000000000 0
B: MSC=10

I: Bus=0003 Vendor=0ac8 Product=3500 Version=1007
N: Name="A4 TECH HD PC Camera: A4 TECH H"
P: Phys=usb-0000:00:14.0-1/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/input/input13
U: Uniq=
H: Handlers=kbd event13
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0003 Vendor=13d3 Product=5666 Version=1015
N: Name="USB2.0 HD UVC WebCam: USB2.0 HD"
P: Phys=usb-0000:00:14.0-7/button
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/input/input14
U: Uniq=
H: Handlers=kbd event14
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0018 Vendor=04f3 Product=3090 Version=0100
N: Name="ELAN1200:00 04F3:3090 Touchpad"
P: Phys=i2c-ELAN1200:00
S: Sysfs=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-6/i2c-ELAN1200:00/0018:04F3:3090.0004/input/input18
U: Uniq=
H: Handlers=mouse1 event15
B: PROP=5
B: EV=1b
B: KEY=e520 10000 0 0 0 0
B: ABS=2e0800000000003
B: MSC=20

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Front Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input19
U: Uniq=
H: Handlers=event16
B: PROP=0
B: EV=21
B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input20
U: Uniq=
H: Handlers=event17
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=7"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input21
U: Uniq=
H: Handlers=event18
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=8"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input22
U: Uniq=
H: Handlers=event19
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=9"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input23
U: Uniq=
H: Handlers=event20
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=10"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1f.3/sound/card0/input24
U: Uniq=
H: Handlers=event21
B: PROP=0
B: EV=21
B: SW=140


How to install flash for windows application with crossover or wine?

A very simple way, is to download windows's version of flash player, and install it on wine or cross-over. Re-run the application, it should work.


That error indicates a missing library. Doing a grep -rn freenect_set_video_format . in the directory containing libfreenect revealed that fakenect/fakenect.c contained the required function. Reading the fakenect/README made clear that you need to link against that library when building kinect_mouse.

So, edit kinect_mouse/CMakeLists.txt and put link_directories(/usr/local/lib64/fakenect) in it:

cmake_minimum_required(VERSION 2.8)

link_directories(/usr/local/lib64/fakenect)

add_executable(kmouse kinect_mouse.c)

Clear your build directory and build again.


First off, your Xorg config fails at the GLX module. This appears to be a system bug and as such can not really be fixed.

Secondly, why are you even trying to RDP into a server?! There are two problems with that:

RDP is a Windows-only protocol. It's not really going to work with Ubuntu.
Security. Need I say more?

You really should use SSH only. Set up a server and just use PuTTY everywhere. You say you like the terminal anyways...

Thirdly, why do you need a GUI on a server? That is a dangerous can of worms that can break a lot. Ubuntu Server + GUI = *Kablooie!*


Lenovo Ideapad s10-3 Wireless Disabled Problem

Possible answer for this you should open and reset your laptop Lenovo 10-3 CMOS battery.


Mounting partition require first mount point. Create a directory where you want to mount the partition of new hdd:

sudo mkdir /media/<username>/new_hd
sudo chmod 777 /media/<username>/new_hd

(Note that the first time you use the sudo command prompts you to enter your password)

Second step, find the UUID of the partition to mount:

sudo blkid

read output, and copy the relevant UUID.

Finally, edit /etc/fstab (assuming that the filesystem is ext4):

fields in fstab are:

<file system> <mount point>   <type>  <options>       <dump>  <pass>

so add this line:

UUID=<uuid_new_hd> /media/<username>/new_hd ext4 rw,user,exec 0 2

To do that, remember to edit with superuser permission, then using sudo:

sudo gedit /etc/fstab

Note: Gtk-WARNING when execute this command is normal. instead of gedit you can use nano or vim (non-GUI editor).

Check if new line was added, by typing:

 cat /etc/fstab

Then mounting and checking the partitions typing the following command in terminal:

sudo mount -a

If everything is ok, this command should not give back any output, and partition the new hd should be mounted.

Type man fstab for more help and options, or read here as suggested, and type man sudo for help with sudo command.


browser hangs 'connecting'... then continues after ~30 secs

Sounds like you're just having trouble connecting to whatever internet sites for a while, and your browser is waiting for data. That can happen in your wifi, router, modem, neighbourhood network, ISP, or further "upstream"... It would be hard to compare it to a different OS on the same computer, since it probably takes longer than 30 seconds to shutdown & reboot in windows & connect to the exact same site.

You could try ping-ing a reliable site that responds (like www.google.com or www.yahoo.com) and see if you start dropping pings or they take a lot longer when having the problem. The site could be in a different "direction" from the ones that aren't responding so it may or may not help.

Or is your browser, or whole system, completely freezing & you can't even open menus or anything? That would be something completely different


You can use a live CD (or other live media like usb) to get into Ubuntu (try it out mode).  Once there, you can mount all of your partitions which have data you want, and then copy your data to external media (like an external usb disk).  Or if you have unallocated space on your hard drive, you could even use it -- see Advanced: below.

If you need to, you can use "sudo" to get around any permission problems.  There is no password for sudo on the live CD, just use carriage return.

Once you have your data backed up, you can proceed to install Ubuntu.

Advanced:

In the live CD environment, you can inspect all of your devices and figure out where your data is.  In this way, you can answer your questions about which devices or partitions you may want to preserve or use or delete in your new installation.

Or if you have unallocated space, you could even create a new partition on your hard drive using the live CD, and put your data there.

The installer doesn't need the whole disk -- it just needs enough unallocated space and enough primary partition slots, plus (perhaps) some space in the first part of the disk.  So, if you have plenty of space, you could have a logical partition in the last part of the disk (where you could backup your data), and the installer would still proceed. It won't actually modify your disk without warning you, and you can inspect what it is going to do, and modify it a bit, before proceeding.

A favorite tool for me is "parted", to inspect partitions and make partitions.

While you are running the live CD, you can even install packages.  They will persist until you reboot.  So, if your favorite partitioning tool isn't available, you can install it in the live environment.


Converting .skp file to .gif using Terminal in Linux

I think converting the files it not possible. I would export a .mp4 file from Sketchup and then convert this via ffmpeg.


Try each of them before installing. Some may produce errors.

sudo apt-get update
sudo apt-get remove wine
sudo apt-get autoclean clean
sudo apt-add-repository ppa:ubuntu-wine/ppa then sudo apt-get update then sudo apt-get install wine1.7
Lastly, if nothing works, try installing aptitude instead of apt-get.:

Install Aptitude:

sudo apt-get install aptitude
sudo aptitude install wine


Detach from screen without Ctrl+a d in SSH

Got this from the screen man page.
To view the bindings in use, press CTRL+a, release and then press ?.
As you indicated d is used to detach.
To change bindings on the fly, you can enter a command mode by pressing CTRL+a then press :
To set a binding, type bind <key> <command>. So to set a new binding for detach type bind z detach.
To remove an existing binding you omit the command portion. So to remove an existing binding for d, you type bind d.
All together...

Remove d binding for detach by pressing CTRL+a then press :. Then type bind d
Remove ^D binding by pressing CTRL+a then press :. Then type bind ^D
Add your own binding by pressing CTRL+a then press :. Then type bind <YOUR_KEY> detach

You can place these commands in a .screenrc in the user's home directory to make them persist.


Kate crashes if opened from Dolphin, but OK from Konsole

I uninstalled Kate using Discover, and then installed it again, and now it seems to be working. Frankly, it's a very "Windowsy" solution, and I still don't know what caused the problem in the first place, so I'm afraid it might happen again at any moment, but right now, it's working.


Where should I look for logrotate config file of /var/log/mail.log

From man logrotate:, near the end

FILES

   /var/lib/logrotate/status  Default state file.
   /etc/logrotate.conf        Configuration options.


Install some temperature management software to help monitor/control your temps.

In terminal...

sudo apt-get update
sudo apt-get indicator-sensors
sudo apt-get lm-sensors
sudo apt-get thermald

Or use your favorite Software Store or package manager.

You'll want to read up a little on thermald by typing man thermald and man thermal-conf.xml, in terminal. After stopping the currently running thermald process, you can run thermald manually in --no-daemon mode to watch if it's doing the right thing, or as a basis for writing your own custom config file.

You may also wish to blow out any accumulated dust that collects in fans and on the main computer logic board, as this can easily cause heat issues. Lastly, if the machine is kind of old, you may need to re-apply thermal compound between the CPU and the CPU heat pipe/radiator.


Find latest modified *.c file and compile it within terminal with pipelining?

You are piping the name of the file as code to be compiled by gcc

You can pass the name as a file argument instead using xargs:

find . -type f -mmin -1 -name "*.c" | xargs gcc -o output.o -xc

However the "right" tool for this job is really make - which will determine what targets are older than their prerequisites and compile them as required.


Very high CPU usage in Firefox when watching YouTube on 17.10

Same here, Firefox eats a lot of CPU(>100%) when playing Youtube videos. One tweak is to enter about:config in address bar, then search for below flag and make it true.

  media.hardware-video-decoding.force-enabled

After that, the cpu usages becomes 20-40% which is kind of normal and on par with Chromium.

You could possibly get more juice after using this h264ify addon.


Why does chkconfig highlight the word "on" by default in Precise?

Because that's what it does. It's by design, I assume to help people notice.

From man chkconfig, emphasis mine:

  List mode prints for each specified service a line that consists of the service name and for runlevels zero to six on or off depending if the service will be started or not. on will be printed  in  bright green if the output is written to a terminal. If the --deps option is given, the names of the services that must be started before this service is appended to  each  line.  The  inetd/xinetd  services  are listed in extra sections.


Popcorn-Time: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory

Create a link:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libXtst.so.6.1.0 libXtst.so.6

if you have version 6.1.0. If not, change the version number in the second command.


I cant boot with new (3.11.6) or custom kernel

If you're on Precise you can install the Enablement Stacks (read the page thoroughly because there are caveats).

It's likely that your newly kidnapped kernel is incompatible with the rest of the graphics stack. There's quite a bit of work between 3.2 and 3.11. By getting the rest of the stack, you stand much better chance of booting. And it's all maintained for you.

Edit: I'm not sure if the 13.10 HWE stack is released yet but even the 13.04 is a year of progress from your stock 12.04 stack.


The purpose of that SanDisk USB is to boot up a computer, and install Linux on it.

Turn off the computer, put in the USB drive, and turn the computer on.  You might automatically get a boot menu to select the USB drive, or it might run the program on the drive and bring up the Linux install menu.  If neither of these things happen (you get normal Windows booting up, etc.) then turn the computer off again, and press F12 repeatedly just after powering up to get a boot menu, and then choose to boot from the USB on the menu that comes up.  If it still doesn't work, you need to research how to set up booting from USB on that particular computer.

The ISO that's on there could be burnt to a DVD, and then you can boot up with the DVD in the drive, but that isn't what it was designed for.  You could burn a DVD with that ISO from inside Windows.


Newly installed 16.04 LTS give random crashes

dpkg -V

It can even be run as a normal user for most files (i.e. files with user read permission).


Touchpad gestures and Touchscreen gestures

I am not sure about Unity, but this is built into Gnome 3.14 and above:

https://help.gnome.org/misc/release-notes/3.14/touchscreen-gestures.html.en1

I am using 3.18 at the time of writing this.
For Unity you can read this, there are these two programs EasyStroke and Gesture Injector - I have never used these, I would try EasyStroke first.


How to download and install Visual Studio Code on Ubuntu 14.04.5?

You seem to have downloaded the wrong packages and as you didn't provide further details about the architecture of the Ubuntu system you use, here are the correct download links ->

For 64-bit Ubuntu editions : code_1.9.0-1486023356_amd64.deb
For 32-bit Ubuntu editions : code_1.9.0-1486024310_i386.deb

Open a terminal in the directory where you have saved the downloaded file (or change to it).

On 64-bit Ubuntu editions execute this command :

sudo dpkg -i code_1.9.0-1486023356_amd64.deb
sudo apt-get install -f

On 32-bit Ubuntu editions execute this command :

sudo dpkg -i code_1.9.0-1486024310_i386.deb
sudo apt-get install -f

More information -> Running VS Code on Linux

Note : The direct download links and the file names are valid as of writing this answer today.
They will change with every new release, hence check the Download Visual Studio Code site.
This additional information is just meant to be for other users reading this post in the future.


How do I overcome these package dependency problems?

Try sudo apt-get install -f. It will probably give some suggestions about removing and installing packages, do what seems reasonable. If that doesn't help, try booting into recovery mode and choosing the "fix broken packages". If that doesn't work... I don't know, I'd reinstall Ubuntu if I were you. (This is a good reason to always have /home on a separate partition!)


Software center crashes; fieldrunners need to be reinstalled; can't find achive

Please run the following commands in a terminal and then see if your problem has been fixed or not -

sudo rm /var/lib/apt/lists/partial/*

sudo apt-get update


It's going to be a lot of trouble trying to get this thing to work properly. I'd recommend swapping out that modem for a WiMAX wifi hotspot instead.


open bash terminal in a specific directory

In recent versions of GNOME Terminal the --working-directory argument can be used to set the working directory of the terminal.

gnome-terminal --working-directory=/foo/bar


How to get the user downloads folder location with Python

Here's how you can get the downloads folder for any user in Python:

Gtk2:

import glib
downloads_dir = glib.get_user_special_dir(glib.USER_DIRECTORY_DOWNLOAD)

Gtk3:

from gi.repository import GLib
downloads_dir = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)

Documentation:

get_user_special_dir() function
Special dir constants


Will a USB Ubuntu 12.04 Boot Image Work if Copied to a CD/DVD?

There may be a way to do it but just copying the drive to the CD will not work. This is because CDs and USBs us a different mechanism to boot. Also bootable CDs load their OS into the ram because the CD has no write ability. The Ubuntu installation you have on a USB is not configured to load into the ram. What can do though is follow this tutorial to boot from a USB even when the feature isn't available in the bios.


Is the Silverlight downloads on Ubuntu safe to use (mokeke.sytes.com)

Moonlight has been unmaintained for sometime now.
If you need Silverlight functionality, consider using Pipelight - https://launchpad.net/pipelight

  Pipelight is a special browser plugin which allows one to use windows
  only plugins inside Linux browsers. We are currently focusing on
  Silverlight, Flash, Shockwave and the Unity Webplayer. The project
  needs a patched version of Wine to execute the Silverlight DLL.

Installation details: http://fds-team.de/cms/pipelight-installation.html


Unwanted application starts automatically when I login

Go to System>Preferences>Startup apps, then on the Options tab uncheck the "Automatically remember...." checkbox.


You have to use the --geometry argument with the gnome-terminal command.
Example: gnome-terminal --geometry 114x26+170+30
This will open up gnome terminal 114 columns wide by 26 rows deep and place it pretty close to the middle of the screen based on the 170+30.  A pretty cool tip to get your exact geometry of where you want your terminal is to go ahead and open the gnome-terminal and place it exactly where you want it and then run the command xwininfo in the terminal.  Click on the gnome-terminal with your mouse and it will display a whole list of things about that particular window.  The geometry of the window is listed all the way at the bottom.  Just copy the line and append it to your gnome-terminal command.  Tah Dah!!!


Neither Chrome nor Chromium launches after upgrade to Ubuntu 16.04

Based on the transcript you provided, the libnss3 dynamic library cannot be found. The following should resolve the issue:

sudo apt-get update
sudo apt-get install libnss3


I realize this is an old question, but I just stumbled upon it and found the answer. After you separate the image into the CMYK channels, you get a .tif image with 4 layers (one for each color). This image looks inverted because each area where this is white/grey represents a certain amount of cyan, magenta, yellow, or black.

Once you have this, just go to Image -> Separate -> Export and export your image as a .tif. This will repackage your image with the CMYK profile you choose, and when you view it, it will be the right print colors.

You can also use Image -> Separate -> Proof, and select the color profile of your monitor and it will generate a .tif preview with all the right colors. It's a pretty nice plugin!


journalctl is full of "audit" messages but there is no auditd

auditd itself became optional, journald provides the same functionality.


Why does /var/lock/tt-rss keep being deleted after reboot?

Since Oneiric, /var/lock is a symlink to /run/lock:

$ ls -ld /var/lock
lrwxrwxrwx 1 root root 9 Jan 15 18:30 /var/lock -> /run/lock

/run and /run/lock are tmpfs filesystems:

$ mount | grep /run
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)

In other words, your files are not stored on your root filesystem, but are lost at every reboot by design.

Files in /{var,run}/lock are not meant to be long-term storage locations. To solve your problem, you can create a script that creates /var/lock/tt-rss/ at every boot, and maybe that backups its content at every shutdown (depending on your needs). However this probably deserves an another question.


That is becuase MBR disks only support a maximum of four primary partitions.

Use an extended partition for Ubuntu & swap instead.


Preseed deletes data on partitions, how can I stop this?

The partman documentation has some good tips:
https://sources.debian.org/src/debian-installer/20190410/doc/devel/partman-auto-recipe.txt/

First of all, I believe you could define one of the partitions with "infinite" size, which will actually use whatever space is left on the device after all the other partitions' sizes have been calculated, for example:

              30000 30000 -1 ext4       \
                  method{ format }      \
                  format{ }             \
                  use_filesystem{ }     \
                  filesystem{ ext4 }    \
                  mountpoint{ /data }   \
                  label{ data }         \

Anyways, have you found a way of keeping the data in the partition?


Graphics Card driver issues, ATI, Radeon HD 4200

Gallium3D is an open source driver for graphic chipsets so there should be nothing wrong if that's what it installed.
Which method did you use to install drivers? i also run a radeonHD and had to install ati proprietary drivers for it to fully work.

Downlaod drivers for your device from here

Follow installation instructions from here


GTK application font problem with some characters in Kubuntu

Fixed with apt-get purge libcairo2 and install again libcairo2 and other package which was removed.


Partitioning before Installation - better in Windows or Ubuntu?

It is generally not recommended to work on disks and partitions from within a running operating system. So prepare the disk before installing any system to avoid possible trouble later on.
Boot from the Ubuntu installation media you created before and select Try Ubuntu without installing.

Open GParted, create a new partition table. This will erase the disk, so backup your data before.
In case you have an UEFI based BIOS, select gpt. In case you have a legacy BIOS, select msdos.
Now create new partitions for Windows - here you find all information about what to consider :

BIOS/MBR-based hard drive partitions
UEFI/GPT-based hard drive partitions

After having prepared the partitions for Windows, prepare the partitions for Ubuntu. Creating an EFI partition is not necessary, because this already has been done before. All boot loaders will be installed there, the Windows boot loader and the Ubuntu GRUB boot loader.

Create a new partition - format it with ext4 - choose a size of minimum 20 GB.
Create a new partition - format it with swap - choose a size matching the RAM.

First install Windows, disable hibernation and fast startup, then shutdown the PC completely.

Now install Ubuntu, boot from the install media - select Try Ubuntu without installing. On the desktop click Install Ubuntu - when asked what to do - choose Something else. Select the ext4 partition you had created with GParted for the Ubuntu system before. Select / as mount point and ext4 file system as format and then start the installation of the Ubuntu operating system.

Here you find further information including a GParted presentation : How to prepare a disk ...


booting to frozen virtual console after `prime-select intel`

Generally you should use the drivers from the official Ubuntu repositories. But when there are problems with the drivers ... you can install the more current drivers from the GPU Drivers PPA.

Uninstall the currently installed NVIDIA drivers and bumblebee - remove the xorg-edgers PPA.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :
Open a terminal and execute :

sudo apt-get purge nvidia* bumblebee
sudo apt-get install ppa-purge
sudo ppa-purge ppa:xorg-edgers/ppa
sudo reboot

Now install the latest official NVIDIA drivers 361 that support the NVIDIA GEFORCE GTX 960M.

Highlight the Ubuntu menu entry and  press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and the password, then execute :
Open a terminal and execute :

Open a terminal and execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-361 nvidia-prime
sudo reboot


I had the same problem. I fixed it by:

Remove all existing keyservers from the Sync box (by default hkp://keyserver.ubuntu.com:11371, hkp://pool.sks-keyservers.net, and ldap://keyserver.pgp.com).
Add them over again (keeping the same settings).
Press Sync.

Don't know why this works, but it does.


Cannot change click speed and single click becomes a double click

Or if you can't single-click at all, use the command line:
dconf write /org/gnome/settings-daemon/peripherals/mouse/double-click 200


What is the difference between +bbb and -bbb images in the 15.04 release?

There is no difference between the two except for the filename. One is 'armhf+bbb', the other is 'armhf-bbb', and one is a symlink
to the other on the server.  The reason we have both names is that we had
pushed one of these names as the URL to publish on the website, then
realized that the name we'd pushed was inconsistent with the overall naming
scheme on releases.ubuntu.com.


LXQt Settings are not applied even on reboot - have always to edit config files - why?

Yes, there are some bugs in LXQt.

I've been unable to configure sleep mode on my laptop, but I was able to configure Suspend mode:

Menu ->
 Preferences ->
  LXQt settings ->
   Power Management ->
    Lid

Menu ->
 Preferences ->
  LXQt settings ->
   Keyboard and Mouse ->
    Keyboard Layout

I've noticed, that my keyboard layout settings reset in case I run iBus Preferences (enabling daemon):

So I need to reconfigure keyboard layout using LXQt settings after that. After Keyboar Layout configuration I couldn't set Alt+Shift to toggle layout, so I used iBus Preferences to reset it and configured it as it is necessary for me. After iBus Preferences's reset + Keyboard Layout reconfiguration settings are applied.

For hibernation you could try to modify /etc/default/grub

...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=2deb87ff-009d-4b6f-98b1-7c959dc54af0"

UUID you could find by executing commands:

lsblk
sudo blkid

Then sudo update-grub

It could also be required to create /etc/initramfs-tools/conf.d/resume file with the next content:

RESUME=UUID=41e86209-3802-424b-9a9d-d7683142dab7

Then do sudo update-initramfs -u

Reboot, then use lxqt-leave --hibernate command to see what messages it displays.

Try to hibernate it directly: systemctl hibernate

If you could hibernate and resume without issues after systemctl hibernate, then we could go further.

In my case I don't use hibernation, so for testing I've created /hiberfile and specified its resume_offset and root's partition UUID in /etc/default/grub and /etc/initramfs-tools/conf.d/resume files. But in my case hibernation freezes my PC. After resuming it resumes correctly into freeze state, so I need to hard reset it. Maybe I'll resolve it, however I don't use it.


The best way to remove Netflix Desktop (see also official site) depends on how you installed it.
So far, Netflix Desktop is not available in any of Ubuntu's official software sources. So the project maintains a PPA. You most likely installed it that way.
If you installed netflix-desktop from the PPA:
If you're planning to reinstall Netflix Desktop soon, your best bet it to just remove the package installed from the PPA (without removing the PPA).
Otherwise the best thing to do is to purge the PPA from your configured software sources and uninstall netflix-desktop (and any other packages that might be installed from it--that PPA does provide other pacakges as well, and unless you know you want them, you probably don't).
Purging the PPA and all the software installed from it can be done with a single command--but you may need to install the command first. This does both:
sudo apt-get update && sudo apt-get install ppa-purge && sudo ppa-purge ppa:ehoover/compholio

Even if you've already removed just the package with sudo apt-get remove netflix-desktop, you can still remove the PPA and any other packages installed from it with the above ppa-purge command. (See this question if you're interested in details of how ppa-purge, and its alternatives, work.)
If you got nextflix-desktop the old way, unpacking the archive in your home folder:
Before the PPA, Netflix Desktop was installed by unpacking an archive to a .netflix-desktop folder inside the user's home folder. As blogged, you can remove that by running:
rm -Rf ~/.netflix-desktop

Be very careful when you run that. If you accidentally put a space between ~ an / or / and ., you'll delete your whole home directory, including all your documents!
(If you prefer to remove the .netflix-desktop folder from the comfort of a GUI, open a Nautilus window, navigate to your home folder if you're not already there, press Ctrl+H to click View > Show Hidden Files, and delete the .netflix-desktop folder.)
If you were using Netflix Desktop installed this way, you might want to try the newer version from the PPA; it may work better for you. And if you used the old version and then tried the PPA version without removing the old version, you may be able to fix some problems with it by removing the folder from the old version and starting over.


.txt is a raw text format: you can't use any type of text-formatting.

Some "generic" conventions are **Bold** and *italic* because a lot of markdown will interpret these as bold and italic.

Another thing that could be usefull to display a bold text is to use bash. But it will of course only work in you display the .txt in a bash-terminal. For this, you can use something like echo -e "\033[1mThis text is bold", but it will be copied 'as it' in the .txt file.


How do you compile multiple kernels from the git repository?

This error was caused by not running "make clean" before building the kernel packages. "make clean" and the problem goes away.


VirtualBox - Ubuntu guest OS - access denied on timedatectl set-timezone

Assuming that you have the Guest Additions installed ... from the VirtualBox manual: "The VirtualBox Guest Additions ensure that the guest's system time is synchronized with the host time." Further on: "There are several parameters which can be tuned."

Disabling the Guest Additions time synchronization:
Once installed and started, the VirtualBox Guest Additions will try to synchronize the guest time with the host time. This can be prevented by forbidding the guest service from reading the host clock:

VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Now you know the root cause for what you call "strange behavior" and once you turned off the default setting which automatically synchronizes the guest time with the host time, you should be able to set the time zone within the guest system permanently.

Reference: Official VirtualBox manual Chapter 9.14 -> Fine-tuning timers and time synchronization


EC2 virtual server receives requests but cannot access another host

For those who had the same problem like me, went to the bottom to find the nameserver was set to the ip of amazon.

So I edited /etc/resolv.conf and put the google nameservers

nameserver 8.8.8.8
nameserver 8.8.4.4

and it worked. Hope this helps someone.


Unity launcher, dash and menu fonts are not anti-aliased

Although it's a really old post, I thought of leaving the solution I found after searching for quite a while.

Set the Text Scaling Factor to something different from 1.0 (1.01 worked for me) and leave Antialiasing set to Rgba. I did this using the unity-tweak-tool.


What are my options to replace Gnome 3's Nautilus in the least intrusive way?

You can install nemo and thunar without their recommended packages. This won't pull Cinnamon desktop or the XFCE desktop.
sudo apt --no-install-recommends install nemo

Similarly for thunar
sudo apt --no-install-recommends install thunar

caja seems to install mate-desktop even with --no-install-recommends.
Nautilus used to have many more features back in 2010 (when GNOME 2 was still around), after which they began to remove useful features in the name of simplicity.


Ubuntu 17.04 will not boot on UEFI system with XFS system partition

I haven't tried such an installation in a while, but it sounds like there's a bug in GRUB's XFS support, or at least in the way Ubuntu sets it up. I have three suggestions for workarounds:

Create a separate /boot partition -- If you create a separate /boot partition and use ext4fs on it, that will eliminate GRUB's need to read XFS, which should bypass the problem. I recommend making /boot at least 500 MB in size, and maybe as large as 1 GB.
Mount the ESP at /boot -- This approach is a variant of the preceding one. I'm pretty sure that the Ubuntu installer will refuse to accept this layout, so you'd need to install in some other way and then tweak the configuration using an emergency boot system. Even aside from the difficulty setting this up, there's one BIG caveat: Ubuntu sometimes (but not always) creates symbolic links as a temporary part of installing a new kernel. Since FAT (which is used on the ESP) does not support symbolic links, this will fail, as will any kernel update that creates symbolic links. Thus, this approach will cause minor problems from time to time. If your computer were a Mac (or if you were installing to a VirtualBox virtual machine), you could use HFS+ on the ESP, which is a violation of the EFI spec but would work on a Mac or under VirtualBox. Using HFS+ on the ESP will not work on any UEFI-based PC I know of. In any event, you'd want to ensure the ESP was big enough (at least 512 MiB) if you try this.
Use rEFInd and the efifs XFS driver -- GRUB isn't the only EFI boot loader for Linux; but most require that the kernel reside on the same partition as the boot loader itself. GRUB and my own rEFInd are the two exceptions to this rule. The trick with rEFInd is that it includes no XFS support; however, there is an XFS driver for EFI available in the efifs package. Thus, installing both rEFInd and the XFS driver from efifs should work. The trick is that you'll need to do this at least somewhat manually and from an emergency system, so it'll be a pain to set up. Also, efifs is derived from GRUB's filesystem drivers, so if GRUB's XFS support is flaky, efifs might not be any better.

Overall, creating a separate ext4fs /boot partition is likely to be the easiest solution; however, if you're really keen on having everything (except the ESP) on XFS, you could try rEFInd or mounting the ESP at /boot. Of those two, I'd recommend rEFInd above mounting the ESP at /boot; mounting the ESP at /boot is just too far from what Ubuntu expects to be a good choice, particularly since you're likely to see occasional failed kernel package updates. I mentioned that option mainly for completeness, not to say it's a good idea.


Ubuntu 16.04 doesn't see windows 10 usb stick installation

You said you installed Windows 10 on a USB stick.  Your image is of the content of a hard drive, not a USB stick.

You would have to select the USB device to see the content of the USB stick.  You can select specific devices by clicking on the GParted menu and point to the USB device.  Windows isn't install on your /dev/sda drive.  The USB drive would be a device higher than /dev/sda, in your case.  If you have two devices, your internal /dev/sda and a USB drive.  You find it listed as /dev/sdb.

Gparted shows one drive at a time.  You can use gnome-disks to see the list of drives on the same screen.  Gnome-disks will display your USB drive as a Pen Drive Icon.


I had a similar problem and it turned out a log file was getting massive.

Change to your Home directory:

cd /home/*yourusername*

ls -al

check to see if anything is way too big.
My .xsession-errors file was 430GB!

So I deleted the darn thing:

sudo rm .xsession-errors


How can I change download location in aria2?

-d, --dir=

The directory to store the downloaded file.

This option is per download basis, you have to do this every time.

Alternatively, you can install uGet, http://uGetdm.com , which is a front-end to aria2. You can also ask for help on the uGet Forum, http://uGetdm.com/forum


Active application icon not shown on dock

I have solved the problem with the help of this video: https://youtu.be/xZ_M3Q-U-J0.
Here is the summary:
Gnome (and any other Desktop) identify instances of an application and keeps track of them with the WM_CLASS property.
Some of the KDE applications do not provide a WM_CLASS property within them and due to this missing WM_CLASS property, Gnome cannot keep track of the applications and therefore cannot associate the icons with them. Every time a new instance of that same app is created, it shows a new element on the dock.
This problem also occurs in KDE plasma: https://forum.kde.org/viewtopic.php?f=289&t=160452
Solution:

Open the application which behaves this way.
Open up a terminal and issue the command xprop WM_CLASS. The mouse cursor will change to a + symbol. Click on that application with the + shaped cursor. The WM_CLASS string will be printed out on the terminal.

Copy the .desktop file of that application from /usr/share/applications/ folder to your local directory ~/.local/share/applications/ folder. For me, it was named org.kde.kcolorchooser.desktop.
Do not modify the original file, because it will get replaced whenever the application is updated.
Open the file in a text editor and add the line StartupWMClass=<WM_CLASS> where <WM_CLASS> should be replaced by the string you got from the above command. For me, it was StartupWMClass=kcolorchooser.
Save the file and enjoy! The problem will be gone.


xtrkcad - how to get current version in repository

currentUbuntu version not support latest version 4.2.1 of xtrkcad. it support 4.0.2 even wily version not support version more than 4.0.2. so there is only option to install it manually. see here.

uninstall older version of xtrkcad if you are already installed using command

sudo apt-get purge xtrkcad

and download latest version 4.2.1 from here according to your system architecture.
then install using command:

sudo dpkg -i xtrkcad_4.2.0-1_amd64.deb

if this show any dependency error then run command:

sudo apt-get install -f

it will install dependencies of xtrkcad  then again install

sudo dpkg -i xtrkcad_4.2.0-1_amd64.deb

or

you can download source code from here and compile manually .

EDIT : if you don't want to upgrade or downgrade any package then you can put that package on hold using command :

echo "xtrkcad hold" | sudo dpkg --set-selections

or

sudo aptitude hold xtrkcad

or

sudo apt-mark hold xtrkcad

or use Synaptic Package Manager to lock version

or try other solution suggested in How to prevent updating of a specific package?

and also see What does 'Lock Version' do? . these are popular question but old so it may be some solution may not work but this is good.


how to version control a site with Bazaar?

You're creating a branch in ftp://user@example.com/public_html/forums. Since this branch is new and nothing has been added to it, it will be empty when you check it out later.

See the bzr documentation for instructions on how to add files to a branch.


How to make a bash script generate a new filename every time it's run?

The date command can produce a date as text in whatever format you want. You would then use it in a script something like:

tar -cvf File$(date +%a).tar /home/name/folder

This would produce FileMon.tar, FileTue.tar as above. See man date for a description of the different date formats it can produce.


nVidia GT 730 and Unknown Display, resolution settings reset on reboot

I had this issue and used a workaround to run the command at boot.

Open a text document and paste this into it

[Desktop Entry]
Type=Application
Exec=xrandr --output VGA-0 --mode 1360x768 --rate 59.80
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Custom Resolution

Save it as res.desktop and move it to the /.config/autostart folder.

Or to do the same thing using nvidia-settings copy this

[Desktop Entry]
Type=Application
Exec=nvidia-settings --assign CurrentMetaMode="DFP-0: 1360x768_60"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Custom Resolution

NOTE: You may need to change CurrentMetaMode="DFP-0 to CurrentMetaMode="DFP-1, depending on the ID of your display (check this in nvidia settings).

Save it as res.desktop and move it to the /.config/autostart folder.

mv location/of/res.desktop ~/.config/autostart

Make it executable

sudo chmod +x ~/.config/autostart/res.desktop

Now reboot and it should change the resolution when you log in, but like I said its just a workaround, not a fix.


Install AdoptOpenJDK onto Ubuntu 18.04 LTS

Adoptium, formerly known as AdoptOpenJDK, provides a Debian / Ubuntu repository.
You can install using the package management system, which is much simpler than installing it manually.:
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt update
sudo apt install adoptopenjdk-8-hotspot  # Java 8 / HotSpot VM
sudo apt install adoptopenjdk-8-openj9   # Java 8 / OpenJ9 VM
sudo apt install adoptopenjdk-11-hotspot # Java 11 / HotSpot VM
sudo apt install adoptopenjdk-11-openj9  # Java 11 / OpenJ9 VM
sudo apt install adoptopenjdk-12-hotspot # Java 12 / HotSpot VM
sudo apt install adoptopenjdk-12-openj9  # Java 12 / OpenJ9 VM
sudo apt install adoptopenjdk-13-hotspot # Java 13 / HotSpot VM
sudo apt install adoptopenjdk-13-openj9  # Java 13 / OpenJ9 VM

You can switch between e.g. OpenJDK and AdoptOpenJDK using the following command.:
sudo update-alternatives --config java


Where is the OS name stored, and how can I edit it?

Name and version of the operating system visible in virtual consoles is stored in /etc/issue.


Nautilus Image Converter: strip EXIF metadata

I downloaded the code for Nautilus Image Converter and been through it configuration file and I dont think that this is possible from configuration file. But, if you open nautilus-image-resizer.c and take a look at line 320, you will see the following code:

gchar *argv[6];
argv[0] = "/usr/bin/convert";
argv[1] = filename;
argv[2] = "-resize";
argv[3] = priv->size;
argv[4] = new_filename;
argv[5] = NULL;

as you see, this is where the arguments for Imagemagick convert utility are being created. I think if you change this to following, it should solve your problem:

gchar *argv[6];
argv[0] = "/usr/bin/convert";
argv[1] = filename;
argv[2] = "-resize";
argv[3] = priv->size;
argv[4] = "-strip"
argv[5] = new_filename;

DISCLAIMER: I havent tried this. This answer is solely based on my limited understanding of the Nautilus Image Converter code. So I would recommend to backup your images before using the modified version.


Can I share MySql database files with Windows on dual boot?

Yes, it works but with some quirks. MySQL uses the same fileformats across platforms so all you need is to share the data directory. One problem is that the data directory need to have mysql as owner and group in ubuntu. And Windows is case-insensitive and Linux is case-sensitive so keep all names uniform: either the whole name lowercase or uppercase but do not mix them.

From start to finish; if you already have things set up this might need some tweaking to fit your setup:

Install and setup MySQL on both systems.
Stop the mysql server if it is running.
Make a new NTFS partition. Mark the device name (let's call it sdXN for now).
Move the mysql data directory from Ubuntu to the new partition.

mkdir /{mountpoint}/mysql_data
sudo mv /var/lib/mysql /{mountpoint/mysql_data

using mv saves permissions.
Make a new mysql directory

sudo mkdir /var/lib/mysql

Mount the NTFS partition at /var/lib/mysql. Change the devicename to what it got when you created the NTFS partition.

sudo mount /dev/{sdXN} /var/lib/mysql -t ntfs-3g -o uid=mysql,gid=mysql,umask=0077

To automount on boot find the partition UUID and locale and edit /etc/fstab.

ls -l /dev/disk/by-uuid
locale -a
sudo gedit /etc/fstab
UUID={number_found_with_the_ls-l} /var/lib/mysql ntfs-3g uid=mysql,gid=mysql,umask=0077,locale={your_locale}.utf8  0  0

Change the 'datadir' path in /etc/mysql/my.cnf to point to /var/lib/mysql/mysql_data
Start the mysql server and test it.
Edit the Windows config file (my.ini) and set 'datadir' to X:/mysql_data (replace X: for where you mount it under Windows).

Compiled from topic 1442148 on UF.org.

I got the Ubuntu version working; so partly untested since I do not have Windows


I need to use a Windows program, and have low RAM, how can I use Ubuntu as an alternative of Windows XP?

Don't install Windows XP in your computer. Its extended support was discontinued in 2014. It would be very much prone to malware as soon as you connect to internet. AFAIK, major browsers have stopped supporting it too.
Either use a Virtual Machine to run Windows XP inside Ubuntu, or use Wine to emulate the software.
Also, many popular Windows software have equivalent free and open source software in Ubuntu, so we may be able to recommend you an equivalent software if you tell what you need.
Less RAM issue
2 GB RAM is not enough for Ubuntu 20.10.
I suggest you to use Xubuntu or Lubuntu 20.04 instead (or Kubuntu, without any fancy effects. The RAM usage of Kubuntu is very similar to Xubuntu). They need relatively less resource to run. Also, the 20.04 version is a long term support release, so you can stick to the same operating system for a long time.
In case even Xubuntu or Lubuntu seem to be slow, you can use other distros tailored for older computers. Some examples of such distros are LXLE, Puppy Linux, anTiX or Bodhi.
Note that they are not supported on this website. But being Debian based, the user experience would be very similar to Ubuntu.
Alternatively, if you don't need to regularly connect the computer to internet, you can use an older version of Ubuntu (e.g. Xubuntu 14.04). That would be still a lot safer than Windows XP (even such an older version of Ubuntu won't be affected by a USB drive affected with virus).
With such a lighter OS, you would have enough free RAM to run a virtual machine (even 200 MB RAM is enough for XP), or emulate the software in Wine.


Ctrl+C command is not terminating infinite (while) loop

Try this:

#! /bin/bash

sleep 2
while feh --cycle-once -zD $1 *.png; do :; done

This way, the cycle will end when feh exits with a nonzero status (as it does when you terminate it).


Can't resize /dev/sda1 on gparted on Ubuntu 14.10 VirtualBox

Just as in a bare metal system we can also boot our virtual machine from a live CD .iso we had mounted as a CD-ROM to our virtual machine.

Make sure you leave the hard disk boot order allowing to boot from CD-ROM first.

After that we will boot this machine from a live session where we can access the still attached virtual drive from GParted.

Consider taking a snapshot or export your VM before you change partitions.

Also see: How do I increase the hard disk size of the virtual machine??

In case we do not need to increase the partition size of the exisiting partition but only need more space, e.g. for HOME, we can also partition the still unallocated space of our resized hard drive. This new partition can then be used for additional space in the VM.


Wacom Intuos Draw Tablet not detected in System settings and MaptoOutput does nothing

Okay, I fixed it. I got confused between map to monitor and map to area.

So for those who have the same problem here is what you have to do.

You get the current area of your tablet with this command: xsetwacom get 8 area
And you will get 4 numbers. Mine were 0 0 15200 9500 where the smallest number represent the smallest number of your resolution and my resolution is 1280x1024 so 9500 = 1024 and 15200 = over 1280 because the area was wrong to the horizontal. So what I did was dividing 9500 (which was right) by 1024 then multiply the result by 1280 and the number it gave me was the right one so the right area was 0 0 11875 9500.

So yeah some math is required here.

The system settings still doesn't detect my tablet but now that I know how to do it through the terminal I don't need it in the system settings.


Maybe the "Micca Spect media player" you mention did some formatting of the HD on it's own, I'm not sure if you were trying to use the HD with the player already. And does "The installation went well and I booted into Ubuntu (14.04 LTS with full drive and home folder encryption)" refer to anything that was done to the HD in question?

I wouldn't use Disks (gnome-disk-utility) for any serious partitioning, it lists the Partitioning as "Unknown ()" for /dev/sdb, and there shouldn't be a 2nd entry for a regular HD - it doesn't even list a device either. Maybe it doesn't know about or has bugs with GPT partitioning, which I'm suspecting is the problem, especially given your error "... without being partitioned." But your error messages mention parted, could still be Disks' problem though.

Try gparted instead, it's a nice reliable gui for parted, and knows about GPT partitioning. May need to write a new Partition table too, then partition/format.

And could run sudo parted -l to see partition info about all your devices. (For fun, sudo fdisk -l would show similar info, but it doesn't know about GPT).

I would also consider the possibility that the HD enclosure you're using is doing something funny, or the USB cable, hub, ports, etc... taking the HD out of the enclosure & plugging the HD directly into a computer is a backup plan.

Searching for the "Error: /dev/sdb: unrecognised disk label (udisks-error-quark, 0)" message gets a few results where the HD is failing too...


Generate OpenVPN client file for creating session to access the company's private networks

I fixed this issue by login to openvpn.company.io in the web browser with credentials (username: user@email.com, pass: mypassword). If you are not able to access the openvpn.company.io on browser you should talk with IT person to grant you access.
After you are successfully logged in download the client.ovpn file. Then from here everything is pretty easy. You should just follow the instruction in this link.


How to make Dropbox auto start on Ubuntu 16.04 LTS MATE?

After having 15-minutes of googling I found solution (see launchpad bug 1604439).

The solution:

caja-dropbox autostart y

After reboot Dropbox shows its icon in system-tray, Caja shows overlay icon on ~/Dropbox folder and works correctly.

Note: this solution works on coming Ubuntu 18.04 LTS too.


Boot problem with custom preseed in 18.04: /dev/ram does not exist

Finally I figured it out.

I was missing the parameter boot=casper in the append line. With the parameter the iso boots.

An additional note for someone who runs into the same problem while trying to get a preseed installation working: The preseed files don't work with the new installer. Currently Ubuntu provides an additional installation image with the old installer, currently available here. With this image (server without "live" in the filename) the problem above doesn't occur and the preseed files work.


"Installing Ubuntu OpenStack: The Canonical distribution" failed due to bootstrap timeout


Regular expression to pull db table names from .sql files

I pulled some sample queries from Google and made a couple sql files with the following data in them for example purposes:

file1.sql

SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
INNER JOIN Customers
ON Orders.CustomerID=Customers.CustomerID;
SELECT Customers.CustomerName, Orders.OrderID
INTO CustomersOrderBackup2013
FROM CustomersOriginal
LEFT JOIN Orders
ON Customers.CustomerID=Orders.CustomerID;

file2.sql

-- Dumping data for table `user_details`
INSERT INTO `user_details` (`user_id`, `username`, `first_name`, `last_name`, `gender`, `password`, `status`) VALUES
(1, 'rogers63', 'david', 'john', 'Female', 'e6a33eee180b07e563d74fee8c2c66b8', 1);

The first thing you're looking for is the OR operator for grep:

$ grep 'INTO\|FROM\|JOIN' *.sql
file1.sql:FROM Orders
file1.sql:INNER JOIN Customers
file1.sql:INTO CustomersOrderBackup2013
file1.sql:FROM CustomersOriginal
file1.sql:LEFT JOIN Orders
file2.sql:INSERT INTO `user_details` (`user_id`, `username`, `first_name`, `last_name`, `gender`, `password`, `status`) VALUES

That will get the entire lines from the original files. Next let's use sed to pull out the table names:

$ grep 'INTO\|FROM\|JOIN' *.sql | sed -r 's/.*?(FROM|INTO|JOIN)\s`?([^` ]*).*/\2/g'
Orders
Customers
CustomersOrderBackup2013
CustomersOriginal
Orders
user_details

Finally, let's eliminate duplicate tables:

$ grep 'INTO\|FROM\|JOIN' *.sql | sed -r 's/.*?(FROM|INTO|JOIN)\s`?([^` ]*).*/\2/g' | sort -u
Customers
CustomersOrderBackup2013
CustomersOriginal
Orders
user_details


Ubuntu 13.10 64 bit samba failed to install

To create a samba launcher file, first run this in terminal - nano is a easy-to-use command-line text editor:

sudo nano /usr/share/applications/system-config-samba2.desktop

Then copy one of the texts below (sourced from launcher file on my Fedora computer, but works on my Ubuntu system), and paste this into nano (Ctrl+Shift+V probably).

Short version:

[Desktop Entry]
Name=Samba
Comment=Create, modify, and delete samba shares
Icon=system-config-samba
Exec=gksudo /usr/bin/system-config-samba
Type=Application
StartupNotify=true
Terminal=true
X-Desktop-File-Install-Version=0.21

Long version, based on original:

[Desktop Entry]
Name=Samba
Name[ar]=سامبا
Name[as]=Samba
Name[ast]=Samba
Name[bg]=Samba
Name[bn]=Samba
Name[bn_IN]=Samba
Name[bs]=Samba
Name[ca]=Samba
Name[cs]=Samba
Name[cy]=Samba
Name[da]=Samba
Name[de]=Samba
Name[de_CH]=Samba
Name[el]=Samba
Name[en_GB]=Samba
Name[es]=Samba
Name[et]=Samba
Name[eu]=Samba
Name[fa]=سامبا
Name[fi]=Samba
Name[fr]=Samba
Name[gu]=સામ્બા
Name[he]=Samba
Name[hi]=सांबा
Name[hr]=Samba
Name[hu]=Samba
Name[id]=Samba
Name[is]=Samba
Name[it]=Samba
Name[ja]=Samba
Name[kn]=Samba
Name[ko]=Samba
Name[lv]=Samba
Name[mai]=सांबा
Name[mk]=Самба
Name[ml]=സാംബാ
Name[mr]=Samba
Name[ms]=Samba
Name[nb]=Samba
Name[nds]=Samba
Name[nl]=Samba
Name[or]=ଶାମ୍ବା
Name[pa]=ਸਾਂਬਾ
Name[pl]=Samba
Name[pt]=Samba
Name[pt_BR]=Samba
Name[ro]=Samba
Name[ru]=Samba
Name[si]=සම්බා
Name[sk]=Samba
Name[sl]=Samba
Name[sr]=Самба
Name[sr@latin]=Samba
Name[sv]=Samba
Name[ta]=சம்பா
Name[te]=సాంబ
Name[th]=Samba
Name[tr]=Samba
Name[uk]=Samba
Name[vi]=Samba
Name[zh_CN]=Samba
Name[zh_TW]=Samba
Comment=Create, modify, and delete samba shares
Comment[ar]=إنشاء، تعدّيل وحذف مجلدات سامبا المُشتركة
Comment[as]=samba অংশৰ সৃষ্টি, সাল-সলনি কৰক বা আঁতঁতৰা দিয়কই
Comment[ast]=Criar, camudar y desaniciar recursos compartíos samba
Comment[bg]=Създаване, редактиране и премахване на samba споделени ресурси
Comment[bn]=Samba শেয়ার নির্মাণ, পরিবর্তন এবং অপসারণ পদ্ধতি
Comment[bn_IN]=Samba শেয়ার নির্মাণ, পরিবর্তন এবং অপসারণ পদ্ধতি
Comment[bs]=Izrada, izmjena ili brisanje Samba dijeljenih mapa
Comment[ca]=Creeu, modifiqueu i elimineu recursos compartits samba
Comment[cs]=Přidat, upravit nebo smazat sdílené adresáře
Comment[cy]=Creu, addasu, a dileu rhaniadau samba
Comment[da]=Opret, ændr og fjern samba-delinger
Comment[de]=Samba-Freigaben anlegen, ändern und löschen
Comment[de_CH]=Samba-Freigaben anlegen, ändern und löschen
Comment[el]=Δημιουργία,  μετατροπή,  και διαγραφή κοινών πόρων samba
Comment[en_GB]=Create, modify, and delete samba shares
Comment[es]=Crear, modificar y borrar recursos compartidos samba
Comment[et]=Loo, muuda ja kustuta samba jagamisi
Comment[fa]=ایجاد , تغییر , و حذف  اشتراکهای سامبا
Comment[fi]=Luo, muokkaa ja poista samba-jakoja
Comment[fr]=Créer, modifier et supprimer les partages Samba
Comment[gu]=સામ્બા શેરો બનાવો, સુધારો અને કાઢી નાંખો
Comment[he]=יצירה, שינוי, ומחיקת שיתופי Samba
Comment[hi]=सांबा साझा बनाएँ, संशोधित, और विलोपित करें
Comment[hr]=Izrada, izmjena ili brisanje Samba dijeljenih mapa
Comment[hu]=Samba megosztások létrehozása, módosítása és törlése
Comment[id]=Buat, modifikasi, dan hapus samba shares
Comment[is]=Búa til, breyta eða eyða samba sameignum
Comment[it]=Crea, modifica e rimuove condivisioni samba
Comment[ja]=Samba 共有の作成、変更および削除
Comment[kn]=Samba ಹಂಚಿಕೆಗಳನ್ನು ಸೃಷ್ಟಿಸು, ಬದಲಾಯಿಸು ಹಾಗು ಅಳಿಸು
Comment[ko]=samba 공유를 생성, 수정하고 삭제하기
Comment[lv]=Izveidot, modificēt un dzēst Samba koplietojumus
Comment[mai]=सांबा साझा बनाउ, संशोधित, आओर विलोपित  करू
Comment[mk]=Креирај, уреди и отстрани самба делења
Comment[ml]=സാംബാ ഷെയറുകള് ഉണ്ടാക്കുവാനും മാറ്റം വരുത്തുവാനും നീക്കം ചെയ്യുവാനും സഹായിക്കുന്നു
Comment[mr]=samba शेअर निर्माण, बदल, आणि नष्ट करा
Comment[ms]=Cipta, ubahsuai, dan padam pengkongsian samba
Comment[nb]=Opprett, endre og slett samba-ressurser
Comment[nl]=Aanmaken, wijzigen en verwijderen van Samba gedeelde bronnen
Comment[or]=ଶାମ୍ବା ର ସହଭାଗ ମାନଙ୍କୁ ସ୍ରୁଷ୍ଟି କର, ରୂପାନ୍ତର କର, ଏବଂ ଅପସାରଣ କର
Comment[pa]=ਸਾਂਬਾ ਸ਼ੇਅਰ ਬਣਾਓ, ਸੋਧੋ ਅਤੇ ਹਟਾਓ
Comment[pl]=Tworzenie, modyfikacja i usuwanie udziałów Samby
Comment[pt]=Criar, modificar e apagar partilhas samba
Comment[pt_BR]=Crie, modifique e apague compartilhamentos do Samba
Comment[ro]=Creează, modifică şi şterge partajări samba
Comment[ru]=Создание, изменение и удаление ресурсов Samba
Comment[si]=සම්බා හවුල් සාදන්න, සංශෝධනය කරන්න නැතහොත් මකාදමන්න
Comment[sk]=Vytvoriť, upraviť alebo odstrániť samba zdieľania
Comment[sl]=Izdela, spremeni in izbriše skupne diske SMB
Comment[sr]=Направи, измени, и обриши Самба дељене ресурсе
Comment[sr@latin]=Napravi, izmeni, i obriši Samba deljene resurse
Comment[sv]=Skapa, ändra och ta bort sambautdelningar
Comment[ta]=சம்பா பகிர்வுகளை உருவாக்கவும், திருத்தவும், அழிக்கவும்
Comment[te]=సాంబా భాగాలను సృష్టించు, మార్చు, మరియూ తొలగించు
Comment[th]=สร้าง, แก้ไขและลบการแบ่งปันทาง Samba
Comment[tr]=Samba paylaşımlarını oluşturur, değiştirir ve siler
Comment[uk]=Створення, зміна чи видалення ресурсів Samba
Comment[vi]=Tạo, hiệu chỉnh, và xóa Chia sẻ Samba
Comment[zh_CN]=创建、修改和删除 samba 共享
Comment[zh_TW]=建立、修改與刪除 Samba 共享
Categories=System;Settings;
Icon=system-config-samba
Exec=gksudo /usr/bin/system-config-samba
Type=Application
StartupNotify=true
Terminal=true
X-Desktop-File-Install-Version=0.21

Note the Exec= line and the Terminal=true line. The first is what command will be executed, while the second means that it will be launched in the terminal. This bit has to be in the launcher file so that the sudo password can be typed in, but if it does it automatically or does not require the password, you can set this to Terminal=false.

Now you can save it by Ctrl+o, and exit by using Ctrl+x.

Now you should be able to find it in the dash, but you may need to logout and login, or reboot to see any changes.

If the launcher shows, but you want to change the icon, just change Icon=system-config-samba to Icon=/usr/share/icons/PATH/TO/REQUIRED/IMAGE

The icon may look like one of these:

Hope you find atleast some of this fairly bizarre answer helpful


How do I move 'home' to the main Ubuntu partition

Note 1: The below will assume that you have a USB stick which you used to install Ubuntu, but the same goes for using a CD. So, wherever you see "USB", it's basically "the media at which you made bootable with Ubuntu".

  Note 2: Wherever you see userName in the commands, replace it with your actual username that you use in your Ubuntu.

Okay, what we'll be doing is booting into live Ubuntu using a LiveUSB. So, if you still have the USB you used with Ubuntu on it, then just boot from it, as if you were going to install Ubuntu from scratch, except, we'll choose to Try Ubuntu, not install Ubuntu. This will boot up Ubuntu from the USB, so this is not your actual installed Ubuntu. [Too many "Ubuntu's".]

All of the following will be typed in a terminal. You can open one by  Ctrl+Alt+T.

  Note: If, at any point, you get an error, stop, and let us know.

sudo mkdir /media/rt

This will create a directory called rt under /media. This will be the folder that will be housing your actual Ubuntu root partition.

sudo mount /dev/sda3 /media/rt

As apparent from the command, this will mount (make accessible) /dev/sda3 (your root partition) on the folder /media/rt.
Note: if the command gives you an error about the "file system type", do sudo mount -t ext4 /dev/sda3 /media/rt instead.

cd /media/rt

This will change our working directory to that directory, which is now your Ubuntu's / partition.

sudo chroot --userspec=userName:userName . Don't forget, replace userName with your Ubuntu username.

This...well...basically, the prompt that you see now would be the same prompt you would get if you opened a terminal in your actual Ubuntu installation. Your prompt should change to userName@hostname:$, something like that.

sudo cp /etc/fstab /etc/fstab.bak

  Note: I'm not entirely sure if this command will ask you to enter a password. But if it does, enter your username's password. This goes for all the remaining commands.

This is taking a backup of the file fstab that we're going to edit in the following couple of steps.

sudo gedit /etc/fstab

This will open up that fstab file, of your Ubuntu installation, in a text editor. This file is responsible for mounting the /home partition at startup when you boot up your Ubuntu. It's also responsible for mounting the / partition, so be careful with editing this file.

Look for the following two lines:

# /home was on /dev/sda4 during installation
UUID=<random-numbers> /home           ext4    defaults        0       2

They won't be exactly the same as this. You'll probably find exactly the first line, but the second line might be slightly different. It could start with /dev/sda4 instead of UUID=<random-numbers>. But essentially, what we're looking for are the lines that have /home in them.
Put a # in front of the second line of the two. So, it should look like this:

# /home was on /dev/sda4 during installation
#UUID=<random-numbers> /home           ext4    defaults        0       2

Putting that # basically means that 'this line is a comment', so we're essentially deleting it, but we're not going to actually delete it.
Save and close the editor. This will take you back to the terminal.
ls /home. You should not see any output. If you don't see any output, continue on with the steps. If you see your username as the output (highly unlikely), go to step 13.

This command is basically checking if you already have a home folder. You should not see any folders there because all of your /home directory was mounted on a separate partition anyways.

sudo mkdir /home/userName. Don't forget, replace userName with your Ubuntu username.

This is creating a new home directory for your username. But it has incorrect ownership, so we'll fix it in a while.

sudo cp /etc/skel/{e*,.[a-z]*} /home/userName

This will copy some essential files to your new home folder.

sudo chown -R userName:userName /home/userName

This is changing the ownership of your new home folder to be you.

  Note: There might be an easier, one command method to accomplish steps 11, 12 and 13, but meh, I don't know of it.

exit
exit

This should close the terminal.

At this point, we have removed auto-mounting your /home partition, created a new home folder for your username, copied some essential files to it, and gave it the correct permissions.

Shutdown this live Ubuntu. Remove the USB stick. Boot into your Ubuntu as you normally would. Cross your fingers. You should boot normally, and find that you have a home folder with all the subdirectories (Documents, Pictures, etc.) just like you did, but now, all of this is under one partition, the root partition.

Let's do some checks.

cat /etc/fstab. Look for the # that we added to that line. It should be there.
ls -l /home. You should see something like this:

drwxr-xr-x 43 userName userName  4096 Jun 30 20:49 userName

As long as those bold words are your username, everything is good.
ls -l /home/userName. You should see all of those subdirectories created, and all of them should have your username in place of those bold words above as well.
Open GParted. You should not see /home as the mount point for that partition (/dev/sda4) like in your screenshot.

If all of this checks out, congratulations!

At this point, your other partition (the one that used to be /home) is now free for you to do whatever you want with. Open GParted, and delete it, format it, burn it, throw it out the airlock, whatever.

Phew.


Installation Ubuntu on HP Z1 Workstation (WM431EA)

I've managed to install Ubuntu (dualboot) on a HP Z1 after a few unsuccessful tries with the normal install procedure (Ubuntu 12.04). I also got a black screen after install and after lots of searching on forums, I concluded the UEFI BIOS was part of the problem.

As a mac computer also uses UEFI/EFI, I thought the solution may be to use an Ubuntu distro iso especially made for the Mac. I installed Ubuntu on a separate 2nd SSD just to keep it separated from Windows 7. My purpose is to have a dualboot system (Windows 7 and Ubuntu).

This is what I did (july 2012) in short:

copy the ubuntu mac iso on an usb stick (there are lots of manuals how to do that)
boot up with this stick and install normally, just select the right partition and/or disk, otherwise your Windows 7 install will be overwritten. In my case I selected to have Ubuntu installed on the 2nd SSD.
after ubuntu is fully installed, reboot and Windows 7 boots up
Download EasyBCD (http://neosmart.net/EasyBCD/) to alter the bootmanager. Here you have to assign the right OS to the right partition, so you can select Ubuntu or Windows to point at at boot time.

Success!

PS in the meantime, take a look at https://help.ubuntu.com/community/UEFI. It's a recently written useful article how to install Ubuntu on UEFI computers.


13.04 - Fn volume keys not working on Dell Inspiron 1470

Perhaps Ubuntu is simply seeing them as regular keys. If so then you could remap them.

See if this helps: Re-mapping keyboard keys


Two Telegram messengers in the Unity Launcher

For some reason, Telegram makes two .desktop files when installed; one in /usr/share/applications and one in ~/.local/share/applications

I now just rename the local one so that it isn't read:

mv ~/.local/share/applications/telegramdesktop.desktop ~/.local/share/applications/telegram

This immediately kills the second icon.

You may have to repeat when Telegram updates itself, as it will regenerate the file


Where do I add modules to initramfs? (15.04)

Just add them at the end of the file like that

# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
usbcore
uhci_hcd
ehci_hcd
usbhid

But I not think it is related to your problem.


It is difficult to find a full list of manufacturer codes but this particular code is associated with Samsung:

0x80CE—Samsung Electronics, Inc.

This is taken from a table on the page I have listed as reference, the full section of this table going:

The vendor ID of the manufacturer. This can be one of the following:

    0x2C00—Micron Technology, Inc.
    0x5105—Qimonda AG i. In.
    0x802C—Micron Technology, Inc.
    0x80AD—Hynix Semiconductor Inc.
    0x80CE—Samsung Electronics, Inc.
    0x8551—Qimonda AG i. In.
    0xAD00—Hynix Semiconductor Inc.
    0xCE00—Samsung Electronics, Inc.

References:

Cisco: Viewing server properties - Memory Properties


How do I diagnose a possible regression in the Java package?

Since you have VisualVM running as a profiler, which is the right tool for this job, the idea is to collect enough data to find out where the hot spots are.

The system is reporting on the entire Java process. Profiling tools are a way to look at the work within that process (and, indeed, a "process" makes no sense to a profiler. It is looking at a number of threads and classloaders within a single JVM instance.)

Since you want to collect information that you can use to report back to the OpenJDK project (or, probably, the authors of the game) you might want to experiment with the "Sample" capabilities. The idea is that we want a snapshot of activity over time, probably a number of snapshots, so we can see what parts of the JVM were hottest during the identified problem we see from the point-of-view of the system.

This way we can see if it is methods related to the game code, or the native or non-native code within the JVM itself.

(I will add that profiling running apps is a bit of a black art. My advice is to make sure you are really looking at the JVM instance you think you are, and spending some time with the interface to figure out what you are collecting. Performance investigations are often more about understanding what you are trying to do more than what information you actually get; it's about making sure you are asking the right questions.)


How to temporarily override a DNS setting for a certain domain name to point to localhost?

What are we talking about here? A single host, a network, a dns server serving your domain?

I'm gonna go with single host:

echo '127.0.0.1 somehost.example.org' | sudo tee -a /etc/hosts

If you are in fact in a network then please add more information to your question.


Xiaomi gaming laptop 16.04 quick discharge

Check this.
Had a similar issue and found out a bug in the touchpad interruptions. The script in the solution solved the problem for me.


Today I needed to downgrade from 3.5.0-24 to 3.5.0-23 (I have both installed). I succeded with the following:

sudo /etc/kernel/postrm.d/zz-update-grub 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic

You can find out Your current kernel with:

uname -a

You can find out other kernels installed on Your computer with::

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'

Mind that You might also need to lock the version of the kernel -- so to prevent it automatic update.


OpenJDK built in Ubuntu 12.10, but not working?

You have the JRE installed, but not the browser plug-in.

You will need to install icedtea-7-plugin  to be able to use Java applets in Firefox.


I don't know what device you're using specifically, but the Wii sensor bar doesn't actually do anything. It's just a few infrared LEDs spaced to the ends of the bar, and powered through the long cable that connects to the Wii. The actual "sensor" part is in the Wiimote itself, which connects to the Wii (or your computer) via Bluetooth.

It may be that the thing you're using works a bit differently, as it seems to include devices for keyboard, mouse, and joystick input, and thus may need drivers that aren't written or available for Ubuntu.


untar content of folder from tar.gz archive that gets data from STDOUT (wget)

Okay got it... using --strip-components=1 does the job for me.


Black screen while connecting Windows server 2012 through Remmina

Open the session's configuration windows. Choose the Basic tab. Change the color depth. You're probably using one that's not supported by the machine you are connecting to. Check the attached picture. (Sorry for the badly edited screenshot. I'm not very good with Gimp. But I tried focusing on the option I'm talking about, so I blurred everything else. It's actually the first time I do this ever and I consider it an accomplishment, it took time to figure out how to do it :D)


How to configure nullmailer to work with mailchimp?

So the fix was in the end quite simple.

I needed to allow less secure application access here. As well as --insecure flag in the remote file was necessary.


:q should work just as fine with the "file explorer" as with any other open buffers. A segmentation fault suggests there's a serious bug in the version of vim you are using (or it could be a kernel bug or faulty RAM).

I tried this myself, but did not get a segmentation fault.


AWS ubuntu machine infected with some kind of miner-gate. How do i diagnose it or get rid of it?

I think this will work although I have never had this particular piece of malware:

Close all browsers

sudo kill -9 minergate-cli_pid

sudo apt-get --purge remove minergate-cli

It would be helpful to know which method was used to penetrate your system.  If the process shows up again, run the above commands again and reset all browsers to their default condition.  Do not uninstall and then reinstall them.  The process for doing this varies from browser to browser.

Clamav should see this binary as a virus.  If it persists, type:

sudo clamscan -r --move=/home/USER/QUARANTINE /

This will scan your entire file structure and move any virus found to a folder in your user directory.  Replace USER with your username.


you have to copy/paste the patch code from bugs.php.net/bug.php?id=48886 in simple text file lets say php.patch then unpack php tarball and in the same directory issue the command above. Notice that that patch works well only for php version 5.3 with any other php version you can meet some problems

This is  the command you have to use .

patch -p1 < /path/to/patch/file

credit goes here:www.webhostingtalk.com


Can't see my mobile sd card in Ubuntu 14.04

Adding to what John_West said, depending on the type and software on your phone, you might have to "allow" your computer to see the card (input on your phone may be required after plugging it in). How this is called in detail varies on the manufacturer.


How to install Tomcat 8 on Ubuntu 14.04 Trusty LTS using the “apt-get” way?

Tomcat8 is now present in the repositories and can be installed using this aptitude command:

sudo apt-get install tomcat8


gibberish command not found on bash terminal startup

To find which commands bash runs on start-up and which file those commands came from, run:

PS4='+$BASH_SOURCE> ' BASH_XTRACEFD=7 bash -xl 7>&2

The output is lengthy but the source of the gibberish will hopefully be clear.

Explanation:

PS4='+$BASH_SOURCE> '

When creating an execution trace, bash will prepend every line with an expansion of PS4.  Here, we make PS4 display the source file that is being read.
BASH_XTRACEFD=7

This sends the execution trace to 7 which is a file descriptor chosen in hopes that it is one that the bash start-up files will not mess with.
bash -xl

This starts bash with the options -x, which causes all commands to be displayed with the PS4 prompt, and -l which instructs bash to treat this like a login shell.  If you don't get gibberish on login shells, then try it without -l.
7>&2

This redirects the trace output back to stderr for display on the terminal.

Three Refinements

Based on Geirha's comment, this version adds three improvement:

PS4='+ $BASH_SOURCE:$LINENO:' BASH_XTRACEFD=7 bash -xlic ""  7>&2

There are three refinements here: (1) the PS4 prompt now also displays the line number as well as the file name, (2) the -i flag makes the shell interactive, in addition to -l which made it a login shell, and (3) -c "" causes the shell to exit after initialization is complete.


According to the LibreOffice Wiki you should be able to open .dbf files with LibreOffice Base.

If you still encounter this problem, reinstall LibreOffice:

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install libreoffice

You can also use dbview to open .dbf files (which may be harder to use than LibreOffice Base):

sudo apt-get install dbview

Refer to the manpage for more information on dbview.


USB wired mouse stops working after some time, lsusb hangs, the /sys/bus/usb/devices/usb folder doesn't open up

You may want to try using the script described by Eli Billauer. The script worked for me up until recently. I am using a USB mouse and keyboard, with a desktop computer (no trackpad).

I made a small modification (included ehci-pci interface in addition to xhci), so I'm going to post the exact script that I'm using here so you can compare with what Eli does. Note that you must run this script as root (sudo it):

#!/bin/bash

for xhci in /sys/bus/pci/drivers/xhci_hcd /sys/bus/pci/drivers/ehci-pci ; do

    if ! cd $xhci ; then
        echo Weird error. Failed to change directory to $xhci
        exit 1
    fi

    echo Resetting devices from $xhci...

    for i in ????:??:??.? ; do
        echo -n "$i"
        echo -n "$i" > unbind
        echo -n "$i" > bind
        echo "reset $i"
    done
done

Caveat: the script stopped working as of June 2016. I have the same problem as you, Amir: my USB mouse fails sporadically. I will be right in the middle of moving the mouse around and kablam, the mouse turns off, and stops responding (the light on the mouse goes off). Sometimes this happens days after rebooting the system, sometimes hours.

FWIW, lsusb simply hangs. In response to ignis' comment above, strace -f lsusb > out.log 2>&1 also hangs so I can't provide any info from that.

One more comment: this is not a case where the OS stops responding entirely. It's just the mouse. I can still use the keyboard, and I can also log in from another system and try things once the mouse stops.


Can you explain what the ultimate goal is of your exercise.
I think your problem is a routing problem.
But first I need to know more about the configuration.


That PPA has no packages.  Until there's a directory structure created for the repository (which happens when the PPA gets uploads made to it and packages built), Apache will default to 403 Forbidden on PPA repository pages when you try and access that directory tree.  Deletion of all packages in the repo does the same thing, and i think that's waht happened here, given the PPA's description as follows:

  This PPA has been removed from public access as part of a protest
  against the abuse of open-source projects by large companies. For more
  detail visit the main page here: https://launchpad.net/~jonathonf

  If you are a company and you would like this PPA to continue then let
  me know your preferred route for contributions and I will arrange
  something.

  If we have already been in contact then ping me your Launchpad ID and
  I will add you to a private PPA in the meantime.

  Donate to Python: https://www.python.org/psf/donations/ Donate to
  Debian: https://www.debian.org/donations Donate to me:
  https://ko-fi.com/jonathonf

If you need a Python 3.6 environment, your only options really remaining are to compile from source, or compile from source and execute from within your own home environment using a utility such as PyEnv which allows you to install Python versions that are divergent from what's on your system out of your home directory thereby not messing with system Python packages at all.

(I do not have any affiliation with PyEnv but I find their tool to be extremely useful for using multiple Python versions without touching my system-installed Python versions - and because it's in my home directory it doesn't affect system packages nor need sudo or similar elevated privs.  You need build dependencies for the Python 3 packages to build Python, but that's trivial to install and would then Just Work when using the alternative Python environments that PyEnv can let you use in your shell environment (or directly execute))


How do I set up an SSH SOCKS proxy with Gnome SSH Tunnel Manager?

You're setting up the redirection incorrectly. To get the SOCKS proxy you need to set up a dynamic redirect -- just one different click (see screenshot). You just need to set the port you want to use on localhost (here, 8888), and leave the remaining as is (n/a).


What is wrong with my Opera installing ? - Public key not available - 16.04

To install a Ubuntu compatible version of Opera... first add the missing GPG key... then install Opera...

In terminal...

sudo add-apt-repository ppa:webupd8team/y-ppa-manager # add repository
sudo apt-get update                                   # update software database
sudo apt-get install y-ppa-manager                    # install y-ppa-manager
y-ppa-manager                                         # start y-ppa-manager
    click on the "Advanced" icon
    select "Try to import all missing GPG keys" and click OK
sudo apt-get update                                   # update software database
sudo apt-get install opera                            # install opera


Okay, this doesn't remove the menu entry, but it makes it useless, should be just what you need:

First, make a backup copy of alacarte, the menu editor:

sudo cp /usr/bin/alacarte /usr/bin/alacarte_backup

Now open up the original in your favourite text editor:

sudo gedit /usr/bin/alacarte

In between the end of the big comment on the top and the line that says
import sys, paste this:

import gtk
md = gtk.MessageDialog(None,
    gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_ERROR,
    gtk.BUTTONS_CLOSE, "Not Allowed")
md.run()
md.destroy()
exit(1)

You can of course replace "Not Allowed" with any error message you like.

Now when you click "edit menus", this message will pop up:

Of course this is not 'secure', a knowledgeable user will be able to get around it, but I guess that's fine in your case. I also haven't tested if any other applications break because of it, but looking at the code, that shouldn't happen.

Note: if you want to use an error message consisting of characters outside of ASCII, make sure the it says# -*- coding: utf-8 -*- at the top (second or third line, not the first) of the file (it should by default).Otherwise you'll get an error.


I know this isn't an answer but I also have the same problem.

I had to purge the gnome-staging ppa and go back down to 3.14.

File a bug and I will also mark myself as affected.


Installing things as root and accessing those things as normal users

First: use sudo the way it is intended to be used in Ubuntu: for each command that requires it, no more. Don't use sudo to run a command unless it needs to be root. For example, most users would only need sudo for installing things.

Second: use sudo -i if you need a root shell. Have a look at this Unix & Linux post to see the effect of various ways of getting a root shell. In particular, sudo -i and sudo su -, both of which provide login shells, give the cleanest environment.

Lastly, take back ownership of your home directory:

sudo chown -R $USER:$USER ~

~ is a shortcut for your home directory. Use -R so that everything in your home directory is chowned back to you.


Error installing pygame: "error: command 'x86_64-linux-gnu-gcc' failed with exit status 1"

Since the issue is a missing linux/videodev.h, try installing a package which provides it:

sudo apt-get install gcc-i686-linux-android


Is it possible to save programs you download from the "repository" in some kind of "setup" format, so you can install them in the future offline?

You can enable the Canonical Partners repository, which is not "fishy", and install Flash through the Software app.

As far as getting a newer version than what's in the software repositories, no, there is no quick solution. Apps in the repositories are considered (for the most part) stable. Some "distros" (types of Linux) have newer apps than others, but Ubuntu focuses on stability, so apps might not be the absolute newest versions. This is meant to keep your computer running well, and safely.

Here's how to do what I mentioned step by step:

http://www.omgubuntu.co.uk/2016/11/install-adobe-flash-ubuntu


Install mongodb-org 3.4 on ubuntu 14.04: package 'mongodb-org' has no instlalation candidate

This was User error. I had an entry in /etc/apt/preferences.d/50mongo. After removing that, the above commands worked without errors.


How to import ubottu factoids database to my IRC supybot?

ubottu uses the Encyclopedia plugin to manage its factoids, not the 'Factoid' plugin that comes with supybot itself.  You can download the current bot code by running bzr branch lp:ubuntu-bots, more information about the bot code can be found on its launchpad page.

Either drop all the subfolders that you get after branching the bzr repo into your bot plugin directory or create a new one and add that path into supybot.directories.plugins

After loading Encyclopedia inside supybot, you'll need to modify your settings so that it knows where your factoid database is.  The important config values for that are plugins.encyclopedia.datadir and plugins.encyclopedia.database . If you don't set these, it will use your bot's data directory and ubuntu as the database name. (note: the database name should be entered without the .db extension)


Can't boot Win7 laptop from dvd/usb to install Ubuntu 14.04 for dual-boot

There are two possibilities:

You need to disable Secure Boot in your BIOS.  This tutorial will help give you an idea of what you need to do to do this.
Try running wubi.exe from the USB/DVD.  This may work for you.  While I've never personally, I've heard that it works well.  I may try this myself one of these days (maybe when 16.04 LTS comes out!).


Cannot ping two directly connected laptops

First confirm you have a good link between the boxes. You can check by looking for the link=yes setting returned from sudo lshw -c network run on both.

It's also worth checking if there is a crossover cable between them, or if they are straight, just plug both into a switch, hub, or router and see if you see the tx/rx lights going to both PCs. It's amazing how many devices I run into that don't support auto-crossover when a straight cable is plugged in.


How to install PUBG mobile emulator Gameloop on Ubuntu

It might be because  of some gameloop related services are not running.like syzs_dl_svr.exe
Try making an environment in which all the gameloop related services are working. Also Gameloop has it's own anti cheat service


Photoshop CS6 crashes every time clicking text button

I was suffering this problem. I just downloaded atmlib.dll and pasted it drive_c/windows/system32 as told in here.

The author of article does not really know how much time he saved. I now run Photoshop CS6 on Ubuntu 16.04 and works like a charm.

I hope anyone finds this solution by googling.