Actions

Difference between revisions of "Upgrading Ubuntu Server Orac"

From zen2

(16.04 Upgrade)
(16.04 Upgrade)
 
(5 intermediate revisions by the same user not shown)
Line 43: Line 43:
 
<pre>
 
<pre>
 
/dev/md0 /media/raid ext4 defaults 0 2
 
/dev/md0 /media/raid ext4 defaults 0 2
/dev/sdc1 /media/nonraid           ext4    defaults        0      2
+
/dev/sdf1 /media/nonraid         ext4    defaults        0      2
 +
/media/nonraid/Video  /media/raid/media/Video/video-ext  none  bind  0 0
 
</pre>  
 
</pre>  
 
to /etc/fstab
 
to /etc/fstab
Line 87: Line 88:
 
for each user.
 
for each user.
  
Must log on to each user to construct default folders in ~ directory. Create folders in ~ to map raid/nonraid folders to, eg ~media, ~/personal etc
+
Must log on to each user to construct default folders in ~ directory. Create folders in ~ to map raid/nonraid folders to, eg ~media, ~/personal, ~/family, ~/software, ~/tmp etc
  
 
The follow symlinks etc no longer works, so must map folders in fstab:
 
The follow symlinks etc no longer works, so must map folders in fstab:
Line 97: Line 98:
 
   comment = Home Directories
 
   comment = Home Directories
 
   browseable = no
 
   browseable = no
 +
  read only = no
 +
</pre>
 +
<pre>
 +
sudo /etc/init.d/samba restart
 +
</pre>
 +
 +
Edit fstab thus:
 +
<pre>
 +
sudo gedit /etc/fstab
 +
</pre>
 +
 +
Add it for each user/folder share:
 +
<pre>
 +
/media/raid/media  /home/xxx/media  none  bind  0 0
 +
/media/nonraid/Video  /home/xxx/media/Video/video-ext  none  bind  0 0
 +
/media/raid/personal/xxx /home/xxx/personal none  bind  0 0
 +
/media/raid/family /home/xxx/family none  bind  0 0
 +
/media/raid/software  /home/xxx/software  none  bind  0 0
 +
/media/raid/tmp    /home/xxx/tmp  none  bind  0 0
 
</pre>
 
</pre>
  
 
==Tuning==
 
==Tuning==
 
*Adjust [[Ubuntu_Linux_Virtual_Memory_Swappiness | swap file settings]]
 
*Adjust [[Ubuntu_Linux_Virtual_Memory_Swappiness | swap file settings]]

Latest revision as of 23:17, 17 March 2017

Screen / Monitor Resolution

-First problem after installing nvidia driver was 640x480 resolution. Eventually fixed this with

sudo displayconfig-gtk

and changing the screen to LCD 1024x768. Prior to this I installed envyng-gtk to get the latest nvidia driver, but I probably didn't need to.

VMware Server

Installed VMware server with serial

VMware Server 2 for Linux 	A0425-FF72N-U3436-4CPCX

RAID / RAID5

First tried using evms as used previously to create/maintain the RAID. This broke everything, and I had to remove/uninstall theis from the root prompt on the recovery console.

Successfully recreated the RAID installing and using mdadm

sudo mdadm --assemble --scan

This will attempt to locate any existing RAIDs Then added

/dev/md0	/home/n2o/data ext3 defaults	0	2
/dev/sdc1 /home/n2o/data/tera           ext3    defaults        0       2

to /etc/fstab (adding in the 1TB hard drive while I am at it)

In 10.04 I created a new RAID5 array. In order to get it to mount after a reboot (and adding it to fstab) I had to do the following

sudo mdadm --examine --scan --config=mdadm.conf >> mdadm.conf

Ubuntu 16.04 after rebuild

Just did

sudo apt-get install mdadm
sudo mdadm --assemble --scan

Then added

/dev/md0 /media/raid ext4 defaults	0	2
/dev/sdf1 /media/nonraid          ext4    defaults        0       2
/media/nonraid/Video   /media/raid/media/Video/video-ext   none   bind   0 0

to /etc/fstab

Samba

Hardy is a bit different to previous versions for sharing folders.

sudo apt-get install samba smbfs

Don't really need smbfs, but what the heck).

Create the users for the system, add them to user group user (not necessary, but could make things easier in the future). Use the following user IDs for each user to pick up the previous permissions

  • 1001 chris
  • 1002 mina
  • 1003 bener
  • 1004 mark
  • 1005 almina

Add these users to samba

sudo smbpasswd -a chris

for each user.

In 10.04 I also had to add the following in /etc/samba/smb.conf

follow symlinks = yes
wide links = yes
unix extensions = no

16.04 Upgrade

sudo apt-get install samba

Create users in normal Ubuntu control panel.

Add these users to samba

sudo smbpasswd -a chris

for each user.

Must log on to each user to construct default folders in ~ directory. Create folders in ~ to map raid/nonraid folders to, eg ~media, ~/personal, ~/family, ~/software, ~/tmp etc

The follow symlinks etc no longer works, so must map folders in fstab:

sudo gedit /etc/samba/smb.conf
[homes]
   comment = Home Directories
   browseable = no
   read only = no
sudo /etc/init.d/samba restart

Edit fstab thus:

sudo gedit /etc/fstab

Add it for each user/folder share:

/media/raid/media   /home/xxx/media   none   bind   0 0
/media/nonraid/Video   /home/xxx/media/Video/video-ext   none   bind   0 0
/media/raid/personal/xxx /home/xxx/personal none   bind   0 0
/media/raid/family /home/xxx/family none   bind   0 0
/media/raid/software   /home/xxx/software   none   bind   0 0
/media/raid/tmp    /home/xxx/tmp   none   bind   0 0

Tuning