SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

    • Home
    • Server
    • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-57914

Rick's questions

Martin Hope
Rick
Asked: 2017-07-08 05:34:40 +0800 CST

Can I instruct gnome network manager NOT to connect to a specific network

  • 1

In a client workplace, they have a secured wifi connection and a unsecured client-guest network. My laptop is automatically connecting to this Guest network, and by doing so, this leaves me unable to remote into any machine (rightfully so). It's a mild annoyance, but repeatedly this lost time adds up.

May I instruct gnome to never connect to certain networks?

Failing that, would using Wicd be a reliable alternative?

network-manager
  • 1 Answers
  • 89 Views
Martin Hope
Rick
Asked: 2016-12-02 09:59:53 +0800 CST

How may I start a VirtualBox VM and issue a command to that VM to launch a specific program?

  • 0

Given a fresh VM. Can I set up a desktop shortcut or CLI to start virtualbox and inside the VM launch a program?

Ideally, I may have to set up a function in .bashrc

throwaway() {
    VBoxManage startvm "Stock-RHEL-7" --type headless
    ssh -X user@local-ip-address '$1'
}

That'd be called via

$ throwaway firefox

Is there a cleaner way to do this?

I need to do this to test desktop applications (over local X forwarding) on different distros of Ubuntu and RHEL. Some Q&A. Sometimes to sandbox packages we're evaluating. I don't want to pollute my base install of LTS/16.

