Crashplan on headless ubuntu server to back to cloud?

Depending on what plan you choose from Crashplan, you can backup everything else in the house to the Ubuntu server and then the entire Ubuntu server to the cloud in Crashplan, or you can back up multiple machines to each other in the house and to the cloud as well (also using Crashplan)

I got the Family plan which supports up to 10 computers so I do the latter.  I like that because I have local backups to take care of hardware failure scenarios, and cloud-based to take care of fire & theft scenarios.

Note: if you put only the one machine on Crashplan, I would backup everything else using a different method, maybe rsync or robocopy.  Crashplan won't back up Crashplan backups, for obvious reasons.


Disable user intervention until password entered (not logout)

Force logout on program close

You could run your video player with a command like this:

smplayer && gnome-screensaver-command -l

And then if the player is closed, it will log you out. The && means "execute following function AFTER preceding function is FINISHED".

However, if the player window is simply unfocused and not closed, the logout command will not run. However, this can be fixed with a little scripting to tell the video player to quit on unfocus.

Kill video player when it is unfocused

Per this post: How to execute a command on window focus/unfocus? you can write a script that will kill your application and/or log out when video player is unfocused.

So, if you run smplayer, then run the following script from the command line, this will log out if SMPlayer looses focus.

First install the needed utils:

sudo apt install xdotool wmctrl gnome-screensaver

Then put this in a file somewhere, for this example we will call it "be_nice":

nano be_nice

Paste this in and save:

#!/bin/bash

wmctrl -a SMPlayer

while [ true ]
do
  FocusApp=`xdotool getwindowfocus getwindowname`
  if [[ "$FocusApp" != *"SMPlayer"* ]]; then
        killall smplayer
        gnome-screensaver-command -l & break
  fi
done

Make it executible:

chmod 755 be_nice

Now open a video in SMPlayer, then run be_nice from the command line:

./be_nice

This will bring SMPlayer into focus, and if it leaves focus, will lock the screen. Only problem is 'fullscreen' mode doesn't work as the xdotool can't find the name of a full screen window.

Log in as guest user

A final option would be to use the guest or a separate user account when you are letting your friends you don't trust use your computer.

Just looking to Lock the Screen?

Power menu in upper right corner of screen. Open that and click the lock, bottom middle of the window that opens up.


Integrated graphics: does Ubuntu work better with Intel HD Graphics 4000 or with an AMD APU (AMD Radeon 7660D)?

I have a hybrid AMD and Intel 3000HD in my laptop. From my experience Intel is a much easier choice. The Catalyst software for Linux is buggy and causes problems, not to mention relying too much on alternative drivers that could black screen you.

Intel HD is by no means perfect, but by default this hardware will work as it should without needing an add in GUI or anything.

As far as gaming goes if these are more than Minecraft and Civilization, you will want to go with the AMD.


how to disable automatic brightness adjust Ubuntu 18.04

Go to Settings → Power → turn off Dim screen when inactive.


I had this problem during a caffe make.  Solved it by adding this to my /caffe/makefile.config: LIBRARY_DIRS := $(OPENCV_LIB) /usr/local/lib

where /usr/local/lib is where the OpenCV 3.3.1 libraries are that I want to use.

Without that statement, caffe make was using /usr/lib for OpenCV.  That folder is where I have OpenCV 2.4 libraries.


SIP Phones unreliable past 12.04 - Empathy additional features?

Twinkle does a pretty good job, and it has the features that you mention:

http://packages.ubuntu.com/precise/twinkle


If I'm not wrong, speaker-test calls on ALSA directly for the test whereas Ubuntu uses PulseAudio to interface with ALSA. That's why you're hearing a difference.


Atheros AR8161 Ethernet card not working on 12.10 on an ASUS N56VM

So the only way I managed to get this working was by compiling the alx driver.

I. Go and get the tarball from The Linux Foundation:
 http://www.linuxfoundation.org/collaborate/workgroups/networking/alx
and save it somewhere (let's say you saved it in Desktop/alx)
 II. Install some pakages needed for compiling:

  sudo apt-get install build-essential linux-headers-generic linux-headers-uname -r

III. Unpack the tarball and compile it(This is provided that the file you downloaded is called 'compat-wireless-3.6.8-1-snpc.tar.bz2'):

  cd /home/YOU/Desktop/alx

  tar -xjf compat-wireless-3.6.8-1-snpc.tar.bz2

  sudo su

  cd compat-wireless-3.6.8-1-snpc

  ./scripts/driver-select alx

  make

  make install

  modprobe alx

IV. Hooray you shoul have Ethernet now! :)
 Try: sudo ifconfig -a - you should see an eth0 inteface


Well I personally enjoy using plop https://www.plop.at/en/bootmanager/download.html it's fairly straightforward and any questions you may have would be on this site.


Long story short: if you can live without rotation; or not knowing if you will have sound, video codification or Suspend/resume capabilities; or some other minor glitches go ahead, otherwise, look for another table.

Details

Following the table State of Things (updated till 2013-05-03) this is the actual status of the tablet:

Graphics          Perfect
Boot process      Working          -- No boot animation
Rotation          Bloked/Broken    -- General issue: not supported in Ubuntu Touch yet.
Wireless network  Work in Progress -- OK, but can't enter password with on-screen keyboard
Sound             Unknown          -- No details
Touch             Perfect
Camera            Working          -- Not working zoom & face camera
Video Decode      Unknown          -- No details
Suspend/Resume    Unknown          -- No details
Dock keyboard     Work in Progress -- Special keys not working, on input shell restarted sometimes
Dock touchpad     Unknown          -- No cursor in the shell
Dock Battery      Working          -- No dock battery indicator

Legend:

Perfect: Work without problems.
Working: Works, minor issues only, some patches pending.
Work in progress: Self-explanatory
Bloked/Broken: Severely broken, unusable or progress is blocked
Unknown: Unknown status


I can't - install Broadcom STA wireless driver, connect to wifi, connect to Ethernet wired connection

You shouldn't need to add any settings at all to the IPv4 section in Network Manager. If some have been added, please remove them. Be sure Infrastructure and Automatic (DHCP) are selected. Then, with the ethernet cable attached, simply click the Network Manager icon and try to connect. Confirm:

ifconfig

Do you have an IP address? Can you reach the internet?

ping -c3 www.google.com

Once you are connected, let's try to fix the wireless.

sudo apt-get install linux-headers-generic
sudo apt-get install --reinstall bcmwl-kernel-source

If the install fails again and asks you to consult the log, please do:

cat /var/log/jockey.log

Paste the outcome here and give us the link in your reply:  http://paste.ubuntu.com/


after installing second distro, separate grub2 installs

Have you tried Boot Repair? The software should allow you to synchronize your GRUB menu options across all of your installations.

View the Boot Repair homepage here.


First remove the remaining dispensaries by

sudo apt-get --purge remove wine

The fix the broken packages via

sudo apt-get install -f

The reinstall wine if you want


As per the Desktop Application Autostart Specification, which Ubuntu and all major desktop environments like Gnome, LXDE, XFCE follow, the Startup Applications are .desktop files stored per-user in

~/.config/autostart

And also globally, for all users, in

/etc/xdg/autostart

(this is a simplification, the real directories are determined by XDG Base Directory Specification)

The enable/disable feature is provided by this attribute in each .desktop file:

X-GNOME-Autostart-enabled=true (or false)

If a user toggles enable/disable status of a given application (without deleting it) that was in the system folder, it is copied to the user directory and then the attribute X-GNOME-Autostart-enabled is changed. If a user deletes a given application from the list, the .desktop is copied to user folder with the Hidden=true attribute (or the file is simply deleted if it was present just in the user directory)

Files in both user and system folder does not need to be marked as executable. Default permission is 644 (rw-r--r--). Executable permission for .desktop files are only useful for launchers in your desktop area (the workspace), so they show their icon and allow double-click to start the application. For Dash, Launcher, Autostart and menus in general the executable bit is irrelevant.


Screen tearing reappeared after updating form 19.10 to 20.04 (GeForce GTX 1050 Ti Mobile)

I was able to solve the problem by selecting the most recent driver 440 (the following picture is from this source; that is why there is a different GeForce GTX model displayed):

Then, I edited the .conf file by replacing options nvidia_435_drm modeset=1 with options nvidia_440_drm modeset=1 and restarted the computer.


Can't boot after coping VDI to new drive (or possibly just upgrading to 17)

My inelegant solution was...

Create another virtual drive attach it as SATA
Startup failing machine and mount via terminal the new vdi
Copy all files to the new drive
Shutdown bad machine
Create new Ubuntu machine
Mount new drive as well as OS drive
Copy files over to New OS drive

There might be a way to just mount the old broken drive as a second drive, but mine was encrypted and I couldn't get it to work.

I will still give bounty to anyone that can get the old one to actually boot.


System hangs when plugging in or unplugging charger

I too had that problem.
First, I enabled battery icon in my laptop by using dconf editor.
Also I had shutdown freeze problem and to overcome that I changed the /etc/default/grub/ setting and set apci=force. This resolved that problem.

And, when I finally restarted, both of the problems were resolved and also the plug in or out charger freeze problem.

Try enabling the battery icon and in grub, set apci=force.
This may help you. Now it's working well for me.


Importing iTunes library in any Ubuntu music player

Download this file and extract it to your home folder.

Install perl

sudo apt-get install perl

Type the following command -

perl transferratings.pl path/to/itunes.xml path/to/rhythmbdb.xml

The location of rhythmdb.xml can be found using

locate rhythmdb.xml


Instructions On How To Recompile The Libgweather Source

Please see https://wiki.ubuntu.com/Bugs/HowToFix.  Quite a few of the Ubuntu developers are available via IRC in the #ubuntu-motu channel, too.  Feel free to ask us for pointers.  Thanks for your interest in helping resolve this bug!


Ant for Java not showing as installed but it is installed

If you want to use Oracle JAVA, you can follow this guide I always do when I want to install it:

How To Manually Install Oracle Java on a Debian or Ubuntu VPS

If you prefer continue to using OpenJDK, just run this command:

sudo apt-get install --reinstall openjdk-8-jdk

After that, verify if $JAVA_HOME is functional.
Type printenv to see if it's present.

Or type ls $JAVA_HOME, it will list java installed folder.

To enable it:

Type command -v java to take note of java path;
edit ~/.bashrc file and append this line at the end:

export JAVA_HOME=<java path>

In addition, it's necessary defining ANT_HOME to make it work.

You need append export ANT_HOME=/usr/bin/ant (exampled from this question)
to ~/.bashrc


How do I install nessus on ubuntu 14.04?

