Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
nndocs:initial [2016/07/04 13:39]
naptastic we're not using kernel-package anymore
nndocs:initial [2019/05/19 21:15] (current)
naptastic update for ubuntu 18.04 (part 1/?)
Line 1: Line 1:
-===== Initial Configuration of Linux Hosts on the Naptastic Network ​=====+===== Standard Ubuntu Setup at narf.rocks ​=====
  
-I've settled on Debian Testing. This is probably going to be my distribution ​of choice for a Long TimeEspecially since I'm at the point now where I can basically get around everything I don't like. Basically, Debian currently represents the best balance for me of doing the things I don't want to do myself, and getting out of the way so I can do what I want to do myself.+Perform a network install ​of Ubuntu 18.04Mirror settings:
  
-Once you've installed Debian Stable, you can change to Testing like this:+  * hostmirror.narf.rocks 
 +  * directory: /ubuntu 
 +  * No proxy
  
-  * ''​sed -i.dist '​s/​wheezy/​jessie/;/​cdrom/​d;/​security/​!s/​main$/​main contrib non-free/'​ /​etc/​apt/​sources.list''​ +    ​apt remove ​isc-dhcp-* systemd-resolved 
-  * ''​apt-get update''​ +    apt install ​dhcpcd5
-  * ''​apt-get dist-upgrade''​ +
- +
-There will be a few prompts you'll need to watch. I don't (yet) know how to make this unattended. +
- +
-== Select a sane mirror == +
- +
-  ​''​apt-get -y install netselect-apt''​ +
-  * ''​netselect-apt -sn testing''​ +
- +
-Do that at least twice. It will generate a sources.list file in your current directory which you can (AFTER MAKING A BACKUP) ​install ​in /etc/apt. **mirror.rackspace.com has been fairly consistently the best option lately.** +
- +
-  * ''​apt-get update''​ +
-  * ''​apt-get -y autoremove''​+
  
 == Essentials == == Essentials ==
Line 25: Line 14:
 Take these, you'll need them: Take these, you'll need them:
  
-  * ''​apt-get -y install ​bzip2 git vim lynx openssh-server nfs-kernel-server lame autoconf smartmontools''​+  * ''​apt-get -y install git vim lynx openssh-server lame autoconf smartmontools'' ​(omit smartmontools on VMs)
  
 == Make history include human-readable timestamps == == Make history include human-readable timestamps ==
Line 41: Line 30:
 == Disable %!@#^ing console beeps == == Disable %!@#^ing console beeps ==
  
-  * ''​echo '​blacklist pcspkr'​ > /​etc/​modprobe.d/​nobeep.conf''​+  * ''​echo '​blacklist pcspkr'​ > /​etc/​modprobe.d/​nobeep.conf'' ​(not sure if necessary anymore)
  
 == Disable %!@#^ing screen blanking == == Disable %!@#^ing screen blanking ==
Line 47: Line 36:
 Add this to ''/​etc/​rc.local''​ above the ''​exit 0''​ line: Add this to ''/​etc/​rc.local''​ above the ''​exit 0''​ line:
  
-  sh -c '​setterm -blank 0 -powersave off -powerdown 0 < /​dev/​console > /​dev/​console 2>&​1'​+  sh -c '​setterm -blank 0 -powersave off -powerdown 0 < /​dev/​console > /​dev/​console 2>&​1' ​(not sure if necessary anymore)
  
 == PS1 == == PS1 ==
Line 53: Line 42:
 Add this to your ''​~/​.bashrc''​ file: Add this to your ''​~/​.bashrc''​ file:
  
-  * ''​PS1='​\[\033[32;​1m\][\u]@[\h]\[\033[0m\]\[\033[34;​1m\][\t]\[\033[0m\]\[\033[35;​1m\][\w]\[\033[0m\]\$ ' ''​+  * ''​PS1='​\[\033[32;​1m\][\u]@[\h]\[\033[0m\]\[\033[34;​1m\][\t]\[\033[0m\]\[\033[35;​1m\][\w]\[\033[0m\]\$ ' '' ​(this needs an update)
  
 ===== If you are using a graphical desktop environment ===== ===== If you are using a graphical desktop environment =====
  
-  * ''​apt-get -y install gparted hexchat pidgin synaptic terminator fonts-lohit-knda fonts-knda''​+  * ''​apt-get -y install gparted hexchat pidgin synaptic terminator fonts-lohit-knda fonts-knda'' ​(this needs an update)
  
 ===== If you plan to compile your own kernel ===== ===== If you plan to compile your own kernel =====
  
-  * ''​apt-get -y install ncurses-dev''​ +  * ''​apt-get -y install ncurses-dev'' ​(this is no longer sufficient)
- +
-===== If This is a Virtual Machine ===== +
- +
-Find this line in /​etc/​default/​grub:​ +
- +
-''​GRUB_CMDLINE_LINUX_DEFAULT="​quiet"''​ +
- +
-Change it to this: +
- +
-''​GRUB_CMDLINE_LINUX_DEFAULT="​quiet elevator=noop libata.force=noncq"''​ +
- +
-(So add "​elevator=noop"​ to the default kernel command line.Then run update-grub and, after your next reboot, your VM will be running the noop I/O scheduler. This is more efficient as it prevents I/O operations from getting re-scheduled twice by different schedulers. +
nndocs/initial.txt · Last modified: 2019/05/19 21:15 by naptastic
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki