Using Ubuntu-installed pc for commercial purpose

No, this does not refer to how you use Ubuntu, but rather how you distribute it. You can use your machine in any way you like basically as long as you don't start selling Ubuntu because it's not your IP (Intellectual Property).

That's all that this refers to, it's nothing for you to worry about, you can use your machine for commercial gain as long as you don't try to sell Ubuntu.

(To be precise the non-commercial clause you cite refers to the trademarks of and surrounding Ubuntu and its manufacturer Canonical. Since Ubuntu is distributed only with free open-source software, you're welcome to take Ubuntu, remove all references to its name and redistribute its software however you like – in accordance with their licenses – including for monetary gain).


Studio Controls "Auto connect port" disabled

For anyone interested, the problem (Auto-connect disabled and Jack Status Unknown) went away when updated studio-controls to 2.1.0 version


Getting error to configure php5 mysql packges

Finally I discovered why I am getting this error. I have an unofficial PPA which is breaking my install procedure. this Answer helped me to get it done.

Apart from that I have installed many php5-* modules using package version. For example I have installed php5-common package using below command

sudo apt-get install php5-common=5.5.9+dfsg-1ubuntu4


Installing ubuntu 13.10 from usb - black screen with mouse pointer

Other distros had at same time this same problem, despite of installation-CD or DVD ...
apparently it was forgotten to include the package of xserver-xorg in the installation-process.

If protected-mode is possible, you could try to install xserver-xorg by running the following command:

sudo apt-get install xserver-xorg*

After this, run the following commands in protected mode (Strg + Alt + F1) and install the graphics-drivers suiting to your graphics card.

sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev
sudo aticonfig --lsa
sudo aticonfig --adapter=all --initial
sudo reboot

After reboot is finished, run the following command in protected mode too with (Strg + Alt + F1):

sudo aticonfig --adapter=all --odgt

Now it should work...


What are the hashes for the various flavours of Ubuntu?

The hashes for Ubuntu 14.04.1 can be found at http://releases.ubuntu.com/trusty/MD5SUMS.
They are reproduced here for convenience:
dccff28314d9ae4ed262cfc6f35e5153 *ubuntu-14.04-desktop-amd64.iso
c4d4d037d7d0a05e8f526d18aa25fb5e *ubuntu-14.04-desktop-i386.iso
01545fa976c8367b4f0d59169ac4866c *ubuntu-14.04-server-amd64.iso
08d25bf879e353686a974b7b14ae7d81 *ubuntu-14.04-server-i386.iso
119cb63b48c9a18f31f417f09655efbd *ubuntu-14.04.1-desktop-amd64.iso
a4fc15313ef2a516bfbf83ce44281535 *ubuntu-14.04.1-desktop-i386.iso
ca2531b8cd79ea5b778ede3a524779b9 *ubuntu-14.04.1-server-amd64.iso
3aa14ca13d52df070870d39306f4a4eb *ubuntu-14.04.1-server-i386.iso
b31731ea6cdbebe1d02f8193db420886 *wubi.exe

The hashes for Kubuntu 14.04.1 can be found at http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/MD5SUMS
They are reproduced here for convenience:
aefdc97d26e51066f5b50d36c5d4218c *kubuntu-14.04-desktop-amd64.iso
327cf4202f8e2601ce0d772082c84b86 *kubuntu-14.04-desktop-i386.iso
d1eabbb0060ad45c1172877c726f0a5a *kubuntu-14.04.1-desktop-amd64.iso
854cb04fcc0277abe1259f39a32d8f46 *kubuntu-14.04.1-desktop-i386.iso

The hashes for Xubuntu 14.04.1 can be found at http://cdimage.ubuntu.com/xubuntu/releases/14.04/release/MD5SUMS
They are reproduced here for convenience:
ae446659057ee49e57773bf446398856 *xubuntu-14.04-desktop-amd64.iso
ccd326466b705bc324a20dd45cb3de82 *xubuntu-14.04-desktop-i386.iso
8b06ac9d76186721312c17a851801e2e *xubuntu-14.04.1-desktop-amd64.iso
ac7829d1b274f4d8b6ac106ec5985c9f *xubuntu-14.04.1-desktop-i386.iso

The hashes for Lubuntu 14.04.1 can be found at http://cdimage.ubuntu.com/lubuntu/releases/14.04/release/MD5SUMS
They are reproduced here for convenience:
d3181e58212e62b6656c8cf5f9b922a7 *lubuntu-14.04-alternate-amd64+mac.iso
dc6d7ee644b825cae63f59c91d707852 *lubuntu-14.04-alternate-amd64.iso
35a41aa73bfe3c47a57d49a5182e9891 *lubuntu-14.04-alternate-i386.iso
4d9e511daf41dbc44f4506958f0e70f9 *lubuntu-14.04-alternate-powerpc.iso
2cfdcc5162f70515f4b59c80a142e36b *lubuntu-14.04-desktop-amd64+mac.iso
c138cedb0f72cbd115c55e3f14a98f5e *lubuntu-14.04-desktop-amd64.iso
b0d1c58c8515ab40382d01f59655ba85 *lubuntu-14.04-desktop-i386.iso
2ca3784e4575214c13c85effca9dd4ae *lubuntu-14.04-desktop-powerpc.iso
2bf5abe48007c247ec214ec4e7681558 *lubuntu-14.04.1-alternate-amd64+mac.iso
a5f97cd6a9f171c70cf816de8728f13b *lubuntu-14.04.1-alternate-amd64.iso
a7c153f1101fb8a181ccda01a448ffd1 *lubuntu-14.04.1-alternate-i386.iso
69d8c99a4724ddb281c9076fd9c8d771 *lubuntu-14.04.1-alternate-powerpc.iso
ebb98a27efd717fee62077e2d492c704 *lubuntu-14.04.1-desktop-amd64+mac.iso
4a6555869fbbe11fa6a17f83be046455 *lubuntu-14.04.1-desktop-amd64.iso
281fc36d625f7ca0704297b3b811fa66 *lubuntu-14.04.1-desktop-i386.iso
0af2df006d5220832f5a713bd9ba9d82 *lubuntu-14.04.1-desktop-powerpc.iso

The hashes for Ubuntu GNOME 14.04.1 can be found at http://cdimage.ubuntu.com/ubuntu-gnome/releases/14.04/release/MD5SUMS
They are reproduced here for convenience:
167e35018d4e4e116342e744f09d07f4 *ubuntu-gnome-14.04-desktop-amd64.iso
ab5c39caef103694fe97bda23412ff00 *ubuntu-gnome-14.04-desktop-i386.iso
31ac57691a45a381ded0ab2a3588b77a *ubuntu-gnome-14.04.1-desktop-amd64.iso
a3965d4e20d8c85dbaa5c36c6898fe5d *ubuntu-gnome-14.04.1-desktop-i386.iso

The hashes for Edubuntu 14.04.1 can be found at http://cdimage.ubuntu.com/edubuntu/releases/14.04/release/MD5SUMS
They are reproduced here for convenience:
ca19c5f5cc790603a6a9a57fae787673 *edubuntu-14.04-dvd-amd64.iso
1919086a97af4092342933a5eccbab62 *edubuntu-14.04-dvd-i386.iso
f4f047e216eb3ca28650a213476c4e56 *edubuntu-14.04.1-dvd-amd64.iso
66f7711a226e4c764c2c3b977693543a *edubuntu-14.04.1-dvd-i386.iso

For all the official flavours, you can replace the MD5SUMS in the link with SHA1SUMS to get the file with the SHA1 hashes:

http://releases.ubuntu.com/trusty/SHA1SUMS
http://cdimage.ubuntu.com/kubuntu/releases/14.04/release/SHA1SUMS
http://cdimage.ubuntu.com/xubuntu/releases/14.04/release/SHA1SUMS
http://cdimage.ubuntu.com/lubuntu/releases/14.04/release/SHA1SUMS
http://cdimage.ubuntu.com/ubuntu-gnome/releases/14.04/release/SHA1SUMS
http://cdimage.ubuntu.com/edubuntu/releases/14.04/release/SHA1SUMS

NOTE
The cdimage and releases websites don't have HTTPS. You should verify the PGP signatures of the hash files. You can obtain them by appending a .gpg to the links, such as http://releases.ubuntu.com/trusty/SHA1SUMS.gpg


Your first two commands weren't run as root so that is expected behaviour. You need to be root to stop/start mysql.
However:
sudo /etc/init.d/mysql start

should work. Indeed it does, for me:
kojan:~> sudo /etc/init.d/mysql restart
[sudo] password for chris:
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..

I used restart rather than start, since it was already running, but the effect is the same. Are you sure you entered your password correctly? :) Have you edited your sudo config at all which would stop this working?
This one..
sudo /etc/init.d/mysql - root -p start

The arguments are wrong. an init.d script only takes start or stop or restart - just one word telling it what to do. You cannot give it multiple arguments as you were trying to do.
Anyway, the short answer is the one you actually got to work, is the recommended way. service is replacing all the init.d scripts over time, so you should get into the habit of using service. The page you link to was written in 2008, so has to be taken with some salt :)


How to increase text size systemwide including browsers ubuntu?

but the browsers(mozilla,google-chrome) still displays very small text and there is a wide empty space on both side when I am browsing. How can I fix this ?

Browsers use their own fonts.

You can increase font size on browsers with control++ and decrease it with control+-

You can also change this in Chrome, options, content, fonts&colors.
Firefox, settings, webcontent.


Doing a modprobe fixed it.

I had looked into this route before, but running the command lsmod | grep ath to find the available drives didn't give me any output, so flopped around on the net trying to find out out to get the divers... long story short, I eventually tried running the second command, which was sudo modprobe ath9k and again, no output, but suddenly, on the system bar it pops up that the wireless network is connected.


XTerm and other Xwindows Terminal not open prompt, how to correct the problem?

I did a review of the .bashrc and .profile script, identified that they call each other, strangely when the login is done via text mode there are no problems, however via xwindows goes in loop, I removed the call from the .bashrc script, because this call it is wrong.


You have to do this in steps, not all at once, and you need to move any free space you want to add next to the partition(s) you want to add space to.

First, you need to turn swap off, you can do this from the gparted menu.

Next add the free space to the extended partition (sda4) -> apply changes.

Then you need to move the swap partition so the free space is adjacent to the ubuntu partition (sda5) -> apply changes

Then add the free space before the ubuntu partition -> apply changes

Then add the free space after the ubuntu partition -> apply changes.


14.04 freezes on start and stalls on restart/power down

It sounds like issues with your graphics driver. Is this happening right after the install or after you install a proprietary driver?

I had this issue after installing a prop. driver and switching my monitor from the integrated graphics port my gpu. I know if you have an ATI driver, you are going to have to use the integrated graphics to install Ubuntu, and then install and set up the graphics drivers before switching back to your gpu. After doing sudo aticonfig --initial -f --adapter=all and restarting, you'll have to do alt+ctrl+F2 and then do sudo nano /etc/X11/xorg.conf then switch the numbers on Default 1 and Default 2 that look like 00:00:00:00 and 01:00:01:00, because for some reason it automatically uses the integrated graphics as default, instead of the gpu.