Download Nessus from here. Choose the Ubuntu packages (or the Debian ones)
Open a Terminal and go to the download directory (cd)
Run sudo dpkg -i Nessus*.deb. Enter root password.
Start it sudo /etc/init.d/nessusd start
Open a browser and go to https://localhost:8834/

See more on Samiux's Blog. Check also: Can't Install Nessus in Ubuntu 14.04 LTS


My understanding is the wirenet-1 has to create a file in the directory ~/ WIFIADAPT Since Linux sees directories and files as the same (you can't have a file and directory by the same name) I believe that creating an empty file by the name of WIFIADAPT in your home directory would keep your from getting the Trogen since It would not be able to create the Directory WIFIADAPT the location it stores the infection.  Just for extra measures I would set the permissions on the created file read only.  This is just my suggestion but I believe this would work.  It also wold be a good idea to block the above mentioned IP address.


Manage production and development enviroment Ubuntu 12.04

Since I did not receive any feedback, here are the steps we took:

1) We duplicated our production linux webserver using vRanger.
If you do not have Vranger license, you can probably get away with using vMware workstation and duplicate the vmdk file. (I have not tested this process)

2) Powered on the copy of our production gave it a different IP address.

3) Since both our Production server and our Staging server are identical I used RSYNC to manually sync since changes when necessary.
Here is a sample of the command:

sudo rsync –avh /var/www/sites/ root@192.168.1.1:/var/www/sites/

Here is an explanation of the command above:

**sudo** = temporary gain privilege to execute the command
**rsync** = utility to synchronize data between two different server/folders
**-avh** = commands for rsync – a = archive – v = verbose – h = human readable format of file sizes
-**/var/www/sites** = source (our staging server - server we are pushing changes from)
**-root@192.168.1.1:/var/www/sites** = destination of where the files are being copied to (production server)

4) We purchased a tool called SQLyog there are different pricing modules and features depending on what you need it for.
https://www.webyog.com/

There are freeware tools too for example Toad for MySQL 6.7 Freeware (had a hard time using it)http://www.toadworld.com/products/toad-for-mysql/default.aspx

What both of these tools accomplish is if you are running multiple MYSQL databases like us, we can view the MySQL changes made in our staging environment and push the changes to our production environment.

You can push changes using MYSQL using the command line as an option too (using mysql dump). I find it much more convenient to use the SQLyog utility.

That's all there is to it. Just remember to make a backup of your files and test the procedures before using it in your production/live environment.

I take no responsibility if you break something, or don't know what you are doing.


need to wipe my hard drive from crashed windows 7 to install Ubuntu

So, you want to delete everything in you HDD? Ok. Boot into your Live-CD or USB, and select Try Ubuntu then, press the Super key and type in Gparted... Open it, and select the HDD you want to wipe, and select Delete the selected partition...

There you go, if this wasn't helpful, could you explain a little bit more your problem?


Where to find the ISO file to be burned on a CD/DVD?

There is no need to unzip an ISO file.  You can burn it directly to CD using Brasero if you're already using Ubuntu, or if you are using Windows, you can use programs like Nero, PowerISO, or WinISO.

While some archive programs will let you treat an ISO file like an archive and extract its contents, fundamentally an ISO file is an image for a disk. Extracting the ISO is a completely separate operation than burning it, which is what you want to do.

The official installation instructions explain how you can burn the ISO on a Windows system, after downloading it.

For more information and other programs that you can use, see this page.


The reason you can't open or install UltraViewSetup1.00.exe is because it's a Windows executable file. The .exe at the end of the filename tells you it will only work on Windows operating systems.

Most Ubuntu applications will have a .deb extension.

As for the fullscreen problem on multiple monitors, this is a bug with Flash. Flash opens the fullscreen video on the primary monitor rather than the one it originated from. This has been answered already on AskUbuntu.

I use a similar method as is highlighted in the answer to the linked question. I'm using Opera coupled with the MediaPlus extension.


does this do it?

gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled


How do I set up a server with a realtime kernel?

I would:
1)set up a VM of the base install exactly as your server is but with a larger disk
2)get the kernel sources package and build deps
3)merge the ubuntu diff and the patch diff
4)rebuild the deb with a new name
5)move the deb across and install it with whatever package manager(apt/dpkg)

I don't think this is something for which you should copy/paste commands.

EDIT:
The gist of it was make a Virtual Machine that is identical to your server in question but with enough space to build, as in do not install the virtual optimized kernel/guest additions...because I don't think askubuntu is not the place to cover compiling against different kernels/architectures.

Follow the existing documentation to build the debs.  It clearly states how and gives you their names.


Cron doesn't execute one of the scheduled jobs

xinput configures and tests X input devices. It uses the $DISPLAY environment variable to find the X server to talk to, so you need to define it, because cron jobs do not require X windows. The easy way is to have the crontab line be

env DISPLAY=:0.0 /usr/bin/xinput set-prop 12 --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1 >> /tmp/mybackup.log

Is there an X server running when the cronjob runs? Also, if there is an X server running, it might be running with the X authentication credentials of a user, and your cron log shows you running as root. If you are not exposed, and are willing to risk reducing your X security, try running

xhost +SI:localhost:root

on your X server at each login. Or, run the cron job as the same user, not root.


Find which program caused a core dump file

Ok, it turned out there was a more straightforward way of identifying a misbehaved program using the file utility:

$ file core
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'sqlplus'

So sqlplus in the example above would be the main suspect.


If it works on wine 1.5 probably it works on 1.6.

Wine 1.5 was a development version that was renumbered to 1.6-rcX as it got close to stable. Wine 1.6-rc1 was released at 2013/06/07, the code was frozen and now only bug fixes (no new features) are accepted.

Stick to wine 1.6, probably it'll work.

I successfully installed Adobe Reader 10.1.4 on wine 1.6-rc4, here's what I've done:

Downloaded Adobe Reader 10.1.4.
Ran winecfg and set Windows version as Windows XP.
Ran winetricks -q mspatcha as recommended at WineHQ appdb.
Installed Adobe Reader by running: wine ~/Downloads/AdbeRdr1014_en_US.exe.

Adobe Reader complains about "Protected Mode" at start up. I just choose Always open with Protected Mode disabled and had no problems.


Using /etc/rc.local to turn off keyboard backlight no longer working in 15.04

This is because of the new systemd. try:

systemctl enable rc-local.service

To check status:

systemctl status rc-local.service

make sure that /etc/rc.local is executable and has #!/bin/sh in the first line.


How to remove completely the php packages from ondrej PPA?

Used ppa-purge ppa:ondrej/php5-5.6 as suggested by muru.
It helped. Had to fix all configs manually though.


Is there sense in mounting EFI partition at /boot?

It is possible to configure a Linux installation to mount the ESP at /boot; however, there are some significant caveats and issues that make this configuration inadvisable for Ubuntu. Specifically:

Because the ESP typically mounts at /boot/efi in Ubuntu, tools may assume that it's mounted here, and if you mount it elsewhere, those tools may misbehave. I haven't studied the issue in detail, but I'd be wary of the GRUB configuration tools (if you use GRUB as your boot loader) in this respect.
The Debian package management system occasionally creates symbolic links when installing files. This can create problems when upgrading kernel packages, which drop files in /boot, since the ESP uses FAT, which doesn't support symbolic links.
With the ESP mounted at /boot, your kernels will go in the root directory of the ESP. This will increase the demands for disk space on the ESP. If you plan appropriately (say, with a 500-1000 MB ESP), this will probably be fine; but if you start with a small ESP (like the ~100 MB ESP that was created by default with some versions of Windows), it may be too small to do the job. Also, do you really want your kernels exposed on the ESP, where any other OS with which you dual-boot can mess with them? This could make it harder to recover if another OS misbehaves and deletes files on the ESP. (Of course, when dual-booting there's no absolute protection against such problems, but putting the kernels on the ESP increases their exposure to risk.)
If you dual-boot with another Linux distribution, and try to mount the ESP as /boot for both distributions, you'll end up with both distributions' kernels in the same directory. This could be confusing, both to you and to things like GRUB's configuration scripts and rEFInd's kernel-scanning code.

That said, some distributions encourage mounting the ESP at /boot. This practice is common among Arch Linux users. The Freedesktop Boot Loader Spec also encourages mounting the ESP at /boot and putting kernels in distribution-specific subdirectories; however, this proposal seems to be going nowhere.

Overall, you're best off leaving the ESP mounted at /boot/efi in Ubuntu. Yes, the path to reach the boot loader files is a little longer that way, with a doubling of the efi pathname component, but that's a minor inconvenience at worst. The drawbacks to mounting the ESP at /boot are much more significant.


How can I make LightDM the default display manager?

sudo dpkg-reconfigure lightdm

Will prompt you to make it default. More information here:

https://wiki.ubuntu.com/LightDM


Turns out the user had it's shell set to /bin/false.

If you're seeing the same thing I am, the answer is in this thread: https://unix.stackexchange.com/questions/39314/su-does-not-change-user-but-does-not-respond-with-an-error-either

Apologies for the noise.


From the comments...

There seems to be a problem with the Nvidia 418.56 driver and Ubuntu 19.04. The user will contact Nvidia support.


Does deleting desktop environment(Unity) also remove core application such as file manager and other tools like calenders e.t.c?

I can tell you how you find out by using apt-get/apt/aptitude. If you use one of these tools to remove Unity, then the tool will tell you which applications depend on Unity when removing it and (in the case of apt-get/apt/aptitude in command line mode) will prompt you with the list of packages that it would remove. aptitude in curses mode will show you the a similar list, when you press g for go (and you can still abort).

On seeing the list, you should be able to decide whether you do or do not want to have those applications be removed because they depend on Unity.


Windows Live Skin/Theme for Any IM  (aMSN, Empathy, emesene, etc)

his is a gallery with a good set of skins for aMsn http://madkat182.deviantart.com/gallery/24662213 you should find things like you are searching.


can Emacs24 be installed under Ubuntu 20.04

Answering my own question. Turns out one can use emacs26 or emacs27, although my own experience is with emacs26. Here's what I ended up doing:
sudo apt-get install emacs

which installed emacs 26.3 build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14
As for the JDEE environment, I followed the doc provided here, which is to use MELPA and emacs own package manager : https://github.com/jdee-emacs/jdee
search on that page for 'Installing with the Emacs package system' and follow the instructions. Note I did not install JDEE-Server, only JDEE.


Is there a difference between installing WIN8.1 on a machine with UBUNTU and installing UBUNTU on a machine that has WIN8.1 already installed?

Yes, definitely.

Rule of thumb: first Windows, then Linux.

Windows installers take (almost) no care of existing operating systems on your machine. If you installed Ubuntu first and then ran the Windows 8.1 installer, its routines would just overwrite any boot manager (The one where you choose which OS to boot). Then you can choose to use Win8 on startup, but probably not Ubuntu. This is very difficult to fix, so don't try to do it that way!

Ubuntu on the other hand is very well aware of the fact that it is often just installed as a secondary OS, which is why it will even offer you to install it alongside windows during installation. This will setup your boot manager (grub in this case) to include any existing OSes even if you choose to do some manual partitioning.
Usually this breaks the windows starter, but fixing that is easy: get the installation medium, boot it up, hit "repair" and you have a working dualboot environment.


How to get rid off the Skype error "Skype can't connect." on Ubuntu 12.04 LTS?

According to OMG Ubuntu

  Older versions of Skype will stop working; they won’t be able to sign
  into ...the service.

  Why? Microsoft says they “…want everyone to experience the best Skype has to offer – from enhanced quality to better reliability to
  improved security – and the newest version of Skype is the way to do
  that.”

That's the reason you're facing such problem. Don't worry the latest Skype 4.3 is now available in the Ubuntu Partner repository, so just install the update and you'll be fine.


Can I override an SD card's write-protect switch?

Not likely. The read/write access is set by the drive's firmware and is usually impossible to change.


How can I install Ubuntu on my MacBook Pro without EFI interference?

To Avoid long EFI wait before GRUB
If your Macbook spends 30 seconds with "white screen" before GRUB shows, try booting from your Mac OS X install disc, select language, then click Utilities- Terminal, and enter:

bless --device /dev/disk0s1 --setBoot --legacy

Assuming that the bootloader is on sda1, otherwise /dev/disk0s2 if it's on sda2, etc.

Credit for answer to Alaukik in this post.


Can Banshee fix music metadata information?

If you have a Last.fm account, try the Last.fm Fingerprint Extension  for Banshee.

After installing this extension, enable it in Banshee by going to Edit > Preferences > Extensions and checking the box next to Last.fm Fingerprint.  With this extension enabled, you can right click on any song in your library and choose "Get Information from Track Fingerprint" which will find the song on Last.fm and fix your local metadata if it is incorrect.


Unable to locate package compiz-fusion-plugins-extra

compiz-fusion-plugins-extra is an old transitional dummy package from Ubuntu 12.04, and there is no package by the name of compiz-fusion in the Ubuntu Software Center for Ubuntu 14.04. There is however Compiz (compiz-core) which is installed by default in Ubuntu 14.04. If you could provide any more information on what it is you're trying to do with compiz-fusion then it would help to find what specific packages for that purpose are available in the Ubuntu Software Center for Ubuntu 14.04 (for example, compiz-plugins). When you install a package from the Ubuntu Software Center, it resolves all the package's dependencies for you, so that you don't get any error message like you got when trying to install compiz-fusion.

in order to add different wallpapers for different workspaces in Ubuntu 14.04 you need to install three packages from the Ubuntu Software Center - compiz-plugins, compizconfig-settings-manager and dconf-tools - and then follow the instructions from the answer by fossfreedom to the question: Is it possible to have a different background for each workspace?. Find the section of the answer called: Ubuntu 13.04, 13.10 and 14.04 and then follow the step-by-step instructions as shown in the screenshots. Maybe you got the error message because you were trying to follow the instructions for Ubuntu 12.04 instead of for Ubuntu 14.04. If so, I have corrected that by giving you the second link to the instructions for Ubuntu 14.04.


How do I create tar.7z file from the command line?

Use the following one-liner:

tar cf - <source folder> | 7z a -si <Destination archive>.tar.7z


Difference between `sudo su` and `sudo fish`

sudo su executes su as if you were the root user. That means, the shell that is opened is the shell given in the entry of the user in /etc/passwd in the 6th field. In case of your systems root user it might be /bin/fish. That shell is executed as login shell, so the rc-scripts of the root user are executed.

When you execute sudo fish, then the application fish (the shell) is executable as if you were the root user, but within the environment of the calling user. Thats why fishs rc-scripts are executed.

See a full explanation in this answer: 'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

Which one you should use depends on you:

Do you want the environment of root as if you login to the system as root? Then call sudo su.
Do you want to preserve your environment, as your aliases and such stuff defined in the shells rc-scritps? Then use sudo fish.

  Is there a possibility to crypt my system by using sudo fish?

Its just the environment, you don't crypt something.

  Will there be any owner changes made to files in my home directory if I use this?

Not if you don't change something manually.


Run Windows Java program in Ubuntu 12.04 without Wine

Install msitools - it is needed to use msiextract

sudo apt-get install msitools

Extract the MSI file

msiextract TAV.msi

Go into Program Files/TAV

cd "Program Files/TAV"

Extract the EXE file

unzip TAV.exe

Check the MANIFEST.MF

Manifest-Version: 1.0
Class-Path: .:./org/hyperic/sigar/natives/
Created-By: 1.5.0_22 (Oracle Corporation)
Main-Class: tav.TAV

Your main class is tav.TAV
Start the main class

java tav/TAV

and your app is running, without WINE ;)


Configuration of iptables (verfication, actives services, allow FTP)

FTP is a bit odd in that to allow inbound traffic on port 21 and outbound traffic on port 20 :

sudo iptables -A INPUT -p tcp --dport 21 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 20 -j ACCEPT

In addition ftp will use a random higher port. To allow this you need to load the ip_conntrack_ftp module on boot. Uncomment and modify the IPTABLES_MODULES line in the /etc/sysconfig/iptables-config file to read

IPTABLES_MODULES="ip_conntrack_ftp"

You will still need a way to save your iptables configuration and restore it when you boot. Ubuntu does not have a simple way of doing this. Basically you can either use /etc/rc.local or disable NetworkManager and use networking scripts.

First save your rules:

sudo iptables-save /etc/iptables.save

Method 1 : Edit /etc/rc.local and add the line

iptables-restore /etc/iptables.save

Method 2 : Edit /etc/network/interfaces and use "post-up" to bring our iptables rules up.

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
post-up /sbin/iptables-restore /etc/iptables.save

Then reboot.

The preferred method is probably to use UFW

sudo ufw allow ftp

UFW is the fedault tool for Ubuntu, uses syntax very similar to iptables, and is enabled and restored on rebooting.

See:

https://serverfault.com/questions/38398/allowing-ftp-with-iptables

http://slacksite.com/other/ftp.html

http://bodhizazen.com/Tutorials/iptables

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


This is just an informational message telling you that in case you want to run a command with root user privileges, you have to use sudo.

Once you ran your first sudo command, this information will no longer appear.

If you don't know what sudo or "root user privileges" are, you probably don't need that at all yet. In case you're still curious, you might start reading about it here though.

To get rid of the message, simply run a sudo command like this:

sudo echo "Hello world"

It will ask you for your account password and then print the string "Hello world" to the terminal as root - which has no real use, but is enough for this case.


First of all, make sure your looking at the right stats. Perhaps you are looking at the available memory and not the total memory. Run this command in the terminal:

free -m

and see what it says.

Another possibility is your new ram is just bad, and may need to be replaced.


How can I batch convert folder names from one date format to another

Somewhat to my own surprise, it looks like our old friend prename (a.k.a rename on some systems) can do that - with a little wrangling:

$ prename -vn -- '
  BEGIN{use Time::Piece};
  s/\d+ \w+ \d+/Time::Piece->strptime($&, "%d %b %Y")->strftime("%Y-%m-%d")/e
' *
10 Aug 2010 renamed as 2010-08-10
8 Sep 2010 renamed as 2010-09-08

Alternatively, using GNU date

dirs=( ?\ ???\ ???? ??\ ???\ ???? ) # matches D MMM YYYY and DD MMM YYYY

for d in "${dirs[@]}"; do mv -v -- "$d" "$(date '+%Y-%m-%d' -d "$d")"; done

Testing with an echo (equivalent to prename's -n flag):

$ for d in "${dirs[@]}"; do echo mv -v -- "$d" "$(date '+%Y-%m-%d' -d "$d")"; done
mv -v -- 8 Sep 2010 2010-09-08
mv -v -- 10 Aug 2010 2010-08-10

Note that parsing of dates can be locale dependent.


Popped open my laptop, turns out a wire was loose. Plugged it back in and tada! Working wifi!


What happens under the hood when an USB drive is inserted?

In Ubuntu 12.04 (Unity, and presumably Gnome Shell/Classic) automounting is handled by GNOME Desktop/Nautilus, which monitors DBus events for insertion, etc. The gvfs* backend is used, in co-operation with udisks for the low-level mounting, etc.

gvfs-mount is used internally, and running it in monitor mode with the -o switch will show, for example:

$ gvfs-mount -o

Monitoring events. Press Ctrl+C to quit.
Drive connected:    'usb Flashdisk'
Volume added:       'DISK_IMG'
Volume changed:     'DISK_IMG'
Mount added: 'DISK_IMG'
Volume changed:     'DISK_IMG'
Mount changed: 'DISK_IMG'
Mount removed: 'DISK_IMG'
Volume changed:     'DISK_IMG'
Drive disconnected: 'usb Flashdisk'
Volume removed:     'DISK_IMG'


Installing Ubuntu 13.10 alongside Windows 8.1

First, unallocated space in a partitioning tool like GParted is different from unused space on a partition. Unallocated space in the partition table is unusable from an OS unless and until a partition is created in that space, or until an existing partition is resized to cover that space. This is because a partition is sort of like a room number in a hotel; without it, although the space exists on the disk(/hotel), the OS(/guest) can't locate it.

Second, you should never create a partition in Windows that you intend to be used by Linux. You seem to have gotten lucky and didn't do any damage, but many people who do what you did end up having to use third-party utilities to fix the damage -- when asked to create more than four partitions, Windows will, unbidden, convert from a standard partitioning setup to a Logical Disk Manager (LDM), aka dynamic disks, setup. You can't install Linux to such a disk, so you've got to undo this operation, which of course can't be done with the tools that Microsoft provides.

If you intended to install Linux to one of your existing partitions, then I recommend you:

Delete that partition.
Move/resize your remaining partitions so that they're contiguous. If you move /dev/sda4, do so from Windows; if you do it from Linux, Windows will probably stop booting.
Reboot to Ubuntu (or any Linux emergency system).
Create an extended partition in the unallocated space and create logical partitions inside that extended partition for Linux's use.
Install Ubuntu to the logical partition(s) you've created.

If, OTOH, all four of your existing partitions are in use by Windows, you could do the same as I've just described, but for step #1, delete a partition that you're willing to sacrifice (because it's empty or because you transfer its data to another partition). If that's not possible, try this:

Assuming /dev/sda4 is your Windows C: drive (it's the only one big enough to be that), move it to the end of the disk. Use Windows for this job; if you use Linux, it will probably no longer boot.
Assuming /dev/sda3 is not involved in the Windows boot process, convert it to a logical partition using FixParts.
Using GParted in Linux, resize the extended partition (which FixParts will create) to cover the space between what used to be /dev/sda3 but that will now be /dev/sda5 and /dev/sda4.
Install Ubuntu, and let it (or tell it to) create additional extended partitions for its own use.

Before undertaking either of these tasks, back up any important data on your disk. Partitioning operations are inherently risky, and the sorts of things you need to do run the further risk of disrupting the Windows boot process. Moving and resizing NTFS may be a little safer in Windows than in Linux. This is especially true when you're dealing with a partition that boots in BIOS mode.


"all boot options are tried" after installation on Samsung Ativ Book 9 Lite

Another user with Samsung ATIV.

Installing Ubuntu 13.10 on a Samsung ATIV Book 9 Plus

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

With UEFI systems you should have two boot options for flash drive, one BIOS and one UEFI. The BIOS boot is the purple screen with tiny accessiblity icons at bottom of screen. Press any key then f6.
If booting in UEFI mode you get grub menu which is just like a boot after install. You can press e on entry you want to edit, scroll down to linux line and replace quiet splash with nomodeset.

My computer boots to a black screen, what options do I have to fix it?


There is a really good community wiki on this which should help you on this site here

Ask Ubuntu ATI Community Wiki

Ubuntu also have an easy to follow guide here

Ubuntu Community Wiki

To start with you will have to purge the installation you have of all the ATI information by doing the following command:

sudo apt-get remove --purge fglrx-updates fglrx-amdcccle-updates

This will clean out any crudd that is left over/obsolete and then you can follow either of the guides above.


How to make Bumblebee work with HP Pavilion DV6T-7000 Quad Edition with Intel HD 4000 and Nvidia GeForce GT 650M 2GB?

I had the same problem and this solution helped me resolve it.

In /etc/bumblebee/xorg.conf.nvidia I put the line with ConnectedMonitor and instead added Option "UseDisplayDevice" "none".


Wifi not working after a short time with RTL8723BE, not able to switch to other network before restart

Run the following commands, one line at a time in the terminal Ctrl+ALT+T):

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwldvm
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

What it will do? The 11n_disable option disables 802.11n features. Adding it to /etc/modprobe.d/iwlwifi.conf makes the change persist after reboots (because it will be part of the module config). The modprobe -rfv commands are removing the kernel modules iwldvm and iwlwifi, and finally the last line modprobe -v is adding iwlwifi back in.

To know what those kernel modules are/do, you can run modinfo <module name> | grep description, which will tell you the following:

iwlwifi is an Intel(R) Wireless WiFi driver for Linux (generic Intel drivers)

iwldvm is Intel(R) Wireless WiFi Link AGN driver for Linux (more specific drivers)


Troubles with python unistall in Ubuntu 16.04

You're not supposed to delete Python or Python3 as this will leave your OS with unmet dependencies it needs for basic functionality. You can try to repair the problem with dpkg --configure -a or sudo apt-get --fix-missing install however chances are you have now broken your OS and will need to reinstall.


How to activate subwoofer in Inspiron 17r?

Try options snd-hda-intel model=ref in /etc/modprobe.d/alsa-base.conf.

Control for subwoofer doesn't work in sound settings but sound can be heard.


Set the default video player from the command line

After about an hour of messing around with this I got this working for me, I'm running Ubuntu 16.04.1, I don't have xvideos I have vlc installed, so you can try simply substituting vlc for your player of choice.
Heres the command I run at a prompt

% sed -n '
1i[Default Applications]
/^video/{
s/Totem/vlc/
s/org\.gnome\.//p
}' /usr/share/applications/defaults.list > ~/.local/share/applications/defaults.list

running the above command produces

% cat ~/.local/share/applications/defaults.list
[Default Applications]
video/3gpp=vlc.desktop
video/dv=vlc.desktop
video/fli=vlc.desktop
video/flv=vlc.desktop
video/mp2t=vlc.desktop
video/mp4=vlc.desktop
video/mp4v-es=vlc.desktop
video/mpeg=vlc.desktop
video/msvideo=vlc.desktop
video/ogg=vlc.desktop
video/quicktime=vlc.desktop
video/vivo=vlc.desktop
video/vnd.divx=vlc.desktop
video/vnd.rn-realvideo=vlc.desktop
video/vnd.vivo=vlc.desktop
video/webm=vlc.desktop
video/x-anim=vlc.desktop
video/x-avi=vlc.desktop
video/x-flc=vlc.desktop
video/x-fli=vlc.desktop
video/x-flic=vlc.desktop
video/x-flv=vlc.desktop
video/x-m4v=vlc.desktop
video/x-matroska=vlc.desktop
video/x-mpeg=vlc.desktop
video/x-ms-asf=vlc.desktop
video/x-ms-asx=vlc.desktop
video/x-msvideo=vlc.desktop
video/x-ms-wm=vlc.desktop
video/x-ms-wmv=vlc.desktop
video/x-ms-wmx=vlc.desktop
video/x-ms-wvx=vlc.desktop
video/x-nsv=vlc.desktop
video/x-ogm+ogg=vlc.desktop
video/x-theora+ogg=vlc.desktop
video/x-totem-stream=vlc.desktop

Now going to nautilus and double clicking a mp4 file it is launched in vlc. I didn't need to hit F5 or logout, it seems ~/.local/share/applications/defaults.list is read on every invocation.

reference - https://unix.stackexchange.com/a/41196/106525


I have this problem as well, what I found works for me is switching to text console and back.

Ctrl+Alt+F1 switches you to text console 1.

Ctrl+Alt+F7 switches you back to your desktop. If not, try Ctrl+Alt+F8.


How can I tell if my laptop has Bluetooth?

Your kernel would have picked it up and loaded a module for it when you started Ubuntu.
From the command line, gnome-terminal type this command:

dmesg | grep -i blue

If you get output simliar to the below then your laptop has bluetooth capability.

[    2.933062] usb 1-1.4: Product: Broadcom Bluetooth Device


USB flash drive show error, not enough space

It seems your files are still in the Trash. If you cannot empty this via the trash icon, you can try the following in a terminal:

rm -rf /media/<user>/<drive>/.Trash-1000

In the above, <user> is your user name and <drive> is the name of your USB memory stick. For example, if your user name is minto and the drive is named MemoryStick, you would run:

rm -rf /media/minto/MemoryStick/.Trash-1000

This should delete everything in the trash on the USB stick and give you back the free space.


Ubuntu Touch only ships with Python 3. The module SimpleHTTPServer is one of the modules that has been renamed and/or moved for more consistency in the standard library.

That said, you can run the following command:

python3 -m http.server

I can't guarentee this will work on Ubuntu Touch though, this is just the normal way to do it.


Ubuntu MATE is getting the wrong IP address

Go into network manager and edit your wired connection. Go to the IPv4 tab and set the networking to automatic (dchp).


How to know if the OS is desktop or server version

It does not matter, there is no difference in kernels any more.

The only differences is the installer and the default packages.
Once installed you can have exactly the same OS configured, no matter if you start from the server or desktop installer.

  What's the difference between desktop and server?

  The first difference is in the CD contents. The "Server" CD avoids including what Ubuntu considers desktop packages (packages like X,
  Gnome or KDE), but does include server related packages (Apache2,
  Bind9 and so on). Using a Desktop CD with a minimal installation and
  installing, for example, apache2 from the network, one can obtain the
  exact same result that can be obtained by inserting the Server CD and
  installing apache2 from the CD-ROM.
      The Ubuntu Server Edition installation process is slightly different from the Desktop Edition. Since by default Ubuntu Server
  doesn't have a GUI, the process is menu driven, very similar to the
  Alternate CD installation process.

  Before 12.04, Ubuntu server installs a server-optimized kernel by default. Since 12.04, there is no difference in kernel between Ubuntu
  Desktop and Ubuntu Server since linux-image-server is merged into
  linux-image-generic.

  For Ubuntu LTS releases before 12.04, the Ubuntu Desktop Edition only receives 3 years of support. This was increased to 5 years in
  Ubuntu LTS 12.04 In contrast, all Ubuntu LTS Server Edition releases
  are supported for 5 years.

https://help.ubuntu.com/community/ServerFaq#What.27s_the_difference_between_desktop_and_server.3F


Ubuntu only shows music files on Andrioid Device

Install MTP support on Ubuntu:
Open Terminal and execute the command:

  sudo apt-get install mtp-tools mtpfs

After installing reboot your computer.

Then set your phone to use MTP when connected to the PC.

Once connected, you will see the device in your file manager:


If I use WUBI to install Ubuntu, can I use Windows Control panel to uninstall it if I don't like it?

The answer is yes.  Since WUBI installs just like a windows application, it can be UN-installated like one.  Keep in mind that after Ubuntu 12.10 WUBI has been dropped.


Connecting to the Internet using Etisalat in Sri Lanka (Prolink PHS300) (Corporate Dongle)

First of all, let's clear up, what the issue is exactly.
Ubuntu doesn't recognise your modem or it do recognise but didn't connect?

Anyways, if the s/w provided to you on CD-ROM is capable of running your modem on Ubuntu, but needs wvdial and qt3 only, then issue could be solved.

Do this:
1. Download following files: http://pastebin.com/JGVdXcAd

You can download them from anywhere. It will provide you wvdial and qt3.

Copy downloaded files to your 'home' folder.
Open terminal and type: sudo dpkg -i *.deb
Enter your password when prompted.

This will install wvdial and qt3 on your system. Hence, try installing your dongle's default application off CD-ROM to see it work.


Create a simple GUI installer page for my shell script

dialog

dialog provides a TUI, a text user interface, which works both in text mode and in terminal windows in graphical desktops.
dialog is in the repository 'universe', that is activated in Ubuntu when installed, but not in live or persistent live Ubuntu.

Necessary only in live or persistent live Ubuntu, run

sudo add-apt-repository universe

to activate it.

You can install dialog

sudo apt update
sudo apt install dialog

and you can add these command lines into your shellscript, to make them run automatically, when a customer runs your shellscript. These commands need root privileges, which may be a problem, if you have customers who lack such privileges.

Please notice that apt is used by Ubuntu and Debian (and linux distros based on Ubuntu or Debian). Other linux distros have different tools to install programs.
The current version in Ubuntu 18.04.1 LTS is dialog 1.3-20171209.
After installation you can see the on-line manual man dialog.

zenity

zenity provides a GUI, a graphical user interface, which works only in graphical desktops.
zenity is bundled with Ubuntu, you need not install it.
The current version in Ubuntu 18.04.1 LTS is zenity 3.28.1.
See also the on-line manual man zenity.

screenshots

dialog:

zenity:


Does creating and working with a encrpyed folder using "ecryptfs-utils" pose any extra pressure on the CPU?

Nope ! It does not give much pressure as I only have instructed the system to encrypt and decrypt the "Private" folder under /home/username/Private

If you use ecryptfs to encrypt the whole "home" directory then you will notice a lot of disk read/write noise coming at startup. Im using ecryptfs only to encrypt/decrypt the "Private" directory so it means less stress over the CPU.


Cannot install Ubuntu on ASUS ROG GL553VE

I had the exact problem with the same laptop. It's an issue with the Nvidia driver on Ubuntu. The solution to the problem is in this answer to the question

Is nomodeset still required?

Once you get past the installation phase though, you will run into a myriad of other issues while attempting to install the 1050Ti drivers. I'm still struggling with that part, so can't really help out with that yet. Good luck!


When I started software-center from the terminal, Software Center gave an error message saying the package system was broken. I clicked repair and now everything is back to normal.


apt-get doesn't show any error but not installing or removing packages

Try:

sudo apt-get clean
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade

Then try installing the package you want. If it still fails, post new error.

edit:

also, if you want to download the the .deb, don't use sudo.  Just run:

apt-get download metacity

that will fix the permission issue.  When you try to download using sudo, the account that actually downloads the file is "_apt" and _apt does not have permission to write in your home directory.


This would be a very strange behaviour for compiz to say the least (standard values are not supposed to break your system, custom values are...), so I doubt that your problems are related to compiz (alone).

But assuming that ccsm is indeed the culprit, I'd suggest to simply reinstall it, reset it to standard settings, log out and in again.
If that didn't help, you can always purge the application, meaning that not only the application itself but all its settings as well are deleted.

Finally, still on the supposition that your problem relates to ccsm and that nothing of the above helped in any way, you can simply try to configure ccsm to function properly, like e.g. described here.

Good luck to you and best regards!


Is the current version of Ubuntu usable on a PPC mac?

download the Desktop version for ppc computers from here.
Then just make a bootable usb or CD, and install it from there.

How do I get my Mac to boot from an Ubuntu USB key? will help you further.
This is the ppc wiki by Ubuntu.

A PPC Mac is a loose expression, I can't speak for your computer. You wont know until you try. But, if you look at the recommended system requirements and see that your PPC Mac fits that description, then go for it! Remember make a backup of your original system so you can go back if it doesn't fit your needs in terms of performance and such.

To quote the download site:

  installs on systems with less than about 384MiB of RAM (although note
  that low-memory systems may not be able to run a full desktop
  environment reasonably).

The download link: (check alternate install)

http://cdimage.ubuntu.com/releases/12.04/release/


SSD is hot when running ubuntu 14.04(possible fan or intel gpu issue)

Here is my experience as an owner of a Clevo W560SH (it's almost the same as yours but with a slightly older and more power hungry dGPU).

The iGPU temperature should be the same as the CPU temperature.

I have a SATA SSD installed and it's temp is around the same as the one in your HDD (39ºC).
That SSD temperature is somewhat high, but it is not unheard of. Googling for it turns up a lot of hits. Here is an example - check under "Temperature".

The cause is most likely bad airflow to the SSD.
I have seen the inside of mine too, and in fact the SSD is located in a "corner".

The rest of the temperatures you display are also in the same range as mine.

So all in all, I think your system is in a healthy state.


Bluetooth driver not working on an hp pavillion dv6 6155tx

Ok finally i did some research and i was able to solve the mistery of the BLUETOOTH not working.

As per this - https://bugs.meego.com/show_bug.cgi?id=3498 the the radio was OFF all the time.

so to turn on the radio as they said - sudo bccmd psset -s 0x0000 0x028c 0x0001

and then i did - sudo service bluetooth restart

followed by a restart of the computer and then pressing the NETWORK BUTTON(f12) ON/OFF button twice to disable and then enable it and guess what it worked like a charm i can now connect everything.


When Installing Ubuntu through virtual box I get an error

You are trying to use a 64-bit version of Ubuntu on a 32-bit computer. Go back to the download page and under "Choose your flavor", choose "32-bit".


That is really two different questions, but yes it's both possible and easy. For future reference, please keep in mind that the more details you provide in your question, the more detailed the answers can become.

I'll provide an example here. It'll be some text, but it really is quite simple. I'm assuming a desktop that has a large monitor attached, and a laptop. You want to use the laptop as a keyboard and mouse for the desktop by connecting it to the desktop using a ethernet cable. In essence, the desktop will feel like an extension of the laptop.

The networking

There are two steps for this procedure. First you need to setup network. There are many ways of doing this, but the easiest way is to open the network icon > Edit connections on your desktop. Select the network interface to be shared with your laptop and click Edit. In the dialog that appears, look under IPv4. There is a box called Method. Select "Shared with other computers". That's all there is to it. You can now just connect the laptop and desktop using an ethernet cable, and they will be in communication automatically. The laptop will get access to the desktops internet connection as well.

Make a note of your computers hostnames. You can do that by simply opening a terminal. You'll see username@hostname:~$. If you don't like the names they have, then you can easily change them by running sudo nano /etc/hostname. Edit to something you'll remember, such as bambudesktop and bambulaptop. Only use a-z 0-9 and dashes. If you do change them, then you need to reboot afterwards.

Connecting the laptops keyboard and mouse

The next thing to do, is to enable using the laptop as a keyboard and mouse for your desktop. This is also very easy. First, install the package named quicksynergy on both your desktop and laptop. It's in the archives, and you can click here to install it.

Run Quicksynergy on your laptop. In the "Share" tab, enter "bambudesktop.local" in the top field and click Execute. That is the hostname you've chosen + ".local".

On the desktop, in the "Use"-tab, there are two fields: server and screen name. The server is the hostname of the laptop, so enter "bambulaptop.local". As a screen name, enter your desktops hostname; "bambudesktop.local". Click Execute.

Your desktop will now connect to your laptop. The laptop is the server. That is important to remember, as it might feel a little strange, though there are good reasons for it. You can now move your mouse pointer from the laptop and onto the desktop screen by moving it up from the top of your screen. When the mouse pointer is on the desktop screen, you can use the keyboard from the laptop. To move it back to the laptop, of course, you just pull it through the bottom of the desktop screen. It's like having an external monitor attached to your laptop.


How to fix the issue in connecting allwinner Android tablet for USB debugging on ubuntu 14.04

You need to add your usb vendor id to ~/.android/adb_usb.ini. Worked for me. Example:

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x1f3a


Installing VLC Player in Ubuntu 10.04
By Using Ubuntu Software Center or Synaptic Package Manager:

Open SPM (Synaptic Package Manager) (Administration → Synaptic Package Manager) or Ubuntu Software Center (Applications) and Search for vlc player.
Check the the box to install and apply (Required in SPM).
Downloading and installation will complete within few minutes.
That’s all.

By Using Ubuntu Terminal

Open Terminal - Hit Ctrl+Alt+T or open it from Applications → Accessories → Terminal.
Type the command

sudo apt-get install vlc

It may ask you to enter the user password. if so, then enter your password. Then downloading will begin and installation will also finish within moments.
Now, I assume you have successfully installed vlc player on Ubuntu 10.04.

Note: You should add the repository before installing VLC

sudo add-apt-repository ppa:gnome-media-player-development/development
sudo apt-get update
sudo apt-get install vlc

Alternatively, you can click on the links below to install:

vlc
vlc-nox

Also see this post if you wanna install VLC offline.

If any thing goes wrong during this steps, let me know through comments.


PXE Boot into Ubuntu Live + Persistence (casper-rw): Possible? Limitations?

[I would have preferred to leave this as a comment but I don't have the rep.]

I've been down this road trying to implement what I consider hybrid thin / diskless clients with PXE at the core. Originally I researched and tried NFS and used various ways to persist data. In the end, I found the method that was most resilient (as well as manageable) was to use PXE to iSCSI. By no means a trivial undertaking but once deployed it works quite well and affords all those standard management practices one desires. The primary difference is with iSCSI you have to largely preallocate a disk size.

The "how-to" is infrastructure dependent so I'll cite a reference:
http://backreference.org/2013/12/23/diskless-iscsi-boot-with-pxe-howto/

(this is not a "your answer is somewhere in here" post)


Ubuntu 18.04 performance issue playing high quality videos

Try with this command,

sudo apt remove gstreamer1.0-vaapi

I faced same problem with videos displayed in distorted manner. After this the video displayed is now with better quality.


It seems that your dual boot was managed by the Windows boot loader.

It seems also that you have deleted the partition "system reserved" witch is needed by windows for booting (that partition does not have letter even under windows, it is a hidden partition needed by windows for it's boot process).

You need to repair windows 7. See this link at method 2

Then you'll need to redo your dualboot with ubuntu (see this)

Best regards.


Shutdown/Reboot hangs Indefinitely - Ubuntu 16.04

I got exactly the same problem on Ubuntu 16.04 LTS.
After installing amdgpu-pro drivers ver. 492261 system hangs at reboot. Last message printed is: Restarting System

I solved the issue by adding reboot=pci to the list of parameters passed to the kernel:

Edit /etc/default/grub
Add reboot=pci to the end of GRUB_CMDLINE_LINUX_DEFAULT variable
run as root: update-grub
reboot (system will hang, turn off/on manually)
reboot (this time it will work)

I tried all the suggestions in the other answers and they didn't solve the issue for me.


Can not open password-protected ppt with libre office 3.5

Open it with powerpoint and save it without password encryption...


Unable to install applications. Help! (Ubuntu 16.04)

Super easy fix. When you're trying to install a package it's easiest to do it through Terminal (in my opinion). If you're trying to install, say, myprogram.deb, you would type into terminal sudo apt-get install myprogram. Sometimes there are other ways (I would suggest using synaptic package manager if possible). If your package exists and you still have a dependency, type into Terminal sudo apt-get install myprogram checkinstall. If you can't find your package, you can install the dependency by hand with sudo apt-get install dependency-goes-here, then try installing your package again.


Is there any way to turn my laptop into a wireless access point for other devices?

Right click the Network Manager applet and click "Edit Connections"
Go to "Wireless" tab and click "Add"
Enter "ICS" in the "Connection name" field
Enter "ICS" in the SSID field
Change the Mode to "AdHoc"
Go to "IPv4 Settings" and select Method "Shared to other computers"
Connect to the ICS wireless network

These steps are from memory and might be incomplete. WPA2 security seems not to work.

See http://www.ubuntugeek.com/creating-an-adhoc-host-with-ubuntu.html also.


Finding a supported PPA or DEB is usually the best route, but as a last resort, I used to have moderate success compiling PHP from source.

Sourcecode:
http://php.net/downloads.php#v5.4.45

Detailed Official Instructions:
http://php.net/manual/en/install.unix.apache2.php

cd ../php-NN
./configure --prefix=/usr/local/php54 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install

etc.  You need the apache2-dev package to link the source.

By using --prefix=, you can have multiple versions of PHP installed at once.


Desktop windows frozen and panels disappeared after installing gnome-shell 3.2

yes! I had same problem with Gnome- Shell. What I found was, It was happening cause of gnome-shell Extensions that I installed after installing Gnome-shell. When I removed all of the Extensions( using Unity mode ). It started working. So, when I reinstalled them ( Extensions) and again turned them ON using Gnome-tweak Tool, It happened again.

then I googled the problem, and the solution I found there is to " Set a profile Picture of your account " and It start working...nothing happening now..I hope It will help


I expect you are running two monitors, and you aren't "mirroring", that is, they are set to be one wide monitor rather that two copies of the same monitor.

I use arandr to set my dual monitors. You can install it and find it with dash. You can play with it a bit and see if you get both monitors showing the same thing, or perhaps you'll find showing the video on the TV whale leaving the laptop monitor free for other things is useful.


How to "reverse-backport" a package available on earlier Ubuntu distribution to later Distribution?

Sometimes, you can just install straight from the PPA, or even a .deb file. However, if that doesn't work, then it's likely that it won't work at all, especially if the package relies on GTK or anything in the GNOME stack. If you do manage to get something installed, it's pretty likely that it will not work as expected (and may even cause issues in other applications). This is due to incompatibilities between GTK and GNOME versions.

A quick search shows that the XKCD browser may not be updated for a while. The linked AU question does provide a possible solution, but again, it may cause other issues. Cuttlefish is reported to work on 12.10 if you use the .deb file.

Blubphone and xserver-xorg-input-synaptics are worth trying, as they probably have their own interface, or aren't dependent on the Gnome/GTK stacks.

To find out if a given piece of software works on a given version of Ubuntu, I generally have good luck with searching Google with something like "ubuntu [version] [software name]".


Why do i have to be root to run the command ifconfig?

As the message says, the problem is that ifconfig is not in your path. You can run it as a normal user by giving the full path: /sbin/ifconfig. Try it!

My guess is that on 10.04 you added /sbin/ to your path, and didn't do that when upgrading to 12.04.

Note, however, that you will need to be root if you want to use ifconfig to change networking configurations; I hope the reasons for this are more than obvious :)


Launcher for programs which need multiple commands to run

You could try this Exec line for your .desktop file:

Exec= bash -c ". /opt/feko/6.3/bin/initfeko && cadfeko"

bash will open a shell and correctly interpret the &&.


So you have two options if you do not want to go the VM route.

Shrink one or more of your Ubuntu partitions.
Install Win 7 on an external HD.

If you need an in depth, just ask.

Best, BoB


How to customize the gnome classic panel

How to get back a "GNOME 2 look and feel" in Ubuntu 11.10 Oneiric Ocelot

1. Install "GNOME Classic" session

sudo apt-get install gnome-session-fallback

You now get the possibility to choose the "GNOME Classic" session when you log in, but there are some problems with this session:

The top panel's height and its icons are too large
The panel background is inconsistent

GNOME Classic:

With the fixes below:

After turning sound and bluetooth off and on again:

The fixes also work for the Radiance theme:

2. Reduce the size of the icons to 16 pixels

This will also reduce the height of the top panel from 30 to 24 pixels.

2a. Create folder for config files:

mkdir ~/.config/gtk-3.0

2b. Create or edit ~/.config/gtk-3.0/settings.ini and add this:

[Settings]
gtk-icon-sizes = panel-menu=16,16:gtk-large-toolbar=16,16

3. Fix the panel background

Note: Instead of the following solution, the background can also be fixed by using:
(Win-)Alt-rightclick on panel -> Properties -> Background -> Solid color

3a. Create or edit ~/.config/gtk-3.0/gtk.css and add this:

/* Fallback Mode Panel */
/* Fix background color (needed in Ubuntu 11.10 Oneiric Ocelot). */
/* Based on /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css. */

PanelWidget,
PanelApplet,
PanelToplevel {
    background-color: @dark_bg_color;
    background-image: none;
}

.gnome-panel-menu-bar,
PanelApplet > GtkMenuBar.menubar,
PanelApplet > GtkMenuBar.menubar.menuitem,
PanelMenuBar.menubar,
PanelMenuBar.menubar.menuitem {
    background-color: @dark_bg_color;
    background-image: none;
}

PanelAppletFrame {
    background-color: @dark_bg_color;
    background-image: none;
}

At this point, you should log out and in again using the "GNOME Classic" session in order to see the changes.

4. Further panel configuration

Use (Win-)Alt-middleclick-drag and (Win-)Alt-rightclick to configure the panel further.

Note that the panel items snap to the left/center/right of the panel, so they might need to be dragged some distance before they move at all.

Launchers can easily be added by dragging items directly from the Applications menu to the panel.

5. Fix icon spacing

There seems to be a bug which causes excessive spacing between the icons in the notification area tray:

An easy fix is to change the icons back and forth, e.g. muting/unmuting the sound and disabling/enabling bluetooth. This solution is unfortunately only temporary and must be performed again after each login.

Final remarks

Make a note for future reference that you just added two config files in:

~/.config/gtk-3.0/

This is nice to know in case the config files mess things up with later Ubuntu releases and need to be removed again.

Results

Before:

After:

See also

How to revert to GNOME Classic Desktop?


As long as it's always gonna keep such format:

acpi -t | grep -o [[:digit:]][[:digit:]].[[:digit:]]

Will only print out the string that matches the pattern, i.e. two consecutive digits followd by a dot and another digit.


Kubuntu 11.04 wireless scan doesn't find network

I had the same problem with broadcom on my hp mini. this [Wireless doesn't work on a Broadcom BCM4311

[1]: Wireless doesn't work on a Broadcom BCM4311 brings me to other posts/threads and finally I solved the problem with broadcom. Sorry, I'm not a home to have a look on my hp mini to give you further information but maybe this evening when I#m at home.


can't enable xft and freetype support for emacs 25.2

Holy moly molly

Turns out it is because configure could find some dependencies under my $HOME/.linuxbrew, i.e. .linuxbrew/Cellar/libxml2/2.9.4/include/libxml2 so it keeps searching for other depencencies in the same directory. That's why despite many dependencies installed, they couldn't be found. After deleting $HOME/.linuxbrew because I don't use linuxbrew anymore, everyting works perfectly as expected. BTW, linuxbrew gave me hard time even from its tomb on my computer. It is much less stable compared to Mac OSX's homebrew.

Configured for 'x86_64-unknown-linux-gnu'.

  Where should the build process find the source code?    .
  What compiler should emacs be built with?               gcc -g3 -O2
  Should Emacs use the GNU version of malloc?             yes
      (Using Doug Lea's new malloc from the GNU C Library.)
  Should Emacs use a relocating allocator for buffers?    no
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    x11
  What toolkit should Emacs use?                          GTK3
  Where do we find X Windows header files?                Standard dirs
  Where do we find X Windows libraries?                   Standard dirs
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   yes
  Does Emacs use -ljpeg?                                  yes
  Does Emacs use -ltiff?                                  yes
  Does Emacs use a gif library?                           yes -lgif
  Does Emacs use a png library?                           yes -lpng12
  Does Emacs use -lrsvg-2?                                yes
  Does Emacs use cairo?                                   no
  Does Emacs use imagemagick?                             yes
  Does Emacs support sound?                               yes
  Does Emacs use -lgpm?                                   yes
  Does Emacs use -ldbus?                                  yes
  Does Emacs use -lgconf?                                 yes
  Does Emacs use GSettings?                               yes
  Does Emacs use a file notification library?             yes -lglibc (inotify)
  Does Emacs use access control lists?                    yes -lacl
  Does Emacs use -lselinux?                               yes
  Does Emacs use -lgnutls?                                yes
  Does Emacs use -lxml2?                                  yes
  Does Emacs use -lfreetype?                              yes
  Does Emacs use -lm17n-flt?                              yes
  Does Emacs use -lotf?                                   yes
  Does Emacs use -lxft?                                   yes
  Does Emacs directly use zlib?                           yes
  Does Emacs have dynamic modules support?                no
  Does Emacs use toolkit scroll bars?                     yes
  Does Emacs support Xwidgets (requires gtk3)?            no


"No module named _struct" after manually building and installing python 2.6

I had a similar problem when I downgraded from debian/Testing to debian/Stable recently. I guess somewhere in the process, python modules got corrupted. Purging and reinstalling python was, as it was pointed out, a bit draconian. Thankfully, I came across the following
http://ubuntuforums.org/showthread.php?t=735693

Following this suggestion, I tried the command

for pkg in `dpkg --get-selections | egrep -v 'deinstall' | egrep python | awk '{print $1}'`; do  apt-get -y --force-yes install --reinstall $pkg ; done

to reinstall anything that has python in its name, and that solved the problem.


2nd monitor not working Ubuntu 20.04. not shown in display settings

I had a similiar problem, where there was only one possible resolution. Sadly during the last update my nvidia-driver completely broke. In my case I reinstalled my whole Ubuntu, but you should first try to find out, if it's a driver problem (even though those seem to be rare with Ubuntu)
I ran
sudo ubuntu-drivers devices

and either you install the one you want by hand:
sudo apt install (your driver)

or you let the system install the recommended ones:
sudo ubuntu-drivers autoinstall

If you installed any new drivers, do reboot afterwards!
I hope this helps a little bit!
Best wishes,
Lennart


Use xtitle (not installed by default):

xtitle new title name


It's just a funny way of saying this and that folders aren't there yet and need to be created.


HP 620 Notebook makes noise when run on battery

It could be a phenomenon called CPU-Whining.
It is noise from the CPU voltage regulators when the CPU changes to different speeds.


Will `sudo reboot` on KVM host gracefully poweroff guest VMs?

Yes, this is done automatically, according to this fixed bug: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/350936

See also: https://serverfault.com/questions/200751/can-kvm-suspend-or-shutdown-guests-automatically-on-host-shutdown


Is it possible to create a VPN client connect using only the terminial?

yes it's possible by the following way:
1- open you terminal and type:

sudo apt-get update
sudo apt-get install openvpn

2- download openvpn config file (*.ovpn) there is many websites for that.
3- run terminal and cd to the place were the openvpn file is downloaded to.
4- type the following:

sudo openvpn --config filename.ovpn

PS: sudo in the last command is so important.
Enjoy!!!


WSL2 is basically a fancy "stripped down" Ubuntu Hyper-V VM, so no no support possible for low-level actions like that


no space in disk : sudo apt-get clean not working

You're probably interested in installing updates (new kernel versions?) and it's not allowing you, right?

If so, I suggest you download Ubuntu-Tweak.

After installing, open it and go to the tab named Janitor. Once there, you can easily clean space in order to be able to install new updates.


You can use the 'ErrorDocument' directive in Apache.  You can place the code in either your global (server) config, or each virtualhost.

For example...

ErrorDocument 403 "You don't have permission to access / on this server. If you have recently created a new account, please go ahead and upload your files to server. Thanks!"


Command output, i.e. stdout and stderr, is not logged anywhere by default. It goes to the terminal and when the terminal is closed, the output is gone forever.

If you want to store such output, you must redirect it to a file (or capture it into a variable and do something with it that ends with writing it to a file).


Gparted funkiness - won't recognize 1TB, full-hdd /home partition, but recognizes ext4 and /home label

The disk is fine, but the partition's filesystem isn't.

Close gparted, and run this to check (and fix) the partition:

sudo fsck /dev/sdd1

After it fixes the errors, gparted will be able to resize it.

The is equivalent of using Disk Utilitiy's "Check Filesystem" button. I still prefer the command-line version to see all the messages and errors that may be, but I'm a control freak. If you're not, go ahead and use the GUI button, I agree it's much simpler :)


NTFS file system is not supported in Linux
Try formatting your USB drive with a fat filesystem
Then it will automatically get mounted


Ctrl+A suddenly becomes Home. What did I do?

If you don't have Gnome Tweak Tool, install and then run it.  You should see at "Theme" the option "Keybinding theme" that you should set to "Default" instead of "Emacs":


Ubuntu Server 16.04 Letsencrypt SSL Website Configuration File

You need to add a directive to your site config for ssl.  You'll need to modify the following to match your site settings.  Once you've made your changes, you'll need to sudo service apache2 reload for it to take affect.

<VirtualHost *:443>
    SSLEngine On
    SSLCertificateFile /etc/ssl/certs/example.com.crt
    SSLCertificateKeyFile /etc/ssl/private/example.com.key
    SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt  #If using a self-signed certificate, omit this line

    ServerAdmin info@example.com
    ServerName www.example.com
    DocumentRoot /var/www/example.com/public_html/
    ErrorLog /var/www/example.com/log/error.log
    CustomLog /var/www/example.com/log/access.log combined
</VirtualHost>


Ubuntu 11.10 bootloader doesn't start windows 7

In ubuntu open a terminal and run

sudo update-grub

The system should regenerate all bootable kernels and chain loading boot partitions

A word of note, it is very possible that grub is fine but the Wondow boot sector is broken. Grub chainloads the Wondow bootstrapper.

you may need to run a repair from Wondow disc/media so its the only bootable system then use the ubuntu livecd/disc to re-install grub


Upgraded to 16.04 from 14.04, slow ethernet connection

Not to doubt your analysis but to take the subjectivity out of what's "slow", do a speed test

http://speedtest.net

Assuming your ethernet is indeed running slow, find out if the NIC is generating errors, dropped packets and so on

ifconfig -a

Check to see if the correct driver is installed

lspci | grep Eth - Described the Eth hardware

lshw - scroll down to the Eth HW section and see what driver is installed

lsmod | grep driver_name_in_lshw

IPv6 should not be a factor unless there is a bug in 16.06


I want to make Tomcat7 autostart at boot

You need to create an init script for tomcat and add it to the correct runlevel init script.

Advice adapted from here http://www.raibledesigns.com/tomcat/boot-howto.html

Create an init script /etc/init.d/tomcat/ for tomcat, changing the value for catalina home to the correct location:

#!/bin/bash
#
# tomcat
#
# chkconfig:
# description:  Start up the Tomcat servlet engine.

# Source function library.
. /etc/init.d/functions

RETVAL=$?
CATALINA_HOME="/usr/apps/apache/tomcat/jakarta-tomcat-4.0.4"

case "$1" in
 start)
        if [ -f $CATALINA_HOME/bin/startup.sh ];
          then
        echo $"Starting Tomcat"
            /bin/su tomcat $CATALINA_HOME/bin/startup.sh
        fi
    ;;
 stop)
        if [ -f $CATALINA_HOME/bin/shutdown.sh ];
          then
        echo $"Stopping Tomcat"
            /bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
        fi
    ;;
 *)
    echo $"Usage: $0 {start|stop}"
    exit 1
    ;;
esac

exit $RETVAL

Then add a link to the rc5.d folder - /etc/rc5.d/

sudo ln -s /etc/init.d/tomcat /etc/rc5.d/S71tomcat


How to Reinstall Ubuntu 14.04 on dual boot using Grml Rescue?

I solved it by using umount on the iso, as described here: https://help.ubuntu.com/community/Grub2/ISOBoot

sudo umount -l -r -f /isodevice


Is stopping Ubuntu at HP Compaq PC by pressing shortly the computer power button OK?

It would be better to press ctrl+alt+F1, F2, ..., or F6, then end the program from the terminal, using top or htop (if installed).

If you still can do some things with the GUI, you can open gnome-system-monitor, and kill the problem program/service. Or open terminal and use top/htop.

Or you can kill the x server (the OS GUI), using ctrl+ alt + backspace. But first you have to make sure that shortcut is enabled. Check this one:

How can I enable Ctrl+Alt+Backspace?

Any one of these methods is A. Faster and B. Less damaging to non-saved information than a hard shutdown/reset.


Trouble starting Network UPS Tools with a Eaton 3S UPS

While I do not claim to be an expert here, I am concerned that this answer will not result in a persistent permission change over a reboot, and/or the usb cable from the UPS gets moved to a different port.

Following the information from here: Musings of the Nannerpuss: NUT - Network UPS Tools - on Ubuntu .

"... The problem involves the fact that Ubuntu mounts the device as owned by root, but the nut daemon drops to an unprivileged account that doesn't have the necessary access.  The simple fix is to use udev to adjust the device permissions.

Connect the device and (as root) run lsusb and locate it.  Note the Bus and Device IDs as well as the Vendor:Product ID pair...."

using output as in above answer:

$ lsusb
Bus 002 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

again from the link "... You can create a udev rule that controls the mount behavior at boot: ..." (edited to match this scenario better)"

use your favourite text editor to make (most likely) a new udev rules.d file. The number must be higher than any other udev.d rules file for the same action:

for example

sudo nano /etc/udev/rules.d/90-nut-ups.rules

# /etc/udev/rules.d/90-nut-ups.rules
ACTION=="add", \
SUBSYSTEM=="usb", \
ATTR{idVendor}=="051d", ATTR{idProduct}=="0002", \
MODE="0660", GROUP="nut"

The rule watches for USB device additions with a vendor and product that match the UPS.  It then sets the mode to 0660 and the group to nut instead of the default root.

Note that this answer uses 660 permission rather than 666 since that should be sufficient and more secure.

Reload udev (reboot, or perhaps unplugging then re plugging the usb cable from the UPS at the pc port), then disconnect and reconnect the device and test that the new permissions are correct. I an unclear on this part. In any case, once the nut user group has read and write on the device, it should be able to start successfully.

The udev rules.d edit did work on my 12.04.2 system even when I moved the USB cable to a different port, resulting in different Bus Device numbers on the lsusb output. Udev handled all without intervention. In fact, I may not have had to reboot when I moved it but can't remember for sure and will leave that testing to someone else.


Is there an easy way to edit gtk-recordMyDesktop videos?

You need to convert them first... they never worked without converting (at least for me):

mencoder -idx out.ogv -o out.avi -oac mp3lame -ovc lavc

Then you can edit them in your favourite video editor (I for one prefer Avidemux).


Caps lock on and off reversed Ubuntu 14.10

On the icon that says "En", which has the language and Character map,

Select "Text Entry Settings" and see what options are set up for your computer to solve this issue.

Mine had "Switch to Next source using" and "Switch to previous source using"; this for the input setting... I pressed Shift+fn+Space

That fixed it for me.


Ubuntu first timer trying to boot from USB on an old Celeron M machine

When I look at the specs of that touchcomputer, you probably don't have enough RAM to run a recent version of ubuntu.

I would go with lubuntu.

You will find the lubuntu install iso here.


gksudo pcmanfm alone or with gksudo leafpad?

I was not sure myself so I experimented a little as follows:

Opened pcmanfm using gksudo pcmanfm
Navigated to /etc and opened a text file from within pcmanfm using Right Click and Open with Leafpad
Edited a text file and successfully saved it

So you do not have to run gksudo leafpad to edit text files not editable as an ordinary user while using pcmanfm opened with gksudo.

Note: Just be a little careful editing files with super user privileges as a mistake could easily cripple your system...


Connecting to AES encrypted wireless network

WPA2 uses AES by default. You aren't seeing the option, but its there. Looking at that guide, I bet your issue is more about the username/password login or this line "3) Verify that authentication method is set to Microsoft: Protected EAP (PEAP)."

Do you  have a really old laptop that doesn't support WPA2?
Logs or error messages would be helpful too.
Do you have a password at all?

This might help too http://www.lug.wsu.edu/wireless/peap/ubuntu
But I'm not positive this is your issue.


Deploying multiple services in LXC containers in a VM hangs

It looks like you are trying to deploy a Precise charm on a Trusty host and because of that the correct version of the charm tools is not available. You will probably have better luck picking the Trusty version of the MySQL charm https://jujucharms.com/trusty/mysql-1/?text=mysql


"E: Syntax error /etc/apt/apt.conf.d/10periodic:7: Extra junk at end of file" how to trouble shoot this?

Your 10periodic file should look like this:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

In this file, the various lines has different meaning as given below:

1) APT::Periodic::Update-Package-Lists

If this is set to "0" then it means that automatic update has been disabled.

If it is set to something other than "0" then it would imply the number of days for automatic update. e.g. setting it to "1" implies that your system will automatically update everyday.

2) APT::Periodic::Download-Upgradeable-Packages

