Removing openjdk-6-jre without the installation of sun-java6-jre

sudo apt-get remove openjdk-6-jre-headless sun-java6-bin sun-java6-jre

Of course that'll also remove all packages that depend on a JRE package. If you want to be able to use them, you'll need to create a dummy JRE package, with equivs.

So it's probably easier to just leave a packaged JRE installed.


You still have 1.0.24, but the installation attempt seems to have broken something.

Anyway, the easiest way to update sound drivers (if you really need to do it) is to upgrade the kernel itself.


how can I tell - using terminal - how often the package manager checks for updates?

You can check the value of APT::Periodic::Update-Package-Lists (Do apt-get update automatically every n-days, 0=disable):

grep APT::Periodic::Update-Package-Lists /etc/apt/apt.conf.d/10periodic

1: Every day
7: Every week


Is there a way to merge multiple gnome-terminal windows into a single tabbed window?

Not easily. Suggest you look at the Terminator app instead, which is included in the standard repositories.


Problem with openconnect after upgrade to ubuntu 18.04

I have the same problem. Try one of the below:

run the command with --no-dtls option
try openconnect version 7.06-2 (not available in ubuntu 18.04)
try using the cisco anyconnect client binaries instead of openconnect

If anyone has a solution for this problem, I'm also interested to know


KeePassXC 2.6.4 addons failure on Firefox and Chrome/Brave /Ubuntu 20.04 and 20.10

Issue occurred because snap version of KeePassXC and Brave browser.
To install unsnapped KeePassXC version:
Add PPA to system's software source:
sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt-get update
sudo apt install keepassxc

unsnapped version of Brave browser:
sudo apt install apt-transport-https curl gnupg
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser


Will performance be worse if I encrypt the entire Hard Drive / SDD?

LUKS/dm-crypt which is used for encryption on Linux will slow your machine since it's a software encryption. However, on a SSD you probably won't notice any difference.


Add shared network drive to Windows with "xxx GB free of yyy GB" bar

Windows will show you this status line (XXX free of YYY) when the network drive is mapped (to a letter, like n:).

You can find some help here, for how to mount a drive on Windows 10.


Prevent components from becoming transparent on a qml window

Remove "opacity" and use semi transparent colors:

  color: Qt.rgba(0.239, 0.237, 0.237, 0.3)

http://qt-project.org/doc/qt-4.8/qml-color.html

Thanks for the hint https://stackoverflow.com/a/17244302


Cannot comment so writing here. Will update after your reply.
Did you do ssh -X host@ip to connect?
Try running this in your remote pc:
export DISPLAY='IP:10.0'

**Note that IP is the local workstation’s IP(127.0.0.1) where you want the GUI application to be displayed.
Also make sure xauth is installed in your system
Restart sshd service or the whole workstation if possible and then try.


Can I increase the size of the processor L1 and L2 caches?

L1 and L2 cache are hardware cache. lscpu shows your hardware information. It will only increase if you buy a processor with higher cache size.


Use the service command for it:

sudo service pulseaudio restart

If the problem persists:

pulseaudio -k
pulseaudio -D


There are normally two steps in configuring port forwarding.  Additional to what you have already done, the next step may be to add a firewall rule on your border router to permit the incoming traffic you are forwarding.  Some systems do this automatically however that would be the first place I would look. The firewall rule should allow the destination port(s) you specified to hit the outside (internet) side interface.


This is a small GUI tool that did what you want and little more


Assuming your filenames are listed, one per line, in a text file, with no leading or trailing whitespace (unless the filenames themselves start or end with whitespace), and no filename contains a newline character (since if one did, the list would be ambiguous), this is a good use case for xargs.

The xargs command reads words from input and passes them as arguments to a command. By default it breaks up the words using arbitrary whitespace. Since it's common that filenames contain whitespace, this default behavior probably won't work for you, and could even end up operating on files that weren't in your list. However, GNU xargs (which provides xargs in Ubuntu) has a -d option that can be used to specify an arbitrary delimiter. From your description it sounds like you already have a list of files, one per line. In that case you can specify \n as the delimiter.

Suppose the filenames are listed in a file called files.txt. Then you can run:

<files.txt xargs -d'\n' touch

<files.txt redirects from files.txt.
xargs -d\'n' touch reads arguments from its input, split at newlines, and passes them to touch.
-d'\n' causes the shell to pass the literal text -d\n to xargs. It is xargs that treats the sequence \n specially, knowing you mean a newline.

You can of course put the redirection, <files.txt, anywhere in the command you like (though most people would put it at the very beginning or the very end). If, rather than a file, you have a command that produces the list, you can pipe from that command to xargs. For example, if you have a script in the current directory called make-list, you could run:

./make-list | xargs -d'\n' touch

xargs in Ubuntu does also have a -a option, if you're using an existing file as input and for some reason you prefer to pass it a filename as an operand rather than redirecting to it:

xargs -a files.txt -d'\n' touch


Onboard intel graphics for Gigabyte B560M DS3H AC mother board not working in Ubuntu 20.04 or 20.10 getting 0nly 1024X768 resolution

My situation is similar to yours. I solved this problem by installing linux-oem-20.04b.
sudo apt install linux-oem-20.04b

unclaimed-display-in-ubuntu-21-04-with-rocket-lake


sudo apt-get update is not working in Ubuntu after a fresh install

All that

sudo apt-get update

does is to update the available archives.  It should download the changes which does nothing more than let Ubuntu know what updates are available.  If you want to then upgrade individual packages you should issue the command

sudo apt-get upgrade

and this will update any packages that are available except for when there is a change in dependencies. This would be the case when there is a kernel update available.  To perform the kernel update for 12.10 you would then have to issue the command

sudo apt-get dist-upgrade

Note that this will not upgrade the release level.  It does precisely the same thing as running the normal updates in the GUI.  A release upgrade done on the terminal is something completely different.

The apt-get update and upgrade commands should either run normally, or give you some error messages.  To get help fixing any problems you would have to tell us what those error messages are, but as far as I can tell the only problem is that you haven't actually run the upgrade.


Are you running 14/04 (Trusty) version of Ubuntu? I was experiencing a similar problem when I upgraded my laptop to 14.04. My AT&T/Sierra 313 broadband modem, which has worked under all previous versions of Ubuntu, would no longer work and the Mobile Broadband option would not work either

I determined that the problem seems to be with new version of the "Modem manager" package installed with 14.04. I was able to fix the problem by downgrading just the one package to the version from 12.04 (Precise) since this version is still supported and available. The steps I took are documented in the answer I posted to my own question, here:

Sierra Wireless 313u 3G broadband modem will not work since upgrade to 14.04


Why don't some packages in lp exist in the Ubuntu Software Centre?

No, MOTU's jobs aren't to just randomly pull in packages from Launchpad, though it's possible for anyone to file a request for something to be packaged, but that could be hit or miss, depending on who is around to do the work and if it interests them (remember a great portion of Ubuntu developers are volunteers).

If you want something to be put into the software center for an existing stable release (not universe) then the best thing you can do is to ask the makers of the software to check out My Apps and submit their application to the Software Center directly. This also has it's drawbacks, namely an application might sit in a queue waiting review (depending on volunteer contributions), or it might sail through relatively quickly, there's really no way to tell offhand.

Either way currently has a problem of being blocked on humans to review things, which as you can probably tell, doesn't scale, here are some blueprints of plans Ubuntu plans on implementing to make this process suck less:

https://blueprints.launchpad.net/ubuntu/+spec/appdev-r-arb-review
https://blueprints.launchpad.net/ubuntu/+spec/appdev-r-app-upload-process-feedback


Software Center stopped working suddenly... Unable to uninstall. Please help

Finally I found the solution. I simply removed the problematic file. In my case, the file
dl.google.com_linux_chrome_deb_dists_stable_main_i18n_Translation-en%5fIN

was causing the problem. So, I removes it. Now it is working.


Problems with dependencies for The Witcher 2 - Ubuntu 16.10 x64

Try the following command in Terminal (you can use Ctrl + Alt + T to open the Terminal and then Ctrl + Shift + V to paste in the Terminal):

sudo apt install libc6:i386 libasound2:i386 libasound2-data:i386 libasound2-plugins:i386 libgtk2.0-0:i386 libsdl2-2.0-0:i386 libsdl2-image-2.0-0:i386 libfreetype6:i386 libcurl3:i386

Make sure it doesn't try to remove any crucial packages like your window manager. It might list some packages under 'The following packages will be removed:' before it says 'Do you want to continue? [Y/n]'.

Source (search (Ctrl + F) for dependencies)
Source that said you might need to install dependencies


How to install package with all dependencies offline!

Use the following command to list everything a package needs for its installation and then download all of them:

$ sudo apt-get --print-uris --yes install <package-name> | grep ^\' | cut -d\' -f2 > downloads.list

And read this if you need more information.


You have not specified the name of the resulting raid device. As such, mdadm is assuming that you're trying to create a RAID device ad /dev/sdb and then failing because /dev/sdb already exists.

You should modify your command:

sudo mdadm --create --level=1 --name=raidarray /dev/md0 --raid-devices=2 /dev/sdb /dev/sdc

/dev/md0 is the name of the new RAID device you're going to create.


Your computer will not boot from DVD then you have one other option. Booting your computer from USB memory stick. You can use many softwares to achieve this, but I personally like UNetBootin which supports windows, mac and linux. You will need to have a ubuntu ISO file that you want to install, and a suitable usb memory stick (above 4GB storage is fine). Create a bootable USB stick. Configure your BIOS to boot from USB and reinstall.


How to remove session entries from LightDM?

The list of sessions is defined by the .desktop files in the folder /usr/share/xsessions

Lets remove GNOME Classic

In a terminal:

cd /usr/share/xsessions
sudo mv gnome-classic.desktop gnome-classic.desktop.backup

This renames the gnome-classic desktop file

Logout - the new list of sessions will look like:


Please run the terminal command:

lspci -nn

Is your wireless device identified as 14e4:4311? If so, the STA driver is incorrect for your device. Get a temporary wired ethernet connection and do:

sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree
sudo modprobe -r wl
sudo modprobe b43

Your wireless should now be working.

If 14e4:4311 is not your device, post it here and we'll help.


Read file lines into shell line separated by space

You can use xargs, with the delimiter set to newline (\n): this will ensure the arguments get passed correctly even if they contain whitespace:

xargs -rd'\n' command < requirements.txt

From man page:

  -r, --no-run-if-empty
  If the standard input does not contain any  nonblanks,  do  not  run  the  command. Normally, the command is run once even if there is no input.  This option is a GNU extension.

  --delimiter=delim, -d delim
  Input items are terminated by the specified character.


