Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › echo "The `uname` Club" (NEW POLL)
New Posts  All Forums:Forum Nav:

echo "The `uname` Club" (NEW POLL) - Page 176

Poll Results: How long have you been using your current, main installation?

 
  • 24% (50)
    less then a month
  • 23% (47)
    less then six months
  • 14% (30)
    less then a year
  • 24% (49)
    less then three years
  • 13% (27)
    three years+
203 Total Votes  
post #1751 of 4043
Officially joining, Ubuntu 13.10, was running KDE but switched back to Ubuntu because something was annoying me in KDE.

post #1752 of 4043
Quote:
Originally Posted by Plan9 View Post

I'm a little confused why you're talking about samba shares in a post about NFS. Was that accidental or is there more to your set up that I'm forgotten / missed?
What user are you trying to write to those directories as?
Also, can you post the output of mount please

I was confused thinking SAMBA was the way to share between linux, you corrected me a couple posts up saying I should be using NFS for that, not SAMBA. I was just saying that this is where SAMBA is looking too, probably irrelevant information, sorry to confuse you.

Here is the output of id user for the user I am trying to write the file to, this is on the client machine:
Code:
id dan
uid=1000(dan) gid=1000(dan) groups=1000(dan),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),124(sambashare)

This is from the server:
Code:
id dan
uid=1001(dan) gid=1001(dan) groups=1001(dan),107(lpadmin)

Output of mount:
Code:
/dev/sda5 on / type ext4 (rw,noatime,discard,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /tmp type tmpfs (rw,noatime,mode=1777)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/sdb6 on /home type ext4 (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=dan)
192.168.1.100:/mnt/nas/backup on /home/dan/Share type nfs (rw,vers=4,addr=192.168.1.100,clientaddr=192.168.1.2)
#The above share I was experimenting mounting it somewhere else, that is no longer active, it just won't let me unmount it.  I assume when I restart it will unmount
192.168.1.100:/mnt/nas on /mnt/Server type nfs (rw,vers=4,addr=192.168.1.100,clientaddr=192.168.1.2)
/dev/sdc1 on /media/dan/KINGSTON type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
gvfsd-fuse on /home/dan/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev)
/dev/sdb1 on /media/dan/00ACCABDACCAAD0A type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda1 on /media/dan/2A02808802805AA9 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
post #1753 of 4043
Your user IDs are different. Dan needs to be the same user ID.
(I'm glad you posted the output of id as I'd never have found the problem otherwise!)

edit: It's probably worth making the group IDs the same as well
post #1754 of 4043
What's the easiest way to do that? I am assuming change it on the client since there is already a user with uid of 1000 on the server, but how do I do this without breaking stuff?
Code:
usermod -u 1001 dan

?
post #1755 of 4043
Quote:
Originally Posted by thestraw0039 View Post

Officially joining, Ubuntu 13.10, was running KDE but switched back to Ubuntu because something was annoying me in KDE.


What was annoying you in KDE?
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #1756 of 4043
Quote:
Originally Posted by Rookie1337 View Post

What was annoying you in KDE?

I had two file managers (forget what the are called exactly) dolphin and the ubuntu default, and one was double click stuff and the other was single click, it was driving me nuts because it kept switching. I was also having trouble ripping DVDs using handbrake, so I switched back to ubuntu. I know all this stuff is probably fixable, it was just annoying (mainly handbrake, it wouldn't read any rippable files even though I could play the DVD in VLC). I want to go back to KDE on arch, but I am afraid I'm going to break something, I've only been using Ubuntu for about a year so not sure I know enough for Arch.
post #1757 of 4043
Quote:
Originally Posted by thestraw0039 View Post

What's the easiest way to do that? I am assuming change it on the client since there is already a user with uid of 1000 on the server, but how do I do this without breaking stuff?
Code:
usermod -u 1001 dan

?

That will work, but check that 1001 isn't being used on the client side too. eg
Code:
cut -d: -f3 /etc/passwd | grep 1001
(or however you prefer - there's a million different ways you can check)

also change the group id (both against the user and against /etc/groups - eg using groupmod cli tool)
post #1758 of 4043
Quote:
Originally Posted by thestraw0039 View Post

I had two file managers (forget what the are called exactly) dolphin and the ubuntu default, and one was double click stuff and the other was single click, it was driving me nuts because it kept switching. I was also having trouble ripping DVDs using handbrake, so I switched back to ubuntu. I know all this stuff is probably fixable, it was just annoying (mainly handbrake, it wouldn't read any rippable files even though I could play the DVD in VLC). I want to go back to KDE on arch, but I am afraid I'm going to break something, I've only been using Ubuntu for about a year so not sure I know enough for Arch.

You can change Dolphin to work on single clicks (which is how I have it set up)
post #1759 of 4043
Quote:
Originally Posted by Plan9 View Post

You can change Dolphin to work on single clicks (which is how I have it set up)

Dolphin was one click, but the Ubuntu was 2 clicks, I figured there was a way to change it, but I was lazy and with Handbrake not working I figure I would go back to Ubuntu and see if Handbrake would work there.

Also +rep Plan, changed the uid and everything is working perfectly. Didn't have to change the gid but when I tried I got an error saying no group 1001, assuming I would have to make the group first, thanks for your help though. Now time to work on my script for Rsync.
post #1760 of 4043
Quote:
Originally Posted by thestraw0039 View Post

Dolphin was one click, but the Ubuntu was 2 clicks, I figured there was a way to change it, but I was lazy and with Handbrake not working I figure I would go back to Ubuntu and see if Handbrake would work there.

Also +rep Plan, changed the uid and everything is working perfectly. Didn't have to change the gid but when I tried I got an error saying no group 1001, assuming I would have to make the group first, thanks for your help though. Now time to work on my script for Rsync.

yeah, change the groups gid, then the gid of the user

with regards to the rsync, since you're copying from a laptop which means you may not be home or wireless might be playing up, etc, you don't want NFS always on and you want to check that your server is contactable before even attempting the rsync.

Something like this should do the job:
Code:
#!/bin/bash

server='192.168.1.100'          # server ip
mntsrc='/path/to/directory'     # server directory to mount
mntdest='/mnt/rsync'            # laptop destination for the mount
baksrc='/home/user'             # location of data to back up

ping -W 2 -c 1 $server > /dev/null
if [ $? -eq 0 ]; then
        mount $server:$mntsrc $mntdest
        mkdir -p $mntdest 2> /dev/null       # it doesn't matter if it already exists, so no point erroring
        mkdir -p $mntsrc 2> /dev/null        # it doesn't matter if it already exists, so no point erroring
        rsync -az --delete --progress $baksrc $mntdest
        umount $mntdest
else
        echo "ping failed. exiting"
        exit 1
fi

It's a little over the top, as in you could probably write the same script in about 5 lines. But you can adapt that to suit your needs.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › echo "The `uname` Club" (NEW POLL)