How do I change default terminal for executing .desktop files?

muru helped me clarify what was going on, thank you! The problem was that my .desktop file:

[Desktop Entry]
Name=Vim
GenericName=Text Editor
Comment=Edit text files
Comment[es]=Edita archivos de texto
TryExec=vim
Exec=alacritty -e vim %F
Terminal=true
Type=Application
Keywords=Text;editor;
Icon=gvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;

Had the argument Terminal=true. What this does is that it executes the Exec= command in a terminal, opening a terminal to do so. If you set Terminal=false this will prevent any terminal from opening and it will just execute the command without opening the terminal.


You can change the color of your man page by adding following line in your .bashrc file.

man() {
    env LESS_TERMCAP_md=$'\e[1;32m' \
    man "$@"
}

Here LESS_TERMCAP_md is for man bold letter. (man by default uses less to display page.)

Replace the color code \e[1;32m with desired one. you can find these color code here


Open a terminal window and type the c key by itself. Does it show c or ^c in the terminal window?

If it shows ^c then you've got a stuck CTRL key on your keyboard, or a defective keyboard.

Update #1:

Firefox was installed and doesn't exhibit the problem. The problem is with Chromium or its settings.


16.04 Freezing after login(except guest session)

A last resort, when something within your home directory has been messed up, but you don't know what the problem is, is to rename it and create a brand new home directory.

Assuming that your username is moss, running these commands from a TTY would do it:

cd /home
sudo mv moss moss.old
sudo mkdir moss
sudo cp -rT /etc/skel/ moss
sudo chown -R moss:moss moss

That would allow you to log in to your user account from the login screen.

Then you could copy/move cherry picked contents from /home/moss.old.


Instead of executing it with

sh script.sh

execute it with

bash script.sh

(or add #!/bin/bash as the first line to set the interpreter).

The sh shell in Ubuntu is not bash, but a separate shell called dash. dash does not have as many features as bash, which makes it more efficient, but these missing features sometimes break scripts intended for bash. One such feature is the  $UID variable, which is not defined in dash.

This means that when the script is executed in dash, the comparison will become ["" != "0"], which evaluates to true no matter what user is running it. However, if it is run in bash with root permissions, the strings will be equal, and the script will work.


Can't enable UFW on remote server - it blocks SSH no matter the config

I am currently having the same issue. For now, I did this as a workaround.

ufw default allow incoming
ufw deny 1:21/tcp
ufw deny 23:65535/tcp


How do I install and use flashcache/bcache to cache HDD to SSD?

There is a conversion tool for enabling bcache on an existing device (disclosure: I wrote it).  It's also the way to go for fresh installs, since current distro installers don't know how to create bcache devices (in which case: start by installing to the HDD).

See converting your root filesystem to bcache in the blocks README for instructions.

bcache requires Linux 3.10 or newer, which is in saucy, and can be manually installed from
http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=M;O=D (look for the newest tagged release, currently v3.11.5-saucy, and install the debs that match your architecture).

bcache-tools and blocks can be installed from my storage ppa.


How to disable gnome-screensaver with a remote control?

The problem is that your remote only sends keycodes like any other keyboard. Thus, pressing keys on the remote will trigger the user authentication instead of what you want.

A simple workaround is to stop using the screensaver when the computer is idle. Instead, use power management to turn the screen of. It will solve your problem, and save the energy wasted on displaying the screensaver. When you want to explicitly require authentication, use the Lock Screen function.

To disable the screensaver, open System->Preferences->Screensaver and untoggle Activate screensaver when computer is idle. Note the time set under Regard the computer as idle after:

To turn off the screen instead, open System->Preferences->Power Management and enter the time you noted in Put display to sleep when inactive for: .

Now you should be able to continue using your remote when the screen is in power-save mode.


No trash in the Server version. The rm command deletes it.


GUI option:
Open Settings and navigate to the "Dock" section (or the "Appearance" section in later releases). You'll see a slider to control the size of icons in the dock.

(screenshot source)
CLI option:
Launch a Terminal window and run the following command
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size <VALUE>

for example
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 24


use dd Cloning Tool and Ubuntu installed on usb for upgrade or downgrade Ubuntu

You can clone from the iso file to a USB stick and use that USB stick to boot Ubuntu live and install Ubuntu into the internal drive.

dd is a cloning tool, but it is risky because it does what you tell it to do without any question. If you tell it to wipe the family pictures it will do it. A minor typing error may create chaos. You must be very careful, check and double-check that everything is correct before you press the Enter key.

Instead I recommend a tool with a final checkpoint,

in Ubuntu 16.04 LTS and newer versions: Startup Disk Creator alias usb-creator-gtk
in Ubuntu 14.04 LTS and newer versions: Disks alias gnome-disks
in Ubuntu 12.04 LTS and newer versions and other main linux distros: mkusb
in Windows: Win32 Disk Imager
in Windows: Rufus - an extracting tool and a cloning tool
in MacOS: Unetbootin - an extracting tool (not a cloning tool)


You are seeing the text of your index.php rather than running it because apache is not running. Try

sudo systemctl restart apache2.service

More documentation on running apache can be found here.


How setup samba share only readable by a certain domain group?

Am ok so.......

sudo apt-get update and then sudo apt-get install samba
cd /etc/samba then sudo cp smb.conf smb.conf.back (to backup...just in case :) )
sudo nano smb.conf, yes as the guide says go to that line with WORKGROUP = and type the name of your workgroup, then go to the bottom of the page and add your shares as example:

[ share name ]

path = /home/user_name/Public  # or whatever.
guest ok = yes  # SPACE is important so don't do guestok=yes
read only = yes  # or "no"

save and exit

Then the service part:

sudo service smbd restart (restart the service)
sudo ufw allow samba  (tell the firewall to allow samba)


I have two different desktops with which I use dual monitors*.  One has a nVidia card, the other has AMD Radeon.  Both work very well, although the nVidia was far easier to get working.  (Note, my nVidia desktop is running 10.04, the other is running 11.10)

Unless you're doing pretty intense video editing or gaming, the specific model of card isn't all that important.  Things to look for:

Has the output connections you want to use.
Has enough memory to support your desired total resolution.

*I only have room for 3 monitors on my desk, so I don't actually do both at the same time...

Just looked it up: my computer has a "nForce 750a SLI" graphic chip with 512 MB of RAM.  This is actually integrated into my motherboard, so I can't recommend a specific card model.


This seems to be a known bug:
http://code.google.com/p/chromium/issues/detail?id=124569

A workaround that did it for me, was starting chrome with this command line parameter:
--disable-accelerated-compositing


Package mirroring: Are there similar packages to ttf-mscorefonts-installer in the archives?

While I was searching for more names—flashplugin-installer and some other *-installer packages—I found that these packages depend on wget. Obviously.
So I ran the following command with this result (alphabetically sorted) on a 20.04 installation:
$ apt-cache rdepends --no-recommends --no-suggests --no-enhances wget | grep -v wget:i386
wget
Reverse Depends:
  abcde
  abi-monitor
  apf-firewall
  apt-mirror
  bladerf-firmware-fx3
  bladerf-fpga-hostedx115
  bladerf-fpga-hostedx40
  bladerf-fpga-hostedxa4
  bladerf-fpga-hostedxa9
  cloud-image-utils
  cltl
  cpanminus
  cpl-plugin-amber-calib
  cpl-plugin-fors-calib
  cpl-plugin-giraf-calib
  cpl-plugin-hawki-calib
  cpl-plugin-muse-calib
  cpl-plugin-naco-calib
  cpl-plugin-uves-calib
  cpl-plugin-vimos-calib
  cpl-plugin-visir-calib
  cpl-plugin-xshoo-calib
  dahdi-dkms
  debian-cd
  debootstrap
  diaspora-installer
  dillo
 |di-netboot-assistant
  disc-cover
  dphys-config
  ebook-speaker
  firehol-tools
  firmware-b43-installer
  firmware-b43legacy-installer
  firmware-microbit-micropython-dl
  flashplugin-installer
  fonts-mathematica
 |foomatic-db-engine
  freedombox
  geographiclib-tools
 |gkrellweather
  google-android-build-tools-17-installer
  google-android-build-tools-18-installer
  google-android-build-tools-19-installer
  google-android-build-tools-20-installer
  google-android-build-tools-21-installer
  google-android-build-tools-22-installer
  google-android-build-tools-23-installer
  google-android-build-tools-24-installer
  google-android-m2repository-installer
  google-android-ndk-installer
  google-android-platform-10-installer
  google-android-platform-11-installer
  google-android-platform-12-installer
  google-android-platform-13-installer
  google-android-platform-14-installer
  google-android-platform-15-installer
  google-android-platform-16-installer
  google-android-platform-17-installer
  google-android-platform-18-installer
  google-android-platform-19-installer
  google-android-platform-20-installer
  google-android-platform-21-installer
  google-android-platform-22-installer
  google-android-platform-23-installer
  google-android-platform-24-installer
  google-android-platform-2-installer
  google-android-platform-3-installer
  google-android-platform-4-installer
  google-android-platform-5-installer
  google-android-platform-6-installer
  google-android-platform-7-installer
  google-android-platform-8-installer
  google-android-platform-9-installer
  google-android-sdk-docs-installer
  googleearth-package
  hplip
  hyperspec
 |ieee-data
  jigdo-file
  kinect-audio-setup
  ktoblzcheck
  libcupt4-2-downloadmethod-wget
 |libdvd-pkg
  libskypat-dev
  luarocks
  maas-enlist
 |megadown
  mythtv-backend
 |opam
  openrocket
 |origami
  osmctools
  pcb-rnd-cloud
  pepperflashplugin-nonfree
  perl6-zef
  perlbrew
  plait
  playonlinux
  podget
  pokemmo-installer
  primesense-nite-nonfree
  prism2-usb-firmware-installer
  publicfile-installer
  python3-curtin
  quake3-data
  rfcdiff
  rinse
  rocksndiamonds
  rrdweather
  runescape
  screenbin
  sdic-gene95
  simple-cdd
  snmp-mibs-downloader
  ssh-import-id
  susv2
  susv3
  susv4
  svn-buildpackage
  ubiquity
  ubuntu-standard
  virtualbox-ext-pack
 |winetricks
  wmfrog
 |wsl
  zomg

To avoid installing a package I pin them on the client machine, like so:
$ sudo cat /etc/apt/preferences.d/restricted-extras-blacklist
Package: ttf-mscorefonts-installer
Pin: origin *
Pin-Priority: -1

One could inspect every of those packages listed above, some are just fine like ubuntu-standard, identify external sources and mirror these too if required or just block them.


You can use rufus USB installer. (https://rufus.akeo.ie/)

Worked for me and runs on Windows.

Edit:
Google helps a lot here:

Step by Step http://bootableusb.net/install-windows-ubuntu-usb-drive-using-rufus/

The iso:

This of course depends totally what System you want to install. For Ubuntu find it on http://ubuntu.com/, lubuntu would be on http://lubuntu.net, xubuntu on http://xubuntu.net, .....

Never had problems with Rufus so far .. make Shure you start Rufus with the USB already connected
There is a known issue with some USB sticks refer here: https://github.com/pbatard/rufus/issues/134


Automatically switch keyboard to match language of surrounding text

Ubuntu is an operating system, it manages your software, your files, your internet connection. An operating system doesn't have a particular natural language associated, it rather has an interface that can be rendered with multiple languages. Ubuntu is perfectly able to manage multiple keyboard layouts, but the concept of "surround text" does not apply to an operating system or its interface.

The request you make only makes sense within a particular text editing program such as gedit. The best thing to do is contact the support of the particular software.


This is normal. You have to install the GUI with:

sudo apt-get update && sudo apt-get install ubuntu-desktop

after logging in.

If you like you can have more desktops like kubuntu,Lubuntu,Xubuntu also.

all you need to do is just replace ubuntu with kubuntu in the above command and so to get those GUI's.


vim unable to write to files even though sudo is used

This is the intended behavior of vim (and vi).

When you edit a readonly file, attempting to write the file the usual way (with :w) fails. This is to prevent you from accidentally changing a readonly file you might not wish to change.

If you really want to override the readonly permissions on a file that you own, and write your changes to the file, you must use the :w! command so vim knows this is what you want.

This is similar to how :q will not quit if there are unsaved changes, but :q! will.

If you want to write any changes and quit in one command, you can use :wq! or :x!.


18.04 LTS upgrade has stopped WOL (wake-on-LAN)

I suggest that you create a new file:

sudo nano /etc/rc.local

Add three lines:

#!/bin/bash
ethtool -s enp1s0 wol g
exit 0

Save and close the text editor. Now do:

sudo chmod +x /etc/rc.local

You should be all set.


How can I search the internet via unity dash?

Install the DuckDuckGo Unity Lens !
I think it is perfectly what you are searching for. You will get three scopes: Results, Related Searches and Related Topics.

To install it, type the following commands in a terminal:

sudo add-apt-repository ppa:w-vollprecht/ppa
sudo apt-get update
sudo apt-get install duckduckgo-lens

More details on http://www.iloveubuntu.net/unity-duckduckgo-lens-released-ppa-available


Fortran runtime error: No space left on device while running a GAMESS calculation

I'm guessing that your application fills up your /, and notices it's out of space, deletes the files and exits.

The output you provide shows that it writes to /tmp, which is on the root file system, where you have approx. 6 GiB free.

You should look into how much space the software you're running needs, and if the location of temporary data can be changed, say to /home/username/tmp, where you have over 400 GiB free.


Can I run Ubuntu One in a Ubuntu Server environment?

Yes, you can.

You can find in this answer how to do this:


Keyboard backlight sensor doesn't work on a Sony Vaio VPCS116FG

I finally managed to get the thing to compile by making one slight adjustment to the compile file:

Line 16 reads:

$CC $CFLAGS $LDFLAGS $DEFINES -o $OUTPUT $SRC_DIR/*.c

Change it to:

$CC $CFLAGS $DEFINES -o $OUTPUT $SRC_DIR/*.c $LDFLAGS

Alternatively, you can issue the following two commands right before running ./compile:

echo -e "16c16\n< \$CC \$CFLAGS \$LDFLAGS \$DEFINES -o \$OUTPUT \$SRC_DIR/*.c\n---\n> \$CC \$CFLAGS \$DEFINES -o \$OUTPUT \$SRC_DIR/*.c \$LDFLAGS" >compile.patch
patch compile compile.patch


I recommend to install xserver-xorg-video-radeon, the driver works great in trusty

sudo apt-get install xserver-xorg-video-radeon

xserver-xorg-video-nouveau mentioned in this answer is a driver for NVIDIA.


ubuntu core webdm alpha for Beaglebone Black not booting

It seems uEnv.txt (on your SD card) is wrong. Change ${bootpart} to ${mmcdev}:${mmcpart}, i.e.

# where to load initrd
initrd_addr=0x88080000
# load Snappy environment and call into Snappy boot after processing this file
uenvcmd=load mmc ${mmcdev}:${mmcpart} ${loadaddr} snappy-system.txt; env import -t $loadaddr $filesize; run snappy_boot

This should fix the error "File not found snappy-system.txt" and allow U-Boot to continue.


Ubuntu crashes every time I connect the computer to HDMI

Install the proprietary drivers from Nvidia, since using proprietary drivers will most likely give you a boost and probably fix your issue.  I don't know a lot about Nvidia since I am an AMD user, but at least for me, installing the proprietary drivers fixed all of my issues.


Use timedatectl:
sh@balrog:~$ timedatectl
                      Local time: Tue 2021-05-25 12:41:55 CEST
                  Universal time: Tue 2021-05-25 10:41:55 UTC
                        RTC time: Tue 2021-05-25 10:41:55
                       Time zone: Europe/Berlin (CEST, +0200)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no


how to recover my installation after accidental removal of important packages

Most stable way (and fastest in this situation) is to make a clean install, so make a new ubuntu live USB.

If you have a dedicated partition for /home, launch the installer. In disk and partitions setup, choose 'other' and manually select the partition for / and /home. Eensure that the installer will format / partition only.

If you have one partition only, launch live USB choosing try ubuntu. On desktop, open file manager and navigate to your /home directory. Display hidden files, press Ctrl+A and copy everything to another USB (or you can just use Gparted to shrink your current partition and create a new one for /home).


Ubuntu 14.04 system hangs after installing pam module for ldap client with intel_rapl: no valid rapl domains found in package 0

The system is not hanging. Just wait for a few minutes and the boot will continue. When booted into the system, edit your /etc/modprobe.d/blacklist.conf and add blacklist paevm to the bottom of the file.


Where's ATLAS installed on Ubuntu 18.04 Mate on ARM CPU?

You should consult with output of APT on the local system

dpkg -L libatlas-base-dev

or use search on packages.ubuntu.com.

But better way is to use pkg-config as libatlas-base-dev have two related files:

/usr/lib/x86_64-linux-gnu/pkgconfig/blas-atlas.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/lapack-atlas.pc

So you can use pkg-config --libs --cflags lapack-atlas blas-atlas to get libraries names and include-paths.


How to bring back auto scroll in Chrome?

There is an Autoscroll extension:

After adding the extension, you might have to restart Chrome for the function to kick in.

Note that Chrome will, by default, continue running even if you have closed all open Chrome windows.

Make sure you have completely closed Chrome by checking that there is no Chrome icon in the top panel and/or that there are no Chrome processes in System Monitor.

Then, re-launch Chrome, and the extension will be working.


Unable to delete files from drive in Banshee

That does seem strange behavior, especially as banshee handles ipods pretty well.

As a temporary fix you can use gtkpod (in the software centre). This is probably the most comprehensive ipod handler for linux. From here you should be able to delete files and/or repair the library.

If this doesn't work, there are (quite complicated) ways of restoring your ipod on linux, but I suggest you just find a friend with itunes and do it on there.


At this moment there is only few support for USB. If there will be more in future, isn't clear yet. See USB device support in Wine.

If there will be more hardware support in general is also clear: No.
wine is a compatibility layer on the linux kernels layer. See Can I use Wine to install drivers for my hardware?


MTP not working on Cyanogenmod OS 11(Yureka Playgod) with Ubuntu 14.04

There are a couple of tools that provide possibility to mount MTP devices in Ubuntu.

I may recommend you to follow this this guide.

As alternative, I may propose you use to use Airdroid software - you'll receive possibility to connect your Android phone directly to PC via WiFi.


Insert your USB drive, run lsblk, and note the device location. It will be something like /dev/sdb. DO NOT MAKE A MISTAKE HERE.

Run:

$ sudo dd bs=4M if=/path/to/ubuntu-10.04.iso of=/dev/sdx && sync

Replace x obviously. This works only for Linux Live USB.

Boot from this drive and install.


Can't understand behaviour of sed command

It's not best practice to use the same file as both input and output. What happens is that the shell (bash) opens and truncate (the > in your command) the file before sed reads it.

So sed 's/foo/bar/' test > test.out would be the right way of doing it.


Can not use Vodafone Connect Pen K3806-z (12.04)

Actual support for that was added in 3.11. This means at least Ubuntu 13.10.


Multiple keyboard shortcuts for same command

Stephan's Answer which is quoted in Lambart's answer was updated and now has a very interesting side-note:

  I also found out that the GUI that allows you to assign keybindings is
  limited in a way that annoys me. The GUI allows exactly ONE keybinding
  to be assigned to each action. In dconf, you can set an array of
  bindings for a single action.

Quick research lead me to Ubuntu's Wiki:

  The keybindings that are handled by the window manager support
  multiple keys that will perform the same action. The
  gnome-control-center GUI does not support it, but you can make it work
  using dconf-editor. For example to have "Close window" use both the
  traditional F4 as well as an easier to hit Pause/Break button,
  change org.gnome.desktop.wm.keybindings close to ['Pause', 'F4'].

Anyway my attempt to set volume control  to CTRL+SUPER++  and my laptop's media key via

gsettings set org.gnome.settings-daemon.plugins.media-keys volume-up ['<Primary><Super>KP_Add', 'XF86AudioRaiseVolume']

results in an error for invalid value while wrapping the array in quotes does not trigger an error but assigns no function to any of the keys neither. (I assume Ubuntu 12.04 might not having received an update in this regard).


How can I know my memory's "actual frequency" in ubuntu?

The only component in your computer that knows about the overclocking is BIOS. dmidecode retrieves its data from BIOS, which tells you that the DIMMs have a nominal speed of 2400 MT/s but are configured to run at 3600 MT/s.

lshw prints the data that the components report themselves. Since the DIMMs don't know they are overclocked, they report their nominal speed.

Therefore, I'd say the DIMMs are overclocked.

There is a Q&A over at serverfault regarding benchmarking RAM. I'm not sure whether the answers provide reliable results, though.


Count down to Line 57 of the /etc/apt/sources.list file, and just delete it from the file.

In order to modify the file, remember you'll need to open it as root with the following command:

gksudo gedit /etc/apt/sources.list

After bringing this file back to normal, run:

sudo apt-get update


You can use make install as root.

sudo make install

Or if you prefer to make a .deb, use checkinstall

sudo apt-get install checkinstall
sudo checkinstall

This converts the source code into a .deb and installs it. It can later be removed with any package management (apt-get, dpkg, synaptic, package manager, etc).

See:

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

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


Can't use Volume Keys but I can use brightness keys on Lubuntu 16.04

If 2 out of 4 work, you are 50% ahead of many users.:)

First, find out if your keys are recognized at all. Open a Terminal and run this program:

$ xev

Then hit some keys. If your keys are recognized at all, then when you press them, some complicated messages will appear. Try keys that work "a", for example, then your ones that don't work.  If the system shows the keys are alive, then you have the problem of connecting those keys to the sound controller.

If the keys don't have any effect, my experience tells me that you OS might be installed with the wrong keyboard layout.  The keys are not working because, well, the OS does not know they are there. You can fix that deep in the guts of the X11 configuration, but it seems to me that has become a lost art and the default Ubuntu install doesn't even create an X11 configuration file anymore.

I'm using Ubuntu 16.04 with XFCE, in the menu under Settings -> Keyboard -> Layout, there is a place where you can go looking for layouts. Maybe you won't find one that looks more like what you have, but maybe you will.

I remember a program in the olden days that you  could use to choose a layout. It would show its picture of what it thinks the keyboard ought to look like. The screen keyboard would light up, to let you test how it saw the keys.  We needed that when as student came from Germany with a keyboard that had about 5 keys we had never seen before.  I can't find that program now, but maybe some other reader will know if Ubuntu has it.

This page has most of the same ideas I would guess, but it was written quite a while ago. I did not hear of keytouch before, but it still exists in the repository and maybe it will help

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


Use top or htop to see what process ID is at 100%. You could try installing ltrace and run ltrace -p <PID_at_100%CPU> to trace its library calls. If you see a particular string or function reappear, search for that string in your .zshrc and plug-ins.

(I've experienced this high CPU but I'm using an advanced prompt, pure, so my issue probably isn't yours.)


Unable to access “44 GB Volume” Error mounting /dev/sda2

If it's a hardware error and the data is important to you, then you should stop using it immediately and send it to a company that specializes in harddisk recovery. The more you use it, the more you increase the chance that it won't be possible to retrieve information from it.

If you really want to try it yourself, I would suggest that you try ddresque. This will read and re-read your disk, trying to copy as much data as possible from it to a file. It may be that this is enough to get a perfect copy, but if it doesn't, ibas.no has a good tool for recovering files from damaged disks/file systems.

Before you try using ddresque, you should read its manual: http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html


Trouble installing MongoDB from debian wheezey repository on Ubuntu 15.04

Okay, I think I found the problem. I completely recreated the problem you were having and then fixed it.

Run the following commands one-by-one to fully fix this issue. When you are done, the problem should be fixed and mongod will be up and running:

sudo rm /etc/init.d/mongod
sudo apt-get purge mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools syslog-ng-mod-mongodb
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get clean
sudo apt-get update
mkdir mongodb;cd mongodb
wget http://repo.mongodb.org/apt/debian/dists/wheezy/mongodb-org/stable/main/binary-amd64/mongodb-org_3.0.5_amd64.deb
sudo apt-get install gdebi
sudo gdebi mongodb-org_3.0.5_amd64.deb

Select Y to install and then press enter.

sudo service mongod start
sudo systemctl status mongod

The output should show the service is active


Got unknown content type (null) from reviews.ubuntu.com on ubuntu 17.10

I have the same problem. First update your softwear and then Enable Canonical Partner repositories. You will do that on this way: go to Activity Overview by pressing Super Key (Windows key), and look for Software & Updates, then open it and under the Other Software tab, and check the all option.It will ask for your password and update the software sources. It worked for me.


Bluetooth not working on Xubuntu 12.04.03 (WiFi/Bt combo: qcwb335)

I did not understand the question. Bluetooth problem or Wifi?

For bluetooth try

sudo apt-get install bluez-gnome bluetooth gnome-bluetooth

and then (sleep 5s && bluetooth-applet) &

For wifi, Use ethernet, connect your PC to the router via a cable, then go to settings manager -> additional drivers -> install whatever Wifi driver you see, not the default one :)


Enabling Hibernate option on XUbuntu 18.04 LTS

You must reconfigure your system to add Hibernation. It is not part of the standard configuration, and does not work with all PC hardware.

First, hibernation requires increasing your swap space to preserve the system state. See column three at https://help.ubuntu.com/community/SwapFaq#How_much_swap_do_I_need.3F

Next, Secure Boot must be disabled in the PC's BIOS.

Then, take a look at https://askubuntu.com/a/821122/197910 and how to add it to the Action Buttons.

Please also note Hibernation can be troublesome on a dual-boot machine. Hibernation locks out write access to files; if you Hibernate out of an OS, the other OS can't reliably access the files of the first OS.


What possibilities to use Flash will be there after EOL?

So, using the link provided by @wraith3690-001 I am able to answer my own question :)
According to this guide (I recommend to download it for reference before Flash EOL), the Flash player itself will block content after EOL date. To work around this, one needs to create a file /etc/adobe/mms.cfg. Right now, if you put a line EnableAllowList=1 into that file, you can basically get a simulation of what will happen after EOL date (as according to the guide, this setting will be enforced automatically after EOL). What will happen is that instead of Flash content, the Flash player displays an icon which, when clicked, leads to the Adobe Flash EOL information page.
To allow Flash content to run, you need to put in the /etc/adobe/mms.cfg file lines specifying which sites Flash player is allowed to access, in the following form:
AllowListUrlPattern=http[s]://site.domain/
If you want to specify both https and http for a site, you may put two lines for https and http, or you can use the following shortcut:
AllowListUrlPattern=*://site.domain/
You may also specify something like AllowListUrlPattern=file:/// for local files, although it looks superfluous because Firefox does not support playing local Flash files via Flash plugin anymore, and standalone Flash player (I also suggest to download it from Adobe while it's available) seems to always run file specified by command line or menu option regardless of EnableAllowList setting.
You can also put EOLUninstallDisable=1 into /etc/adobe/mms.cfg file to suppress prompts to uninstall Flash that are mentioned on the Flash EOL page.
To keep Flash software for later reinstallation there are two options:
a) the flashplugin-installer package which probably most of us use now:
The package can be downloaded from http://archive.ubuntu.com/ubuntu/pool/multiverse/f/flashplugin-nonfree/ (the current version as of this writing is flashplugin-installer_32.0.0.414ubuntu0.20.04.1_amd64.deb). However, this package contains actually (according to it's name) only the script that installs the plugin. The actual Flash software is downloaded during installation of the package from http://archive.canonical.com/pool/partner/a/adobe-flashplugin/. As of this writing, the current filename downloaded is adobe-flashplugin_20200811.1.orig.tar.gz.
If the latter won't be available for download, the installation of the package will likely fail. I suppose, however, that if you put the (previously saved) .tar.gz file into a correct directory before installing the package, the installation may succeed. However, I don't know what that correct directory is - I'm still investigating...
b) the alternative is to use adobe-flashplugin DEB package, which may be downloaded from the same location http://archive.canonical.com/pool/partner/a/adobe-flashplugin/ (current filename is adobe-flashplugin_20200811.1-0ubuntu0.20.04.1_amd64.deb). Looking at it's contents, it installs the plugin without downloading any external files.
For running local .swf files, I also strongly suggest to download the standalone Flash player from Adobe as said above.


Xserver/Xorg is broken, fails to load default video configuration

Boot into recovery mode.

https://wiki.ubuntu.com/RecoveryMode

Get a user or root shell, and run :

sudo apt-get install --reinstall gdm

and reboot.


Mass/Batch renaming text files based on the first line (content) of the text file in Ubuntu 20.10?

To rename all the files at once, use head to get the first line in the file and mv to rename the file with a for loop like so:
for f in *.pgn
    do
    f1=$(head -n1 "$f")
    echo mv -n "$f" "$f1"
    done

Run the above from within the directory containing the files to see a dry-run (no actual renaming will happen).
When satisfied with the results, remove echo to do the actual renaming like so:
for f in *.pgn
    do
    f1=$(head -n1 "$f")
    mv -n "$f" "$f1"
    done

Notice:
The first line in each file must be unique or otherwise some files will get overwritten. That is why I added the option -n after mv to prevent that.
If however the first line in each file is not unique, you can make mv append numbers to the new file names if they already exist by using the option --backup=t after mv like so:
Change this line in the above code:
echo mv -n "$f" "$f1"

To this:
echo mv --backup=t "$f" "$f1"

echo is there to protect your files from unintentional change while testing the code and to give you a dry-run of what will actually happen. Remove echo for the actual renaming to happen.
Also note that the actions of the mv options (-n or --backup=t) will not be reflected in the output while echo is used but will take effect when echo is removed.
One more thing is if the first line in the file contains slashes / this is not acceptable and will result in an error so you need to redefine the variable $f1 and change them to underscores _ by adding this line to the code after f1=$(head -n1 "$f"):
f1="${f1//\//_}"

The final working code that can take care of duplicate file names and slashes is this ( be careful this will rename files immediately not a dry-run):
for f in *.pgn
    do
    f1=$(head -n1 "$f")
    f1="${f1//\//_}"
    mv --backup=t "$f" "$f1"
    done


I think your win8 install put the win8 bootloader in sector 0 (the so-called
MBR = master boot record,) and destroyed your grub loader there.

There is a story on linuxbsdos.com  (google dual boot win7 linux)
that may help you fix the windows boot-loader to boot your ubuntu system
if you can get grub written in your ubuntu boot directory. (This
will be chain loading from windows to grub.)

One good thing is that since your hp dv6 is pre win8, you probably
do not have an uefi bios that would cause a lot of trouble.


Is it possible to run 16.04 and 18.04 side-by-side?

Yes, on different disk partition.
Technically yes, but it can be dangerous, because it contains also settings for software. It can cause problems if different versions of the same program are on different OSs.
There is workaround explained here in the first post where is created folder with home folder content and then this folder is accessed from second OS.


This post had the same problem as mine.
I downloaded the extra drivers from my phone and installed it and after a reboot, its working now.


Ubuntu 19.04 VNC stuck after login screen of LightDM

I had the same problem with Ubuntu 18.04.
The solution was creating /etc/X11/xorg.conf with:

Section "Device"
   Identifier "Configured Video Device"
   Driver     "dummy"
   VideoRam   40000
EndSection
Section "Monitor"
   Identifier "Configured Monitor"
   HorizSync 22-83
   VertRefresh 50-70
   Modeline     "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync
EndSection
Section "Screen"
   Identifier "DefaultScreen"
   Monitor    "Configured Monitor"
   Device     "Configured Video Device"
   DefaultDepth 24
   SubSection "Display"
       Depth 24
       Modes "1920x1200"
   EndSubSection
EndSection


Automatic sending of windows to virtual Desktop 2 in plasma

System settings --> Windows Behavior --> Window Rules -->
1)  Window Matching -->
    1.1) Windows Class --> Substring Match --> libreoffice
    1.2) Windows Title --> Regular Expression --> Writer
2)  Size and Position --> Desktop --> Force --> Desktop 2


After upgrading to Ubuntu 18.04, Shortcut Keys don't work

About the "Shortcut Keys don't work" part..
I had a simmilar issue after upgrading to Ubuntu 18.04 :
-   Ctrl+Alt+T didn't work
-   lock screen ( Ctrl+Alt+L ) didn't work
-   media keys didn't work

Here is what worked for me:

I installed "compizconfig-settings-manager"
I opened "General" -> "Commands" and activated the check box on the left "activate commands" and then clicked "Back"

At this point the shortcuts started to work again.

Hope this helps somebody.


How to tell which device the USB drive is assigned as?

Simply use lsblk output options to find it out:

lsblk -o NAME,TRAN

which produces:

sda                    sata
├─sda1
└─sda2
sdb                    usb
└─sdb1
sr0                    sata

You can also use other options to get extra information (e.g: SIZE).
If you want a nice clean output use -S:

$ lsblk -So NAME,SIZE,TRAN

NAME   SIZE  TRAN
sda    400G  sata
sdb    16G   usb
sr0    1024M sata


Is it possible to dual-boot chrome OS and Ubuntu?

Chrubuntu is a true dual boot and loads that way. Chrubuntu no longer works and will not be updated. It's potentially dangerous to install Chrubuntu on Chromebooks with newer models of Intel processors.

Crouton runs side by side with Chrome OS. Crouton is the better choice if you're not familiar with Ubuntu and just need a separate OS to launch some apps you need. You can run a music player app like Rhythmbox in Crouton and then switch back to ChromeOS in a matter of seconds for quick seamless browsing while it plays. Crouton also has less potential problems with glitchy device drivers for Chromebook hardware than Chrubuntu.

chrx is a currently maintained project for dual booting various Linux distributions alongside ChromeOS. The default distribution is GalliumOS. GalliumOS is derived from Xubuntu and developed specifically for compatibility and optimized performance on Chromebook hardware. The downside of chrx is that it doesn't support ARM processors and firmware updates are required or recommended for newer models of Intel processors, so it's also more dangerous than Crouton.


Ubuntu 14.10 problems with no mousepad gestures

what is your laptop brand and model and what does it say when you run the command :

  xinput

I have an asus x450ln and cannot use gestures too, I think it has something to do with focaltech touchpads not being supported in linux yet, I get a "logitech ps/2 mouse" instead.


Ubuntu 12.10 Broadcom Wireless Complete System Freeze

Thanks, Web-E, for the link.

Solution found:

Unload brcmsmac, bcma modules
Completely uninstall bcmwl-kernel-source
Install b43-fwcutter
Install bcmwl-kernel-source

To be clear, this works with the Broadcom BCM43225 wireless adaptors.

There appears to be something broken around the brcmsmac module, causing a system-wide freeze.


Can I make icons smaller on a bq Aquaris e5 Ubuntu Edition?

I just went through the entire ubuntu-phone mailing list if anyone ever brought up making icons smaller and: nope …

Sorry to be the harbinger of bad news!


Preserve Monitor Settings on Xubuntu 18.04

I was able to fix it myself. Instead of using Xfce's display configuration, I unchecked the box that said "Configure new displays when connected."

I opted instead to use autorandr.
To install it, simply follow the README instructions

Save your current display configuration and setup with:
$ autorandr --save mobile
Connect an additional display, configure your setup and save it:
$ autorandr --save docked

Now, your display should automatically configure depending if a monitor is connected or not.


Can I change LXDE default file browser to

Look Manual Method section of Ubuntu Documentation.
Probably you should only edit ~/.local/share/applications/mimeapps.list file. Add two lines:

inode/directory=nautilus-folder-handler.desktop
x-directory/normal=nautilus-folder-handler.desktop

If there already is line as

inode/directory=pcmanfm.desktop

just remove it.


If you really need to verify that the address is valid you need to send a message, and get an appropriate response.   This is commonly done by embedding a link to a web page which completes the address verification.

Verifying addresses prior to actual delivery can be unreliable.

Many servers will detect hosts are verifying addresses and begin falsifying results, or start classifying their email as spam.
Other sites accept all mail to their domain and simply drop invalid addresses.  The ratio of dropped addresses to real addresses can be used to classify the sender a spam sender.

Checking that the domain portion of the address has an MX is a good validity check.  A few valid email addresses may have an A record without an MX record, but most of these domains will be invalid.  The syntax of the user portion of the address can be validated.  A simple syntax check works in most cases, especially if you limit only accept the routing portion of the address.   Addresses like "Some user" <someuser!host#otherhost@example.com> are more difficult to handle.

I have run a periodic validation script on user's email addresses.  This did do validation by connecting to the mail server and validating the recipient.   This was done with a limited set of domains from a trusted domain.   Some domains had to be handled as special cases as they would give high rates of false positives or false negatives.   In either case, the validation call-out was disabled for that domain.


I would like to add that display-setup-script=/path/to/some/script goes into the [Seat:*] ([SeatDefaults] in older versions) section of /etc/lightdm/lightdm.conf.

I use the script to setup the correct resolution and screen orientation for the greeter. This looks like:

xrandr --output DVI-0  --mode 1920x1200 --rotate left --primary
xrandr --output HDMI-0 --mode 1920x1080


How to configuring PAM to use different language / locale settings

With a self written PAM-Module

.
.
/* Convert charset */
iso2utf((char*) pUsername, (char*) &szuser, sizeof(szuser));
iso2utf((char*) pPassword, (char*) &szpass, sizeof(szpass));

/* Setting pam items */
pam_set_item(pamh, PAM_USER, (char*) &szuser);
pam_set_item(pamh, PAM_AUTHTOK, (char*) &szpass);
.
.

it works fine:

#
# Then PAM configuration file for the Shadow `informix' service
#

# Informix user + password conversion
auth    sufficient      informix_pam.so

# Disallows other than root logins when /etc/nologin exists
auth    requisite       pam_nologin.so

# LDAP authentication
auth    required        pam_lsass.so try_first_pass


Can't install on an Asus EEE PC 900 due to udev timeout error

Try to remove external sdcard.
Try to insert flash drive in other usb slot.
Try to user other usb drive.

Way 1. and 2. work for me.


Ubuntu iso image - different size when downloading via torrent or from ubuntu.com

You are probably referring to the formal size limit for Ubuntu releases. On paper, the release ISOs may not be larger than 1 GB. But in reality, the last few releases did not observe that limit and were larger. The ISO image for the desktop edition of Ubuntu 16.04 is around 1.4 GB to 1.5 GB, so your number sounds about right. The ubuntu-16.04.1-desktop-amd64.iso.torrent should be the correct one. There already is a discussion to raise the formal size limit. For further information, see for example this article.


Open the Ubuntu Software Center
Make sure the Canonical Partner software source is enabled:

Select "Software Sources" from the Edit menu. A dialog titled "Software and Updates" should be displayed
On the "Other Software" tab of the Software and Updates, make sure the "Canonical Partners" software source is checked. Click Close, and enter your administrative password if prompted to do so.

Back in the Ubuntu Software Center, you should see an "In Progress" indicator if you had to enable the Canonical Partners software source. This operation is querying the new software source; wait for this operation to complete before proceeding.
When the operation is complete, type "skype" into the search field in the upper right-hand corner of the dialog. Select the first hit ("Client for Skype VOIP and instant messaging service") and click the Install button. Enter your administrative password when prompted to do so.

Once the installation process is complete, Skype should be available from the Unity Dash or the Applications menu under the Internet submenu.


I just went through the setup process for the 14e4:4727 adapter using the second answer of the question you linked to. The brcmsmac driver should be install by default, as you said. What you'll need to do is remove the other drivers like this:

sudo apt-get remove --purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source

and reboot, after that it should work!

I also read around about editing /etc/modprobe.d/blacklist.conf to disable the other drivers, but I didn't think this configuration was worth it since I won't be changing my wireless network adapter hardware configuration any time soon.

EDIT: I expanded on this answer to build the right strategy to get this to work.


An L2ARC failure shouldn't affect a ZFS pool content.

All data read from the L2ARC is checksummed so in case of any invalid data or missing data, ZFS fall back to retrieving the data on disk blocks.

However, depending on the kind of failure and the times spent by the drivers or the hardware to assert there is actually a failure, there might be a significant time lost.


how to install swichable radoen hd 6470M drivers for ubuntu 12.04 LTS

These instructions have worked well for me:
http://ubuntuforums.org/showthread.php?t=1930450


can I install ubuntu for tablet on my galaxy tab 2 and where can I get it

I believe everything you need to know is here http://www.ubuntu.com/tablet

The Ubuntu version for tablet is not out yet but is looking for developers seen as Ubuntu is open source.


First, revert the changes you made at sites-available.

Enable userdir module: sudo a2enmod userdir, and restart apache: sudo service apache2 restart.

Now you can access the files in /home/<username>/public_html through http://1.2.3.4/~<username>/.

For example:

http://your.host.name/~user1
http://your.host.name/~user2


Avoid copying current directory but files only via sftp

Try

echo 'put -rp /home/rof/clone/dist/*' > put.txt

this will echo all underlying directories and files

If you just want files, do

echo 'put -rp /home/rof/clone/dist/*.*' > put.txt

Dont mind the formatting. I'm on mobile.


sorting a list keeping one entry from each duplicated line

You want the uniq command.

From man uniq:

 Filter adjacent matching lines from INPUT (or standard input), writing to OUTPUT (or standard output).

       With no options, matching lines are merged to the first occurrence.

Use it as follows:

uniq movies.txt

Output as desired.


Broken packages and how to deal with them

As the apt-get check output suggested, please run

sudo apt-get install -f

That should automatically install all required packages to fix unmet dependencies.


Can I use my laptop as a second monitor for my desktop?

I'm afraid you cannot simply connect your laptop to your desktop as if it was a TV or desktop monitor, because laptops generally only provide video outputs but no video inputs.

One might be able to pull something like that off by using a complex setup of Xdmx, synergy and probably some virtualisation/remote access software or protocols (e.g. spice) to get a virtual second screen on the desktop and to display it on the laptop (and access the laptop from your desktop via synergy). Of course this also comes with a huge computing overhead.

I don't know of any hardware solutions that would allow something like that, but I guess they would be almost as expensive as another desktop monitor.


Is there anyway to fix this wine problem?

Right click the setup.exe and on permissions tab, tick execute checkbox.


edup ep-n8531 wireless usb nano adapter driver install

You will never get this old package, circa 2011, to compile properly on Ubuntu 13.04. If you want to try a newer, not older, driver, I suggest this: https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.8.2/compat-drivers-3.8.2-2-su.tar.bz2 Obtain this package and download it to your desktop. Right-click it and select 'Extract Here.' Now open a terminal and, with an internet connection, do:

sudo apt-get install build-essential linux-headers-generic
cd Desktop/compat-drivers-3.8.2-2-su
./scripts/driver-select rt2x00
make
sudo make install

Reboot and see if performance is improved. If not, I'd get a better device.


i and many other people are having this issue following a kernel upgrade on ubuntu, still not sure how to fix this. i'm running 5.11.0-16-generic. There is a launchpad ticket i have opened here. What seems to be consistent is that this issue begins after doing a security/kernal/software update, and intel graphics is being run.


Ubuntu 14.01 gives internal errors, system update crashes

You seem to have different problems in your output. First of all, remove the offending Spotify repository files (don't worry, they will be created again later):

sudo rm /var/lib/apt/lists/repository.spotify.com_dists_stable_*

Then fix the GPG key error (source):

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 082CCEDF94558F59

Finally, issue an update:

sudo apt-get update

Regarding the internal errors, I would try to clear the list of old program crashes:

sudo rm /var/crash/*


How do I change the chat font in Skype 2.2.0.35?

Install qtconfig. There is an option to change fonts. Don't remember to save changes.


Vertical Scroll doesn't work on a Sony Vaio VPCEB1S1E

It's known that the touchpad of vaio-E series have problems. However, you should at least get vertical scrolling - at least I do.

You can try editing /etc/default/grub and make the following change to the GRUB_CMDLINE_LINUX_DEFAULT line:

GRUB_CMDLINE_LINUX_DEFAULT="8042.reset i8042.nomux i8042.nopnp i8042.noloop"

then run sudo update-grub

If there were previous values (like quiet splash) to GRUB_CMDLINE_LINUX_DEFAULT leave them. This will disable the multi-touch features of the touchpad (but that probably didn't work anyway.


Promiscuous mode network traffic stat util?

ethereal is always a good choice.

tethereal is the tty version of ethereal, its light(er) or resources, same functions and engine.


Cannot Install Ubuntu 20.10 normally, only is (safe graphics) mode

I had that issue recently, and it seems to happen very frequently with AMD hardware
Here are the steps :

With the selector on your main GRUB entry type e to enter the editor
Find the entry that starts with linux
Delete quiet splash (or anything you have at the end of the line, but not touching any word that starts with a $) from the line (don't worry the change is only going to last one boot) replacing it with nomodeset
(the line should look like this

linux   /boot/vmlinuz-5.9.12-050912-generic root=UUID=<REDACTED> ro nomodeset $vt_handoff

Boot using F10 and wait to be spawned to the DE (if you don't no worry, stike Ctrl-Alt-F2 to enter the tty)
Once logged and within an open terminal run :

sudo -i
nano /etc/initramfs-tools/initramfs.conf

Change the COMPRESS line from COMPRESS=lz4 to COMPRESS=gzip
Save the changes (Ctrl+x | y | Return)
then run update-initramfs -u
Reboot and done


Why is it removing CUDA when I am removing mate desktop?

From the output of man apt-get under the --autoremove option:

If the command is either install or remove, then this option acts like running the autoremove command, removing unused dependency packages.

Those cuda packages were just waiting for an autoremove to come along, nothing to do with the Mate Desktop.  So the real question was did you really want to remove them?  Intel tends to hook all sorts of dependencies on their cuda packages, like depending upon the Nvidia driver package (which may be old), so when that get replaced, bingo -- all sorts of unwanted removes and autoremoves may gets triggered.


Swappiness setting are ignored in sysctl.conf

please verify first by using the following:

 cat /proc/sys/vm/swappiness

This output gives you the right swappiness at the moment. (it could be 0 it could be 60)

If you want to change this do the following:

 gksudo leafpad /etc/sysctl.conf

I use leafpad as an editor but you can change this with gedit (what has a bug in it)
scroll at the bottom of this file and add
# altering swappiness

vm.swappiness= (give here the digit you want e.g. 60 or 10 (bold is for pointing out)

save this altered file and reboot completely

verify your swappiness again by using the command I gave above (cat ....)

I use for 1Gb RAM or more the value 10; for less than 1Gb RAM the value 5 (personal experience) . Only for a server or something like that the value 60 is required.

Good luck !


How to properly set up an X11 startup script

Have you tried the feh package? sudo apt-get install feh

runfeh --bg-scale /path/to/image.file

add sh ~/.fehbg & to the bottom of xinitrc (/etc/X11/xinit/xinitrc).

When you next run startx it will load ~/.fehbg and set the background that you specified with feh --bg-scale /path/to/image.file

There are other options instead of feh. Awesome has its own built in way to set the background but it seems to be hit or miss if it works. You might have to comment out the wallpaper_cmd line located in /usr/share/awesome/themes/default/theme (what ever your theme is). Hope this helps.


workaround

install "Workspace grid" gnome shell extension (https://github.com/zakkak/workspace-grid)
go to settings and make number of rows and columns as per your wish.

to make the work spaces static, run the below command
gsettings set org.gnome.mutter dynamic-workspaces false

example:

$ gsettings get org.gnome.mutter dynamic-workspaces
true
$ gsettings set org.gnome.mutter dynamic-workspaces false
$

when dynamic-workspaces true

when dynamic-workspaces false

you can use the default keyboard shortcuts or set your preferred ones..


WorkCentre 3210/3220 Multifunction Laser Printer

The product brochure said :

PCL® 6 and PCL®5e emulations (host-based for Mac and Linux)

Print Drivers
Windows® XP (32/64 bit)/Vista/2003 Server/2008 Server, Mac OS®
X version 10.3 and above; Various Linux® OS (via USB interface
only) including Red Hat® 8-9, FedoraTM Core 1-4, Mandrake®
9.2-10.1, SUSE® 8.2-9.2, Mandriva 2005/2006/2007 (32/64 bit),
Ubuntu 6.06-7.04, Debian 3.1-4.0, UNIX AT&T system V (4.2)
BSD4.3, HP-UX (Rel 9x & 10x), SCO 5.x, SUN OS 5.5, Sparc or
Solaris 2.5; Xerox Global Print DriverTM; Xerox Mobile Express DriverTM
(WorkCentre 3220)

have a look of this : here

you have Drivers wc3220 linux drivers and firmware WC 3220 Firmware version 2.50.00.95 and instructions inside.

Caution: These drivers require minimum firmware version of 2.50.00.95.
Firmware version 2.50.00.95 and higher requires use of these drivers.

1.- right click on the file you download and extract here.
2.- open a terminal
3.- navigate /media/XEROX_MFP/Linux
4.- chmod +x ./install.sh
5.- sudo ./install.sh

there is an uninstall procedure uninstall.sh and a check_installation.sh

have a look of this file Installer.html in this directory


As a workaround when the mapping breaks, restart gnome shell via:

Alt+F2
type r
hit enter

so it works again until it breaks again.


Does Ubuntu Live session write anything on the primary partition

No! If you were changing the settings in Ubuntu, then you were only affecting the temporary RAM drive.
From the Ubuntu help about the live cd: A quick demo of Ubuntu. Try Ubuntu without any changes to your machine! Windows or whatever you use normally is unaffected after trying this and then rebooting (in 99.999% of cases).
Reasons for Using a LiveCD Session.LiveCD sessions are good to:

repair or preparation for awkward installations
fix Windows problems on a machine that doesn't have a dual-boot
data recovery


I can't use mouse wheel to click and scroll

You go to the firefox preferences menu, scroll to the bottom to the "browsing" section, then click the "use autoscrolling" box


Run Android Studio after installation (and other programs)

Short answer
You need to run it via the studio.sh, every time, as that is the startup script.
Long answer
It will not truly 'install'. It is kind of an annoyance for first time users, but it is truly a stand-alone package, it will drop the SDK in your /home and you need the android-studio and jdk1.8.0_45 folders at a fixed location.
First, you need to set the JAVA_HOME path in your /etc/environment or ~/.bashrc configuration to the jdk1.8.0_45 folder before it will run.
After setting your JAVA_HOME, run studio.sh again and it will boot the IDE. Then at the menu, hit the Configure button then hit Create Desktop Entry. You should now have a start menu icon, and desktop icon which you can easily use.
Next time you boot and create a project it should download the SDK required for building.


Mostly this error occurs when the repository in question doesn't have a directory corresponding to your distro's version.

A partial workaround that I employ is to go on the repo website, checking what version is the most recent and replace my distro's one by it manually in /etc/apt/sources.list.d files. Then I update and this works well, no more errors and I can install repo's software.

However that error is suspect about Ubuntu's security updates and I do not recommand using this trick for them...


Printer Problems in Ubuntu 20.04 with Samsung Xpress C410 printer

Remove ippusbxd:  (run sudo apt remove ippusbxd in terminal)
Delete and reinstall the printer using the GUI printer utility
Print a test page

This worked for me after hours of troubleshooting, I hope it works for you as well!
You might also want to read these related questions where more knowledgeable people than me explain how all printers now are "network printers" or something like that. Apparently removing ippusbxd isn't the most elegant solution, but as long as it works I'm happy :-)

Getting HP DeskJet 3700 working with Xubuntu 20.04

Canon PIXMA MP230 doesn't work with Ubuntu 20.04


Looks like you just need to install pyx:

~$ pip3 install pyx
Collecting pyx
  Using cached https://files.pythonhosted.org/packages/b4/a0/75d9d39bbd0bcd3aac7bf909b1c356188734a865552607a8c6bba3bf30bd/PyX-0.14.1.tar.gz
Building wheels for collected packages: pyx
  Running setup.py bdist_wheel for pyx ... done
  Stored in directory: $HOME/.cache/pip/wheels/d7/df/3b/33998bf28fc6088c399f64629bcd12f2b129d358f92db5a825
Successfully built pyx
Installing collected packages: pyx
Successfully installed pyx-0.14.1

I recommend always using pip to install modules since it'll fetch any dependencies any module needs.


Allocate Disk Space FROM Ubuntu for Windows

It is inadvisable to modify mounted partitions.
Thus, You should boot from a LiveCD or USB.

First make a back up of your data in case of problems.

Use gparted to shrink your home partition.
Then create a partition for the windows install.
Boot the windows installer. and install it to the partition.

Note: windows will write a bootloader to EFI/boot/bootx64.efi. If you use device boot, Grub will need to be put back in.


Does Ubuntu 16.04 support intel 5300 wireless card?

I have one in my Lenovo T420 and it works just fine.


How to move a selcection of files into a new folder via the right click menu?

First here are two versions of a script that move all selected files into a new folder.

Versions 1 which will ask for the new folder-name:

#!/bin/bash

# Define a function that launches the zenity input dialog
get_foldername(){
    zenity --entry --width=300 --title="Create New Folder" --text="Enter the new name:"
}

# Ask user for foldername
foldername=$(get_foldername) || exit

# Try to create a new folder with the name from user input
errorString=$( mkdir "$foldername" 2>&1 )

# If an error occurs show error dialog and ask again for foldername
while [ -n "$errorString" ]; do
    zenity --error --title="$( echo $errorString | cut -d: -f3- )" --text="$( echo $errorString | cut -d: -f2- )"  || exit

    # Ask again for foldername
    foldername=$(get_foldername) || exit
    errorString=$( mkdir "$foldername" 2>&1 )
done

# Move selected files to the new folder
mv -t "${PWD}/${foldername}" "${@}"

Versions 2 which will paste the files in a new folder and names him with current date:

#!/bin/bash

foldername=$( echo `date +%Y-%m-%d`"-"`date +%H%M%S` )

# Try to create a new folder with the current date and time
errorString=$( mkdir "$foldername" 2>&1 )

if [ -n "$errorString" ]; then
    zenity --error --title="$( echo $errorString | cut -d: -f3- )" --text="$( echo $errorString | cut -d: -f2- )"
    exit
fi

# Move selected files to the new folder
mv -t "${PWD}/${foldername}" "${@}"

Save the script (or both but in different files) in the directory $HOME/bin call it something like this move-to-new-folder.sh and make it executable:

Now we have to add the scripts to Thunar.
There a two possibilities to add scripts to the right click menu of Thunar (as far as I know):

Send to method:

Create a folder $HOME/.local/share/Thunar/sendto
Create a file in this new folder and call it move-to-new-folder.desktop

Content of the file:

[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
TryExec=/home/username/bin/move-to-new-folder.sh
Exec=/home/username/bin/move-to-new-folder.sh %F
Icon=/usr/share/icons/elementary-xfce/actions/48/folder-move.png
Name=New Folder

3. Make the file executable

More info: http://docs.xfce.org/xfce/thunar/send-to

Custom actions method:

More info: http://docs.xfce.org/xfce/thunar/custom-actions


Just what you need, to add that 'dots' to picture you want, and after that just set that image as background image in login screen.
To do that I have googled some links:

How to change login screen background
How to remove dots from background

From second link I guess this way must work.

sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid true

This will may work too.


Somebody @ http://wwww.ubuntuforums.org/showthread.php?p=10046052

recommended to check /etc/motd (Message of the day)

gksudo gedit /etc/motd should do the trick


It turns out that the reason for the crashes was the pre-release version of Studio (0.99.751). The most current released version (0.99.489) from https://www.rstudio.com/products/rstudio/download/ seems to be stable.


/usr/local/lib/libSDL-1.2.so.0 that's not something from an Ubuntu package. Ubuntu packages don't have anything in /usr/local, so it came from somewhere else. It's also what's causing the trouble. Figure out if it's something you need, and remove it if not.

Did you install your virtualbox from the Ubuntu repositories? If you didn't, I suggest that you do.


Unable to install Ubuntu 12.10 on Windows XP Professional

The file is probably saying the Ubuntu ISO image could not be loaded. That kind of image is not a picture--it is a representation of data on a disk.

You have two options:

Investigate why the problem is happening and fix the cause.
Work around the problem.

For 1, you need to provide much more information:

The complete and exact error message.
The entire text from the log file (can be provided at http://paste.ubuntu.com if it's too big to include in your question).

Feel free to provide that information by editing your question. However, you may be able to work around the problem:

Download the appropriate ISO image. Go to the Ubuntu website and click the option to download Ubuntu. Get the regular version, not the Windows installer.
Put the big file (the ISO image) you downloaded in a folder. Put wubi.exe (the Windows installer) in the folder too. Don't have anything else in the folder.
Run wubi.exe (the one in that folder). It will automatically identify the ISO image and use it, so it won't have to download a new one.

Make sure to get the same version of Ubuntu that you specified when you downloaded the Windows installer (for example, if you downloaded the Windows installer for Ubuntu 12.10, make sure to get a 12.10 ISO as well).

If you are already doing this, or if you downloaded an ISO image and burned it to a CD/DVD or wrote it to a USB flash drive and are attempting to install installing Wubi (i.e., Ubuntu with the Windows installer) off the CD/DVD/USB, then probably:

the ISO image you downloaded is bad, perhaps corrupted during download (MD5 test it and if it's bad download a new one), or
the burn/write was bad and your CD/DVD/USB is corrupted (try writing it again).


Ubuntu 12.04: Problem editing file in recovery mode using the shell

Problem solved. I checked the partition table using fdisk. I figured that there are more then 1 partition (one for example DELLUTILITY). I assumed that simply remounting using the line #mount -n -o remount,rw / might mount the wrong partition. So I tried #mount -n -o remount,rw /dev/sda3 / instead and that worked just fine. I was able to get r/w access to the fstab file, fix it using nano, reboot and be happy.

Thanks anyways for your interest.


What happened to the classic calendar applet?

I can't speak for the future but for your secondary question it changed because it's essentially a different application. Ubuntu Classic (and by that I mean older versions of Ubuntu too) uses a gnome-panel applet and unity uses its own built-in clock widget.

I've had a look through the filed bugs for Unity but can't seem to find anybody reporting this feature omission. If you want it back, you should probably start by filing a bug. The Unity maintainers can then consider the issue and interact with you accordingly.

On a sideways note, this isn't just a case of pulling some code across because Canonical makes things harder for themselves. Canonical likes to keep their projects' code covered by a contributor agreement, essentially allowing them to release their projects under any license (closed, public domain, etc) at their whim.

This means in order to pull features in from existing code (if that worked techically), they'd either taint the codebase with non-CCA-covered-code (arresting their ability to re-license) or they'd have to do a dark-room port (have somebody who hasn't seen the original gnome-panel applet's code, develop it from scratch).

<plug> I had a rant about this on my blog quite recently. </plug>


Your newuser has two lines that can affect it in your configuration.  It belongs to sudo group, and is the user newuser.  Because your user is in sudo group, it can run any command after providing the password.

You need to remove newuser from the sudo group, or adjust your configuration to suit this.  Be careful that you don't lose sudo from your main account during this process!

When newuser is no longer in a group that gives it access to all commands, it will be restricted and only allowed to run useradd, as you've configured, and there will be no need to mess with or add any passwd entries, as it will have no access to that command.

The wording of your question is unclear.  Is newuser able to, or not able to run any and all sudo commands?  Can they or can they not run sudo passwd username?  What is your goal?

You'll have to give us the /etc/sudoers file, as well as list of groups to which your newuser belongs.  It is likely newuser is in the sudo group, or some other group being given access.

If you cannot run sudo passwd, you need to add a rule to allow your user to run the command, since /usr/sbin/useradd and /usr/bin/passwd are two different binaries.

Have you thought of the consequences of what you're doing?  If you allow newuser to sudo passwd root, why not just give them root access (unless you actually lock it down to username)?


Up arrow works similar as in command line terminal. In your example, just type / and then up arrow. It will place your previous search command in the Vim's command line. It works with : started commands as well. Moreover, you can use up and down arrows to browse in your commands history.

Note, that this feature requires Vim to work nocompatible mode. Make sure, you have line

set nocompatible

at the beginning of you ~/.vimrc file - it must be the first instruction, before all others.

If you don't have ~/.vimrc (it is not created by default), just create one:

$ vim ~/.vimrc

edit as needed and save it.


Cinnamon is Gnome based. If you're using KDE, you can't simply swap out one for the other. Kubuntu was designed and built around KDE, so while it's technically possible, it would be a lot of command-line work, and you could potentially leave your computer unable to boot if you're not extremely careful.

In fact, it's so much work, that I suspect it would probably easier just to back up your /home/ folder to a cloud service or external drive and start with a clean install of Mint right off, which comes with Cinnamon already.

If, on the other hand, you want to "keep it in the family," then start with a clean install of Unity-powered Ubuntu, then follow the directions in the first answer to replace Unity with Cinnamon.

Once you've finished the clean install of one or the other and you've verified that everything works, simply restore the contents of /home/ from wherever you backed it up to, and you're done.


Did a Kernel update happen before the restart? There appear to be some similar cases of UNCLAIMED interfaces which apparently is due to inability to find a driver for it.


on a mac with 12.04, how does one Iock icons to the launcher?

For Ubuntu in the Unity desktop, just drag the icon to the launcher, or right click and Keep in Launcher:

If this about something running Mac OS, this question does not really belong on this forum, but another like Ask Different.

There is an article that may be of help here anyway - apparently you can do pretty much the same thing in OS 10 - drag the icon of the file or folder to the dock, or right click on the application, then click Options and then Keep in Dock.

I can't verify the last bit, as I don't use Mac :-)


DNS fails intermittently in 13.10 after update

Downgrading the package according to
https://zoni.nl/posts/2013/11/09/fixing-the-broadcom-bcm4331-wireless-drivers-on-ubuntu-1310/
seem to fix this issue.


When you invoke a program or a script, the shell looks for it the directories declared in the PATH variable. Except if you invoke the program file specifying a path -absolute or relative-Of course the user calling the script or program file must have executable permission right on the file

aprogram          ## Looks for the file in directories declared in PATH
/path/to/aprogram ## Looks for aprogram in /path/to
./aprogram        ## Looks in current directory for aprogram

See echo $PATH

~/turan_first executable file contains

#!/bin/bash
echo "TTTTTTT"
exit

A space is required after the command echo, or shell wont recognize it
exit is useless while the script ends normally
Call the script with ~/turan_first or while prompt is in ~/, call it with ./turan_first

A good practice is to store all your script in a dedicated directory. Say ~/Scripts
In that case, you get the habit to call your scripts with ~/Scripts/turan_first using auto-completion.
A next step could be to add your Scripts directory to the PATH environment variable. So that you could call your scripts without any path specified.
Edit the bashrc file: nano ~/.bashrc and add the line

export PATH="~/Scripts:$PATH"


It seems your are in a console only installation (no Xserver) or your shell enviroment (DISPLAY variable) is not setup correctly.

Use:

less -S /var/lib/dhcp/dhcp.leases

then hit Enter to view files in console.

You may leave the program less by typing q.


This is expected result, the behavior seems to reproduced only on EOL (End Of Life) release— this assuming you use Ubuntu 14.04 because you tagged it 14.04.

  Released on 17th April, 2014 and has reached its End Of Life (EOL) in April 2019.

Thus ondrej has dropped support for 14.04, meaning you have to either upgrade your Ubuntu or install PHP from source.

I reckon you to Upgrade your Ubuntus immediately, 16.04 is a good choice but there's also 18.04 that supported longer because it is released on 2018.

If you decided to stay with 14.04, then you can compile PHP from source, to find your desired php version visit this php.net/releases— this will work most of the time even on old releases.


Wallch not auto-cycling backgrounds on log in

This could be a timing issue with the startup application with the command line

wallch --constant

I would suggest you introduce a short delay before starting wallch as a background process.

Search in Dash for startup application

Then add a new startup application:

Use a startup application command line of:

sh -c "sleep 10 && wallch --constant &"


Does shotwell have no function to save a low quality version of a JPG?

Try GThumb.

sudo apt-get install gthumb

Open up your image.
Select save as in File > Save as
Give it a name with a .jpg extension.
Select the directory and click save.

This little window pops up where you can change the image quality by sliding the quality slider:


Your best bet is to install Ubuntu using Wubi. It's not ideal but it's the only option you have (that doesn't include losing your Windows install).

The only other option is to get a new hard drive or to completely wipe Windows.


12.04 apt-get update taking long time. How to speed up?

Go to Ubuntu Software Center > Edit > Software Sources and from Download From drop down menu choose Other then on the next window choose Select Best Server and wait to ubuntu recognize best server for you, then run apt-get update again...

Linked Question:
 - How do I change which mirror I get updates and software from?


Restoring Grub Launcher After Windows 10

Boot into Ubuntu using your computer's boot menu (probably something like press ESC at startup.  it will tell you) and run this in Terminal:

sudo grub-install /dev/sda; sudo grub-mkconfig -o /boot/grub/grub.cfg


I'm trying to run mopidy music server but the port 6600/6680 which it uses is already in use by python

How did you install "mopidy"? Did you follow the instructions on their site?

If yes (you installed mopidy with apt-get install ...): mopidy has been installed as a service and therefore is started whenever you start your system. So, the process monitoring your ports 6600/6680 is actually mopidy. Just configure your local music source (some local directory in which you have some music) and then make mopidy rescan your local source. You should be up-n-running after that.

If not (you installed mopidy not with apt-get, but in some other way): specify details of installation so we may have a clue about what's going on.

Reading the fine manual (RTFM) may help. :)

HTH!


Boot drops to a (initramfs) prompts busybox

Actually the solution is easy
just write the command of fsck /dev/sdax like the below and give Y if the console ask for fixing something:

(initramfs) fsck /dev/sda1

or

(initramfs) fsck /dev/sdaX

X specifies mounted disk part number.


Can I Dual Boot Ubuntu from a Virtual CD drive?

This post says it's not possible, but it is very well possible to run Ubuntu with Virtual Box in a virtual machine. It's probably best to install i386 for performance reasons.

Download Virtual Box here:
https://www.virtualbox.org/wiki/Downloads

After starting Virtual Box, you can place the iso file in the virtual drive for the installation of the Ubuntu OS. After you are done installing, remove the iso before you reboot the virtual machine.

Your Virtual machine connects to virtual ethernet regardless of if your host machine uses WiFi or not.


go to the folder with the .jar file.

type: java -jar filename.jar in the terminal


How to start Terminator on a different monitor?

The answer is the use of position variable of the specific Window configuration on the terminator config.

For example, in a case with two monitors (1920x1080), the following layout configuration will open a terminal window on the second monitor in fullscreen mode.

[[[Window]]]
type = Window
parent = ""
fullscreen = True
position = 1700:0
size = 500, 500
[[[Term]]]
type = Terminal
parent = Main
...


How do I run install Ubuntu 13.10 and keep windows at the same time?

Try with this:

Official Ubuntu Documentation

Install Ubuntu with the Windows installer (Wubi)

Or go to answered question: Here


Intel White Paper are not mentioning about Ubuntu as officially supported for MD Raid (Sources, go to page 5). They speak only about Redhat and Suse.

Anyway, MD Raid is also named as Fake Raid or Software Raid. I recommand do not use Intel MD Raid and only use Raid Software provided by Ubuntu (Available with NetInstall).


How to browse the internet while installing Ubuntu?

To be able to open Firefox (or even install apps) while doing the installer the first part is to select the Try Ubuntu option found as the first option in the installer:

The difference between both is that Install Ubuntu will automatically start the Ubuntu installer process. The Try Ubuntu will load the Desktop and you can play around with Ubuntu, including Firefox and if you are satisfied with Ubuntu on your PC you can proceed and click on the Install Ubuntu icon on the Desktop.

With this approach, even while you are installing Ubuntu, you will be able to do other things (Like browsing). This is by far the easiest most direct way to do what you want.


Triple boot Windows XP, Ubuntu, & Mac on Acer z5g notebook

I've toyed a lot with these kinds of set ups. Let me emphasize that it's a cool project, but be prepared to reinstall everything a few times before you get it right. It's ideal if you can make an image of your drive from states that are good to restore to and try again from.

Now, just looking at the URL you gave, those are looking like somewhat older instructions. So you may want to google around first and see if you can't find something a touch more modern. Grub2 (which is the default boot loader with Ubuntu 11.04) can detect OSX and add it as a boot option. I'd suggest you find some current, decent instructions, follow them fairly closely, but see if you can skip the bootloader installation. Then, when installation is complete, you'll need to regenerate your grub boot menu. I think running sudo update-grub will do that for you.

Hope that helps set ya on the right track. Like I said, I've had a few projects along these lines and I found the docs helpful, but I still needed to tinker a bunch, but I eventually tend to get it working, so hopefully so will you!


Will my data partition will be wiped off on reinstall if I mount it under home directory?

The short answer No.

If you just format and reinstall Ubuntu in /dev/sda1 without touching /dev/sda3 your data partition will remain unaltered.

Only you have to mount the partition /dev/sda3 properly to access those data in it.


Unespected (frequent) freeze crash with Xubuntu 20.04 LTS

System "freezes" are often caused by running too many, too large programs and running out of available memory. Use free to see if you have swap space, read man mkswap swapon fstab to create some. Traditionally, swap space of 1.5 × RAM has been recommended,  but YMMV. If you don't plan to hibernate your system, you can have less than 1.0 × RAM.


How to set up Java-based services for startup?

Most of the time you can cut out a lot of the code in those scripts and just focus on running the the main program. If you can tell it to run in the foreground instead of the background that will make things simpler. Otherwise you have to use 'expect fork' or 'expect daemon' to follow the forks that a program must do to detach from controlling terminals.

pre-start is mostly for setting things up, like creating dirs in /var/run. You can also source a config file, as the environment will be passed along to the main exec.

post-start can be helpful if you want to make sure that upstart doesn't consider the service started until a certain condition is met (like the port is answering queries).

Ultimately, the goal is to make it as simple as possible. If the startup.sh runs 'jira --daemon' and you can instead run 'jira' and it doesn't detach, then with upstart you'd just do

start on runlevel [2345]
stop on runlevel [!2345]

exec jira

As long as the process doesn't daemonize, its very easy for upstart to track what it is doing, which ultimately leads to a simpler job file and a more robust system.


Why are the operating system and kernel treated separately in Linux?

The whole GNU/Linux system is built up using the modular approach. You can mostly upgrade (replace in general) a single module without touching others. The module in question can be a bootloader, kernel, shell, command, desktop environment, GUI application, whatever…

Of course, it is true as long as you are able to manage dependencies correctly. In the set of distributions around Ubuntu, APT is used to resolve dependencies automatically.

You can install another kernel version using the command:

sudo apt install linux-image-<version>

As long as APT allows it, you should be able to reboot and use selected version of the kernel, be it generic, lowlatency etc. Or you build a kernel version yourself, e.g. the Real-Time Linux, and use it with your current system.


Emacs toolbar icons missing in Ubuntu-16.10, struggle to compile emacs24 and 25

After a little rest, I found that this problem was discovered before Yakkety Yak was released but the fix was not included in the packages.  If you look here

https://bugs.launchpad.net/ubuntu/+source/emacs24/+bug/1623585

you should find my post toward the end that says I did rebuild the package source they mention, and I can confirm it does build and that the Emacs toolbar icons will re-appear.


Can I install Ubuntu on a PC with less than 2gb of ram

You can also create create and activate large swap partition during installation but this is going to make the system slow unless you have a really fast hdd. LUbuntu is in my opinion a better option.


rsync creating target directory with old date

A few small issues:

You should never parse ls. That said, in this case, you seem to have full control of the file names in your target directory so ls can be an option. However, I recommend you use ls -tr so sort by time, instead of alphabetically:

PREVIOUS=$(ls -tr $BASE | head -n 1)

Let's have a look at your rsync options. -a equals -rlptgoD:

-r, --recursive             recurse into directories
-l, --links                 copy symlinks as symlinks
-o, --owner                 preserve owner (super-user only)
-g, --group                 preserve group
-t, --times                 preserve modification times

The problem is the -t, this preserves the real modification time of the source files so it does not actually set the modification date of the backup to the time the backup was created bu to the last modification time of the original files. Replace -a with -rlog (removing -t) to set the time to what you are expecting.


With XKB only, you can't, but more advanced input methods are needed.

It's worth mentioning that the ibus-m17n package provides quite a few input methods for e.g. Bengali and Hindi. You may want to explore those methods and see if some of them satisfy your needs.


Put this script in the "Sessions and Startup" > "Application Autostart"

#!/bin/bash
touch ~/.olddesktop
echo 0,0 >  ~/.olddesktop
echo 0,0 >> ~/.olddesktop
while true
do
    ODT=$(head -n 1 ~/.olddesktop)
    CDT=$(tail -n 1 ~/.olddesktop)
    DT=$(wmctrl -d|awk '{print $6}')
    if [ "$DT" != "$CDT" ] ;then
        echo $CDT >  ~/.olddesktop
        echo $DT >> ~/.olddesktop
    fi
    sleep 1
done

And this command must be defined as an keyboard application shortcut.

wmctrl -o $(head -1 ~/.olddesktop)

Now you will be switched back to the viewport where you came from when you press your defined key combination (I used ALT-W).

wmctrl must be installed. (apt-get install wmctrl)


apt-get: cannot configure (current status `half-installed')

Okay, I fixed it by reinstalling it:

~ » sudo apt-get install --reinstall libqt4-svg:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/275 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libqt4-svg:i386.
(Reading database ... 153417 files and directories currently installed.)
Preparing to unpack .../libqt4-svg_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4.1_i386.deb ...
Unpacking libqt4-svg:i386 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) over (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) ...
Preparing to unpack .../libqt4-svg_4%3a4.8.5+git192-g085f851+dfsg-2ubuntu4.1_amd64.deb ...
Unpacking libqt4-svg:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) over (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) ...
Setting up libqt4-svg:i386 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) ...
Setting up libqt4-svg:amd64 (4:4.8.5+git192-g085f851+dfsg-2ubuntu4.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...


try:

-sudo apt-get update -f ,   sudo apt-get -f install

or

sudo apt-get install aptitude  , sudo aptitude safe-upgrade

Also you can fix broken packages via synaptic ,it is in otion menu just read carefully what is in 'delete' category cause you can mess up whole system and delete everything


secure password when mounting the file server using .smbcredentials

This is the way I secure the .smbcredentials:

I have a (veracrypt-)encrypted SD Card in my PC. I save the .smbcredentials file on this SD Card, so nobody can snoop it out using a Live-CD.
In my case, the encrypted SD Card is automatically mounted after boot using a veracrypt-keyfile, this is to circumvent manual authentication i.e. for convenience.

For the automount I use a simple script with the content along the lines of:

veracrypt -k /home/user/Documents/KeePass/SD128.keyfile -p "" /dev/mmcblk0p2

/dev/mmcblk0p2 is the Device ID of the SD Card.
The script can then be placed in 'Startup Applications'.

This way, there is zero interaction necessary from my side as everything mounts automatically (local Disks, Network Shares and encrypted SD Card with the smbcredentials on it).

This is reasonably safe, since, if I lose my Laptop (and with it the keyfile), the average user won't figure out how he can access my encrypted data (maybe there is a better place to store the keyfile? Please enlighten me...).

However, sure thing is that it would be safer without a keyfile and with manual authentication, since whoever owns the keyfile can mount your encrypted Data. It's up to you, if you want it safer, don't use the keyfile in this way, use a password instead.

The thing is, I never remove the SD Card from my Laptop. However, if you remove it and store it at a safe place when not in use, the whole setup is rather safe.


No graphical login screen after installing Ubuntu

There are multiple principles for interacting with a computer. One of them is to use a graphical user interface ("point and click"), like you're probably accustomed to and expected to see on your netbook.

Another interaction principle is a text interface, also called a command line. That's what you are seeing. Your netbook is expecting you to type a command, to which it would answer with a text output of its own, and so forth.

Ubuntu generally comes with a GUI (multiple GUIs to choose from, actually) and a text interface (again, multiple shells to choose from). For some reason, either the installer was unable to install a GUI, or the netbook can't start it up.

It's hard to diagnose the exact cause remotely. Maybe you accidently used the server version of Ubuntu like Videonauth suggested in his comment to your question. Maybe the netbook isn't powerful enough to handle the default GUI, so it uses the text interface as a fallback. Maybe the netbook uses some kind of exotic/unusual hardware that Ubuntu doesn't know how to operate. Those are just some of the possible reasons.

My advise would be visit a Linux User Group in your area, so an experienced Linux user can have a look at your netbook "in person". You can find a local LUG on ugslist.com or just by searching for "Linux User Group my-city" (with my-city replaced by your city, of course ;) ).


From looking at the formatted results, your wifi (wlo1) MTU is too large, leading every packet to be fragmented. If you get your IP address via DHCP, the DHCP server should set your MTU (fix it there), or to do it manually,

You can find your correct MTU value via

tracepath -n 8.8.8.8

It's a function of WiFi, PPPoE, and whatever else is between you and the Internet.

If it turns out to be, say, 1432, change it locally by:

sudo ifconfig wlo1 down
sudo ifconfig wlo1 mtu 1432
sudo ifconfig wlo1 up


Can a single Nautilus window be started with multiple tabs?

As per jorge's comment, the answer is "no"...

So as a side issue, because it's not a current option in Nautilus, I've cobbled together a script.. It suits me, given the situation.
I initially had some timing inssues which caused modifier-key states to go whacko, so I've added 100ms delays between steps, and it is now behaving itself on my system...
This may need to be changed in a different environment...
Here it is; at paste.ubuntu.com


Separate X screen + TwinView on NVIDIA GT 440

It is possible, although I think you might be asking a little too much of your video card.

Xorg configurations are slightly personal things, in that it's difficult to write one at a distance for someone without having access to their machine or knowing a lot of key details.

The steps involved would be:

Backing up your working xorg.conf for reference
Using the nvidia-settings tool to generate an xorg.conf for your twinview'd screens
Using nvidia-settings again to generate an xorg.conf for your projector
Combining both files (with a view to your wokring xorg.conf), giving each it's own server flag and making sure you don't have conflicting name spaces

If everything goes wrong you can always fall back to the defaults using:

 sudo dpkg-reconfigure xserver-xorg -phigh

If you're struggling post where you're at and I (or someone else, I dare-say) will try and help you- but simply writing one from scratch without access to the machine in question is beyond my abilities!


Where does Nautilus store the "starred" attribute

Gnome Shell uses the tracker utility to log things like that. From the documentation:

Data & Logging
The databases are kept in $HOME/.cache/tracker. The user's data backup is kept in $HOME/.local/share/tracker/data.
If Tracker is configured to have the logging verbosity (set in GSettings or each .cfg file for each main component) set to a value higher than 0, then logs are generated and will usually be sent to the system journal or syslog. If the TRACKER_USE_LOG_FILES environment variable is set for a Tracker daemon it will cause logs to be written to $HOME/.local/share/tracker in addition.

I'd like to access the "starred" attributions from outside nautilus, that's why.

You can not. tracker-writeback is used for writing to the database but as the man page states:

tracker-writeback — Used to write metadata set in Tracker back to physical files.
tracker-writeback is not supposed to be run by the user since it is started by its .desktop file when the user logs in. It can also be started manually of course for debugging purposes. You can not run more than one instance of this at the same time.

For viewing data:

tracker-extract — Extract metadata from a file.
tracker extract reads the file provided and extracts any metadata it can from this file, then displays the metadata on standard output.
The metadata is displayed as a SPARQL update command, that can be run against a SPARQL endpoint to update its copy of the metadata.
The actual extraction is done by a separate process. This is done to isolate the calling process from any memory leaks or crashes in the libraries Tracker uses to extract metadata.
For more information see the libtracker-extract reference documentation.

There are no command line tools provided for inserting metadata into the database back-end. It is all tied into gnome shell.


Does Unity require proprietary graphics card drivers?

I believe Unity requires 3D graphics. So if there is an open driver that can do that, you don't require proprietary drivers.

Looking a the status of the FLOSS nouveau drivers, currently you probably would need the proprietary drivers for NVIDIA, however, they are working on the necessary features.


Can't get bootloader to work using easyBCD

In my opinion, I'd like to suggest you UNetbootin. Try to reinstal with UNetbootin


Here's the steps to change your python3 command to point to your python3.7 version (assuming you already have 3.7 installed). Please adjust paths as needed for your environment

# 1 - Identify your location of `python3` using the `which` command
which python3
# returns something like
/usr/local/bin/python3

# 2 - Identify your location of `python3.7` using the `which` command
which python3.7
# returns something like
/usr/local/bin/python3.7

# 3 - Get directory listing of python3 folder (from 1 above)
# using grep to filter results containing 'python'
ll /usr/local/bin | grep -i python
# returns something like below - notice the arrow after python3
# the arrow indicates a symbolic link
lrwxrwxrwx  1 root root       18 Jul  4  2018 python3 -> /usr/bin/python3.6*
-rwxr-xr-x  2 root root 14777608 Nov  3 00:36 python3.7*
-rwxr-xr-x  2 root root 14777608 Nov  3 00:36 python3.7m*
-rwxr-xr-x  1 root root     3097 Nov  3 00:37 python3.7m-config*
-rwxr-xr-x  1 root root  4522328 Feb 22 17:24 python3x*

# 4 - Test creating a symbolic link using sudo to get root privileges
#     enter password if/when prompted
sudo ln -s /usr/local/bin/python3.7 /usr/local/bin/test37

# 4 - verify test
test37 --version
# Desired output
Python 3.7.1

# 5 - remove test and python3
sudo rm /usr/local/bin/test37
sudo rm /usr/local/bin/python3

# 6 - creating python3 symbolic link using sudo to get root privileges
#     enter password if/when prompted
sudo ln -s /usr/local/bin/python3.7 /usr/local/bin/python3

# 7 - verify
python3 --version
# Desired output
Python 3.7.1

Of course the pythonic thing to do is to use virtual environments.


The solution came with the upgrade of Nemo to 4.0.6


How to connect non-auto-connect snap interfaces at daemon (service) start

The Ubuntu security team is very much involved with the development of interfaces. The only ones that are automatically connected by default are the ones that either pose relatively little risk (e.g. network) or cause significant breakage in the typical application (e.g. x11). The ones that aren't automatically connected are that way for a reason: they can be abused and aren't required for the typical application. As a result of the possibility for abuse, connecting interfaces from within the snap kind of defeats the entire purpose of confinement, which explains why you've been unable to do it!

There are two ways to get privileged interfaces connected. Either your user needs to opt into it (i.e. connect the interface manually), or you can request a more thorough vetting from the security team by creating a forum topic in the "store" category of the forum, asking for an exception to be made for your snap, and have these interfaces automatically connected. It's not a rubber stamp; you'll need to provide justification for using them, but such exceptions aren't unusual.


I have the feeling that Unity indeed "caches" the icon used. But I guess the real problem is that you forgot to change something in the application launcher or icons.

To identify where the launcher is stored , first open Eclipse. Alter that, in a terminal use the following command:

$ xprop

Your mouse cursor should change to a cross. Then click on any part of the Eclipse window. You should get a lot of text (like the ASCII version of the icons used). There find for NET_WM_DESKTOP_FILE. In my case I get the following:

_NET_WM_DESKTOP_FILE(STRING) = "/home/<myusername>/.local/share/applications/eclipse_android.desktop"

Then just open that file (you may need root permission) and check you are really using the correct icon.

Also note that the Eclipse icon probably should be stored in many different sizes, so you will need to replace everyone. Using apt-file I get the following:

$ apt-file search eclipse.png
eclipse-platform-data: /usr/share/icons/hicolor/16x16/apps/eclipse.png
eclipse-platform-data: /usr/share/icons/hicolor/256x256/apps/eclipse.png
eclipse-platform-data: /usr/share/icons/hicolor/32x32/apps/eclipse.png
eclipse-platform-data: /usr/share/icons/hicolor/48x48/apps/eclipse.png
eclipse-platform-data: /usr/share/pixmaps/eclipse.png

As those files probably will be rewritten in any Eclipse update, probably it is easier if you place your custom icon in /usr/share/icons for example, and just replace the Icon stanza (from the Eclipse .desktop) with the full path to that icon.

If the problem is indeed caching, then I really don't know how to fix it.


Via the link by muru here:

dpkg-query -W -f='${Conffiles}\n' '*' | awk 'OFS="  "{print $2,$1}' | LANG=C md5sum -c 2>/dev/null | awk -F': ' '$2 !~ /OK$/{print $1}'

Or:

debsums -ce

Or also helpful:

find /etc/ -name "*.dpkg-*"


The best you can do to find it out, it's to try it.

Download, burn and load from an ubuntu iso image. Instructions can be found here: How to create a bootable USB stick
on Ubuntu
Also about installing it, you should read some little more documentation: Install Ubuntu 14.04.1 LTS and WindowsDualBoot manual

About the version, you definitely will want to go for ubuntu 14.04 64-bits.