Useful Information Flashcards
How do I debug Everpad
killall everpad everpad-provider everpad-lens && everpad-provider –verbose
Run everpad and everpad-lens in separate environments
What are the three processes Everpad runs?
everpad, everpad-lens everpad-provider
How do I set the system’s domain name
sudo domainname
How do I get the system’s domain name
domainname
How do I configure a new network card?
Edit /etc/network/interfaces
restart networking
How do you restart networking on Ubuntu?
sudo /usr/sbin/service networking restart **Sometimes requires a reboot
What options for static ip addresses in /etc/network/interfaces must be set?
address, netmask, gateway, network and broadcast
What system file sets environment variables for all uses no matter what shell is used?
/etc/environment
What is the difference between /etc/environment and /etc/bash.bashrc?
/etc/enviornment only sets environment variables and does not interpolate strings. /bash.bashrc only impacts bash and runs as a typical login file for every bash user.
What command temporarily sets a proxy?
export http_proxy=http://:
Also, HTTP_PROXY, https_proxy, HTTPS_PROXY, HTTPS_proxy, FTP_PROXY
What environment variable tells when not to use a configured proxy?
NO_PROXY, no_proxy
When using the NO_PROXY environment variable how would you set no proxy for localhost and a specific domain?
export NO_PROXY=localhost,127.0.0.1,localaddress,.domain
What command do you use to update package repositories?
sudo apt-get update (or if installed #sudo aptitude update)
How do you mount a cd?
sudo mount /dev/cdrom /media/cdrom
What command do you use to stop a running service?
stop