"Installing extension pack ..." stuck at 0%

Installing the Extension Pack from the command line will often solve this issue (as you have already demonstrated). The most comprehensive command line would be:

sudo VBoxManage extpack install --replace <tarball>

where <tarball> needs to be replaced with the actual path and filename of the downloaded Extension Pack. The use of the --replace option means that any older version of the same Extension Pack will be first uninstalled. Without the --replace option in place the command line could fail.

It would be wise as well to clean up any remaining temporary files and directories after the installation by running the following command:

sudo VBoxManage extpack cleanup

and perhaps for the sake of completion check the installation of the Extension Pack by running the following command as well:

sudo VBoxManage list extpacks

The reference below gives full details of these and other  command line options for VBoxManage.

Reference:

8.36. VBoxManage extpack


Was installing Ubuntu and I pressed quit in between and now am stuck in some command line

Reboot the PC holding down the hardware on/off button, and try the installation again.

If you don't have any data on the HD you need, you can let the installer automatically partition the HD next time.


I ended up using the exact same RTSP urls with Shinobi (I put it on an ubuntu server/raspberry pi I had laying around), and it works PERFECTLY. Minimal setup, and works ALMOST as fast as the CMS software on Windows but with 3x more functionality. After getting this working I'd recommend Shinobi for such things. For anyone in the future looking for an answer to this specific NVR the RTSP URL that worked is:
rtsp://192.168.0.x:554/user=username&password=password&channel=1&stream=0.sdp?real_stream--rtp-caching=100
I have 4 cameras connected to that NVR so simply clone another input, channel=2, channel=3, etc.
Shinobi working


I don't think banshee supports iphone sync. I don't think anything can sync music to an iphone other than itunes.

The manual here: https://help.gnome.org/users/banshee/2.6/sync.html.en says "with the notable exception of..." meaning it cannot sync iphone or ipods.


Unfortunately the answer would be to compile it yourself but as noted, this is not needed anymore. We only use this in ccsm to put an image inside a GtkEntry but the next release should remove that since GTK+ itself allows this now.


npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed

I was able to install npm by doing following:

sudo apt-get install nodejs-dev node-gyp libssl1.0-dev

and

sudo apt-get install npm


Does postgresql (server) setup a main cluster after installation? (14.04)

Problems that occur appear on the system locale

 warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = (unset),
  LC_TIME = "en_US.UTF-8",
  LC_MONETARY = "en_US.UTF-8",
  LC_ADDRESS = "en_US.UTF-8",
  LC_TELEPHONE = "en_US.UTF-8",
  LC_NAME = "en_US.UTF-8",
  LC_MEASUREMENT = "en_US.UTF-8",
  LC_IDENTIFICATION = "en_US.UTF-8",
  LC_NUMERIC = "en_US.UTF-8",
  LC_PAPER = "en_US.UTF-8",
  LANG = "en_US.UTF-8"
     are supported and installed on your system.

The first step to configure the reset locale with the command :

  $ sudo dpkg-reconfigure locales

However postgresql can not be executed, because the current Postgres install clusters are not made.

Then run the command :

  $ sudo pg_createcluster 9.3 main --start

Note : I use version postgresql-9.3

Next run postgresql with the command :

  $ sudo service postgresql start
   ## Or
  $ sudo /etc/init.d/postgresql start

The results are as below

  $ sudo service postgresql start
    * Starting PostgreSQL 9.3 database server

Check the status postgresql running or not

  $ sudo service postgresql status
    9.3/main (port 5432): online


I have the same issue too as I belong to Nepal as well. However, the following link shows that the server for Nepal which is supposed to provide download up to 100kbps is currently not updated... search for Nepal's server section in the address and see the details there.... so it's better we choose another mirror.. maybe of Indonessia or other until the server gets updated..

Requesting server update procedure may be by informing the owner of the server i.e. Kshitiz Shrestha that the server is outdated...

https://launchpad.net/ubuntu/+mirror/ubuntu.ntc.net.np-archive

https://launchpad.net/ubuntu/+archivemirrors

Update:

Bro, the server is updated now... you can use Nepal's server now... enjoy downloads..:)

Happy Linuxing


64 bit Ubuntu on 32 bit windows xp by daemon tools

You must install 32 bit ubuntu when you only have a 32 bit processor.
Instead of using a DVD put the content of the iso file to an USB stick.
You can use 'diskpart' to prepare the USB stick and make it bootable.


How do I install Ubuntu 16.04 from an SD card?

A few computers can boot from the built-in card reader, but most computers cannot do it. Many computers can boot from an SD card in a USB card reader. Some card readers can boot, and some card readers cannot boot. And some card readers can boot only some computers, and other readers can boot only some other computers. Chances are better with USB 2 than with USB 3. It is a jungle.

If you are lucky, you can boot from an SD card with your current devices. You create an SD boot drive like you install a USB boot drive, for example with mkusb in linux and with Rufus or Win32 Disk Imager in Windows.

But if you would need a new card reader, it is better to buy or borrow a USB stick for this purpose. It is at least as cheap, and more reliable. See this link and links from it,

Installation/FromUSBStick#Prerequisites


Ubuntu linking two wireless networks and sharing internet connexion

This is all about routing and straight forward.

The Router/Bridge has to have the Ubuntu Wlan0 as a default gateway
Your friends machines need the Ubuntu Wlan0 as a default gateway and get it possibly from the router/bridge (as I don't know the hardware capabilities, you might want to install openwrt on that thing if possible).
The Ubuntu machine has to be enabled to route the data from nic to nic and has to have the Internet Wifi Router as the default gateway

As I don't know the hw your are using I can only help you with part number three.

Here is a description of how to unlock ip forwarding.

Here ist a description on setting the routes on Ubuntu machines

I have looked at the router and I'm quite sure that your setting can't be achieved with this hardware.

The bridge you mentioned does only "glue" together the LAN with the WLAN. You can't use the ADSL-Port, pretty sure about that.

I found NO evidence that this device is capable of adding additional routes. So I guess that you can't tell this device that the default route is not going through the adsl port but that it should choose a lan port for that.

This could have worked if you would have another compatible device working with openwrt, as it hast so many more options. But unfortunately your devices is not listed there.

Besides from that

To be honest, although it will be possible to achieve your goal, you might not be satfisfied with the performance once you get there.

There is WAY TOO MUCH WLAN in there, making your routes very unstable and therefore slow
If one of your friends decides to stream or bit-torrent in your network it could make the bandwidth so small for veryone else, that it won't be fun to surf anymore. Maybe even collapsing the network.

If it's locationwise possible try to change from wifi to cable whenever possible.

So a much better set up would be (depending on the location of course).

friends --> WLAN ACCESS POINT --> connected to LAN CABLE --> UBUNTU router --> connected to LAN CABLE --> into LAN/WLAN router with ADSL or similar internet connector.

This would be the best for all people involved. If this is not possible another solution would be

friends --> WLAN ACCESS POINT connect to --> WLAN ACCESS POINT Ubuntu --> onnected to LAN CABLE --> into LAN/WLAN router with ADSL or similar internet connector.


/dev/sda3 is your Windows recovery partition.
/dev/sda4 is a recovery partition for the HP tools.

You can delete both if you not need them or if you made a backup of these to a cd/dvd.
Or leave it as is. Or after you created a backup. Technically all you need is the Windows serial on your machine to be allowed re-installing (ie. downloading Windows). And it would be weird if you can not find the HP Tools on the web either.

/dev/sda1 looks like a separate boot disc. Could be they made that so you can access your 2 recovery partitions. Never seen that before... If you delete this you might not be able to get into Windows. As far as I know Windows needs to be on the 1st partition(?). If so messing with that will mess up Windows.

My advice? Create discs from the Windows recovery and HP recovery if you want them (creating a cd/dvd from them should be a menu item in your current Windows system). Backup your Windows files and delete it ALL. Recreate a 2 partition setup: 1 for Windows and 1 for Ubuntu (and in there /, swap and /home if you want to).

I believe creating 4 primary partitions is stupid. And I myself hate it when others decide my disc lay-out. ;)

Regarding a backup of those recovery discs I found this link: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01867124&lc=en&cc=vn&dlc=en


What's the proper way to install a new theme on 15.04?

A search around this site shows that in earlier versions of Ubuntu,
  theme installation involved things like:

Knowing the difference between GTK, GTK2, GKT+, GTK3, etc.
Unzipping an archive and copying the contents to ~/.themes.
Installing and running Unity Tweak Tool.
Adding PPA repositories
Assorted command line trickery

All are the correct answers.

Using the Systems Settings -> Appearance settings in Unity desktop will indeed only show the Ambiance, Radiance and High Contrast themes.

To be able to change your theme to another one you will need to install the Unity Tweak Tool:

sudo apt-get install unity-tweak-tool

Unity Tweak Tool is a configuration tool for the Unity desktop environment.


How to purge eXist-db from Ubuntu 16.04?

To get rid of the remnants look in two places:

/usr/share/applications and
/home/$USER/.local/share/applications

Look for the .desktop file for that program and simply delete them. After that re-start your system.


Error when fetch timing using sitespeed.io and firefox

Finally i Found this cammand that help me to fetch timing :
$xvfb-run sitespeed.io -u http://www.sitespeed.io -b firefox


This got solved by using xcape (sudo apt-get install xcape or from github - https://github.com/alols/xcape)

and following the script in the README:

# Map an unused modifier's keysym to the spacebar's keycode and make it a
# control modifier. It needs to be an existing key so that emacs won't
# spazz out when you press it. Hyper_L is a good candidate.
spare_modifier="Hyper_L"
xmodmap -e "keycode 65 = $spare_modifier"
xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
xmodmap -e "add Control = $spare_modifier"

# Map space to an unused keycode (to keep it around for xcape to
# use).
xmodmap -e "keycode any = space"

# Finally use xcape to cause the space bar to generate a space when tapped.
xcape -e "$spare_modifier=space"

This has worked for me irrespective of the distro - I have got it working on Fedora 23 and Debian9 as well other than Ubuntu 17.04 as it is a generic solution. Thanks


Unity Dash not showing Applications after upgrade from 19.04 to 20.04

I have the exact same problem. A temporary fix is to logout, change the environment from Unity to Gnome or something else and login. Gnome has a dropdown application menu that lists everything. I haven't found the solution for Unity yet.


There are two possibly conflicting drivers loaded. I suggest that we blacklist and unload one and see if connectivity improves. Also, let's turn off power saving in Network Manager:

sudo -i
modprobe -r rtl8xxxu
echo "blacklist rtl8xxxu"  >>  /etc/modprobe.d/blacklist.conf
sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
exit

It may take a reboot. Is connectivity improved?

EDIT: We tried blacklisting rtl8xxxu so as to exclusively use rtl8192cu and it appears to be unsuccessful. Let's reverse it. From the terminal:

gksudo gedit /etc/modprobe.d/blacklist.conf

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

blacklist rtl8192cu

Instead of blacklisting rtl8xxxu. Reboot and tell us if connectivity is improved.


Hotspot Shield is an application which connects to U.S.-based VPN servers.

Ubuntu is able to connect both to PPTP and OpenVPN servers natively. If you know the login details of a specific server, you (probably) will be able to connect to it and we will be able to point you to the corresponding guides.


How to allow wine to access network shares?

I found a workaround.
I use 13.04 but I think is the same.
The solution is to link the GVFS folder with another name.

Create this file (gvfs-patch) in /usr/share/playonlinux/bash:

sudo -H gedit /usr/share/playonlinux/bash/gvfs-patch

#!/bin/bash

LOGFILE=/dev/null

GVFS_HOME=/run/user/$USER/gvfs

# Create BASE folder
BASE=/tmp/POL-$USER-gvfs
if [ ! -d "$BASE" ]; then
   echo "Create BASE folder : $BASE" >> $LOGFILE
   rm -fr $BASE
   mkdir $BASE
else
   echo "BASE folder exists : $BASE" >> $LOGFILE
fi

# Clean old symbolic link
for SHARE in $(ls "$BASE"); do
   if [[ ! -e "$BASE/$SHARE" && -h "$BASE/$SHARE" ]]; then
      echo "Remove OLD share folder : $SHARE" >> /tmp/diego.txt
      rm -f "$BASE/$SHARE"
   else
      echo "Share folder valid : $SHARE" >> $LOGFILE
   fi
done

# Create symbolic link for ALL share
for SHARE in $(ls "$GVFS_HOME"); do
   NSHARE=$(echo $SHARE | sed 's/:/-/g')
   if [ ! -e "$BASE/$NSHARE" ]; then
      echo "Create share folder : $NSHARE" >> $LOGFILE
      ln -s "$GVFS_HOME/$SHARE" "$BASE/$NSHARE"
   else
      echo "Share folder valid : $BASE/$NSHARE" >> $LOGFILE
   fi
done

echo $1 | sed "s|$GVFS_HOME|$BASE|g" | sed 's/:/-/g'

Make it executable

sudo chmod +x /usr/share/playonlinux/bash/gvfs-patch
sudo chown root.root /usr/share/playonlinux/bash/gvfs-patch

Patch this file: /usr/share/playonlinux/bash/document_reader

sudo -H gedit /usr/share/playonlinux/bash/document_reader

At line 43 (before realpath=...) add this:

doc=$($PLAYONLINUX/bash/gvfs-patch "$doc")


step1:
First open the  speech-dispatcher file :
sudo gedit /etc/default/speech-dispatcher

Search for key RUN. If RUN=no then skip step1 to step2 , if RUN=yes then
change RUN=yes to RUN=no

Now reboot and try again.
step2:
In your terminal run the command
sudo alsa force-reload

After the command ends(takes some time) then reboot and check your sound.
step3:
If you still facing sound problem try reinstalling Alsa and Pulse audio
sudo apt-get remove --purge alsa-base pulseaudio

sudo apt-get install alsa-base pulseaudio

And force reload Alsa again:
sudo alsa force-reload

wait to finish and then restart


You can always try evince, okular or even Acrobat Reader from Software Center.

Or install wine and just use Foxit Reader.


hard link to directory not permitted when root

From the manual page of ln:

  -d, -F, --directory
  allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for  the  superuser)

An application cannot see whether a hard link is a hard link or the original file path. If this is not a requirement, you can use symbolic links instead:

ln -s /usr/share/tomcat6/skel/conf conf


With Ubuntu 18.04 and mysql-5.7, the default method for a mysql root login has changed,
now you have to be the superuser (either by doing sudo mysql -u root or by calling a root shell sudo bash first). Since you are already authenticated as the root user, no password is needed any longer.

See also this question and its answers.


qsynth falied to create the audio driver (alsa)

It seems qsynth fails if a name is entered in device name under audio in the setup menu. Verbose event messages revealed that this is the problem.


I fixed the issue by realizing that Xmodmap is not being used anymore, xkb is. So I found this solution:
How to swap Command and Control keys with xkb step by step?

and enabled org.gnome.settings-daemin.plugins.keyboard again (change false to true).
That makes me able to change my input language. I also tried to use the English (UK, Macintosh) instead of English (UK, Macintosh International) to fix the dead keys - and it is fixed.
It looks like Macintosh International is with dead keys, and simply Macintosh is without!


Displaylink USB monitor on Lubuntu 18.04

I used Adnan Hodzic script to make my displaylink usb-vga working on Ubuntu 18

After launching the script, I chose [U]ninstall in the first time, because I already tried to install the driver manually without success, then I relaunched the script to install drivers, after restarting the machine I got it working.
After restarting I typed

$ xrandr --listproviders

It should show only one provider, then I plugged the device, then retype

$ xrandr --listproviders

This time I got two providers, which means that the device has been detected. Finally I activated the device :

$ sudo xrandr --setprovideroutputsource 1 0

Hope this will work for you.

I did something that I do not know if it was necessary, I edited xconf.org  by putting inside:

Section "Device"
  Identifier "DisplayLink"
  Driver     "modesetting"
  Option     "PageFlip" "false"
EndSection

p.s. If I do unplug the device, it wont work until I restart the computer.


How do I set up Gitorious server on ubuntu?

Update: As of Gitorious 3.2 (beginning of 2015) gitorious supports ubuntu directly. See https://gitorious.org/gitorious/ce-installer/ for installation instructions.

Original instructions:

To install gitorious the latest one from git, follow these steps

First, lets go root by using

sudo su
[sudo] password for <username>:

Installing packages

When installing all these packages, you will be asked for a MySQL root password, which you should remember, because you will need it later on.

  aptitude install \
    build-essential zlib1g-dev tcl-dev libexpat-dev libxslt1-dev \
    libcurl4-openssl-dev postfix apache2 mysql-server mysql-client \
    apg geoip-bin libgeoip1 libgeoip-dev sqlite3 libsqlite3-dev \
    imagemagick libpcre3 libpcre3-dev zlib1g zlib1g-dev libyaml-dev \
    libmysqlclient15-dev apache2-dev libonig-dev ruby-dev rubygems \
    libopenssl-ruby libdbd-mysql-ruby libmysql-ruby \
    libmagick++-dev zip unzip memcached git-core git-svn git-doc \
    git-cvs irb

Installing the Ruby Gems

Gem.source_index is being deprecated. Using system 1.8.25 avoids the source_index error.

REALLY_GEM_UPDATE_SYSTEM=1 gem update --system 1.8.25

Now we can install all the necessary gems:

  gem install --no-ri --no-rdoc -v 0.8.7 rake && \
    gem install --no-ri --no-rdoc -v 1.1.0 daemons && \
    gem install -b --no-ri --no-rdoc \
        rmagick stompserver passenger bundler

Installing the Sphinx Search Server

wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz && \
    tar -xzf sphinx-0.9.9.tar.gz && \
    cd sphinx-0.9.9 && \
    ./configure --prefix=/usr && \
    make all install

Getting Gitorious

  git clone git://gitorious.org/gitorious/mainline.git /var/www/gitorious && \
    cd /var/www/gitorious && \
    git submodule init && \
    git submodule update

Easy as pie. Now we just need to put the Gitorious binary on our path:

 ln -s /var/www/gitorious/script/gitorious /usr/bin

Configuring services

Gitorious needs a bunch of background services, so we need to copy the supplied startup scripts:

cd /var/www/gitorious/doc/templates/ubuntu/ && \
    cp git-daemon git-poller git-ultrasphinx stomp /etc/init.d/ && \
    cd /etc/init.d/ && \
    chmod 755 git-daemon git-poller git-ultrasphinx stomp

and enable them:

 update-rc.d git-daemon defaults && \
    update-rc.d git-poller defaults && \
    update-rc.d git-ultrasphinx defaults && \
    update-rc.d stomp defaults

We need to create an additional symlink, because all the startup scripts have RUBY_HOME set to /opt/ruby-enterprise (alternatively we could just patch the files, but this way it is easier and you can update the scripts if needed):

 ln -s /usr/ /opt/ruby-enterprise

Fixing git-ultrasphinx

As of March 2013 the git-ultrasphinx script is broken and will fail to start. Please edit /etc/init.d/git-ultrasphinx and check that the start, stop and restart commands are as follows (replace ultrasphinx:daemon with ts if necessary):

 START_CMD="cd $GITORIOUS_HOME && rake ts:start RAILS_ENV=production"
 STOP_CMD="cd $GITORIOUS_HOME && rake ts:stop RAILS_ENV=production"
 RESTART_CMD="cd $GITORIOUS_HOME && rake ts:restart RAILS_ENV=production"

Configuring Apache

Passenger

First of all, we need to compile the Apache2 passenger module:

$(gem contents passenger | grep passenger-install-apache2-module)

The passenger configuration script will tell you exactly what you’ll need to add to your apache configuration. The part you need to copy looks like this:

Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.9
    PassengerRuby /usr/bin/ruby1.8

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
These three lines need to be inserted into

/etc/apache2/mods-available/passenger.load

Enabling necessary modules

   a2enmod passenger && \
        a2enmod rewrite && \
        a2enmod ssl

Creating the Apache2 sites

Type in :

nano /etc/apache2/sites-available/gitorious

And copy paste the following text

<VirtualHost *:80>
    ServerName your.server.com
    DocumentRoot /var/www/gitorious/public
</VirtualHost>

Type in

 nano /etc/apache2/sites-available/gitorious-ssl

And copy paste the following text

<IfModule mod_ssl.c>
    <VirtualHost _default_:443>
        DocumentRoot /var/www/gitorious/public
        SSLEngine on
        SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
        BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    </VirtualHost>
</IfModule>

Now we need to disable the default site, and enable our freshly created Gitorious sites:

  a2dissite default && \
    a2dissite default-ssl && \
    a2ensite gitorious && \
    a2ensite gitorious-ssl

Creating a MySQL user for gitorious

  mysql -u root -p

Enter the password you made while installing MySQL after the following prompt

Enter password:

Type this in line by line excluding the mysql> and changing <insert password> with your MySQL password you made while installing MySQL

 mysql> GRANT ALL PRIVILEGES ON *.* TO 'gitorious'@'localhost' IDENTIFIED BY '<insert password>' WITH GRANT OPTION;

mysql> FLUSH PRIVILEGES;

Configuring Gitorious

First of all, we need to make sure we have all gems in the correct version for Gitorious, so we run the following:

cd /var/www/gitorious/ && \
    bundle install && \
    bundle pack

Now we can create the user under which Gitorious will run and serve the Git repositories:

  adduser --system --home /var/www/gitorious/ --no-create-home --group --shell /bin/bash git && \
    chown -R git:git /var/www/gitorious

Then we need to create some stuff that Gitorious needs to run:

  su - git && \
    mkdir .ssh && \
    touch .ssh/authorized_keys && \
    chmod 700 .ssh && \
    chmod 600 .ssh/authorized_keys && \
    mkdir tmp/pids && \
    mkdir repositories && \
    mkdir tarballs

Creating the Gitorious configuration

Lets copy the sample configuration files to the correct path:

 cp config/database.sample.yml config/database.yml && \
    cp config/gitorious.sample.yml config/gitorious.yml && \
    cp config/broker.yml.example config/broker.yml

Now edit the config/database.yml and make sure you set the correct username and password in the production section. After that, we need to set a couple of things in config/gitorious.yml:

Make sure you are configuring the right section (not test:, but production:)

repository_base_path should be /var/www/gitorious/repositories
cookie_secret needs to be set to a random value >= 30 characters
gitorious_client_port should be 80
gitorious_host needs to be the exact hostname that clients will use (cookies get messed up otherwise)
archive_cache_dir should be /var/www/gitorious/tarballs
archive_work_dir should be something like /tmp/tarballs-work
hide_http_clone_urls should be true (they require extra unknown setup to work)
is_gitorious_dot_org should be false
Creating the Gitorious database

Because of an incompatibility of RubyGems with Rails < 2.3.11 you need to add the following line at the top of config/boot.rb:

require 'thread'

Now we let rake do all the work for us:

export RAILS_ENV=production && \
    bundle exec rake db:create && \
    bundle exec rake db:migrate && \
    bundle exec rake rake ts:conf && \
    bundle exec rake rake ts:rebuild

Create the Sphinx Cronjob

crontab -e 10 * * * * /var/www/gitorious/bin/rake ts:rebuild >/dev/null RAILS_ENV=production

Create an admin user

env RAILS_ENV=production ruby1.8 script/create_admin

Reboot

You’re finally done. Reboot your Ubuntu machine, and your Gitorious installation should be up and running.

Checking possible problems

Browse http://your.server.com/admin/diagnostics in order to check for possible problems.

Source: http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/


I'm not an expert, but the btrfs-progs package actually includes a tool specifically to do this, although you may have to build from source. In any case, once you have installed or built btrfs-progs, you should be able to use the tool btrfs-corrupt-block, which is used by the btrfs developers to test the filesystem.

