Skip to content

u/devosion

In this archive from Jan 2012 to Aug 2018

17
posts
174
comments
5
media
725
score
1 saved before deletion

As far as scripting goes, I keep all my scripts in one easy to find location, and make a sym link to a bin folder in my home dir that I've added to PATH. This makes it pretty easy for me to find scripts that may be automated via chron / systemd or that run via config files.

Config files are setup similarly, all config files in one central location with sym links to their recommended locations.

In general, a good directory system for important scripts / files and usage of sym links goes a long way to keeping your system tidy and easy to understand even if you haven't touched a script in years.

19 points

You're being incredible general here. Do you have any specifics? And it's incredibly difficult to get access to root if you don't know the persons password, and even if you do get a hack into userspace you are only affecting that user. And any user worth their salt knows how to monitor unwanted traffic and stop it.

4 points

I think you answered your own question here. Personally, if you haven't already, I'd setup his own user account with access to only the programs you want him to be able to run as well. I haven't quite done the blacklisting you are trying to do but a simple cronjob / systemd timer should do the trick. You could even disable internet access for certain times like this, or access to games. I'd also be sorely tempted to give him simple cli puzzles to get him used to using the command line, and spur on his intrigue in linux.

2 points

Removing the desktop image will not spare up any RAM. Why are you using such an old version of Ubuntu? You can upgrade to 16.04 currently. Switching to another desktop environment other than Unity may help, something light weight like lxde, xfce, or openbox. May even want to consider a window manager if you want to go really lightweight, I use i3 on my machines.

Also, chrome and firefox are the biggest RAM hogs around, if you are low on RAM while in the middle of doing other things with them open they are your culprits. Consider a browser that doesn't eat up as much, midori and chromium are decent alternatives.

3 points

Went ahead and got around the whole issue with specifying bindings in the service file by just modifying my ExecStart in my override.conf. Everything is working as intended now, although I was hoping I could get the parameters in the .spawn file to work.

[Service]
ExecStart=
ExecStart=/usr/bin/systemd-nspawn -bD /home/devosion/ArchGaming \
                    --bind=/dev/dri \
                    --bind=/tmp/.X11-unix \
                    --bind=/dev/shm \
                    --bind=/dev/nvidia0 \
                    --bind=/dev/nvidiactl \
                    --bind=/dev/nvidia-modeset \
                    --bind=/dev/input \
                    --bind=/run/user/1000/pulse:/run/user/host/pulse \
                    --bind=/dev/snd
1 points

I would but I don't want all my updates to my dot files to be made to my github folder, especially when I'm experimenting. This way my github dot files folder acts as a backup of my old theme and can be overidden when I am happy with the way things look, and am ready to upload an update.

1 points

Sorry for the late reply, but I didn't have a chance to try your solution out until today, and I do believe this is working as intended now. The old timer was showing it passed and the amount of time in which it passed. While the new timer with OnActiveSec= is showing a countdown to the next run. I'll have to monitor it over the next day or so but I'm pretty sure this will work as intended now. Thanks for your help.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.