PWB/UNIX is the first UNIX with
- The First Source code control ever
- A really nice shell
make
,find
, andhead
Bet it was a lot of fun.
PWB/UNIX is the first UNIX with
make
, find
, and head
Bet it was a lot of fun.
You might have first used UNIX a long ago but if you haven’t then here is x86 port to try it for the first time pretty easily on a virtual machine.
Start exploring using commands cat ~cd
ed
diff
egrep
file
pwd
size
.
cd /etc
pwd
file passwd
cat passwd
UNIX’ers: how do I use less
or more
to preview a file?
The first time you try using irssi with tmux you might notice that on screens larger than 40 rows the refresh functionality does not work. This is a known not-really-an-issue tmux requires a particular term and is quite clear about it in the docs (if you read them I did not). Found the solution here, when you start tmux set the term for it correctly:
alias irssi='TERM=screen-256color irssi'
My goal was to log in to the Ubuntu 12.04 LTS Desktop desktop, over a SSH tunnel, using VNC, before anyone was logged into the desktop itself. This scenario occurs because although you may share your desktop over the built in “Desktop Sharing”, you may need to restart the system, and after rebooting you are left with a login screen desktop, but without a logged-in desktop to share.
The directions I followed are from this great post.
sudo /usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -display :0 -passwd "yourpwhere" -forever -bg -o /var/log/x11vnc.log
Option notes: -xkb, help with keyboard modifiers. -noxrecord, don’t let the xserver do grabs, assume this helps with speed. -noxfixes, disable xfixes cursor shape mode, assume this helps with speed. -noxdamage, disable xdamage polling hints, this does help with speed, has to do with Ubuntu’s compiz. -auth, lightdm is the unity login manager. -display, the primary. -passwd not secure, tunnel over ssh also. -forever don’t quit after the first client disconnects. -bg go into background mode. -o redirect output here.
It is here:
~/.config/lxterminal/lxterminal.conf
Mine is:
PS1='\u@\h:$pwd>'
daemontools is a collection of tools for managing UNIX services.
supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.
multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.
(via PLT)
There are a lot of tools out there for mirroring data, but sometimes you just want to do something very simple: download the latest contents of a FTP directory while leaving what you have already downloaded alone. wget supports a mirror command that provides this exact functionality. Just enter the directory where you would like to store the mirror and execute this command:
wget --mirror [prot]://[username]:[password]@[hostname]/[directory to mirror]