Now, like I said, I haven't had a lot of time to play around with btrfs, so I don't know the exact usage of this tool. But with it, you should be able to corrupt an offline filesystem, which will be fixed when the corrupted file is read (assuming that you have set up RAID or something so that there's another copy to use).


Cannot mount any file system/USB stick with Nautilus side bar after changing UID of my user

About an hour ago, I had the same problem. I changed my UID, logged out
and logged in. I stuck an external drive in the USB port and saw that it was mounted.

When I clicked on the drive icon on the Desktop, UBUNTU said that it doesn't know how to open the file.

You are lucky since the error message lead you directly to the problem.I am using
XUBUNTU 14.04, since I can't stand Gnome 3 and Unity. XFCE could be the reason for the different error message.

Anyway, after about an hour of googling and trying things with mime type handlers etc. I decided to see under which user UBUNTU was mounting the drive. It was 'root'. The external volumes are mounted under the folder /media/${USER}. In my case /media/${USER} had the owner:group root:root.

I changed it to

sudo chown -R ${USER}:${USER}

I restarted. Logged in and now it is working.

I hope it helps.


MS Support has responded to this error, and despite the response that the server side does not support SMB files that are not supported by Azure Files called SMB multichannel, the Linux Kernel further calls ioctl and Therefore, it turned out that this occurred because the server returned an error.

Reference: Features not supported in Azure Files
https://docs.microsoft.com/en-us/rest/api/storageservices/features-not-supported-by-the-azure-file-service


conflicting fb hw usage inteldrmfb vs EFI VGA - removing generic driver

I decided to post here because the solution was hard to find on the net
In Debian Jessie last update 8.9 (Sept 2017):
https://gist.github.com/Rambou/c6769caee19b0b9915d8342b86c3ef72

From the web site I just did the last part of #5

I had a problem with the nouveaufb driver.
Nouveau was the new comer installed by my migration towards UEFI and it was called on boot time making the boot console to stop
The most enoying problem was that I was not able to log in any terminal using CTL ALT F1 or F2 ... F6., but ALT F7 was bringing me back to the gui.
SO ..
 I did create a file in /etc/modprobe.d called blacklist-nouveau.conf .
The file name can be anything.conf as it is not relevant except for us "Humans"

So replace your conflicting driver name in accordance in the file.

# Blacklist-nouveau.conf list

blacklist nouveau

blacklist lbm-nouveau

options nouveau modeset=0

alias nouveau off

alias lbm-nouveau off

#END

The next command will create a new file called nouveau-kms.conf and push  a string into it.

sudo echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

After this you have to run:

sudo update-initramfs -u

Reboot

This solve this issue


MTA-sendmail stat=Deferred: Connection refused by X.X.X.X

You local (127.0.0.1) accepted email.
It failed to relay/forward it to 192.168.1.4:25.
Details: sendmail -v makes sendmail use VERB command in SMTP session.  When accepted it makes sendmail trace also trace "next hop" SMTP session
Most likely

your sendmail is configured to use 192.168.1.4:25 as relay for local emails
see lines starting with DH (MAIL_HUB) or DR (LOCAL_RELAY) in /etc/mail/sendmail.cf
something is botched in recognizing "this host email name"


I use Sparkleshare for that. Think of Sparkle as "auto git". All file modifications are committed and sent to remote. Works well, with the power of git version management you have full history. You'll need another system that allows ssh connections with sparkle also.

We tried a multiuser Sparkle and setup collapsed because one user anned a copy of a git project by accident and a mysterious recursion developed that filled up a hard disk.

No such trouble happened with one user setups.

We have also had good results with OwnCloud. Server side config is slightly more elaborate there. Behaves almost exactly like Dropbox for workstations.


Black screen after upgrading Xubuntu 19.10 to 20.04

If you can get the terminal up then enter
rm ~/.local/share/kscreen
sudo killall sddm

This black screen is legendary (in Kubuntu and Xubuntu) so guuggle it.
Check this solution to Kubuntu 15.04 it should work for you too.


First use ls /sys/class/backlight/ to see which video card is installed. In my case the above command showed intel_backlight. After this I did:

sudo touch /usr/share/X11/xorg.conf.d/20-intel.conf # create 20-intel.conf file`

sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf #open the file

and add the following lines to this file

Section "Device"
            Identifier  "card0"
            Driver      "intel"
            Option      "Backlight"  "intel_backlight"
            BusID       "PCI:0:2:0"
    EndSection

save and exit. Log out and log-in back.


After updating to ubuntu 18.04, I have had issues with sound in certain apps

This all boiled down to the fact that my laptop's hard drive was dying back then. It was slowly happening but it caused files to get corrupted and I lost tonnes of data. If anyone browses this question in the future, please please just back up your data immediately and get your hard disk replaced pronto.

For more information,see my profile and these questions:

A permanent fix that I can personally vouch for. Just ensure you have a warranty on your PC as I did.

A temporary fix as you are bound to encounter the same error when you restart your computer

I can't find the source anymore but if I do, I will link it.

These issues boil down to laptop manufacturer's using older parts in newer laptops.
My laptop is an HP Pavilion 15 inch model, and it was manufactured in 2016. However, the hard disk itself was manufactured much earlier. HDDs are known to be very delicate things and even though I took utmost care of my laptop, the hard disk just began dying. Do not despair and act immediately. The longer you delay it, the more the data you are bound to lose. In the final days of my laptop, I had to switch to Windows and use a tool to access my Ubuntu partition as the Ubuntu had stopped booting.


Changing to another distro: can the -home partition be kept?

Of cause it is generally possible. Just be sure not to format it during installation. But I advise you against doing this: later, many problems will surely arise:
Things to beware:

File access rights are stored not for user name, but for user id. Be sure your user has the same id on all OSes.
Some apps will go crazy. Especially if they are of different versions or do some sort of file indexing.
Some apps that use inotify are not ready for the fact they can miss some change in protected file.
Dosens of other.

What you should do is to keep all your files on a separate partition, but not to mount it as /home. Let every system have it's own /home on the root partition. Mount your files partition somewhere like /home/storage, as I do, or mount it into /mnt and symlink folders into every /home you have.


By default, apt stores the .deb files in /var/cache/apt/archives. If you can't find them here, you or someone else or something else(a software like Ubuntu tweak) may have run a clean-up command like sudo apt-get clean to clear up the .deb files. However, you can manually search all .deb files in your system by doing the following(may require superuser privileges):

sudo updatedb

This will update locate's database to search for newly created/removed files, this may take a while depending upon the difference in time when the last time updatedb was run(it is usually run as a cron job daily) and then

locate *.deb

which will search your / folder recursively for all files ending with .deb.


Not sure if your question is only for nvidia hardware, but I have an Intel Nuc (which containts basically laptop hardware) with the Intel HD 5000 GPU that has a mini display port, and this works perfectly using ubuntu 14.04.


How to increase the disk space of Ubuntu installed besides Windows 7?

If the moment you have to select whether to run Windows or Ubuntu, the title on top of screen says "Windows Boot Manager" than you probably have used Wubi and you should follow this link.

Try the above link and if it didn't work or you can't or don't want (no time or not interested) to understand what happens in the howto, I would reinstall Ubuntu with more disk space.

PS: Don't forget to save your data when you work with partitions!


How to update a machine from packages downloaded on a different but similarly configured machine?

This tutorial assumes you have access to another Ubuntu machine that is online, and Synaptic Package Manager is installed on both machines.

Open a terminal with Control+Alt+t and type

synaptic

This will open the Synaptic Package Manager if synaptic is not installed then run this command.

sudo apt-get install synaptic

You can browse available software in the column on the far left, or if you know specifically what you're looking for, type it into the search box.

When you find the software you want to install, right click it and select "Mark for Installation". If a dialog comes up "Mark Additional Required Changes" select Mark. This will ensure that all the packages required for the selected software get installed as well.

Once you've picked your software, go to File>Generate Package Download Script. Save the script to a USB flash drive or some other portable media. You can name the script whatever you want, but for clarity we'll assume you named it "download".

The Package Download Script is just a little text file (with a .sh extension) that will tell your online computer which packages to download, so you can transfer them to the offline computer.

Take the flash drive to your online computer. Create a new folder called "packages" in the home folder to hold the downloaded packages, and copy the script to that folder.

Open up a terminal on the online computer using Control+Alt+t, and type

cd package

Now type

chmod +x download.sh

And finally

./download.sh

This will download the packages to the folder containing the script. If you open the package in a file manager you'll see one or more files with the extension .deb. These are the software package files.

Copy the "packages" folder containing the .deb files to the flash drive and onto the /home folder of the offline computer.

Open up a terminal on the offline computer and type

sudo dpkg -iR packages

You'll be prompted for your administrator password, which will be the same as your user login password. Enter it and Ubuntu will install your software!

Tutorial by cortman is here: offline package install

Also:

Offline Synaptic Installation/Repository Updates
offline repository updates


As nobody seems able to answer, I'll post the replay I got from High Resolution Technologies:

  "We have never generated any Linux support documents but have many consumers reporting no problems with a Ubuntu installation which includes a Streamer.  All Music Streamer models use only native audio class 1.0 drivers which are present in all modern operating systems including all flavors of Linux."

I'll update once I get my unit and get some results.

Edit:
After figuring out that the unit starts muted by default it was plug and play.

There is a small LED on the front telling signal-rate and such, and this was indicating mute. I selected the HRT in Pulseaudio, then muted and unmuted sound and it played perfectly.


Can anyone tell me why I have this weird spacing in the terminal?

Try resetting your monospace font (the font used within terminals) to the default to see if it solves the problem.
Launch the Fonts setting from your menu (either Dash or main menu) and make sure Monospace font is set to Ubuntu Mono 13.


Find/generate standard PPD file when installing a printer from command line

This has been answered at:

How to add printer to my server and share it with no GUI?

You can use

lpinfo -m

To get a list of the all the ppd files available.

$ lpinfo --make-and-model "HP LaserJet P3010" -m
drv:///hpijs.drv/hp-laserjet_p3010_series-hpijs-pcl3.ppd HP LaserJet p3010 Series hpijs pcl3, 3.16.11
drv:///hpcups.drv/hp-laserjet_p3010_series-pcl3.ppd HP LaserJet p3010 Series pcl3, hpcups 3.16.11
postscript-hp:0/ppd/hplip/HP/hp-laserjet_p3010_series-ps.ppd HP LaserJet P3010 Series Postscript (recommended)
postscript-hp:1/ppd/hplip/HP/hp-laserjet_p3010_series-ps.ppd HP LaserJet P3010 Series Postscript (recommended)
postscript-hp:2/ppd/hplip/HP/hp-laserjet_p3010_series-ps.ppd HP LaserJet P3010 Series Postscript (recommended)

You can then directly reference the ppd in the list returned for your lpadmin command

lpadmin -p 'myprintername' -v 'smb://myserver/myprinter' -m 'postscript-hp:0/ppd/hplip/HP/hp-laserjet_p3010_series-ps.ppd' -L 'Printer location' -o 'HPOption_Duplexer/Duplex Unit=True' -E


Setting system-wide environment variable using /etc/environment

The /etc/environment file is not a script file: AFAIK you can't use export there and it doesn't support variable expansion of the type $HOME, just simplevariable=value pairs. So to use that file, you'd need to simply append your path to the existing definition, like

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/username/R/bin"

However, setting the system-wide PATH to include a user's home directory in this way is a questionable practice IMHO: the normal way would be to use one of the user's own shell startup files: ~/.profile is usually the recommended one for environment variables, however it has the disadvantage of only being invoked by login shells, so in order to get it to take effect you will need to log out and back in - or at least, start a new login shell e.g. using

    su - username

or

    su -l username

Note that sudo should not be used to edit these personal files, as it will likely leave them owned by root, which can cause further problems down the road. If you have already used sudo vim you may need to use sudo chown to restore their correct ownership e.g.

sudo chown username:username ~/.profile

Then you can add the desired path component using your preferred editor e.g.

vim ~/.profile

You could even consider copying the existing paradigm for ~/bin in that file i.e. add it as

# set PATH so it includes user's private R bin if it exists
if [ -d "$HOME/R/bin" ] ; then
    PATH="$HOME/R/bin:$PATH"
fi


Network problem after upgrading to Kubuntu 15.04

Ok, as Guest I am unable to edit my Answer so I put it in this post.
For me it worked out just typing:

sudo apt-get install -d --reinstall network-manager
sudo apt-get install -d --reinstall plasma-nm

Sorry for the Post before...

Cheers Kaitsh


How to install 'Doxie go' scanner in Ubuntu 12.04?

I used VirtualBox Windows and it worked well. Other option was to open it like a usb drive and copy the DC100 folder of image files across.

Having said that - It's flaky. I think OS upgrades have caused issues for USB devices. Even a 1tb external drive (USB3) was ignored by windows 7 all day yet Ubuntu was fine with it. My Brother print/scan device is also flaky on wireless, network, Xsane this last year.

I come back to 'Being too clever' for 2015 USB software as the common thread.


Backup and Disaster recovery moving from Windows XP

I have always just used rsync to backup my home directory to a NAS. I care only about my data. Installing Ubuntu and applications from repositories after a complete disaster is relatively easy anyway. You could consider using dd to copy the whole disk image if you wish, but I honestly think it's pointless in the Linux world.

Here are instructions (and a list of cloning software) for manual cloning:
https://wiki.archlinux.org/index.php/Disk_Cloning


Can I emulate graphical DOS applications inside a TTY?

Sure, with dosbox; enable the universe repository in Software & Updates then search it within Ubuntu Software Center, or run this command in a Terminal:

sudo apt-get install dosbox

Then switch to a TTY with, e.g. Ctrl+Alt+F1 and run it with this command:

dosbox


You dont have NM but you have network card.
First

ifconfig

to see interface name. To setup eth0 card use this command

sudo ifconfig eth0 xxx.xxx.xxx.xxx netmask zzz.zzz.zzz.zzz

after that add default gw

sudo route add default gw yyy.yyy.yyy.yyy

Try now to install NM with software manager
Also you can configure network card with editing /etc/network/interfaces

sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xxx.xxx.xxx.xxx
        netmask yyy.yyy.yyy.yyy
        gateway vvv.vvv.vvv.vvv

Configure dns /etc/resolv.conf

sudo nano /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

Manually restart your network interface with the new settings:

sudo /etc/init.d/networking restart


Try

sudo apt-get install ppa-purge

sudo ppa-purge ppa:wine/wine-builds

Source:

http://linuxdaddy.com/blog/install-wine-1-9-on-ubuntu/


Video LAG on Ubuntu 20.04 / Lubuntu 20.04 AMD Athlon 64 3200+ @ 2GHz

For such old timer machine, you better try anything based on Ubuntu 16.04 LTS. For instance, Linux Mint XFCE flavour.
I believe that newer kernel removed support for old Radeons such as RV370 in your case.
So it's GPU issue, not CPU.
Just try Mint 18.3 (latest in 18. series) and see if it works better, I had similar case.
https://www.linuxmint.com/release.php?id=31


E: Package 'libpng12-0' has no installation candidate (Ubuntu 17.04)

The repository in Ubuntu Zesty does not include libpng12-0. You have to download it from Xenial's repository. It will, in most cases, work smoothly.
libpng16-16 has a seperate folder for its program libpng16.so.16, which is different from libpng12-0 , which is libpng12.so.0, so having libpng16-16 installed will not at all do what libpng12-0 does.


Unable to use wifi card 16.04 MacOS dual boot

I have been looking for a proven reliable way to use the SD card as an apt repository and simply apt get install the driver. I have, so far, been unsuccessful. I propose another method that will get your wireless working now.

This method, although it is tedious, will work. The list of deb files you need is this: https://paste.ubuntu.com/p/GbZ689gYXw/

Create a folder on your desktop to hold the files. I suggest:

 mkdir ~/Desktop/debs

Browse the SD card and look in pool/restricted/b and find the deb package for bcmwl-kernel-source and drag and drop it to the debs folder.

Look in pool/main/b for build-essential; in pool/main/d for dkms and dpkg-dev; in pool/main/f for fakeroot and so on. Continue until every package on the list I provided is in the debs folder.

Now, back to the terminal:

cd ~/Desktop/debs
sudo dpkg -i *.deb

If all goes well, as I expect, at the end, load the driver:

sudo modprobe wl

Note that you will have to disable secure boot, if applicable.


Multiple versions of the same app on Ubuntu Software Centre?

MyApps isn't setup to handle the situation of separate binaries per arch/series.

I'd suggest just ensuring that all your binaries get to the reviewer and they'll handle uploading the correct binaries to the PPA for you (until myapps is updated to handle this situation).

Option 1: If your binaries are small, gzip them together to a single file and use the package upload field
Option 2: If they're large, it'll be easier to upload them somewhere else (Ubuntu1 or dropbox) and share them via a url, noting that in your myapps submission.
Option 3: (I need to check if this'd be OK, policy-wise) If your binaries will build fine on Launchpad's build service, create a PPA, find me on IRC (noodles775 on freenode) and we can privatise your PPA, then you can dput your source and have them built by LP for the distroseries/arches automatically.


Ubuntu 18.04 UEFI boot fails: "MokListRT: Out of Resources"

I have solved the problem by creating a new boot option, using grubx64.efi loader.

By default, there weren't any EFI loaders selected on the installation media, so that's why BIOS could have some trouble selecting the proper one.

For others strugglng with the same problem on a Dell Latitude, here it is a short guide:

Enter BIOS setup.
Select General > Boot Sequence on the left.
Ensure UEFI is selected and click Add Boot Option.
Enter some name and browse for grubx64.efi on the right file system (in my case it was FS1).
Click Ok, save the settings and that's it!


What's an alternative to Truecrypt with exact same feature set?

tcplay claims to be able to read/write Truecrypt volumes.  The package exists in the Ubuntu repository.  I haven't done much with it, but it did fail on my one attempt to open an old volume originally created by Truecrypt. Maybe the volume it too old, I will eventually create a new one and see if that is readable in tcplay.


They are two different things

When you see an FTP client like filezilla using the command 'open user@server 22' that is happening inside an FTP session - the terminal equivalent of that would be

$ ftp
ftp> open <user@server> 22

When you execute the 'open' command itself directly in the terminal, without starting an ftp session first, what you're actually getting is the openvt program - which tries to execute a command on a numbered 'virtual terminal' (hence the message about "getting a file descriptor referring to the console")

See man open and man ftp for full usage details


SIGTERM sends a signal to the command and will tell the command to stop itself. If there is a need to clean-up files due to the kill the command can do that.
SIGKILL sends a signal to the init system. The command itself does not get even told it is going to get killed.

So you can use both; but SIGTERM should be preferred (it is more graceful).

  Will “kill -SIGTERM” stop “tail -f”?

Yes, it will. On Linux tail acts on SIGTERM.


Why can't I install Windows 8 in Virtualbox on 12.04?

The solution appears to be:

In BIOS:

Enable VT-x
Enable VT-d

In Virtualbox with Win8 VM off:

Enable PAE/NX
Enable VT-x
Enabled Nested Paging

as well make sure you are using IDE instead of SATA....... T[m}


You need to install jdk not jre.

sudo apt-get update
sudo apt-get -f install openjdk-7-jdk


You may try - if this happens with your graphical tool, to abort and retry.

If you still hang: Abort and go to a shell:

 sudo apt-get update

and then

 sudo apt-get upgrade

I made the experience without understanding why, that it often works that way. In theory it should be the same.


How do I set the computer to suspend when battery is critically low?

To change this setting back to suspend, use dconf-editor. Go to org.gnome.settings-daemon.plugins.power and change critical-battery-action to suspend.

Alternatively, in a terminal session use the command:

gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action 'suspend'

The gsettings command is resident by default while dconf-editor requires installing via:

sudo apt-get install dconf-tools


Unresolved error with browsing a website : Error 404

After running this simple commands, the problem resolved.

firefox [URL]

chromium-browser [URL]


If you did choose this, and about 1GB is pretty optimal, it takes time to write out the updates so if it let you reboot or shutdown without delay I would be surprised if it wrote to 3GB. The thing is to keep your changes small and let the baseline do the heavy lifting so no wholesale apt-get upgrades. I can't tell you how to remaster the install either.

Go back and try again, and keep your changes small, and the space small and do not interrupt shutdown.

You may want to try one of the netbook remixes.


Can mount using mount but not using /etc/fstab

Entries in /etc/fstab normally have four to six fields; I'm not sure if omitting the third field (filesystem type) and fourth field (options) will work. Try

servername:/home  /mnt/home  nfs  auto

In fact one problem I can foresee is that since the filesystem type is not present, the boot scripts try to mount the filesystem too early. If you explicitly specify a network filesystem, that filesystem is mounted only when the network is up.


If you created additional synchronised folders on your first computer, you can synchronise them to the second computer using the control panel.

First choose Ubuntu One from the messaging menu (or search for it in the dash), and then check the Sync Locally? check box next to the folders you are interested in:

The folder should begin downloading from the cloud immediately.


How can I configure the guest user to only be able to run Firefox?

I'm not sure how possible your request is given the guest session is recreated every time as a "default new user"  I also don’t know a method of turning this behaviour off (hopefully someone else will come along and answer that piece)

A plausible workaround though, is to remove the Guest account and set up a new user account that you will have more control over to customise/configure the privileges how you like. You can even call this account. “Guest” (or give it another name)

To remove Guest account

Type into the terminal Ctrl-Alt-T

sudo gedit /etc/lightdm/lightdm.conf

This opens the lighdm config file simply copy and paste the following line then save and close the file

allow-guest=false

Then reboot

sudo reboot`

Now your Guest Account is removed navigate to

  System Settings > User Account and create a new account

before setting whatever privileges you need


You will have to install a Jave Developement Kit (jdk).  You can install the one from the repository with:

$ sudo apt install default-jdk

Or the Oracle development kit with:

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt install oracle-java8-installer

The Oracle installer is a ppa packaged by web8 to make the JDK from http://oracle.com easier to install for a novice.  The Web8 installer will also provide normal upgrade notices when there are updates.


Trying to upgrade R, error message refers to 'unmet dependencies'

For me the answer was trying another R mirror site. For some reason, the original site never worked and the error message didn't say anything suggesting this was the problem.


How can I make Unity 2D the default session at start-up?

when logging in there is a symbol in the top right of the box (usually a ubuntu logo unless using something else) click on the logo and then click ubuntu 2D , if you dont change this , you will always log into unity 2d


You did not write this anywhere it your post, but taggs say that you have an Nvidia graphics adapter. You can reinstall the driver from recovery console.

Boot using the last kernel in recovery mode. Then choose "root" from that menu. Then run:

mount -o remount,rw /
apt-get purge nvidia*
apt-get install nvidia-331
reboot

The system will reboot, and let's hope that it will start OK.
Be careful with commands.


There seems to be a compatibility issue with the particular versions of vagrant and virtualbox.

A workaround seems to be the following:

A.

cd /usr/share/vagrant/plugins/providers/virtualbox/driver

edit meta.rb and add

"5.1" => Version_5_1

under the line: "5.0" => Version_5_0, (should be around line 63)

B.

cd /usr/share/vagrant/plugins/providers/virtualbox/

edit plugin.rb and add

autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__)

under the line: autoload :Version_5_0, File.expand_path("../driver/version_5_0", __FILE__) (should be around line 58)

C.

cd /usr/share/vagrant/plugins/providers/virtualbox/driver

create a file named version_5_1.rb with these contents.

Hopefully this tackles the problem.


Where can I find Bluetooth Received folder?

They are in /home/username/Public (in Ubuntu 13.04).


Will upgrading to 13.10 screw up my graphics drivers, and if so what can I do before upgrading to avert it?

I have not yet run 13.10 but I suggest that you first test your hardware with a Live media (i.e DVD, USB,etc) to see how compatible it is.


Why am I not able to install a lot of programs from the software center?

Try switching the server you are downloading from Edit>"Software Sources."

For some reason I cannot connect property with the server in Canada so I have to switch to the main server and then everything works ok for me. That may or may not solve your problem but it is worth a try.


Can I make a live usb with 2 different versions of Ubuntu?

Depends on the drive.  some flash drives can be partitioned others cant.  I have installed grub to flashdrives with no issues before, a usb hdd is no problem at all to do that with. you can either make grub boot to a cd iso or boot to a full blown live distro on a flash/hdd.

It may be possible to make a virtual root disk image to boot to like a vmware vhd file but that would take a bit of work from what I read, if its even possible.

If you boot from cd image that file will be copied to memory so you would need a couple gb of ram. if the laptop has 2gb and the desktop 1.  you could make the usb drive 10.x for the desktop and use the cd image to boot the laptop if you cant partition it.


This question has been answered multiple times, here is an appropriate link.

On your behalf I have tried all answers in this thread on Ubuntu 16.10 and I have only had success with one. Unfortunately it's the ugly one.

Firstly, make sure the picture you want to use is in .png format, then open your terminal:

cd /usr/share/backgrounds
sudo cp /directory/path/to/my/picture /usr/share/backgrounds
sudo mv warty-final-ubuntu.png warty-final-ubuntu2.png
sudo mv 'my-picture-name.png' warty-final-ubuntu.png

Then log out to see your new login wallpaper.


I just realized lock and suspend are two different things in Ubuntu 18.04.

One may disable the lock here:

But still enable suspend here:


Why is ssh session still active if I've "killed" the ssh server?

Because the users connections run in different processes. It is quite useful feature.

It prevents your from locking yourself out of your server with a bad configuration
It is much more fail-proof: Failure of a single (user) process does not kill all the other connection
It gives much better performance than a single process handling all the connections
It is much more secure: the users are really separated to different processes.

This is common practice to write TCP servers this way. It is a bit different than Apache for example, which is spawning several workers, that are reused for subsequent connections.


Build deb package version with command line option

I've ended up doing this using - sudo dch -v "${version}" -D "trusty" "all latest updates"


How to Fix Could not open input file in php CLI 7.0

You run php files files by invoking the interpreter which is php.

So in your example it would be:

php file.php

You can also have a look at the php which you have available:

update-alternatives --list php

This also shows you the direct path to all your php version which you can also use to run your php scripts.

Also make sure you have read rights on that file as the user you run php with.

chmod a+r file.php

You can alternativly also add a shebang to the php file. In the first line of your file add this:

#! /usr/bin/php

Then make the file executable and run it without php.

./file.php


You can check these sites for your machine :

Linux Hardware Compatibility Lists & Linux Drivers
Linux on Laptops

You should also check this similar question on SuperUser.


I solved by installing these libraries:

$ sudo apt-get install libglu1-mesa:i386 libxcursor1:i386

You can print shared library dependencies with:

$ ldd SUPERHOT-LINUX.x86


qBittorrent problem after upgrading to Ubuntu 16.04

There is a new file saving arrangement in place for the Xenial version of qBittorrent that you should accept by selecting 'OK'. On some occasions the transition has not been working and this is a bug that can then be bypassed by upgrading your version of qBittorrent (this bug having been fixed in the neweste version).

Upgrade your copy to the latest version of qBittorrent by using a PPA that is owned by one of the qBittorrent developers. Run the following from within a Terminal screen:

sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
sudo apt-get update
sudo apt-get install qbittorrent

Then open and close Dash, and again open Dash and you should now see the very latest qBittorrent (3.3.5) with the bug no longer present:

Then you will always have the newest stable version from the developer's own PPA. An added bonus with using this PPA is that you will now easily be able to get the latest version of qBittorrent as soon as it is released by the developers and then placed on this PPA...

References:

qBittorent: Warning of file saving changes...


Play songs in the file system queue only once?

Unfortunately, there is no way to do this (currently). Your best bet is to report a bug on Banshee's bug tracker, requesting that the behavior be changed.

The only other option is to select "Stop when finished" from the Playback menu and then manually chose another track after the song finishes.


Disabling middle button on Apple Magic Mouse

This mouse has the following buttons in this order: Button Left, Button Middle, Button Right, Button Wheel Up, Button Wheel Down, Button Horiz Wheel Left, Button Horiz Wheel Right. They can be manipulated with xmodmap. See "man xmodmap" for details.

To disable the middle click, create a ~/.Xmodmap file with this line:

pointer = 1 0 3 4 5 6 7 0 0 0 0 0 0

log out / log in to enable it.

If you want to reverse the scrolling direction (up with down and left with right), then change it to:

pointer = 1 0 3 5 4 7 6 0 0 0 0 0


It does not seem to have pt, I see currently de the only one available beside en.

Launchpad source package: https://launchpad.net/ubuntu/+source/nis
Debian package tracker: https://tracker.debian.org/pkg/nis
Upstream project site: http://www.linux-nis.org/

Check upstream site, Send an email to maintainer, telling him that you are going to translate it to pt. (I couldn't find any upstream source repository, he may point you to it).
Either through source repository cloning or downloading last release source archive, copy .pot files, rename them to pt.po then translate them.
Send him back the translated ones.

It will take a while before translations land to Debian then Ubuntu and any other distribution.


libv4l2: error turning on stream: Invalid argument VIDIOC_STREAMON: Invalid argument

This occure when camera is not released by your program - for example when you kill it using Ctrl + C. You can use custom way to exit camera reading loop - for example wait for Esc:

while (1) { // camera loop
    cap.read(frame);
    ...
    (frame processing)
    ...
    if (waitKey(20) == 27) { // wait for 'Esc' key press for 20ms
        break; //  if 'Esc' key is pressed, break loop
    }
}

Or better, you can catch Ctrl + C (SIGINT signal):

bool stop = false;

void sigIntHandler(int signal) {
    stop = true;
}

std::signal(SIGINT, sigIntHandler);

while (!stop) { // camera loop
    cap.read(frame);
    ...
    (frame processing)
    ...
}

See: Signal handling in C++ reference


First Time Ruby Jekyll Bundler Setup on 16.04 - multiple bundlers installed

I think you used sudo apt install ruby to get ruby in your system.
Which unfortunately is outdated and not the best way to use ruby.

Try completely purging your current ruby and re-installing it using either rvm or rbenv

You'll find a step by step guide here.

PS: You should never run bundler as ROOT, Completely removing all gems from system.


Yes! To do this you have to boot into the live CD and in the installation GUI you have to select "Something Else" option when it asks you how to install. After that you can modify your drives and partitions to your liking. That's the safe way.  You can also do it the easy way by select the option to replace your existing OS.

Like This


How to drop a table within a database in a single line, scheduled from crontab?

Solution: Changed the syntax to:

30 22 7 8 * mysql --host localhost --user root --password="<passwordWouldBeHere>" -D Factions -e "TRUNCATE TABLE stats;" ;

Also decided to truncate instead of drop.


Missing icons in dropdown menus in Eclipse

I just had the same issue in Eclipse Indigo in Ubuntu 11.10. Ubuntu Tweak did the trick for me.

Just go to Tweaks > Miscellaneous > Menus have icons

I also enabled Buttons have icons for good measure.

Before:

After:


Ubuntu loading screen stuck, how to recover from this situation?

It's very hard to tell anything without knowing the output.
You can try choosing older kernel (maybe kernel update caused this), by selecting "Advanced options for Ubuntu" in Grub menu at the beginning (if Grub menu doesn't appear, hold Shift while booting).

Much better will be access kernel boot options by pressing "e" and remove "splash" and the "quiet" entries from the boot parameters to make Ubuntu display the output during boot and read what the error is.
To get logs of this, you need to access your hard drive from LiveCD or LiveUSB and take logs from /var/log, e.g.:

/var/log/boot.log
/var/log/dmesg

Using LiveUSB, You can also rescue your data to another computer.

There is a lot of questions on Ubuntu boot, so knowing the output, you can google for your error.


Ubuntu Live USB won't boot, "Failed to load COM32 file menu.c32"

After doing some digging, it seems like this is a fairly common problem for some folks who try to create a Ubuntu Live USB with Unetbootin. The bug hasn't been fixed yet, but luckily there is a workaround.

You'll need:

A working computer with Ubuntu already installed
1 minute of your time

The workaround:

Plug your created Live USB into a computer with Ubuntu already installed.
Navigate to /usr/lib/syslinux/bios/ in your file manager (in some installations the path you need is /usr/lib/syslinux/modules/bios/).
Select the following three files: libcom32.c32, menu.c32, and libutil.c32.
Copy (not cut) the above files over to the root directory of your Live USB drive.
Unmount the USB drive, and you're good to go!

This solution was based off a blog post found on AjoPaul.com

Alternative Workaround From the command line:

After you install Ubuntu 14.10 to your USB drive, run the following commands:

cd /usr/lib/syslinux/modules/bios/
cp libcom32.c32 /media/path/to/usb/drive/
cp libutil.c32 /media/path/to/usb/drive/
cp menu.c32 /media/path/to/usb/drive/


How to make Ubuntu server terminal have the same font and colour scheme as Ubuntu desktop's terminal?

When you log in to a tty this is a login shell, so it sources, ~/.profile or if it exists, ~/.bash_login or if it exists,  ~/.bash_profile (usually only ~/.profile exists in Ubuntu).

~/.bashrc is sourced by interactive non-login shells (terminals you open in a desktop environment)

Here are aliases present by default in Ubuntu (desktop) for colours in terminals:

alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

These are found in .bashrc If they are not present, you can add them there.

To get the same settings as .bashrc in a login shell (tty) you should make sure that .bash_profile or .bash_login or .profile is sourcing your .bashrc by putting something like this in your .bash_profile or .bash_login or .profile, if it is not already there:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

The font is a different matter:

sudo apt install fonts-ubuntu-font-family-console

Then add this line to the end of the same file (.bash_profile, .bash_login or, most likely, .profile)

setfont /usr/share/consolefonts/UbuntuMono-R-8x16.psf

To use it immediately, you can source .profile (or whichever file you put it in), otherwise, it will be changed on your next log in.


Why is my samba4 [homes] share not browsable?

If you are trying to browse them from the samba server then the problem is the lo interface binding.

Using interfaces = lo,eth0 will only bind 127.0.0.1 and eth0 IP. For some reason loopback access is done via 27.0.1.1.

Either add 127.0.1.1/8 to interfaces or remove bind interfaces only = yes

interfaces = 127.0.1.1/8 lo,eth0
bind interfaces only = yes


How do I delete cached password for encrypted volume?

Launch Password and Encryption Keys from the Unity dash. Try to find the stored password matching your USB drive, right click and delete it.


From your question, it is not fully clear if you need to be inside the directory of CMDexecutable (and thus cd first) or if the full path would do, but the only option I see is to add the script to the sudoers file, as described here.
Then you can run the script with sudo, without having to enter the password.
You can simply run the (python) script then by the command
sudo <script>

as said, without being prompted for the password.
(Very) important note
It is quite evident that you need to store the script in a location where it can not be edited without sudo privileges. Since the script can run without entering the password, you need to be sure its content is not changed by any other process or possibly malicious code.
Furthermore, (might be superfluously, but since I do not know the exact context) for the same reason, you need to make absolutely sure that the CMDexecutable and everything it runs is no possible target for "malicious alterations".
Edit
Since you mention you cannot change the initial command to run your python script into a sudo command, you could do the following:

Inside your python script, create a command to run a secondary script, run with sudo:
  sudo <script>

Add this secondary script to the sudoers file, to run without password. This way, the python (main) script will run the command without having to enter the password.

I'd like to stress however that this seems patchwork, and I have no insight in possible security risks. Make anyway sure all files, run from the thread of the first sudo command "tree" are no possible targets for malicious editing.


Any way to open / convert Canvas drawing files on Ubuntu?

I did an internet search for canvas cvs file format -csv and that led me to https://www.canvasgfx.com/en/support/product-support/supported-file-formats/.

The latter link lists a long variety of image formats that Canvas X 2019 can use as export options. Many of those formats are compatible with software available in Ubuntu.

If possible, you could try to find a Windows machine with Canvas installed and export your images in a format that Ubuntu can use.


Keep Ubuntu from auto starting applications at boot

It depends on the app that you started. Sometimes an app has its own setting that says "Start every boot". It would help to know which app it is, as every app works differently with the system.


Can't change desktop resolution - "Size 1920x1080 not found in available modes"

This is what I found in the Ubuntu wiki:

Adding undetected resolutions

Due to buggy hardware or drivers, your monitor's correct resolutions may not always be detected. For example, the EDID data block queried from your monitor may be incorrect.

If the mode already exists, but just isn't associated for the particular output, you can add it like this:

xrandr --addmode S-video 800x600

If the mode doesn't yet exist, you'll need to create it first by specifying a modeline:

xrandr --newmode <Mode``Line>

You may create a modeline using the gtf or cvt utility. For example, if you want to add a mode with resolution 800x600 at 60 Hz, you can enter the following command: (The output is shown following.)

cvt 800 600 60

`800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
 Modeline "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -
 hsync +vsync`

Then copy the information after the word "Modeline" into the xrandr command:

xrandr --newmode "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync

After the mode is entered, it needs to be added to the output using the --addmode command as explained above.

https://wiki.ubuntu.com/X/Config/Resolution


How to alter the password for www-data user?

To change another user's password, use:

sudo passwd <username>

So:

sudo passwd www-data

Though I don't see why www-data should have a password.


NFS partition not mounted automatically at boot time anymore

As proposed by @AlaaAli, I just needed to add user to the option of the mount in the etc/fstab:

192.168.1.100:/volume1/Downloads        /home/pierre/Downloads_NAS      nfs     rsize=8192,wsize=8192,timeo=14,intr,user

Now the partition is automatically mounted when needed.


Not able to switch users while resuming from suspend on a Dell Inspiron X8300

It just so happened that it had nothing to do with suspend. The problem was I could switch user from my main account, but I could not switch back.
The other account had some grahpics issue for which I decided to remove the ATI drivers installed with 11.10 and downloaded & installed the lastet driver from ATI/AMD which seemed to solve my problem


How can I change ubuntu 16.04 LTS wallpaper to a custom image?

Just Rightclick on any image and "Set as wallpaper"


A BU-353 should work out of the box with gpsd.  But you have a a few things going on,

the first item is systemd is in charge of launching an instance of gpsd. Until it is turned off (sudo service gpsd stop) you will be chasing your tail.
-F Creates a control socket for device addition and removal commands.  It must be a valid pathname on your local filesystem. It is doubtful your control socket would possibly be the USB gps you're trying to read. Typically the control socket is /var/run/gpsd.sock but could be /tmp/anything
you need to have write permissions to open the control socket. sudo gpsd -N -D3 -F /var/run/gpsd.sock works, while gpsd -N -D3 -F /var/run/gpsd.sock will fail because non-privileged user cannot write to the control socket. Likewise, gpsd -N -D3 -F /tmp/when_pigs_fly should work. (But, none will work if a gpsd is already running.)

Additionally you must consider additional instructions in /etc/default/gpsd For example,

# Default settings for the gpsd init script and the hotplug wrapper.

# Start the gpsd daemon automatically at boot time
START_DAEMON="true"

# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="true"

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyACM0"

# Other options you want to pass to gpsd
GPSD_OPTIONS=""

These are introduced in /lib/systemd/system/gpsd.service as an EnvironmentFile

The first line is useless.  systemd is in charge and does not fork off the process.  It runs with the -N flag.

I set USBAUTO="true" because gpsd's use  of udev and hotplugging is fairly transparent-.  Plug in something that's a gps and it works.  If it's not gps, it minds it's own business.

But I do code in the location of a gps that I'm currently working with.  Because, stopping/restarted gpsd without rebooting, the gpsd won't 'know' about the gps at /dev/ttyACM0 (or wherever it is) without a hotplug event.  I code in the location to not have to un/plug the gps every time I restart gpsd without a reboot.

Other GPSD_OPTIONS= could include -n -G or -b at your discretion.

Additionally, there are other test clients (xgps) that are more robust for checking gps output, but that should get you pointed in the right direction.


How do I get a Canon ImageRunner Advance C2020i working?

Using the default Ubuntu 12.04 driver for the C2550 works perfectly and does not require to install any other software or driver. Color printing works.

Full driver name: Canon imageRunner C2550 Foomatic/pxlcolor


You are mixing up copy/paste in terminal and in vi/vim.

When you mark a word in the terminal, it is automatically copied, never mind if you are in vi or an other app, or just have some output from a command or even text you have written yourself.

In vi you copy with the y (yank) operator:

yy copy whole line
yw copy word (from cursor position til next whitespace.
y<space> copy character

And paste with the p and P operators. Read the vi manual page for full documentation.

Also you could maybe use a graphical editor like gedit.


The first thing you should do, is to replace all the /dev/sdxx-es with UUIDs. Then you'll want to convert those disks to images. That's very easy:

dd if=/dev/sda of=filename_for_sda.raw. DD stands for Carbon Copy, except that cc was in use by the C Compiler, so they used dd instead. ;) anyway, it takes an input file (if) and copies it to an output file (of). Do not confuse them. Do this for both of your disks, and you'll have a file called "filename_for_sda.raw" and "filename_for_sdb.raw". These are exact representations of the harddisk, including the boot sector, partition tables and everything. So, if you had two disks of the same size you wanted to clone, you could just do dd if=/old_disk/ of=/new_disk.

Now that you have raw images for your disks, you should be able to just add them to most VM solutions and use them. You'll just need to configure it to boot from the correct disk. There are tools to create more fancy types of images, and they should support converting from raw images, as that's the most basic type of image you can get.

dd will copy everything byte for byte, so if you have lots of empty space on the disks, it's not the most efficient solution. rsync might be a good option.


I've figured out just now.

The Messaging Menu actually changes its appearance when an application becomes active. For example, if Facebook is kept active for a while and someone interacts with you (by liking your post, comment or messaging you) the Menu envelope will become blue.


Difference between menu shutdown and 'shutdown -h now'

The shutdown menu item requests the graphical system to shutdown cleanly. Programs that have files to save, for example, have an opportunity to ask the user what to do.

shutdown -h now (synonym: poweroff; see also reboot) merely sends signals to all running programs. They don't have a chance to query the user if they have unsaved files. However, sending the poweroff command will work in more situations because of this.


How to change the default save location for Firefox bookmarks?

There doesn't seem to be a built-in method for doing that.
But you can just drag and drop the page title from the tab to the Bookmarks Toolbar.

source


If you want to see the source for Linux executables, install the apt-src package (sudo apt-get install apt-src), and read man apt-src. Then you can use apt-src to get the source for ANY Ubuntu package.


It looks like a routing problem.

You should try 'route -n'.

It will show you're routing everything through the VPN.

Then adapt your routing table.


I had the same problem in Ubuntu 12.04 with GNOME. Indeed it could be fixed with compiz:
enable "Place Windows" in Category/Windows Management.


How to download multiple files using a script

wget is the command line utility you want:

wget -r http://tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2/

It downloads everything in:

http://tinyos-main.googlecode.com/svn/tags/release_tinyos_2_1_2/

and all subdirectories - folder(s) and file(s) - in release_tinyos_2_1_2/

Further Reading:

GNU Wget 1.15 Manual: Top

Home Page:

GNU Wget


Ubuntu Server 12.10 3g modem connection established but not used

Ok, found it. The command for setting default routing interface is:

$ route add default dev %interface_name%

The issue with setting PPP interface as default is that this should be done after the interface is up which can take some time. So as the solution i created an Upstart task which runs after everything else is done and sets the default interface


remove TornTV on 12.04LTS and install Clamtk

You can run dpkg -l | grep -i torntv in the terminal (Ctrl+Alt+T) to find the exact name and location of the package.

I'm guessing TornTV installed in your Wine environment, so you can try to uninstall it with "Uninstall Wine Software", which can be found by Search in the menu.


How to create a URL link on the Unity desktop

The old GUI dialog is still available if you still want to use this:

Using ALT+F2 type

gnome-desktop-item-edit --create-new ~/Desktop

This will launch the old GUI Dialog and you can create a shortcut on your Desktop:

Prerequisites

gnome-desktop-item-edit is installed automatically if you have installed gnome-shell/gnome-fallback.  It is also installed automatically if you have previously installed gnome-tweak-tool.

Alternatively, you can install the old gnome-panel without much of the bulk:

sudo apt-get install --no-install-recommends gnome-panel

Linked Question:

How can I create launchers on my desktop?


Can I delete older systemd-private-md32* files in/var/tmp?

These are the effects of a PrivateTmp setting in a service unit.  You will find that your rtkit-daemon.service and colord.service units employ that very setting.  For why that is, you will have to consult the people who wrote those service unit files.  PrivateTmp is after all a band-aid to cover over security holes left by the ways that some programs use /tmp and /var/tmp (excessively privileged use, failure to avoid symbolic link attacks, overwriting anybody's existing files, easily predictable names, excessively open permissions, and so forth).  Maybe the security hole has been fixed.

PrivateTmp is implemented, under the covers, by systemd creating a nonce directory under the target temporary directory, and then mounting it in place of the original as a private mount point seen only by the service process(es).

Leaving such directories lying around used to be a systemd bug, that people worked around with tmpfiles.d snippets of their own.  It is claimed to have been fixed in your version of systemd.  Of course, these directories also get left around by dirty shutdowns.

You can, of course, delete the ones that aren't currently being used by the relevant services.

Further reading

Accumulation of /var/tmp/systemd-private-* directories.  Fedora Bug #884344.
Andrei Borzenkov (2015-02-23).  Maybe SOLUTION, re: back to the 'fix this eternally broken temp file cleanup service' debate.  OpenSUSE mailing list.


17.10 Mouse can't click on Gnome Elements, Keyboard Misbehaving

Summary for anyone having the same kind of problem: Most likely it's a driver issue, so run

sudo ubuntu-drivers autoinstall

in a terminal.

In Assistive Technlogies, Mouse Keys On means you can use the number block + another key I'm not really sure of to do the mouse's job, but in the act you disable the number block as such.


Ubuntu 12.04 apt-get installs older version of software

No, unless you manage to locate a PPA that has more up-to-date versions in it for 12.04 (my cursory check did not find any such PPA). The reason for this is most likely that the dependencies are different in 14.04 (more up-to-date); it is also possible that the package maintainer simply isn't bothering to build packages for older versions of Ubuntu.

If you greatly desire to run v0.1.11 on Ubuntu 12.04, you can try downloading and installing the source code. Upon initial inspection of the README.txt in the source code archive for 0.1.12b, it appears that the installation is simple and does not even involve compiling code. Simply download the package from the following link, extract the files, then pop open a terminal and follow the instructions for installation (found in README.txt):

vcftools 0.1.12b download

Hope that has been helpful,

MG


How do I autostart an application on the system tray?

The preferred option

If an application offers the option to start up in tray, no doubt that is the preferred option.

If not however, you either need to edit the application's code and recompile (not the most obvious option), or you need to "repair" the behaviour of the startup procedure. A slightly edited version of this script can do the job in that case.

About this answer

I am deliberately ignoring the line in your question:

"not closing these applications to the system tray"

Since closing the window after it came into existence, leaving the icon in tray, simply is the only option we have. Effectively you won't notice the difference however.

Explanation

The script starts up the application, running the command you gave as first argument.
Then the script checks the window list (with the help of wmctrl) for windows, with the pid of the application you started.
If the window appears, it is immediately closed gracefully, with the help of the wmctrl command:

wmctrl -ic <window_id>

The result:

without a transmission (in this example) window at all. Obviously the image is from Unity, but it works the same on lxde.

To prevent an endless loop if the window might not appear for some reason, the script practices a time limit of 30 seconds for the window to appear.

Note

No need to mention that the script will only startup the application in system tray if the application has a system tray icon, else it will simply close the application completely if ist only window is closed.

The script

#!/usr/bin/env python3
import subprocess
import sys
import time

command = sys.argv[1]
command_check = command.split("/")[-1]

subprocess.Popen(["/bin/bash", "-c", command])

t = 1
while t < 30:
    try:
        w_list = [l.split() for l in subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8").splitlines()]
        proc = subprocess.check_output(["pgrep", "-f", command_check]).decode("utf-8").strip().split()
        match = sum([[l[0] for l in w_list if p in l] for p in proc], [])
        subprocess.Popen(["wmctrl", "-ic", match[0]])
        break
    except (IndexError, subprocess.CalledProcessError):
        pass
    t += 1
    time.sleep(1)

How to use

The script needs wmctrl:

sudo apt-get wmctrl

Copy the script into an empty file, save it as run_intray.py
Test- run the script with the application as argument, e.g in the transmission example:

python3 /path/to/run_intray.py transmission-gtk

If all works fine, you can add it to Startup Application, but note that you most likely will have to add a small break before the command, for the desktop to build up completely first:

/bin/bash -c "sleep 15 && python3 /path/to/run_intray.py transmission-gtk"


My struggle with Adobe Flash EXE files as a new Ubuntu User

This is my new, applicable, answer.  The old answer pertained entirely to difficulties running wine.  This new answer pertains to the actual problem.

The problem you are having centers entirely on a misconception you appear to have that to install anything under Ubuntu you should be using .exe files.  You should not.  files ending in .exe are for windows and DOS and have only particular uses in Ubuntu such as making programs like microsoft word run under Ubuntu (which is easy using winetricks), but I digress.

For what you are trying to do you should not use anything ending in .exe  If you are, you will only end in failure.  For several months, certain youtube files requiring flash have been having difficulty running under Ubuntu, and several of us have tried various solutions, up to and even including installing firefox for windows under Ubuntu.  I did it, and it didn't solve the problem.  What did work for me was to install the Google Chrome Browser, but in no way am I suggesting that's the only solution.

Installing Chrome -detail:
To install the version of chrome which successfully opens flash videos without difficulty, please open this link and follow the instructions.  Please note, it will pop you back to the Ubuntu Software Center which IMO you ought to be using instead but sadly does not otherwise support this version of chrome at the moment.

Standalone flash player:
In your most recent comment (at this moment) you seemed to indicate you wanted a standalone flash player.  This one is the best I can do at this moment.  I do not believe that installing one made for windows using wine will prove more successful.