If this is set to "0" then it means that automatic downloading of packages have been disabled.
But setting it to "1" = enable auto download package.

3) Similarly APT::Periodic::AutocleanInterval can have "0" or other number specifying the number of days for auto clean interval.

You can also have another entry; APT::Periodic::Unattended-Upgrade. Setting it "0" will disable the automatic upgrade and "1" will enable the automatic upgrade.

I posted this answer because I thought your OS is Ubuntu. I'm not sure whether the 10periodic file in Elementary OS looks like this or not. If not then my answer would be useless.


You are looking for a keyboard model. Unfortunately I haven't found your “Logitech Illuminated Keyboard” in a list of supported keyboard models. You'll probably need to select different one with compatible layout.

Release Notes for Debian 6 (on which Ubuntu is based) says where keyboard model can be found:

  In this new release, the settings for the keyboard have been unified so that both the console and the Xorg server use the same settings. The keyboard settings are now defined in the /etc/default/keyboard configuration file which overrides the keyboard defined in Xorg's configuration file.

You can change it:

either by editing XKBMODEL variable in /etc/default/keyboard. For available values see contents of the file /usr/share/X11/xkb/rules/xfree86.lst.
or by running

sudo dpkg-reconfigure keyboard-configuration

in a terminal.


The --direct is an option that got added to df in version 8.4.6 so your download of Oracle XE 18c is not intended for 16.04. You probably need an older release or (as @jos mentioned) edit the script. See below for the old option we use.

* Mon Mar 29 2010 Kamil Dudka <kdudka@redhat.com> - 8.4-6
 - a new option df --direct (#479364)

There is no Ubuntu yet that goes higher than 8.30 (and that includes eoan)

On Ubuntu 16.04 we use 8.25 and the equivalent is called --output=avail (gnu coreutils df)

$ df --version
df (GNU coreutils) 8.25


Installed packages

You can use dpkg-query (see man dpkg-query for details) command for this purpose.

We will use the following fields of packages:

  binary:Package
  It contains the binary package name with a possible architecture qualifier  like  “libc6:amd64”  (since  dpkg  1.16.2).   An
  architecture  qualifier  will  be  present to make the package name unambiguous, for example if the package has a Multi-Arch
  field with a value of same or the package is of a foreign architecture.

Version - package version;
Homepage - home page of the project, the field you requested;

  source:Package
   It contains the source package name for this binary package (since dpkg 1.16.2).

The command to list all available packages:

dpkg-query -W -f='${binary:Package} ${Version}\t${Homepage}\t${source:Package}\n' "*"

The command to get results for your pyyaml query consists of command above and simple grep:

dpkg-query -W -f='${binary:Package} ${Version}\t${Homepage}\t${source:Package}\n' "*" | grep -i pyyaml

The result on Ubuntu 16.04.5 LTS will be as follows:

$ dpkg-query -W -f='${binary:Package} ${Version}\t${Homepage}\t${source:Package}\n' "*" | grep -i pyyaml
libyaml-0-2:amd64 0.1.6-3   http://pyyaml.org/wiki/LibYAML  libyaml
python-yaml 3.11-3build1    http://pyyaml.org/  pyyaml
python3-yaml 3.11-3build1   http://pyyaml.org/  pyyaml

in the output above all pyyaml occurrences will be marked in red color, the python3-yaml exists in the output.

Not installed packages

For not installed packages we can use other low-level handy command - grep-dctrl from dctrl-tools package (see man grep-available for details) to parse /var/lib/dpkg/available.

We will use the following syntax:

grep-available --field=Homepage,Source --ignore-case YAML

also we can shorten the output by showing only package names (adding --show-field=Package):

grep-available --field=Homepage,Source --show-field=Package --ignore-case YAML /var/lib/dpkg/available

and we will get:

Package: libyaml-tiny-perl
Package: libyaml-0-2
Package: libyaml-0-2
Package: python3-yaml

We can get even more results by using grep-aptavail (see man grep-aptavail):

grep-aptavail --field=Homepage,Source --show-field=Package --ignore-case YAML

as it returns:

Package: golang-yaml.v2-dev
Package: libyaml-0-2
Package: libyaml-0-2-dbg
Package: libyaml-dev
Package: libyaml-doc
Package: libyaml-libyaml-perl
Package: libyaml-perl
Package: libyaml-tiny-perl
Package: python-yaml
Package: python-yaml-dbg
Package: python3-yaml
Package: python3-yaml-dbg
Package: libyaml-0-2
Package: libyaml-0-2-dbg
Package: libyaml-dev
Package: libyaml-libyaml-perl
Package: python-yaml
Package: python-yaml-dbg
Package: python3-yaml
Package: python3-yaml-dbg
Package: erlang-p1-yaml
Package: golang-github-ghodss-yaml-dev
Package: golang-goyaml-dev
Package: hiera-eyaml
...


Change default console position in CodeBlocks

You can use command line options to launch the terminal window with desired settings.
In codeblocks :

Go to Settings > Environment > General Settings.
Change the "Terminal to launch console programs" option to :

gnome-terminal --geometry=WIDTHxHEIGHT+XOFF+YOFF -x
+XOFF : The left edge of the window is to be placed XOFF pixels in from the left edge of the screen
+YOFF : The top edge of the window is to be YOFF pixels below  the  top edge  of  the  screen

I used the following to have the terminal almost centered on my screen :
gnome-terminal --geometry=80x20+300+240 -x

Source 1
source 2


Firefox cannot find website servers, what is wrong?

Your question is quite generic, so here are some tips:

Have you checked your Firefox's network settings?

What about proxy settings?
Do you use something like Foxyproxy?

You may try accessing the web from different tool/browser (Chrome, wget). Is it working?

If no, it problem in your network connection and not firefox itself.

Execute following command to check the DNS lookup: "nslookup www.example.com"

It would be nice having more information. So I just hope that this will help a little...


Errors after installing Chrome Dev along with Stable

Yes. It clearly says that chrome source list have been configured multiple times. Just uncheck one of them.

Also, you could install unstable version just by:

sudo apt install google-chrome-unstable


How to acces from live cd to windows 7 disks?

Check if /media/ubuntu exist. If not, create it. then try and mount the drive.


I finally installed it. What I had to do is: click stop installation (forget what it is exactly called), and installation took me to a try ubuntu environment. Played a little bit there with firefox and then I clicked install ubuntu from desktop. This time it was successful. It is very strange, but it fixed the problem, hope it hopes you. Thanks.


Try to boot using startup disk or USB.
Run gparted.
Try to check the partition by it.
If you can not fix the partition, you should format the partition an reinstall Ubuntu.


Change date format for wine (Windows software)

Open Terminal, run:

wine regedit

Follow path:

HKEY_CURRENT_USER\Control Panel\International

Change the entry sShortDate to dd/MM/yyyy (notice the capital M)


Install the drivers 352 which support the NVIDIA Quadro K620M this way :

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter your user name and password - then execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

Open NVIDIA X Server Settings -> Prime Profiles to switch between intel and NVIDIA graphics.

If you have to adjust the card to to be used in BIOS, select NVIDIA or  switchable graphics mode.


Get total diskspace usign du for multiple directories

Use the flag --total in the du command.

du -sh --total dir1 dir2

From man du:

   -c, --total
          produce a grand total


Use Boot Repair to fix your bootloader.

1 - Live CD

First, you'll need to boot from a Ubuntu Live CD.

2 - Repair the bootloader

To restore the Grub bootloader, follow these steps.

Open a terminal from the Live CD, and run the following commands:

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

After a few seconds, Boot Repair's main window will open.

Click on Recommended repair.

You're done!

Reboot to test everything out.

If everything went well, you should be up and running now, with both Windows and Ubuntu appearing in the Grub menu.


I have installed Ubuntu, cannot access Windows 7 and data

From the boot-repair log it was clearly shown that you deleted windows partition and installed Ubuntu on it(that is Ubuntu overwrites windows).

Try testdisk,it would recover some datas from the deleted partition.


Laptop-mode-tools from the Ubuntu Software Center works fine and it is easy to use, but it doesn't produce such a big improvement in battery life. Also you mentioned that you've got an overheating problem, so you probably want to take a look at a stronger alternative to laptop-mode-tools: TLP. This answer: Improve Power Usage / Battery Life In Linux With TLP is a great introduction to TLP. It will also give you an idea of how complicated it is to install and configure it. TLP is not in the Ubuntu Software Center, you have to add the PPA for TLP to your Software Sources in the Ubuntu Software Center.

I'm sorry that this answer is so low on details, but the answer I referred to above has got all the details for TLP. Also I'm warning you again that TLP can be hard to configure. Finally I suggest that you try rotating your laptop when it is placed on top of a table to find which way it is facing when it gets the strongest wireless signal.


Is there a way with sox to trim parts of audio file with volume under a certain level?

Sox documentation:

example

sox input.wav output.wav silence 1 0.1 1% -1 0.1 1%


Dropbox indicator icon is not supporting the icon theme at the top panel in Xubuntu

I have a similar problem with vanilla GNOME on Ubuntu. I figured out running Dropbox with this command fixes it:

env XDG_CURRENT_DESKTOP=Unity dropbox start -i


How do I detect if an external drive is already mounted?

Nautilus mounts it to /mnt/mirror_ because /mnt/mirror seems to be already in use.

You could edit /etc/fstab and add a line such that your external disk is mounted to /mnt/mirror every time.
UUID="12345-67890"  /mnt/mirror  vfat  defaults,auto,users,rw  0  0
Change vfat if your use another filesystem.
You find your UUID and filesystem type with the command sudo blkid.
After plugging in, either cick on the entry in nautilus or mount using the command mount /mnt/mirror.
Else do the following:
Use the mount command which returns the current mounts of your system.
Shows all current mounts:
mount
Filters out the mounts containing the word mirror:
mount | grep "mirror"
To use it in a script you can do the following:
mounted=$(mount | grep "mirror")
[ ! "$mounted" = "" ] && { echo -e "mirror mounts:\n$mounted"; }
There will be no output if no mount is found containing "mirror".

Notes:

You can also have your disk mounted to several mount points at the same time, if you are using filetypes other than ntfs. You could mount it to /mnt/mirror regardless of /mnt/mirror_.
When using ntfs, make sure to first unmount the partition with sudo umount /mnt/mirror_.
replace "mirror" with something else you know about the device, for example "sdb".
check if any partition of your last plugged in removable disk is mounted:
last_dev=$(dmesg | grep "removable" | sed -e 's/.*\[//g' -e 's/\].*//' | tail -n1)
mounted=$(mount | grep $last_dev)
echo -e "last removable disk mounts\n:$mounted"