How do I restore the USB drive auto-mounting in xenial?

In Unity sessión
Use gnome-disk-utility (DISK), select your drive on the left side and click on the gear icon. Select additional mounting options


Sharing files between Ubuntu and Mac - argh, help!

I just went through what you are going through (same error trying to open a samba-share folder on a linux server from a mac), and it took me a while to get a handle on what was going on. I am also fairly new to linux, so I hope the other forum members will quickly correct me where I've given bad advice. And please forgive the long-windedness of this response:

I'm guessing Mr. President is right, and that this is a permissions problem. That is, your user doesn't have the permissions to make that folder available to others. So to clarify, the folder that is giving you trouble is on an external hard drive, while the one that works correctly is on your internal hard drive, right? I'm guessing that when your external drive was mounted, your user wasn't given the proper permissions to change anyone else's permissions on that drive, so you can't share it. If you have no idea what I'm talking about with permissions, check this out:

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

I'm also assuming based on your question, that you're using a gui and not the command line to do this? The way I resolved this was to use the command line, if you've never used it (though I assume you have), check out a tutorial, there's a bunch online.

You can see who has what permissions on that drive by cd-ing to it, and running ls -l. If we had the drive "myHardDrive", and Ubuntu automatically mounted it, those commands would look like this:

cd /media/myHardDrive
#the above is for Ubuntu 12.04, I think in later versions automount it here
cd /media/<yourUserName>/myHardDrive
ls -l

This will show you if you and others have the permissions to read and write to the drive (see above link to understand the output).

I had tried doing chmod to change the permissions, and chown, but they weren't having any effect. The chown command, at least, won't won't work if the drive uses a FAT filesystem since "owning" is not supported. Not sure why chmod wasn't working.

What worked for me was to unmount the drive, and manually mount it, specifying the permissions at the mount command. Check out this page to get started with mounting: https://help.ubuntu.com/community/Mount/USB

Unmount the drive, but leave it plugged in.
After having made a mount point (an empty folder) with mkdir, for example:
    sudo mkdir /media/myHardDrivesNewHome
Find where your drive is by CAREFULLY running sudo parted -l.
"parted" can mess up your computer if you type the command incorrectly, be very careful. That "l" option is the letter "l" as in "list". My printout for one drive looks like this:

Disk /dev/sdb: 3001GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name                  Flags
 1      24.6kB  315MB   315MB                EFI System Partition  boot
 2      316MB   2190GB  2190GB               AGENT
 3      2190GB  3001GB  810GB                FAT

I now know that my drive FAT (in my case, a partition on the same drive as the partitions AGENT and EFI etc.), is located in /dev/sdb3 (and AGENT is at /dev/sdb2, etc.). But it's not mounted so don't try to access the files from here.

Mount the drive to the mount point you made earlier, this time specifying who can do what with "umask". Give the manual for mount man mount a good read to understand this command, and know what your filesystem is on the HD to make the commands appropriate to your situation.

sudo mount -t vfat -o users,umask=0000 /dev/sdb3 /media/myDrivesNewHome

Be aware that umask=0000 gives everyone the ability to do anything to the drive, so maybe someone else here will give us a safer value that will still work for you. I'm just beginning to understand how they work and am leaving it at this for the moment. Also note that my drive has a FAT filesystem (I specified this with -t vfat),and if yours isn't those options could be different. Again, all in the man page.

Lastly, you will no longer be able to click on the drive to unmount it after manually mounting it. To unmount, do this sudo fusermount -u /media/myDrivesNewHome.

I'm guessing that will make it so you can change permissions and share it on your network. Please, anyone comment if I've given a bad piece of advice here. Take care.


How do I stop the screen from fading out and powering off, on lock-screen?

Depending on the flavor of screensaver you use, there are power settings for the screensaver. For me, I can configure screensaver settings via the settings menu. It has an advanced tab with power settings. Here is how it looks for me:


How do I get my USB keyboard to not freeze up in the recovery menu?

I had the same issue and finally got it resolved.
I had to unplug all my usb devices besides the keyboard (maybe there was just one that caused the issue, but I didn't want to try all possibilities). I also had to add 'acpi=off nohz=off' to my boot line in grub (hit 'e' in grub while the recovery mode is selected to change the boot line).


Execute

sudo sed -i '/playonlinux/d' /etc/apt/sources.list

to remove the wrong entry in sources.list and add the repository:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update


Next time you connect the HDMI open the sound settings. HDMI output should be listed along with your internal audio output. Select the HDMI output.
After that open terminal and type

pulseaudio -k

This worked fine for me I hope it works for yours.


CCSM: Composite refresh rate reset when i reboot

Solution 1:

Generate modeline:
Type cvt 1920 1080 144 then copy generated line (start from Modeline).

Make your configuration file in /usr/share/X11/xorg.conf.d/ e.g monitor.conf like this :

Section "Device"
  Identifier    "Configured Video Device"
EndSection

Section "Monitor"
  Identifier    "Configured Monitor"
  paste your copied modeline here eg. :
  Modeline "1920x1080_144.00"  452.50  1920 2088 2296 2672  1080 1083 1088 1177 -hsync +vsync
EndSection

Section "Screen"
  Identifier    "Default Screen"
  Monitor       "Configured Monitor"
  Device        "Configured Video Device"
   SubSection "Display"
    Modes     "1920x1080_144.00"
   EndSubSection
EndSection

Solution 2:

You can make in your home folder .xprofile file and paste:

  xrandr --output DVI-I-1 --mode 1920x1080 --rate 144

This will be applied after login to your profile.


To uninstall packages you don't know the name of you have two choices - use a regex that will find all matching packages, or find the package name.
Matching multiple packages
sudo apt remove ^wine

This will attempt to remove all packages starting with wine. Pay attention and check that the package list does not include any packages you want to keep before you select yes.
Search package lists for relevant things
dpkg --list | grep wine

This will give you a list of packages installed whose names contain the string wine. You can manually copy the package names you want to uninstall to a sudo apt remove command.


Verifying Ubuntu ISO with `md5sum` - does the missing "*" matter?

It means the hash was calculated in binary mode.

   The default mode is to print a line with checksum, a character indicating type ('*' for binary, ' ' for text), and name for each FILE.

Source

As ISO files are binary, this is what you want.


Able to copy FROM tftp server, but unable to WRITE in tftp server

Have a look at man tftpd:

  The use of tftp(1) does not require an account or password on the remote system.  Due to the lack of authentication information, tftpd will allow only publicly readable files to be accessed. Files may be written only if they already exist and are publicly writable.

tftpd will not create files. It will only allow overwriting.


my @ symbol and other characters won't work, instead, I get other characters

if you hit CAPSLOCK + SHIFT + CTRL all at the same time it alters your keyboard settings.

Just hold all three again and its fixed. (also if other symbols are still wrong try repeating till its back to normal. the quotation marks also switch up)


According to search results from packages.ubuntu.com you need to install ubuntu-unity-desktop meta-package ("The Ubuntu Unity desktop system"):

sudo apt install ubuntu-unity-desktop

Then reconfigure LightDM as main greeter when prompted or manually with

sudo apt install lightdm
sudo dpkg-reconfigure lightdm

And continue to use it as before. Below are a screenshots from 18.10:


Java problems installing Glassfish 3.1.2 on Ubuntu Lucid

Glassfish is a complex beast and there's a WHOLE lot more to getting it running than just glassfish itself.  Tutorial here: http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-311-on-ubuntu

You'll need to knock out a lot of prerequisites - including an Oracle-specific Java - before you can run the glassfish installer itself.


How to mute volume on every boot in Kubuntu 18.04?

This answer from stack exchange should do the trick: Set Ubuntu Sound Volume on boot

From the question you want to use this command:

`/usr/bin/amixer -c 0 sset Master,0 0% > /dev/null`

From the answer you want to add the command in:

/etc/rc.local

Insert the command after the first line and before the last line:

#!/bin/sh    # <---- This is the first line

`/usr/bin/amixer -c 0 sset Master,0 0% > /dev/null`

exit 0       # <---- This is the last line

In my Ubuntu 16.04 LTS sound is already muted on boot. This happens to others as well: How to make my microphone unmuted on startup?

Check the file /etc/modprobe.d/alsa-base.conf and look for the line:

options snd-hda-intel model=auto enable=yes

If it exists either delete it or put # in the first character position.


NTP server is running, but nothing can connect to it

Ok, after days of trying, of course once I give up and post on here in seek of help I stumble onto an answer.
Firewall rule needs to allow out as well
sudo ufw allow out from any to any port 123

also, in /etc/ntp.conf need to add iburst to each pool
$ cat /etc/ntp.conf
pool us.pool.ntp.org minpoll 14 maxpoll 16 iburst
server time.google.com minpoll 14 maxpoll 16 iburst
server ntp.research.gov minpoll 14 maxpoll 16 iburst
pool ntp.ubuntu.com minpoll 14 maxpoll 16 iburst


I managed to disable it by setting "Enabled=false" in the file ~/.kde/share/config/kwalletrc and then restarting (or pkill -SIGHUP kwalletd).


In which location are Ubuntu packages installed?

dpgk -c /var/cache/apt/archive/packagename.deb

You can pick -c or --contents. Or if you use wajig,

wajig contents /var/cache/apt/archive/packagename.deb does the same.

If you just want the location of an executable file (and you know it's name) then which progname tells you; or you could use $(which progname) in your script...


I was unable to get 12.10 working on the 1025c. There are a number of articles/forum posts indicating that it is not recommended and maybe not possible due to closed source drivers and the integrated graphics. 12.04 is working fine for me but required some tweaking and scripts to get suspend and the brightness keys working. I suggest sticking with 12.04. With a ssd and upgraded RAM, 12.04 performance is acceptable and battery life is excellent.


Installing Ubuntu 14.04 inside Windows XP

First of all, don't worry if it downloads amd64 version. amd 64 is for 64 bit machines having intel or amd processors. So I think your laptop must be a 64 bit laptop.

Try the entire process again from the beginning and when Ubuntu is installing itself on the system, then remove the internet cable or disconnect the wifi, becuase during installation, if Ubuntu is connected to the internet, then it might search for updates and start installing them, which is time taking(and probably made you think that it is downloading the iso again).

I personally recommend Unetbootin. It is faster and simpler and more popular. So I recommend that you use Unetbootin to burn the Ubuntu 14.04 to your pendrive.

If the Ubuntu GUI does not appear that probably must be because it was not installed properly or probably the Ubuntu official distro is too resource intensive for your graphics hardware(although I am doubtful of this point-If your laptop is more than 6-8 years old, then try Lubuntu or Xubuntu)

Check to see if  Ubuntu is properly installed on your computer. Reinstall it. Start right from scratch i.e. making the Ubuntu Live USB. Redo the entire process to verify if its done correctly.

Also, I, as a beginner, often ran into issues when installing Ubuntu inside Windows. If you are an absolute newbie and rely heavily on Windows XP then I would not recommend this, but if you can take the risk why don't you install Ubuntu as the main distro on your laptop. That preserves Windows XP and increases performance of Ubuntu.
(Windows XP ,by the way, is damn outdated and vulnerable to viruses since Microsoft stopped providing security updates to it from April 8 of this year. Why don't you try Windows 7...or get someone to install it on your machine if you don't know? You'll be surprised!)

Give these options a try. They always solved my problem whenever I got into an issue while installing Ubuntu.


How to give root privilege to Windows Group

I wrote the following line to /etc/sudoers file:

%domaingroup ALL=(ALL:ALL) ALL

If you want the Windows Dom-Admin-Group to be sudoers, write down the real name of the group.

%domänen-admins ALL=(ALL:ALL) ALL

This worked well in our german Win2012R2/Debian environment.

You don't know the rigth name? Enter the shell-command

#>id

and you get the groups your currently loggedin user ist member of.


It appears that something must have broken your keys.

Try this:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 6AF0E1940624A220
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 608BF7B93528AE20
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3BDAAC08614C4B38
sudo apt-get update

What is the easiest way to resolve apt-get BADSIG GPG errors?


Why do I get "404 not found" errors updating Ubuntu 11.04 (or other old versions)?

As chaskes says, you're seeing this because 11.04 has passed its end-of-life date and no more updates are available.  You should upgrade to (at least) 12.04 as soon as possible so that you get security updates.


Thai X Terminal installed in Ubuntu 20.04

It came from the xiterm+thai package.
Its desktop file is located in /usr/share/applications/xiterm+thai.desktop and contains its name:

Name=Thai X terminal
Comment=X Terminal that supports Thai (TIS-620 encoding)

Technically it is one of the x-terminal-emulator alternatives.
See bug 1747341 about its unexpected installation.


by abarbaneld

Ubuntu 11.04 Natty Narwhal does not come out of the box playing DVDs but with 2 simple commands you will be watching DVDs in a flash.

Open a Terminal Window Ctrl+Alt+T
Type sudo apt-get install ubuntu-restricted-extras
Type sudo /usr/share/doc/libdvdread4/install-css.sh
Insert DVD and enjoy.

I noticed during playback of my DVD that the picture was a bit wobbly. There is an easy fix for this.

Go to Edit>Preferences>Display Tab and check the box that reads disable deinterlacing of interlaced videos.
Next close down the Movie Player and reopen it and the wobbly screen should be gone.

Another option that is worth enabling is the play video where you left off.
Go to Edit>Preferences>General Tab and check on Start playing files from last position.


I don't seem to be entering text at a password prompt in the terminal

Your issue requires a two part answer:

Linux can be described as a "Unix-like" operating system. It's not Unix, but functions very similarly to it, to the point where many people would call it a clone. Many utilities were directly moved/cloned from Unix operating systems to Linux; awk, sed, etc. Hence why it asks for a "unix" password.

As for being unable to type, Linux/Unix do not display the length of your password in the command line, and accomplish this by showing absolutely nothing when you're typing it. You ARE still typing, it's just not showing anything in case someone's looking over your shoulder. Enter your full password and press enter, and it will still get sent through. You can even use backspace to clear the password field, you just can't see what you're doing when you do it. Installing/uninstalling programs with apt is a root-level feature, so it asks for your administrator password, which by default is the same that you log in with.


Unable to connect to the internet, Network menu has disappeared

I had a similar problem once and by changing nm-applet to launch with dbus-launch nm-applet solved my problem. To see if this will work for you, run in terminal

dbus-launch nm-applet

and see if network menu shows up. If menu shows than to make the fix permanent, edit

/etc/xdg/autostart/nm-applet.desktop

and change

Exec=nm-applet

to

Exec=dbus-launch nm-applet

Hope it will help you.


How to install color palettes from *.sh files in tilda?

Check out this link: https://github.com/lanoxx/tilda/blob/master/autogen.sh
I had the same problem, that's why started to use Weebly and Mobirise


What Mesa and X.ORG version will Ubuntu 11.10 use

Target Versions for the 11.10 Oneric Release
---------------------------
   kernel:              3.0.0
   libdrm:              TBD (Probably 2.6.26)
   mesa:                7.11 (Plus updates)
   x-server:            1.10
   xorg:                7.6
   drivers:             TBD (Latest releases by Aug 18)
   gnome libs:          3.2 (GTK3)

Thanks goes out to Bryce Harrington for sending this to the ubuntu-devel mailing list:
source: https://lists.ubuntu.com/archives/ubuntu-devel/2011-June/033414.html


The ifupdown package, which managed the network, has been deprecated in favor of netplan in 17.10. The package is no longer present on new installs. The new installer will generate a configuration file for netplan in /etc/netplan, which will set up the system to configure the network via systemd-networkd (in Ubuntu Server) or NetworkManager (in Ubuntu Desktop) https://wiki.ubuntu.com/ArtfulAardvark/ReleaseNotes

Make sure that the original netplan config file is there. It should up the wired connection automatically and use DHCP to assign an IP address. Assuming the network interface name is 'eno1'.

cat /etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: yes
      dhcp6: yes

Generate the required configuration

sudo netplan --debug generate

Reboot


Possible the stick is not written correctly, when I have used Windows 8, I have used Universal USB installer and always it worked.

Some systems boot automatically from hard disk on power on, and boot from others sources only on restart.

You try F12 button,and select the stick (this isn't for all systems)


How to route DNS resolver to a different DNS based on the URL hostname?

An interesting approach for such problem would be using iptables rules that would redirect DNS query packets based on string patterns in the data section.
Iptables allows creating and managing firewall and routing rules on your machine. It is a vast powerful tool if done right. To make this answer simple - we won't discuss much about the full meaning of the commands. More about iptables here: IptablesHowTo (Ubuntu documentation).
Suppose your machine uses the default port for DNS queries (53/UDP), your nameserver address is 8.8.8.8 and you're querying the askubuntu.com domain.
When looking at the request packet, we'll notice that the name length is 13, and the label count is 2 (askubuntu and com). For us.archive.ubuntu.com it would be 21 and 4.
Now let's try to create a rule that redirects askubuntu.com query from the default 8.8.8.8 server to 8.8.4.4 server:
iptables -I INPUT -p udp –dport 53 -m string –hex-string “|09|askubuntu|03|com|000001|” –algo bm -j DNAT --to-destination 8.8.4.4:53

For us.archive.ubuntu.com it would be:
iptables -I INPUT -p udp –dport 53 -m string –hex-string “|02|us|07|archive|06|ubuntu|03|com|000001|” –algo bm -j DNAT --to-destination 8.8.4.4:53

Overall for the default machine settings the only field that needs to change is the string defined for the -hex-string flag. Notice that |000001| must always be present at the end of the string (another important part of the DNS request packet).
Another thing to set in mind is that your configuration persists only until your next boot (meaning it'll be removed once your machine goes off).
You may want to save your configuration using the iptables-save and redirect the command output to a file. it is best practice to use the syntax below:
sudo iptables-save > /etc/iptables/rules.v4

To restore your rules from a file, simply use:
sudo iptables-restore -n < /etc/iptables/rules.v4

Notice that the -n flag appends rules from your file to any other rules already existing in your iptables. To completely override all your rules with whatever in your file, omit the -n flag.
It might be a little hassle to restore your rules every time, so I suggest installing the iptables-persistent package which does the same for you automatically every boot:
sudo apt-get install iptables-persistent

The iptables-persistent looks for the file rules.v4 under /etc/iptables, so make sure you name it accordingly.


Amarok only shows 6 tracks even though there's way more than that

Answered by OP in comments:

  Unchecking my Music folder in the preferences and then checking it again fixed it.


Usually sudo powertop --auto-tune is not persisted. Thus a reboot sets everything back to normal. If only one setting is bothering you (and you have an idea which it is) you can always sudo powertop and on the last tab change the appropriate setting back from Good to Bad (by selecting that line and hitting Enter).


Lubuntu updater wants to install a lot of new Gnome 3 packages

Lubuntu is modified to automatically install pulseaudio, when the new (current) version of firefox is installed (firefox is upgraded to the new version, which needs pulseaudio for the audio system to work.

A side effect of this modification is that several new program packages are also installed, among them gnome program packages.

See this link to a post at the Ubuntu Forums (and some posts before and after that post),

Re: Firefox 52, PulseAudio, and Lubuntu 16.04 LTS - Just for the record apparently pulseaudio also installs the following packages as dependencies:


Use FISH to connect through jump server in KDE Dolphin

Had the same problem. My solution was to define the jump point in  ~/.ssh/config, see here: https://wiki.gentoo.org/wiki/SSH_jump_host


Diagnosing DNS lookup problems - possible bad nsswitch.conf or other problem

There seems to be an issue with the local DNS cache mechanism provided by dnsmasq (which runs at localhost, 127.0.1.1). Not sure exactly what but if you disable the dnsmasq cache and always ask the primary (8.8.8.8) and secondary (8.8.4.4) DNS servers directly instead it might work better.

To disable dnsmasq you edit the file /etc/NetworkManager/NetworkManager.conf and comment out dns=dnsmasq like in the config below:

[main]
plugins=ifupdown,keyfile,ofono
#dns=dnsmasq

Hope it works out for you :)


try to Update "youtube-dl"  using:
sudo youtube-dl -U

Sometime, under Linux the URL can cause problem, so you can only use the "ID", not the complete URL
like :
https://www.youtube.com/watch?v=n_FTuCckY34&list=RDCLAK5uy_kT4N8v_Q_Q3eFXmkdTMUWDlVlgrnLnmxE&start_radio=1

Playlist ID is: RDCLAK5uy_kT4N8v_Q_Q3eFXmkdTMUWDlVlgrnLnmxE
Video ID is: n_FTuCckY34


Your dialog should be fine, so the question is "How to print partititions?"

Instead of fdisk, I'd use lsblk, which has cleaner output and can be run by unprivileged user.

But lsblk is still printing too much, we can limit it using --output to include only the information we're interested. Add -n to omit printing header.

lsblk -n --output TYPE,KNAME

Then use awk to filter only devices where TYPE is part and print a counter instead:

lsblk -n --output TYPE,KNAME | awk '$1=="part"{print i++,$2}'

So in total, something like this should work:

dialog --menu "Select partition :" 20 40 4 \
  $(lsblk -n --output TYPE,KNAME | awk '$1=="part"{print i++,$2}')


That package is available for all currently supported versions of Ubuntu in the Universe repository when in doubt use Ubuntu Package Search to not only verify a packages existence but also determine which repository it is in. Here's an example:


Upgrade to 20.04: weird cursor trail only on desktop backgroud

Yesterday I was sudddenly confronted with the same phenomenon. I later realized that it started after I experimented with the keyboard shortcut for "zooming". Alt+Super+8 (on some keyboards opt+command+8) should solve the problem. It did for me.

Left Alt/Opt + Left Command/Super + 8 (the number, not F8). You can actually toggle this pointer trail on and off using that key combination (only for the desktop background).


Integration of a tag based file system approach in Gnome and Nautilus

I've found tmsu to be the best, it can be found here:

http://tmsu.org/

It doesn't integrate into Nautilus as such but as it uses a FUSE filesystem, it can be browsed from any file manager or even on the commandline.


Where is the Ubuntu install taking place?

To dual boot your machine..ubuntu needs some unallocated memory.
For that open disk management select any big disk and right click select option>shrink volume...type 70000mb(thats enough to run smoothly) and hit enter..u will get a black area as unallocated..now make bootable pendrive of Ubuntu shut down ur system boot ur pendrive using boot key and select usb select install ubuntu, going further u will get an option >install ubuntu alongside windows click it and go ahead..this should install ubuntu on your system (make sure both of them are in UEFI mode or one which your machine is running on(check in BIOS menu)) if it doesn't appear then choose "something else"option and you will have to manually partition unallocated (sample images attached here)

Continue installation...reboot after completion.. hope this helps :)


DOSBox says the program must be run under Win32

The format of EXE files for Windows is different then for DOS - Windows applications contain a small DOS stub which says "This program can not be run in DOS" and exits; Windows loader uses a different entry point.

If that message is what you see when trying to run the executable in DOSBox, then it means the executable has the new format (not surprisingly in 2010), so DOS (and DOSBox) can't load it. Try using Wine.


issue with settingup multiple ipaddresses on ubuntu desktop (v14.04 and v16.04)

the manual has the following example:

auto eth0 eth0:1
iface eth0 inet static
  address 192.168.0.100
  network 192.168.0.0
  netmask 255.255.255.0
  broadcast 192.168.0.255
  gateway 192.168.0.1
iface eth0:1 inet static
 address 192.168.0.200
 network 192.168.0.0
 netmask 255.255.255.0

the pseudo interface to the same auto line, but I don't know if that matters
remove the name tag or indent it properly.
your network for the second interface doesn't make sense. it should be a 192 address based on your IP and mask.


awk to replace a field using IF condition

By enclosing "300" in quotes you have forced a lexical (rather than numeric) comparison. To compare numerically omit the quotes:

awk '{ if ($2 > 300) ($2 = 300); print $0}'

or more idiomatically

awk '$2 > 300 {$2 = 300} 1'


Install older version of PHP with apt-get

In synaptic, search for php, highlight the package and in one of the menus on top, try "Force Version", see if the one you want appears.


Xfce Session: Asks for my password as I use Software Center

Software center needs root privileges to install packages.  There are two ways it can get root privileges.  If your account is setup for sudo access it will likely ask for your password.  If your account is not setup for sudo access it will ask for the root password, in this case it may ask for the administrative accounts password.


Currently Running Programs not showing in gnome fallback panel

As you are using gnome fallback session follow below steps:
1)Alt+Rclick on top most panel select NewPanel
2)It will add one new panel at righ hand side of your screen now alt+right click on newly created panel on righ hand side and slect move and move it to bottom side.
3)Done.


I'm assuming you are running out of RAM. You can verify this with watch cat /proc/meminfo while your process is running.

You may have insufficient RAM and/or SWAP to accomplish your task.

Due to the low-ram condition, insure that swap is on with swapon -a and if no swap is setup on the system create a partition for swap on unused diskspace and enable it. This will likely solve the problem. There's a good answer by @Takkat on how to do that here If you don't have access to partitioning the server you can also use a swapfile for swap


Problem downloading Rapidshare file (URL encoding)

This is because parentheses are a significant character to the shell, and this is a CLI utility.

Either enclose your link in single quotes (which prevents special characters being interpreted) or precede any special characters with a backslash (the "escape" character).

e.g.

plowshare 'my(link)'

plowshare my\(link\)


It looks like you are missing package automake. To install it open Ubuntu Software Centre and search for automake.

The clue comes from

./autogen.sh: aclocal: not found

The script autoget.sh (which is part of the miner) is trying to use the program aclocal which was not found.

To find out which file belongs to what package use these commands in a terminal window (once only):

sudo apt-get install apt-file
sudo apt-file update

Search for packages containing the program  aclocal:

apt-file search aclocal


"Used 0" might be perfectly fine if you have plenty of RAM. In fact I have the same right now but sometimes when I use more memory things get swapped.


Update to 12.04 failed, now unusable system

but I don't want to install all my apps again. Is there any other way?

You have no free space. That's why your upgrade failed and you are stuck in an "unusable" state. Please delete files to free up some space -- you can start by deleting the files you already have a backup of -- at least 1-1.5GB is recommended.

Once that's done, open Terminal Ctrl-Alt-T and run sudo apt-get install -f. That may give you errors; if it does, try resuming the upgrade with sudo do-release-upgrade.

Sometimes this won't work either because the system thinks you have upgraded to 12.04 but you are, in fact, stuck half-way. You can do this then:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo sed -i -e 's/precise/oneiric/g' /etc/apt/sources.list
sudo apt-get update
sudo do-release-upgrade

with a sudo apt-get install -f if that is recommended by apt-get/dpkg.


Best partition scheme for ubuntu + windows with EFI and GPT

I don't recall offhand if Windows really requires anything beyond its C: partition and the ESP on an EFI installation. If it does, the installer will probably create whatever it needs automatically. My own approach would probably be to just leave free space for Windows and let the Windows installer create whatever it needs.

There is one major caveat: In my experience, the Windows 7 installer is very fussy about the ESP; it requires a FAT32 ESP. If you've got a FAT16 ESP, as many Linux installers create, Windows will flake out. IIRC, it'll either create a second ESP and become confused after one of its reboots during the installation or it will report that there's no ESP and refuse to install at all. Fortunately, you can change from a FAT16 to a FAT32 ESP by backing up, unmounting the ESP, using mkdosfs, remounting the ESP, and restoring the files. You may also need to adjust the /etc/fstab file if it uses the "UUID" (really a serial number) to identify the ESP.

As on a BIOS system, there's a possibility of boot loader issues after any OS installation. Thus, keeping a backup of the ESP is wise, and being prepared to deal with problems (via an emergency boot disc or the like) is also wise.


As of 2019, the preferred way of installing Zotero is by using Emiliano Heyns' packages.

Run the following instructions on your terminal:

wget -qO- https://github.com/retorquere/zotero-deb/releases/download/apt-get/install.sh | sudo bash
sudo apt update
sudo apt install zotero

For additional information about the provided packages, see the README file.

Other answers should be considered obsolete, Sebastiaan Mathot's packages being no longer maintained.


configuring dhcp with dynaminc ipv4 and ipv6 address

If the network supports IPv6, it should automatically get one.  If you're not getting one, and you know that the network supports IPv6, then you might need to disable IPv4 altogether, so you only have IPv6.

If you're using the GUI to configure eth1, then you might also want to try selecting "Require IPv6 address to complete connection" in the IPv6 page.


../libtool: line 1158: g++: command not found

When I met this problem,I found if you install gtk you would solve it.

sudo apt-get install libgtk2.0-dev


Skype in Ubuntu 14.04 can't detect speakers, microphone, or camera

Okay, here's a workaround: Just download and install Skype 4.3 (https://skype.en.uptodown.com/ubuntu).

However, the good people at Microsoft, in order to protect us from a suboptimal user experience, have deemed it prudent to make older versions of Skype immediately force-quit when you try to log in (and in their beneficent wisdom, they don't sully the graceful exit with any sort of abstruse technical mumbo jumbo like "Please download the latest version").

Luckily, you can trick them by changing the version number in the binary (this solution comes from Nicholas Odicoh):

sudo sed -i 's/4.3.0.37/8.3.0.37/' /usr/bin/skype


I don't believe the problem here is a lack of drivers, but rather a lack of configuration of the network connection.

Press the arrow in the top of your screen, select the Wired connection, and press connect. This should activate the connection.


Give up (almost) all hope

...for now. Gaming on Linux is coming, but it isn't there just yet.

Sorry, for my pessimistic tone, but I know some seasoned Linux experts who managed to install their game but:

it's for many games a lot of trouble to install and run. If you manage to run them at all.
it's a constant hassle with games that require to get the updates working. And the now-a-days online games like WOW, Eve-Online, Starcraft 2, etc. will force you to run the latest version.

I'm playing myself Starcraft 2 like this.

In the end you get some games working for some time, but it isn't fun to find out that your favorite games doesn't run anymore need some more lovin' and patchin'.

Your best bet

If you still want to give it a go. Try Steam for Linux or use PlayOnLinux .

You can estimate your chances to manage to run your game like this:

Very recent game will give you more trouble than seasoned classics, like from Good old Games.
More recent indie games come sometimes with native Ubuntu 12.04 support. Some games that are/were bundle with the Humble Bundle are like that.
As mentioned: Expect long-term troubles with multi-player online games.
If there isn't an entry on WineHQ you are really going to fight an uphill battle.


How can I force X to start in a computer without a monitor?

According to this tread a possible solution for 10.04 may be to both

define a standard xorg.conf, and
prevent KMS at boot.

However solution #13 there with resistors plugged to the vga port for fake monitor is really funky.


There are lines in the notifications in Lubuntu 14.10. (See image below) What's wrong?

Taken from here
https://bugs.launchpad.net/ubuntu/+source/lubuntu-artwork/+bug/1362555

My command:
sudo rm -f /usr/share/themes/Lubuntu-default/gtk-2.0/images/panel-bg.png


Does ubuntu have a control-alt-delete like in windows where I can recover from a frozen screen?

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3 (or Ctrl+Alt+F3-F6).

At the login: prompt type your username and press Enter.

At the Password: prompt type your user password and press Enter.

Logout of your current desktop session.
 gnome-session-quit

To bring up the normal Ubuntu login screen run this command:
sudo systemctl start graphical.target


Is the Radeon HD 7650 compatible with ubuntu?

It is indeedy.
One way to help confirm this and help with your decision making is go to launchpad bugs and search for your hardware.  One bug for this particular piece of hardware indicates almost 100% compatibility.
To be fair though doing the same for xpress 1250 confirms a lot more bugs and a lot more people being affected. Which all goes to confirm HD 7650M is a good choice.

Might be worth doing the same for your notebook model before committing!?

Observing the flame count indicates how many people have marked themselves as affected so this also is indicative of how compatible your hardware is with Ubuntu when searching.
Try updating to the latest release of Ubuntu to increase the chance of success without having to go hunting a suitable kernel for your hardware that is being used.
Problems do come and go due to updates but these get fixed or you can load an older kernel where hardware compatibility is known to be good.
I used to use nvidia but after using ATI will not look back!

It might be worth reminding you most things that are cheap are cheap for a reason!


Yes it can be Meizu Pro 5 Ubuntu edition


not possible to install lubuntu in vmware player?

It's a bug with lubuntu 20.
Without a notice, lubuntu 20 removed the installer from boot manager and moved it inside the live version.
You need to boot live version, then install lubuntu by clicking on the Install lubuntu icon on the desktop.
It's the standard way now, this "problem" has nothing to do with a VM.
I wish authors did mention this change in boot manager / GRUB.
There is not much information on web about the change at this time e.g. if you search "no install option".
I wasted a lot of time on this, as I also assumed something's wrong with the VM.
I say it's a bug, as by definition a software bug is when something is not behaving as expected.
It might be by an error, or a lack of oversight.
It's expected you can run live OS or install it in the boot manager. But the options to install is now missing in boot loader without an explanation.
Yes, the manual describes the install process correctly:
https://manual.lubuntu.me/stable/1/1.3/installation.html
Did someone expected a user will read the manual after years and hundreds of previous installations?


Security issue with default Postfix's "Internet Site" settings

Regarding security, since you need to relay for your internal clients you must allow Postfix to receive mail. You set the:

mynetworks_style = subnet

in main.cf and no host outside your subnet can use your Postfix as a transport thus you don't receive any mail from outside. Mynetworks_style also has a class option where you can define a subnet class in the form of

mynetworks = x.x.x.x/y  p.p.p.p/q

for allowed hosts.

It's technically possible to send mail thru Gmail etc. but I don't think free email services allow this. This is what I have done for Gmail:

In main.cf add:

relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtpd_tls_auth_only = no
smtp_sasl_auth_enable = yes
smtpd_sasl_local_domain     = $mydomain
broken_sasl_auth_clients = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd

In my case $mydomain is there because my LAN domain is the same as my Google Apps domain. You will probably need to add gmail.com or literal Google Apps domain name if that's not the case with you.

You also need to create a hash for the user:

[smtp.gmail.com]:587 user@example.org:s3cr3+pA55

Where user@example.com is your FQ username, and s3cr3+pA55 is your actual password in plaintext. You place that contint in /etc/postfix/sasl/passwd and generate a hash by doing:

$ sudo postmap /etc/postfix/sasl/passwd

Finally, do note that even tho I've sent mail only to my own domain users, Google has blocked my sender username after a while and refuse to do anything about it. As it appears, automatic sending of mail (in my case server notifications) through their servers is forbidden tho it's hard to decypher that from their terms.


How do I hide the tab bar in Chromium for a smoother web app experience?

If you create the Webapp from within Chromium, you'll effectively have what you want.

Go to Menu/Wrench>Tools>Create Web apps and shortcuts In Chromium/Chrome. No extensions, not anything extra installed.


How to stop screen going black after 10 min

In Lubuntu it is an option in preferences called "Light Lock". It's annoyingly on by default.


I found the following to work, but it requires a panel restart which results in a short flicker:

killall xfconfd
cp my-cfg-0.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
xfce4-panel -r

or as one-liner for Python:

bash -c 'killall xfconfd && cp my-cfg-0.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml && xfce4-panel -r'

Restarting the panel will also restart the xfconfd daemon.

It works, but a better approach would be to use xfconf-query as this doesn't cause any flicker. You'd just have to figure out proper path-value pairs by parsing the XML file and apply them in one batch. Can't help you with that, sorry.


How can I change the power related settings (suspend, hibernate...) with the command line only?

I'm not using the I3 Windowing Manager but these settings should work for you just as they do with Unity and Gnome Desktop. First discover the current settings:

$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout
0

$ gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
'suspend'

If your first setting is not 0 set it to zero so inactivity is not measured:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0

If your second setting reads 'suspend' set it to 'nothing':

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'

To list all settings use:

$ gsettings list-recursively | grep -E 'sleep|suspend*'
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'
org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
org.gnome.settings-daemon.plugins.power button-suspend 'suspend'
org.gnome.settings-daemon.plugins.power button-sleep 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power lid-close-ac-action 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power lid-close-battery-action 'suspend'
org.gnome.desktop.screensaver ubuntu-lock-on-suspend true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
org.gnome.settings-daemon.plugins.power power-button-action 'suspend'
org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'
org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor true
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
org.gnome.settings-daemon.plugins.power button-suspend 'suspend'
org.gnome.settings-daemon.plugins.power button-sleep 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
org.gnome.settings-daemon.plugins.power lid-close-ac-action 'suspend'
org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
org.gnome.settings-daemon.plugins.power lid-close-battery-action 'suspend'


Docker - How to setup chrome with chromedriver or Firefox with Geckodriver building python app with Arsenic library

You haven't installed chrome and chromedriver in your docker image, hence your app can't find them. Since the official python docker image uses Debian, you can try installing chrome in the docker image with
RUN apt-get install -y google-chrome-stable
and download a compatible version of chromedriver, probably with wget. Check the chromedriver documentation for which version you should use: https://chromedriver.chromium.org/
Then, make sure your app is looking in the directory wherever you download the chromedriver.


Ubuntu 16.04, windows 10, fast boot and hibernate

I haven't used Windows in a while, but as far as I understand, the issue only pops up when you write to the NTFS partition (files written from linux disappear when booting into windows). It is possible for a ubuntu (or any other linux based) system to read and write on a NTFS partition as long as you have ntfs-3g package installed. You can however mount the ntfs partition read-only either in /etc/fstab or through your favorite graphical application. As for ubuntu's hibernation feature, you need a separate swap partition where the OS saves the data stored in RAM.


I think always is better (and simpler) to install from main repos as first option if you don't have any special requirements.
The package you are searching for is named redis-server. You can check its package info with apt show redis-server.
Also you can search all packages mentioning redis with apt search redis, or even do some simple filtering using grep, use apt search redis | grep php to search for php-redis or related package(s) for example.

So, you can simply run:
sudo apt install redis-server
on your terminal, to install a fully working redis(server) environment.

If you have any special requirements, you always can build from source and install as @George posted in his answer.
Hope it helps.


How can I simulate Alt F4 using Autokey or another method

If you install xdotool using sudo apt install xdotool, you can use it to simulate a lot of stuff.

Then, open Settings > Devices > Keyboard and click on the + sign at the bottom to add a new shortcut.

Enter a name for your new shortcut such as Alt Close
Enter xdotool key Alt+F4 as the command
Press Alt+X as your choice for running the command.


Update Manager offers 900+ updates under partial upgrade mode

From a Terminal, run:
sudo apt-get update

Once this command has finished, re-launch Update Manager, and see if it prompts you to do a normal upgrade.


How to repair missing libs for Witcher 2 on Ubuntu 19.10?

I just ran Witcher 2 Enchanced from GOG. That was working for me. Ubuntu 20.04 / AMD Radeon RX570
first add i386 architecture:
sudo dpkg --add-architecture i386

Then install this list of packages as well:
sudo apt install libc6:i386 libasound2:i386 libasound2-data libasound2-plugins:i386 libgtk2.0-0:i386 libsdl2-2.0-0:i386 libsdl2-image-2.0-0:i386 libfreetype6:i386 libcurl4:i386

It works :)


Configure ibus to generate "à" using Compose + a + `

ibus supports input with plain old XCompose, i.e. without the compose-table method. To configure ibus to work with XCompose follow this answer.

Then you can start using it with no additional movement, the system Compose file have already defined the combinations on both order.

But just in case if you'd want to add something more, you can create a ~/.XCompose file. You can also download a popular XCompose, like this one, and then edit to suit your needs, but watch out for dragons, i.e. the one I linked have the combination you want redefined to input a LATIN LETTER SMALL CAPITAL A. Also note: I don't know out of hands if there's a way to reload the file without logging out/logging in. ibus restart for some reason doesn't work, I reported a bug.


switcheroo to discrete turns off backlight on laptop screen

I know it doesn't solve my problem by fixing it.

It appears to be a kernel bug that is new since at least 3.7. And anyway wasn't a problem on my 3.6 kernel. There was a fix changelog on the 3.8.5 kernel that may be concerning this but I don't know enough about the kernel to say for sure. In any case, as of 3.8.6, this is an unresolved problem for me.

https://lkml.org/lkml/2013/2/13/680 offers this:

  [1.] One line summary of the problem:    ATI + I Muxed - vgaswitcheroo
  - low backlight when switching to ATI [2.] Full description of the problem/report:

  This issue started with kernel 3.7.1-17.1. Kernels 3.6.10-3 or
  earlier are not affected. When switching from the integrated Intel to
  the discrete ATI, the screen goes dark. Everything else works fine,
  you can see the screen if you point a flashlight to it. Changing the
  brightness with the Fn keys or by sending a value directly thru the
  /sys/class/backlight branch has no effect. Switching back to the Intel
  GPU makes the screen visible again. Suse's desktop kernel and vanilla
  kernels have the same issue.

  Have tried adding acpi_osi=Linux and acpi_backlight=vendor (or legacy)
  but made no difference.


What happens when my computer locks due to idleness

When your screen locks, your screen locks. No other processes are affected.


Is it possible to permanently show notifications on my screen?

If your issue is with the short duration of the notify-send alert, then you can set the urgency level of an alert to 'critical'. This would produce a persistent notification which you'll have to dismiss manually.

Use the following format

notify-send -u critical "Header" "Body text"


Ubuntu 20.04 shows a black screen when connecting through Teamviewer, but I still have ssh access. How can I get back the desktop?

The issue is that you're running Wayland, which doesn't allow for any screen recording and elevated GUI apps, for security.
You'll need to disable it, in order to make Teamviewer work
To do that :
sudo nano /etc/gdm3/custom.conf

then uncomment (remove #) the following line :
#WaylandEnable=false

This Ctrl + X, Y and Enter to exit the editor
Reboot and you'll be able to get Teamviewer to work


Bad sound on headphones if I don't press mic button

It is very simple. The headphones with mic aren't compatible with the only headphone jack.

The headphones with mic used with phone has 4 step. The standard configuration is either CTIA or OMTP. The tip is audio L, next step is audio right, 3rd step is ground (or may be mic) and 4th step is mic (or ground).

On the other hand the headphone jack only compatible with 3 pin, audio L, audio R and ground.

The reason you get horrible sound because of those last two steps. When you press the mic button, it shorts the ground with mic which intern makes your headset act like earphone without mic.

This is not related anything to ubuntu. Pure hardware issue. You need to get a 4pin to 3 pin spliter like below, or if you're having this similar problem on a mobile try the second picture

2


Where else to go for help if not helped at Ask Ubuntu?

Some places you can go when looking for help when using the RTFM method ...

The Official Ubuntu Documentation page where you can find the official documentation developed and maintained by the Ubuntu Documentation Project.

The Ubuntu Documentation Wiki, whose home page I can never seem to find with a search, is a community-driven and open area of the Ubuntu documentation website which anyone can edit.

The Ubuntu Wiki. (I'm never really sure what this site is about or where to look for things on it, but there it is all the same. It does have a somewhat pretty page containing Ubuntu Release Information)

Ubuntu Common Questions (aka FAQ) page

The Ubuntu Manpage Repository

The Ubuntu Index of all available pages (Supposedly a list/index of all community documentation pages.)


Volume control doesn't work for headphones

My laptop has two headphones sockets: headphone socket 2 (the one I was using) is permanently on 100%, whereas socket 1 is actually under the volume control, IF Analogue Speakers is selected. However, even if I have Analogue Speakers selected, it is automatically changed to Analogue Headphones when the headphones are plugged in (to socket 1).
The workaround is to manually reset it to Analogue Speakers after plugging in headphones. Every time you plug in headphones. Best keep that Sound Settings window open.


Unattended upgrade changes the linux-azure kernel to generic

You need to install linux-azure meta package to get updates on the azure kernel.
You have linux-image-generic and linux-headers-generic that pull generic kernels.
The system will boot with the kernel with the highest number by default. If you want to boot automatically with azure kernels, you'll have to remove generic kernels.


Found out the issue! After installing Kali, SWAP partition automatically changed its UUID. It was enough changing UUID of SWAP in /etc/fstab to get Ubuntu booting fast back. I found the problem analyzing the output of journalctl command.


Can anyone help me find and install beta amd driver?

Make a temporary directory in your /home folder

mkdir ~/tmp

Download the driver here and put it in that directory

Now extract it

cd ~/tmp
tar -xf amdgpu-pro_16.20.3-294842.tar.xz

Change to the extracted directory

cd amdgpu-pro-driver

Now run the install script

./amdgpu-pro-install

Follow any instructions given and this will install the driver.

Ensure that your user account is a member of the "video" group prior to using the vulkan driver. You can find which groups you are a member of with the following command:

groups

To add yourself to the video group you will need the sudo password and can use the following command:

sudo usermod -a -G video $LOGNAME

You will need to log out and in again to activate this change.

That should be it, reboot and you will be using the beta driver.

You can delete the ~/tmp folder we created in the first step.

If for any reason you wish to remove the AMD GPU-PRO graphics stack you can do this using the uninstallation script which was part of the installation and is present in your path. From the command prompt enter the following command:

amdgpu-pro-uninstall

Source


I can't see DJVU thumbnails in Xubuntu (13.10)

You can use Nautilus instead of Thunar to preview DJVU thumbnails in Xubuntu. Nautilus provides roughly the same functionality set as Thunar, and should work without issues under Xfce.

If however you absolutely want to use Thunar for this, then you should check whether you have tumbler installed.


Lets first check your file system for errors.
For Ubuntu 17.10 or older...

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

For Ubuntu 18.04 or newer... (or if the above steps don't work for you)...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


Installing from the Ubuntu repository:
PlayOnLinux is available from the default Ubuntu repositories on Ubuntu versions 12.04 and later.
Install it with
sudo apt-get install playonlinux

Then click ➕ Install a program in PlayOnLinux and search for the Windows program that you want to install.

However, if you want the latest version, you will need to add the PlayOnLinux repository.
Installing from the PlayOnLinux repository:
The following example is for Ubuntu 12.04 LTS
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

If you want to ensure that you have the correct repo for your version of Ubuntu, or only want to install from the .deb file, you can check here: http://www.playonlinux.com/en/download.html


Cannot install TP-LINK Wireless USB Adapter Archer T4UHP on Ubuntu 18.04.1

After researching and trying, the solution came from jeremy31 on ubuntuforums.org (https://ubuntuforums.org/showthread.php?t=2358876&p=13787798#post13787798).
All the credit goes to him.

The device TPLINK Archer T4UHP Wireless USB Adapter apparently uses RTL8812 chipset, so the answer was loading the proper driver.

Just copying the solution here in case it helps others with the same issue:

sudo apt-get purge rtl8812au-dkms
sudo apt install git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU-8821AU_linux
sudo make -f Makefile.dkms install

Check Secure Boot status with

mokutil --sb-state

Reboot and disable Secure Boot if above command reported Secure Boot in use (you need to sudo apt-get install mokutil if its not installed)

I just followed this solution and now my TPLINK Archer T4UHP is working like a charm.


That's one of the major problems of using a TV as a monitor: they are lousy at telling the computer what exact resolution they have and at following orders if the computer tells them what to do...

As we don't have the exact specs of your TV, you should look up "overscan" or "overzoom" or "zoom" in your TV manual and then turn that feature off on your TV.


Ads by LaSuperba showing on every browser

My roommate caught the same malware days ago and he found this post useful. I suppose it can give you some reference as well. You need to check files to clean ads.


Running, or "injecting" software with specific date

The faketime command does exactly this.
$ date
Wed Nov 18 16:10:38 EST 2020
$ faketime 'next week' date
Wed Nov 25 16:10:42 EST 2020
$ faketime '1970-01-01 7:30 UTC' date
Thu Jan  1 02:30:00 EST 1970

By default, programs run with faketime still experience the passage of time in the usual way, just starting at whatever time you specify.
$ faketime '2004-10-20 11:06:23 CDT' bash -c 'for i in {1..5}; do date; sleep 1; done'
Wed Oct 20 12:06:23 EDT 2004
Wed Oct 20 12:06:24 EDT 2004
Wed Oct 20 12:06:25 EDT 2004
Wed Oct 20 12:06:26 EDT 2004
Wed Oct 20 12:06:27 EDT 2004

Those examples are with the date command for purposes of illustration, but faketime will run whatever command you specify.


512 MB RAM enough for Lubuntu with Ubuntu apps?

The answer is definitely yes.

Ubuntu uses around 300MB ram after booting with no applications running,
whereas Lubuntu uses around 90-100MB ram after booting with no applications running, giving you an extra 200MB ram to play with before you do anything.


I understand Apple works with Apple stuff. No other "fruits" allowed. :) The only way that would work is Wine+iTunes, but it seems like it doesn't work anymore. Try this if you need more info.


To logout: super + control + q

see

https://github.com/qtile/qtile/blob/v0.14.2/libqtile/resources/default_config.py#L62

To launch a terminal use super+r then type gnome-terminal then hit 'Enter' key. Alternatively install xterm sudo apt install xterm, then use the keyboard shortcut super+enter to launch it. See https://github.com/qtile/qtile/blob/v0.14.2/libqtile/resources/default_config.py#L55

You can also configure super+enter to launch gnome-terminal instead of xterm:

# create a config file if you don't have one
curl https://raw.githubusercontent.com/qtile/qtile/v0.14.2/libqtile/resources/default_config.py --output ~/.config/qtile/config.py --create-dirs

edit ~/.config/qtile/config.py and change xterm to gnome-terminal or your preferred terminal, then restart qtile with super+control+r


Freshly installed Ubuntu12.04 with no sound at laptop speakers but working on headsets!

You have a bad driver. Go to terminal and type

sudo apt-get install jockey


Xubuntu/Lubuntu/Ubuntu 12.10 cannot load XFC/LXDE/Unity on netbook running Intel N2600

This sounds like this bug.
This can be tested by adding gma500_gfx.blacklist=yes as a boot parameter at the Grub bootloader.


Not able to install any package in ubuntu 14.04

Unfortunately, Oracle has decided to remove the binaries of Java 7 and 6, therefore caused the error to pop.
Actually, you can get Oracle Java 6 and 7 if you have an Oracle Support Account (which is not free).
What are you trying to do is install the oracle-java6-installer provided from webupd8, but they stopped distributing their installer because of this issue.
Source: http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
To prevent Oracle Java installer from appear on every install/update
You need to remove the broken installation, press Ctrl+Alt+T to go to a terminal and type:
sudo apt-get purge oracle-java6-installer
sudo apt-get update


How to launch the Calculator through Terminal

Try to type:

gnome-calculator

Or for Older version (Ubuntu 12.04 and before):

gcalctool


Write bash script which takes input from pipe

alias csl="awk '{print "\047"$1"\047"}' | paste -d, -s"

then just cat whatever | csl

This seems to work, but really doesn't, for the reasons mentioned in the comments below. See them for actual, good working solutions :)

By the way, this is not ubuntu-specific, so feel free to post on stackoverflow.com if my answer doesn't work for you.


ubuntu server for raspberry pi setup for POE HAT with fan

The documentation on the POE-HAT product page says:

The PoE HAT is fitted with a small fan that is controlled by the Raspberry Pi via I2C. The fan will turn on and off automatically depending on the temperature of the main processor on the Raspberry Pi.

You can adjust the temperature at which it triggers by editing /boot/config.txt.  You should find an entry like so:
# PoE Hat Fan Speeds
dtparam=poe_fan_temp0=65000,poe_fan_temp0_hyst=5000
dtparam=poe_fan_temp1=67000,poe_fan_temp1_hyst=2000

Where you adjust the temps at which the fans turn on (temp0) and speed up (temp1).  The temps are in microcelsius, so 65000 is 65C.


I'm not sure if I get your question right, but in /var/log/auth.log are (beside other things) log entries coming from sshd. I think you want to create a logfile with only those entries from sshd to see who and when is accessing your server via ssh, right?

sshd uses syslog to do the logging, in your case rsyslog. This logging is configured in /etc/sshd/sshd_config. The relevant settings are SyslogFacility and LogLevel. Look at the manpage to understand what they do.

To get a single logfile /var/log/sshd.log which only contains messages coming from sshd you have to modify the rsyslog configuration. Create a file /etc/rsyslog.d/sshd.conf and put the following line in it:

if $programname == 'sshd' then /var/log/sshd.log

Afterwards restart rsyslog with

sudo service rsyslog restart


How to setup samba as a domain controller?

This is the official document from samba: Chapter 4. Domain Control. It's long and winding but might be a good reference.

The Ubuntu wiki will be very useful in setting it up. From the link:

Samba as a Domain Controller
Although it cannot act as an Active Directory Primary Domain Controller (PDC), a Samba server can be configured to appear as a Windows NT4-style domain controller. A major advantage of this configuration is the ability to centralize user and machine credentials. Samba can also use multiple backends to store the user information.

It's for 10.04 but all the commands and settings in the link are still working for 11.04.


unknown directive "geoip_country" in ubuntu 16.04 nginx version 1.12.1

Just need to install package "nginx-full" will fix the issue.

apt-get install nginx-full


To get better fonts for Thunderbird 68.4.1 I added a chrome folder in my thunderbird profile folder /home/myname/.thunderbird/xyzxyz.default-release.

You can find this folder zipped here: https://drive.google.com/file/d/1LdVD4ZI5A19ALWr644cx_53vHwvK5MCA/view?usp=sharing

If it's written in black in the left panel, change the colour from Thunderbird - Themes.

Default font is too condensed, the priority is not the beauty but the readability...


How do I remove players I don't use from the sound indicator?

Rather than blacklist the entry, it can be removed from the list.

Try the following:

kch:~$ gsettings get com.canonical.indicator.sound interested-media-players
['banshee', 'rhythmbox']

This shows I have two entries. To remove one, use the set option:

kch:~$ gsettings set com.canonical.indicator.sound interested-media-players "['rhythmbox']"

Note the quotes around the value to be inserted.

Now restart or logout, and the entry should be gone from your sound menu.


w.r.t. command-line interaction, are Ubuntu and Ubuntu Mate identical

Yes, the base command line tools will be the same. Both use the same package manager, the same set of packages available to the package manager, the same kernel, the same non-gui libraries, and the same shell. If you are interacting with the system below the GUI level, they should be identical.
Any differences in toxins at a higher level can be easily installed.


Wont load Windows 8 Pro from Grub 2.0(Ubuntu 13.04)

This is works with 2 modes, first one you have to install Ubuntu with in the Windows and second one you have to install it separately in one hard drive. when u install that Ubuntu separately u have to use live USB or grab 2.0 what ever you have.In Dual Boot if u need metro style boot screen(windows 8). you have to  install Windows 8 first then Ubuntu as second


Unable to remove old kernel images due to unmet dependencies?

Read man apt-get, especially the parts about

   -m, --ignore-missing, --fix-missing
       Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those
       packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation
       (particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item:
       APT::Get::Fix-Missing.


kate saving a text file that needs sudo, opens a password dialog message

You haven't mentioned your distro! I'm assuming you're on Kubuntu 18.04 which has Kate Version 17.12.3.

Open a terminal, move to the folder containing the file you want to edit. In this example, I want to edit the gtkrc file located in /usr/share/themes/Crux/gtk-2.0/.

So, first

cd /usr/share/themes/Crux/gtk-2.0/

Then run SUDO_EDITOR=kate sudoedit gtkrc exactly as typed including the _ between SUDO and EDITOR.

/usr/share/themes/Crux/gtk-2.0 $ SUDO_EDITOR=kate sudoedit gtkrc

On pressing Enter, provide your password and press  Enter. Kate will open the file. Make your edits and save as usual. Done.

When Plasma 5.13 arrives, you'll be able to open any suitable file with Kate and edit it. When you attempt to save it, you'll be prompted to provide your password if you've edited a system file.


Using CheckPoint SNX with RSA SecurID Software Token to connect to VPN

I'm successfully connected to VPN using Check Point SNX build 800005013 with RSA SecurID Token as password.

Following this tutorial http://kevin.deldycke.com/2012/04/check-point-snx-client-ubuntu/

Since RSA SecurID not available on linux. You can use wine to installed windows version of RSA SecurID. Or, you can use iOS/Android version of RSA SecurID.

I'm using xubuntu 12.04


Must Always Run From Terminal - No Way to Make Favorite

Applications installed using Software, apt get or snap automatically will install an entry (icon) in the Applications overview for you.

You manually installed Thunderbird. Accordingly you also need to install a launcher to appear in the applications menu yourself. A launcher (.desktop)  may actually come with your download. Then just move that into the appropriate location (.local/share/applications for your user only, usr/share/applications if access is needed for all users). If no .desktop file is provided, then you can make your own. Here, you can see how to create a launcher.

A correct launcher located in either folder will automatically appear in your Application overview, from where you can pin it to the launcher.

Some more detail

With thanks to Rinzwind, you will find the launcher of Thunderbird that is shipped with Ubuntu. The only change you likely will need, is on the Exec= line. Substitute the correct path for your executable, i.e., Exec=/home/<yourlogin>/thunderbird/thunderbird %u. Substitute <yourlogin with yoru actual login. Launchers (likely) do not expand ~ to your home directory, so you need to provide the full pathname.

Your icon theme probably will include a thunderbird icon. However, if the launcher appears with a generic icon, you can specify your own icon on the  Icon= line.

Thunderbird desktop launcher:

[Desktop Entry]
Encoding=UTF-8
Name=Mozilla Thunderbird Mail/News
Comment=Read/Write Mail/News with Mozilla Thunderbird
GenericName=Mail Client
Exec=/usr/bin/thunderbird %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=thunderbird
Categories=Application;Network;Email;
MimeType=message/rfc822;x-scheme-handler/mailto;
StartupNotify=true
Name[es]=Cliente de correo y noticias Thunderbird
Name[cs]=Poštovní klient Thunderbird
Name[ca]=Client de correu Thunderbird
Name[fi]=Thunderbird-sähköposti
Name[fr]=Messagerie Thunderbird
Name[hu]=Thunderbird levelezőkliens
Name[pl]=Klient poczty Thunderbird
Name[pt_BR]=Cliente de E-mail Thunderbird
Name[sv]=E-postklienten Thunderbird
Comment[es]=Lea y escriba correos y noticias con Mozilla Thunderbird
Comment[ca]=Llegiu i escriviu correu
Comment[cs]=Čtení a psaní pošty
Comment[de]=Emails lesen und verfassen
Comment[fi]=Lue ja kirjoita sähköposteja
Comment[fr]=Lire et écrire des courriels
Comment[hu]=Levelek írása és olvasása a Thunderbirddel
Comment[it]=Leggere e scrivere email
Comment[ja]=メールの読み書き
Comment[pl]=Czytanie i wysyłanie e-maili
Comment[pt_BR]=Ler e escrever suas mensagens
Comment[sv]=Läs och skriv e-post
GenericName[hu]=Levelezőkliens

(add more languages if yours is not in there ;) ) Install it at /usr/share/applications/.


how to restore ubuntu 12.04 or reinstall accidentally removed packages?

I'm afraid to say you that there is no simple solution for this.

There is no magic solution to say repair what I've done. But there is still some things to do.

Open your Ubuntu Software Center
Under the History tab
Go to the Removals tab

There you can find all packages that were removed accidentally (notice the date) so now as you know the missing you have to install one by one.


Will Ubuntu Desktop OS get erased if I install Ubuntu server (If not how do I erase the Ubuntu desktop OS)?

There's no need to erase the old install prior to installing the new one. Just boot from the LiveCD of the new Ubuntu, choose manual partitioning and make sure you choose to format the root partition.
If you have your home directory on a separate partition, you may keep it, which will preserve your documents - but, as usual, making a backup of all your data is essential before re-installing.


Their website says it is not possible to print in virtual environments, but I just did that and I can confirm that it works:

So how to print from coupons.com in linux:

install virtualization software (I did it with virtualbox)
install windows in the virtual environment
install your printer in the virtual windows
install their coupon printing software and happily print the coupons
don't forget to complain to them about not supporting linux

I didn't try, but it might also work with wine.


How to have Quicklist item launch in a Path?

Ok, I found a way around that, since it seems that the quicklist ignores the path and other variables, we can create a script that changes the directory, then executes your program.

Create a file called cd.sh or title of your choice, In that file use the following text:

#!/bin/bash
cd /home/ian/Documents
displaycwd.py

Mark the file as executable, Right-Click > Properties > Permissions > Allow this file to run as Program.

Or in terminal:

chmod +x cd.sh

Place cd.sh in the same location you have displaycwd.py and change the Quicklist to:

[Desktop Action quicklist]
Name=QL Display WD
Exec=cd.sh

This makes the quicklist first call a shell-script that changes the directory, then runs your program.

Solution #2

After looking around I think you can change the Exec line to this:

Exec=bash -c "cd /home/ian/Documents && displaycwd.py"

To pass a string through bash, that changes the directory then runs your program.


LinSched can be built with a 32bits OS.

$ git clone https://github.com/jontore/LinSched
$ cd LinSched/
$ make

Using : $ ./linsched

EDIT : Good news. The 32bits package, linsched_2632-1_i386.deb, installs OK and works OK with a 64bits OS → Tested with Ubuntu 16.04 - 64.

Link : https://drive.google.com/file/d/0B7S255p3kFXNc3ExQjVPRUtrVU0/view?usp=sharing


How can I disable the faded title text in the top panel?

I believe this is a bug that shows up in applications when the global menu is not fully integrated into the application.  For example, software center has a global menu however the close/minimise/maximise buttons still appear on the title bar instead of next to the global menu - example compare the Firefox global menu.

What happens is, the global menu text is drawn on the top bar, but the space where the buttons should be is not drawn, leaving part of the title text showing though.

Bug or feature?  I don't know but I can't find a launchpad bug that deals with this.  Maybe start a new bug report and see how it flies?  Chris.


"If I execute: mount /dev/sr0 /media/cdrom0"

one problem may be:

overdefined! If fstab is working fine just say

  mount /dev/sr0

That's it! Now mount must work.

other problem can be:

  EXT4-fs (sr0): unable to read superblock

you probably do NOT have ext4 on the CD! I'm not aware this exists.

This means not to type the type in the CLI is striking back.

Look at the man page to name the type. Most probably a

  -t iso9660

will do the job.
Type in the type and it will work on CLI.

For modern SD-cards look out for exfat support. Something like

install exfat-utils

And for DVD-RAM you need UDFtools.

DVD-RAM is very old so there is no new info. Old and underestimated. DVD-RAM on Ubuntu Linux is easy. I use Ubuntu 16.10 with XFCE4 but that does not matter at all.

Why DVD-RAM? Because it is more reliable and more stable archiving data. See Wikipedia for details on DVD-RAM.

However, DVD-RAM is rather an external drive than a DVD to write on. Not all drives can write and read. However, most modern Laptop and Computer optical drives can.

Careful: DVD-RAM is slow by modern means. Don't force the mount and umount to break.

We have to format it as UDF file system. This is the appropriate FS for the DVD-RAM (I do not quote the details here, use duckduckgo.com)

Know your CD-Writer: Mount a CD, with „mount“ watch out for the name. Like /dev/sr0.

Take the DVD-RAM out of the cartridge if necessary, put it in your drive and reboot.

Prepare:

sudo apt-get install udftools
sudo apt-get install dvd+rw-tools

Make a mount point:

sudo mkdir /mnt/dvdram0

and adapt the user rights etc. You need to adapt the rights again for the mounted DVD-RAM (different than vfat floppy or external drive).

Adapt the fstab:

sudo vim /etc/fstab

For automatic mount enter a new line like

/dev/sr0 /mnt/dvdram0 auto user,users,rw,auto,exec,utf8 0 0

The first auto may better be "udf". The second auto depends on you: Try noauto if the boot process hangs.

Format the DVD-RAM:

sudo mkudffs --media-type=dvdram   /dev/sr0

The default options for mkudffs probably match your needs. Otherwise: man mkudffs !

Mount the DVD-RAM:

mount /dev/sr0

should do it, otherwise use as sudo mount /dev/sr0. With the fstab entry it will be found.

When you ask your CLI now with mount it should answer something like:

/dev/sr0 on /mnt/dvdram0 type udf (rw,nosuid,nodev,relatime,utf8,user=myname)

Now again adapt the access rights for the mounted(!) drive:

sudo chown myname /mnt/dvdram0
sudo chmod u+rwx /mnt/dvdram0

Test your access rights:

mkdir /mnt/dvdram0/mydirectory

without sudo it should work. Otherwise check the rights.

Do a reboot now or restart all relevant services.

So now we have

installed the tools
prepared to mount
formatted the DVD-RAM
mounted it in the file system
adapted the user access

It shall be available in the file manager like a normal drive. Watch out for /mnt/dvdram0 (and in Nemo create a bookmark).

Unmounting takes time because of write completion. It is done from CLI or try to find a way in your browser.

What did I forget? What was wromng?

Better way to unmount??


UEFI Bootable USB Stick Ubuntu 12.04 lts

If you want Ubuntu on the same disk as Windows 8.1, here are the steps to go through:

1) [Turn off Windows Fast Boot][1]

2) You need to shrink the main Windows 8.1 partition.  This can be tricky, as Windows expects a certain partition scheme to be used.  Let me show you a diagram:

[(Windows RE Tools)(EFI System Partition)(Microsoft Reserved Partition)(Windows 8.1)(Anything else)]

You can use your favorite tool to edit these partitions.  I prefer Gparted, but any good disk partitioning tool can handle this.  Backup your Windows install first.  Then, resize the Windows 8.1 partition so that you have enough space for another OS.  I prefer to give my Linux installs about 50-100 GB of space (for expandability).

3)  Download your Ubuntu (use 64 bit only and I suggest 13.10) iso and put it on some media (CD/DVD/USB/(insert your preferred media here)) by using your favorite tool (most people prefer Rufus) or dd.  There is an alternative option to this(see *).

4) Shut off Secure Boot and Fast Boot in the UEFI.  DO NOT TURN ON LEGACY BOOTING (if your motherboard supports UEFI only booting without Secure Boot and Fast Boot on.)

5) Insert your install media and install Ubuntu in the partition you made earlier.  Make sure that for your EFI boot partition, you make the installer use the EFI System Partition already created by Windows 8.1.  The partition should be something like sdXn (replace X with the drive it is on and n with the partition number, such as /dev/sda2), but this could be different.  DO NOT REFORMAT THIS PARTITION!!  You are only going to tell the installer to use it as the EFI partition.  It will put the grubx64.efi bootloader for Ubuntu in this location.

6) With that done, continue the install as normal and set up your partitions as you see fit.  Once the install is finished, you should be able to boot into Jessie easily.

If you are trying to fix an existing install of Ubuntu, you will need to do:

sudo apt-get install grub-efi-amd64

sudo modprobe efivars

sudo grub-install /dev/sdx (x being the drive Ubuntu is installed on)

sudo update-grub

From there, the UEFI should use Grub-EFI as the bootloader. I have not found a way to get the Windows 8 bootloader to see and allow Linux to boot in UEFI.  YYMV.

*Note: If you want to not go through the hassle of Rufus or dd, I have had limited success following this procedure.

1) Make the UFD into a GPT disk.  You can do this using diskpart in Windows (sometimes) or using Gparted in Linux (99% of the time).

2) Format the disk to FAT32.

3) Download your iso.

4) Extract the iso onto the UFD.  Make SURE it has an EFI folder in the root partition of the drive.

5) Once the contents are extracted, take the disk back into Gparted.  On the partition, right click and bring up the Manage Flags dialog.  Click check the boot box. There is also a way to do this in diskpart, but it requires setting the id of the disk, which is just a pain.

6) This disk should now be UEFI bootable.  Follow the rest of the guide from where the asterisk was to the end.  Caveat, since this is on a laptop, there should be a mode that has UEFI with CSM which shuts off Secure Boot and Fast boot and will still allow the D-I to install in UEFI mode.  Pray your laptop has the option to disable Secure Boot without doing this.


Found a solution for me.

On terminal:

$ # If dconf-editor is not already installed
$ sudo apt-get install dconf-editor
$ dconf-editor

When the program opens do the following:

navigate to desktop.ibus.general

remove 'xkb:us::eng' from both engines-order and preload-engines

Works for me on Brazilian Portuguese, hope that works for you.


Port 21 will not open. status is closed. forward port 21 to new domains.

Forward port 21 on your router's Port Forwarding page.

Is your ISP blocking port 21?

Do you use some firewall in your system. If you do, ensure port 21 is open in your firewall.

After doing that retry the procedures in the site you mentioned.


Mini webradio: doesn't play automatically

Solved with the help of user535733.
Step 1
Install mplayer sudo apt install mplayer
Step 2
Enable service, because otherwise mplayer can't connect to stream:
sudo systemctl enable systemd-networkd-wait-online.service
sudo systemctl enable systemd-networkd.service

Step 3
Edit a new service: sudo nano /etc/systemd/system/audiostream.service
Writing in the new file
[Unit]
Description=Start Mune Radio
Wants=network-online.target
After=network-online.target

[Service]
ExecStartPre=/sbin/shutdown -h +90
ExecStart=/usr/bin/mplayer http://icy.unitedradio.it/VirginRockClassics.mp3

[Install]
WantedBy=multi-user.target

Step 4
Enable the new service: sudo systemctl enable audiostream.service
Test
Let the new web radio with a single station play: sudo reboot ; exit

If something goes wrong try sudo systemd-analyze verify audiostream.service or/and sudo systemctl status audiostream.service


How do I repair a Fat 32 Filesystem Partition "input/output error"

Try running

sudo dosfsck -r

a few times and see if that fixes things.  Good luck.


You are on a Xen VPS(or virtual machine); xvd* are simply the Xen disk storage devices (Xen Virtual block Device). They appear instead of sda, etc. when you are using the more efficient paravirtualized Xen disk drivers instead of straight-up SCSI disk emulation. If you list the installed modules (drivers) on a Xen HVM, this driver will show as blkfront (or xen_blk if you are running on a very old Xen version--pretty rare).

In short, treat xvda1 exactly as you would sda1 on a regular PC.


How to remove nautilus and intstall nautilus elementary with coverflow?

The nautilus-elementary PPA has been upgraded for the 11.04 release. Simply add the following PPA and upgrade (graphical PPA instructions):

sudo add-apt-repository ppa:am-monkeyd/nautilus-elementary-ppa
sudo apt-get update && sudo apt-get upgrade

Coverflow is incorporated into nautilus-elementary. Just press F4. gloobus-preview packages are provided in that same PPA.


Accidentally changed shell in gnome-terminal, no longer opens

Install the dconf-editor

sudo apt-get install dconf-editor

Start the application and navigate to

org.gnome.terminal.legacy

Open the category profiles: and select the wrong profile, or check all profiles.

In the right hand pane you will see a key custom-command. Remove the value or use the Button Set to Default in the lower pane.


Dell XPS 13 (9370) Ubuntu 18.04 reproducible touchpad cursor jumps (inc. demo video)

Go to Mouse and Touchpad in Settings. Increase touchpad speed and disable Natural scrolling.

You can install gnome-tweaks.

sudo apt install gnome-tweaks

You can change default behavior.  You need to change settings from Keyboard & mouse >> Mouse Click Emulations >> Area


Ubuntu 14.04 is working Slow in Acer Aspire V5-123

Background.

You shouldn't really upgrade from 12.04 LTS to 14.04 LTS on a laptop/notebook, unless you have specific software installed with settings you need to preserve. That is usually only relevant for server, and sometimes desktop..

Any issues introduced in power management, or otherwise laptop specific, may be almost impossible to diagnose and/or address.

Suggested solution.

Backup all data, capture list of installed applications, and note down all favourites or settings.

Then, do a fresh / clean install with Ubuntu 14.04.2 LTS (64-bit), and look for specific advise on this forum (or elsewhere) for any remaining issues.


Creating repositories under Ubuntu Landscape

The issue was very much related to firewall rules. It seems that onedrive was a flagged security application.


How do I install Ubuntu from an USB drive / create a live USB-stick in Windows?

Well you can create a Live-USB disk that can be used for installing the operating system with unetbootin. Here is the official documentation on USB installation.

Make sure that you boot the USB disk at system startup, i.e. when you on your computer. That means the BIOS of your computer has to be set to try to boot from USB before it boots from hard drive and the stick has to be inserted before hard drive booting takes place.

The usual procedure from within Ubuntu is to use Startup Disk Creator. With that you just select the Ubuntu image or LiveCD and the USB-Media and go ahead. See picture below:


You can download directly from Mozilla.

Thunderbird 32bit

Thunderbird 64bit

Once downloaded extract the files to ~/.thunderbird/(Profile name)/

to clarify:

/home/user_name/.thunderbird/(Profile name)/

Or

Open Terminal, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens:

sudo add-apt-repository ppa:mozillateam/ppa
sudo apt-get update
sudo apt-get dist-upgrade

This will install 60.4.0


Does the Software Center log installations?

Yes, It maintains a log in /var/log/apt/history.log. Older histories gets compressed as .gz files. It contains installation, upgrade and removal logs.
For keeping existing software backups you can use
dpkg-repack to make .deb files out of installed files. Here.


Where are laptop keyboard drivers found?

From what i've read you have 2 situations, where keyboard is handled by some kernel module, and if you install XORG server, for example, it can be also handled by it.

So with the kernel drivers, they should be in something like:

/lib/modules/2.6.2x.xx/kernel/drivers/input/keyboard/

For XORG:

/usr/lib/xorg/modules/input/kbd_drv.so


Unfortunately i can not access your link. So i can not see any command you used. Don't confuse with permission. There are two things, permission and owner. Sometimes permission auto change when we copy some folder or file from pendrive or somewhere. That is because, when your system found any harmful or not recognized executable file it changes the permission immediately so the file failed to run. It's fully security issue. But sometimes Beginner user face this problem and get bored with it.

If your folder permission change then right click on it, you will see this..

You can see three group, "Owner , Group, Other". Just change the permission as you need. Sometimes you will see like this..

Something different here !! Owner is root not you. So you can not change permission from here.
You can change permission using terminal also

chmod 775 /media/folder/folder
three number : owner permission=7, group permission=5, other permission=5
write permission=4, read permission=2, execute permission=1

It only work if you are the owner of the file or folder. But what happen if you are not the owner? Don't worry, take the root's power, use "sudo"

sudo chmod 775 /media/folder/folder

And last one, how to change ownership

sudo chown your_usrname:your_username /media/folder/folder


In terms of Ubuntu most would advise you start with the 64 bit version.

In terms of running your Adobe and Microsoft applications, I would either use Linux native alternates, dual boot with windows, or run windows in a virtual machine such as KVM, virtualbox, or VMware.


How do I make my apps windows get their own Unity launchers?

You can create multiple .desktop files that launch the individual windows separately. You can either use python filename.py or write a wrapper script for the command line argument.


Intel Graphics: stock driver vs modesetting driver vs Intel download

Intel still performs better as you can see here:
https://www.phoronix.com/scan.php?page=news_item&px=Intel-DDX-May-Tests

OTOH, there are a lot of discussion about the slow development in the Intel driver:
https://www.reddit.com/r/archlinux/comments/4cojj9/it_is_probably_time_to_ditch_xf86videointel/

To make it complete, the last open source developer in Intel is out:
https://www.phoronix.com/scan.php?page=news_item&px=Kristian-Hosgberg-Departs-Intel

Modesetting is what you will use whenever you mix more than one card.  E.g. NVidia cards.  With output sinks on xrandr.