(While I'm aware of X11 as an attack vector. We know the app sources. They are trusted.)

virtualbox
  • 0 Answers
  • 42 Views
Martin Hope
Rick
Asked: 2016-06-08 13:08:59 +0800 CST

Unity notifications of software updates when there are none [duplicate]

  • 3
This question already has answers here:
Why do I receive Software Update notifications if there are no updates available? (3 answers)
Closed 6 years ago.

I keep getting numerous notifications throughout the day that there are updates. However, running the updater shows a different story. Running sudo apt update && sudo apt upgrade -y says all is up to date.

Which should I trust?

enter image description here

updates
  • 1 Answers
  • 386 Views
Martin Hope
Rick
Asked: 2016-06-07 08:47:44 +0800 CST

How might I run web browsers from separate spaces (sandboxing)?

  • 1

Situation: In web development I need to be logged into an application as an administrator, normal user, unauthenticated user etc. I'd like to have a set up where each browser window is unaware of the other's logged in session.

Question: How can I have multiple browser windows open but have them running from different profiles or different cache areas? If firefox profiles, how can I achieve this without using the Profile editor UI?

Can I create a temporary user, run Firefox, then just throw away the entirety of that user account? Or, should I be using like a browser-in-a-VM?

What I've tried so far:

Bash

My first attempt was to try something like the following:

# create temp user
tmp_user=`head -c 10 /dev/random | base64 | head -c 10`

# create user
sudo useradd $tmp_user;

# run browser
sudo -u $tmp_user `which firefox`

# hold and wait then kill account
sudo userdel $tmp_user

I got so far as sudo -u $tmp_user firefox the following error displayed:

sh: 0: getcwd() failed: No such file or directory

sh: 0: getcwd() failed: No such file or directory

No protocol specified

Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused Error: cannot open display: :0

Firejail

I then tried firejail, however, I think I misunderstood what this prgoram was meant to do. The main firefox window and one started under firejail firefox was aware of each others login sessions.

16.04
  • 1 Answers
  • 156 Views
Martin Hope
Rick
Asked: 2016-05-29 18:13:56 +0800 CST

TPM error 6 when booting thinkpad

  • 10

When booting or restarting a ThinkPad running 16.04 with 4.4.0-23-generic. I see a brief error or warning that states

TPM error (6)

Looking at the system, I see a bit of chatter in dmesg

$ dmesg | grep -i tpm
[    ] tpm_tis 00:05: 1.2 TPM (device-id 0x0, rev-id 78)
[    ] tpm_tis 00:05: TPM is disabled/deactivated (0x6)
[    ] tpm_tis 00:05: A TPM error (6) occurred attempting to read a pcr value
[    ] ima: No TPM chip found, activating TPM-bypass!

Should I change bios settings or deal with this in another way? It doesn't seem to hinder performance once a desktop manager is loaded.

16.04
  • 2 Answers
  • 38164 Views
Martin Hope
Rick
Asked: 2016-03-21 06:17:44 +0800 CST

When musescore is open (using jack), how to videos from YouTube either are paused or have no sound

  • 0

When using musescore, I'm trying to follow how-to videos found on YouTube. However, I find that when musescore is open, videos are paused or there is no sound. As soon as I turn off musescore, video playback resumes.

Am I falling victim mechanisms designed to prevent digital copying? I'm not trying to steal anything or download YT videos. I'm trying to follow along to how-to videos to better learn piece of software.

Question: How can I follow along to how to videos online on the same machine? That is, how can I follow along to these videos and have Musescore open at the same time? Are browsers "protecting" content from being recorded? Should I switch Musescore to ALSA or PULSE?

Note: I'm NOT looking to circumvent DRM. I'm just want to follow along a how-to video.

enter image description here

15.10
  • 1 Answers
  • 174 Views
Martin Hope
Rick
Asked: 2016-02-25 06:38:03 +0800 CST

How do I manually set location for redshift using the conf files?

  • 15

I have geolocation turned off in Ubuntu 15.10. Is there a way to set location via GPS coordinates or neatest metro area using the in ~/.config/redshift.conf?

redshift
  • 1 Answers
  • 18205 Views
Martin Hope
Rick
Asked: 2016-01-07 12:33:28 +0800 CST

Can't boot from USB after bundled install

  • 1

On a carbon X1, I attempted to install 15.10 via usb boot disk. The install progressed until it came to a solid purple screen. On reboot, I now see this

enter image description here

Not panicing myself (pun intended), it appears my options were to just reinstall or use a live USB.

I ensured that secure boot was off and legacy was allowed

enter image description here enter image description here

However, on reboots, pressing F12, and selecting the USB boot option, I'm now stuck in an endless cycle that just comes back to this screen.

enter image description here

It seems that no matter how I try to format the USB drives, nothing seems to be recognized. I've tried UNETBOOTIN and Ubuntu Startup Disk Creator on a working install of 15.10.

Question: What should I do next? How do I dig myself out of this?

grub2
  • 2 Answers
  • 224 Views
Martin Hope
Rick
Asked: 2015-06-30 06:36:39 +0800 CST

How can I pipe the output of a bash or shell command to the clip board? [duplicate]

  • 6
This question already has answers here:
A command-line clipboard copy and paste utility? (13 answers)
Command Line Clipboard Access (3 answers)
Closed 7 years ago.

In order to minimize mouse usage (accessibility and health reasons), how can I pipe the standard out to the OS clip board?

That is, I'd like to do something like:

$ drush uli | copy-this-to-clipbaord

$ drush uli > copy-this-to-clipbaord

Possible?

gnome
  • 3 Answers
  • 5476 Views
Martin Hope
Rick
Asked: 2015-06-30 06:33:15 +0800 CST

How can I tell Firefox to visual highlight focus cursor to make it more visually noticeable?

  • 1

How might I highlight the current focus cursor in Firefox? That is, how do I make the cursor that moves focus when pressing the tab key more visual? Given my current desk situation, my keyboard is comfortably placed but the mouse is becoming troublesome to use.

Using

  • gnome-shell
  • Ubuntu 15
  • Firefox 42
gnome
  • 0 Answers
  • 62 Views
Martin Hope
Rick
Asked: 2015-05-23 08:53:01 +0800 CST

How do I route an USB Audio Interface (MBox2) to a DAW (Qtractor) via Jack or Patchage as an audio channel?

  • 2

I'm borrowing an Mbox2 Mini and want to play around with this in Ubuntu 15.10 with gnome.

In with jack, I can see it as a MIDI device:

enter image description here

However, I can not see it as an audio input device:

enter image description here

My Question: Can my system see this as an audio input channel that can be routed via Jack or Patchage (into Qtractor)? What steps might I be missing? In QJackCtl I'm expecting to see the MBox as an audio channel. Am I on the wrong path?

enter image description here

My system sees the device as:

$ lsusb  | grep Mbox
Bus 001 Device 007: ID 0dba:3000 Digidesign Mbox 2

And aplay:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: CX20585 Analog [CX20585 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: M2 [Mbox 2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

arecord output:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: CX20585 Analog [CX20585 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: M2 [Mbox 2], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Extra information to try:

  • https://help.ubuntu.com/community/UbuntuStudio/UsbAudioDevices
sound
  • 1 Answers
  • 2477 Views
Martin Hope
Rick
Asked: 2015-04-21 09:33:23 +0800 CST

How long does Rhythmbox keep podcast? How do I schedule a automatic cleanup?

  • 2

I guess my question is fairly straight forward: How long does Rhythmbox keep podcast? How do I schedule a automatic cleanup?

I don't seem to see any way to set a limit in how many days a podcast is kept before auto delete.

Using: 14.10 with gnome shell.

rhythmbox
  • 0 Answers
  • 208 Views
Martin Hope
Rick
Asked: 2015-01-30 08:29:08 +0800 CST

How do I turn off or repurpose the CAPSLOCK key?

  • 7

Update: My main goal is to change the function (or even turn off) the CAPSLOCK key.

At work, we have a long domain name. I'm lazy. I'd like to map my CAPSLOCK key to type out a string such as "outlongdomain.com". This is only to save me from typing.

I've seen numerous questions about how to remap the key to a different function. While neat; I couldn't see how to tell the system to "print out these next set of letters where the cursor has focus."

Update: I would like to use Autokey but I don't see an option for CAPSLOCK enter image description here

keyboard
  • 5 Answers
  • 2678 Views
Martin Hope
Rick
Asked: 2014-12-31 09:19:34 +0800 CST

How to tell sublime text not to open two windows [duplicate]

  • 4
This question already has answers here:
How do I make Sublime Text 2/3 not open previous tabs when I launch it? (3 answers)
Closed 7 years ago.

When I open sublime from a terminal window in the root level of a project

$ subl .

Two windows open. One is the open to the current working directory (which I want). The Other is a previous session (which I don't want).

Is there a way to curb this behavior? Is there a cache area that I can clear without removing other plugins and settings?

sublime-text
  • 1 Answers
  • 6468 Views
Martin Hope
Rick
Asked: 2014-10-18 08:27:06 +0800 CST

How can I run a shell script on session end? [duplicate]

  • 3
This question already has answers here:
Best way to make a shutdown hook? (3 answers)
Closed 7 years ago.

In a previous question, I found out how to shut down all instances of running VMs started through vagrant. I'd like to call that script when logging out of my Desktop Manager which is currently Cinnamon.

Some have pointed to another similar similar, but I did not understand the selected answer(s) enough to be able to solve my issue and put anything into action. The comments below point to start on stopping lightdm. This sounds like what I'm looking for. That is how can I run a script to stop all VMs (called: stop-vagrant.sh) when my log out of my desktop manager (start on stopping lightdm)?

shutdown
  • 1 Answers
  • 1647 Views
Martin Hope
Rick
Asked: 2014-04-29 14:59:23 +0800 CST

Shutting down all VirtualBox (vagrant) VMs in one easy to use bash command (that can be put into a bash file)

  • 76

I use vagrant for development. I forget to shut down a few of the VMs. When I go to log out of my host machine, the Ubuntu shutdown process appears to hang.

Might there be a way to script a close of all vagrant boxes with a bit of commandline-fu? Something like the following, but something that, well, works.

for f in $HOME/vagrant;
do;
  cd $f
  vagrant halt
done;
command-line
  • 10 Answers
  • 114658 Views
Martin Hope
Rick
Asked: 2013-08-02 08:56:45 +0800 CST

SSH into a guest VM

  • 4

I have a CentOS as a guest VM. My host machine is 13.04. The CentOS can see the web but I cannot ssh into that VM.

My guest machine is CentOS 6.4 running in VirtualBox. From the VM window, I can update via yum and even browse on lynx. It reports an internal IP of 10.0.2.15. However I cannot ssh from my host machine into this one. To double check, I've even turned off iptables.

Did I miss any steps? How might I be able to SSH into the guest from host?

VirtualBox Session Info enter image description here

ifconfig of Guest (CentOS) enter image description here

VirturalBox Network enter image description here

networking
  • 4 Answers
  • 12674 Views
Martin Hope
Rick
Asked: 2013-04-23 12:11:49 +0800 CST

In Unity, all "O" are showing up as "V"

  • 3

Since today, in Ubuntu 12.10 running Unity, my font has been doing something strange.

The O characters are showing up as V. See the graphics below. For example, the desktop folder on this file open dialog is spelled as Desktvp.

Any ideas would be most appreciated.

enter image description here enter image description here

fonts
  • 1 Answers
  • 54 Views
Martin Hope
Rick
Asked: 2012-07-31 12:22:45 +0800 CST

How do I set a shortcut to screenshot a selected area?

  • 136

In gnome's screen shot program, the quick keys PrtScn captures the entire screen and alt+PrtScn captures the active window. Is there a way to script or set up the third capture option of a selected area?

Update: I don't seem to have this key already mapped... enter image description here

12.04
  • 7 Answers
  • 235844 Views
Martin Hope
Rick
Asked: 2012-05-09 07:05:52 +0800 CST

Synchronize profiles across servers (.vimrc and .bashrc)

  • 5

I'm on a few different servers on any given day. I'm starting to really tweak two files in my bash profile: .vimrc and alias.sh. Would anyone have a recommended way to save and sync these two files. Perhaps using rsync or unison (over ssh using a predefined shared key)? Has anyone set this up before?

sync bash bashrc
  • 1 Answers
  • 1615 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    How to install Google Chrome

    • 8 Answers
  • Marko Smith

    Is there a command to list all users? Also to add, delete, modify users, in the terminal?

    • 9 Answers
  • Marko Smith

    How to delete a non-empty directory in Terminal?

    • 4 Answers
  • Marko Smith

    How to unzip a zip file from the Terminal?

    • 9 Answers
  • Marko Smith

    How can I copy the contents of a folder to another folder in a different directory using terminal?

    • 8 Answers
  • Marko Smith

    How do I install a .deb file via the command line?

    • 11 Answers
  • Marko Smith

    How do I run .sh scripts?

    • 16 Answers
  • Marko Smith

    How do I install a .tar.gz (or .tar.bz2) file?

    • 14 Answers
  • Marko Smith

    How to list all installed packages

    • 24 Answers
  • Marko Smith

    Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    • 25 Answers
  • Martin Hope
    Flimm How can I use docker without sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp How do I save terminal output to a file? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd How to unzip a zip file from the Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    pandisvezia How can I copy the contents of a folder to another folder in a different directory using terminal? 2011-12-11 17:19:37 +0800 CST
  • Martin Hope
    TheXed How do I install a .deb file via the command line? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan How to list all installed packages 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry How do I determine the total size of a directory (folder) from the command line? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "The following packages have been kept back:" Why and how do I solve it? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford How can PPAs be removed? 2010-07-30 01:09:42 +0800 CST

Related Questions

Trending Tags

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve