Quantcast
Channel: Linux Device Hacking - Debian
Viewing all 26682 articles
Browse latest View live

Re: cmake complains g++-7 is not able to compile a simple test program.

$
0
0
Hi habibie,

Please keep all gcc-7 in this same topic. No need to create new thread for different gcc-7 problem.

Re: other USB ports

$
0
0
lordzahl,

Very good! I'll take a look later.

Re: NFS client R/W problem

$
0
0
Try

/srv    192.168.1.0/24(rw,no_root_squash,insecure,no_subtree_check,sync)

Re: After installation of the latest UBoot, it stuck at "Starting kernel ..."

$
0
0
bchen Wrote:
-------------------------------------------------------
> bodhi,
>
> I resolved it by using a different SD card. I
> don't understand but who cares :P

Cool :) the problem might be during you created the rootfs, you've missed some step/requirements, or the SD card itself is not good for booting (there are brands that really bad for rootfs). Doing it the 2nd time with a different card is alwasy a good idea.

Re: NFS client R/W problem

$
0
0
bodhi Wrote:
-------------------------------------------------------
> Try
>
>
> /srv   
> 192.168.1.0/24(rw,no_root_squash,insecure,no_subtree_check,sync)
>
>
Bodhi,

I am not in favor of using the b]no_root_squash[/b] option. However, I really did try it before I posted here and it does not work. I don't know why. I also tried it on other OpenSUSE Linux desktop computer and ended with the same write permission denied message. Perhaps this has something to do with the NFS package on OpenSuSE?

Garbage characters on directory and/or file name

$
0
0
On my Seagate Dockstar running on debian ARMel, ls -al returns all Chinese characters of a directory and/or file name as ?????? (see below)
[root@debian:/root 3%] # ls -la /srv/
total 12
drwxr-xr-x  3 root   root    4096 Mar 15 22:34 .
drwxr-xr-x 21 root   root    4096 Feb 16  2015 ..
drwxr-xr-x  2 nobody nogroup 4096 Mar 16 13:05 ????????????
[root@debian:/root 4%] # ls -la /srv/\347\273\247\347\210\266\345\233\236\345\256\266/
total 876960
drwxr-xr-x 2 nobody nogroup      4096 Mar 16 13:05 .
drwxr-xr-x 3 root   root         4096 Mar 15 22:34 ..
-rw-r--r-- 1 nobody nogroup 178467784 Feb 15 19:15 ?????????.mp4
-rw-r--r-- 1 nobody nogroup 180803541 Feb 15 21:18 ?????????.mp4
-rw-r--r-- 1 nobody nogroup 182210980 Mar 15 22:32 ?????????.mp4
-rw-r--r-- 1 nobody nogroup 177843368 Feb 15 22:20 ?????????.mp4
-rw-r--r-- 1 nobody nogroup 178652002 Feb 16 11:56 ?????????.mp4
[root@debian:/root 5%] #
OTOH, this does not happen when I tried the same thing on my OpenSuSE Linux desktop computer (see below). Is there a package I must install to remedy this issue?
[habibie@linux:/mnt/exports/devel/openwrt-git-trunk 276%] ~ ls -la /mnt/
total 12
drwxr-xr-x  3 root   root    4096 Mar 15 22:34 .
drwxr-xr-x 23 root   root    4096 Sep  9  2017 ..
drwxr-xr-x  2 nobody nogroup 4096 Mar 16 13:05 继父回家
[habibie@linux:/mnt/exports/devel/openwrt-git-trunk 277%] ~ ls -la /mnt/继父回家/
total 876960
drwxr-xr-x 2 nobody nogroup      4096 Mar 16 13:05 .
drwxr-xr-x 3 root   root         4096 Mar 15 22:34 ..
-rw-r--r-- 1 nobody nogroup 178467784 Feb 15 19:15 第一集.mp4
-rw-r--r-- 1 nobody nogroup 180803541 Feb 15 21:18 第三集.mp4
-rw-r--r-- 1 nobody nogroup 182210980 Mar 15 22:32 第二集.mp4
-rw-r--r-- 1 nobody nogroup 177843368 Feb 15 22:20 第五集.mp4
-rw-r--r-- 1 nobody nogroup 178652002 Feb 16 11:56 第四集.mp4
[habibie@linux:/mnt/exports/devel/openwrt-git-trunk 278%] ~

Re: Garbage characters on directory and/or file name

$
0
0
It could a setting in the terminal program your using to access your Dockstar. I use PuTTY with the Window Translation set to UTF-8 and I can view file names with Chinese characters properly on my Dockstar. I don't believe I've ever installed anything extra.

-JT

Re: Garbage characters on directory and/or file name

$
0
0
Yes, there is some minimum UTF-8 setup needed. I will post my settings (in my log somewhere).

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
I am updating this post as I am reading the info from n2350_gpl.tar.gz.

1. The newer DTB that should be used for this Thecus N2350 box:

In the rootfs Debian-4.12.4-mvebu-tld-1-rootfs or in newer kernel linux-4.15.4-mvebu-tld-1:

./boot/dts/armada-388-db.dtb

2. The kernel config in In the rootfs Debian-4.12.4-mvebu-tld-1-rootfs or in newer kernel linux-4.15.4-mvebu-tld-1 should be enough (better) to boot this Thecus box.

3. USB power GPIO:

Unknown. This must be found in GPL source code.

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
Hi Bodhi,

ok, here is the log for what I did to the SATA drive using Schnee's install :

# ./pogoSATA.sh: line 52: [: =: unary operator expected
WARNING!!!!
ALL DATA ON /dev/sdb WILL BE DESTROYED!
PROCEED? (y/N)
y
Deleting partitions...

Welcome to fdisk (util-linux 2.30.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Created a new DOS disklabel with disk identifier 0x0ccd13dd.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Creating partions....
Welcome to fdisk (util-linux 2.30.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-1465149167, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-1465149167, default 1465149167): 
Created a new partition 1 of type 'Linux' and of size 16 MiB.
Partition #1 contains a ext3 signature.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (34816-1465149167, default 34816): Last sector, +sectors or +size{K,M,G,T,P} (34816-1465149167, default 1465149167): 
Created a new partition 2 of type 'Linux' and of size 4 GiB.

Command (m for help): Partition type
   p   primary (2 primary, 0 extended, 2 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (8423424-1465149167, default 8423424): Last sector, +sectors or +size{K,M,G,T,P} (8423424-1465149167, default 1465149167): 
Created a new partition 3 of type 'Linux' and of size 694.6 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

  Done!
Formating /dev/sdb1...mkfs.fat 4.1 (2017-01-24)
 Done!
Formating /dev/sdb2...mke2fs 1.43.5 (04-Aug-2017)
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: 361e9fab-7e67-4224-91a1-f2afd64c0d47
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

 Done!
Formating /dev/sdb3...mke2fs 1.43.5 (04-Aug-2017)
Creating filesystem with 182090718 4k blocks and 45522944 inodes
Filesystem UUID: 6bd15947-48ad-457b-ad52-1f68dd25b01a
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000

Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done     

 Done!
Copying uBoot files...rmdir: failed to remove './boot': Directory not empty
 Done!
Create magic...0+1 records in
0+1 records out
444 bytes copied, 0.0177294 s, 25.0 kB/s
 Done!
Writing stage 156+1 records in
56+1 records out
29172 bytes (29 kB, 28 KiB) copied, 0.0312296 s, 934 kB/s
Mount rootfs... Done!
Copy root filesystem... Done!
Extract rootfs... Done!
Copying new kernel... Done!
Finalizing...rmdir: failed to remove 'rfs': Directory not empty
umount: /dev/sdb1: not mounted.
umount: /dev/sdb2: not mounted.
umount: /dev/sdb3: not mounted.
 Done!
Finished!
Connect the drive to the Pogo and boot! Connect a serial console and an enthernet cable to the Pogo and boot it. Let .1stboot.sh to finish after you loged on!
Username: root, Password:root
ENJOY!



this is all I get:


# picocom -b 115200 /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready
���ZU�?




then it just hangs:

the ethernet lights do flash, I checked the router but its not there either.


got same results on second usb to tty adapter, have 2 just in case:)
thanks echowarrior108

-----


Moderator: please use code tags, it is not easy to read log without it.

Re: Garbage characters on directory and/or file name

$
0
0
This came from my old log several years ago. Please try and see if NFS/Samba will show UTF-8 file names. Let me know if it works after setting this up. I will add this to the Wiki afer you have verified this procedure. Thanks!

===================

Please adjust the locale to your own country. This example uses US UTF-8.

1. Change locale.gen

cat locale.gen
# This file lists locales that you wish to have built. You can find a list
# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add
# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change
# this file, you need to rerun locale-gen.

<snip>

en_US.UTF-8 UTF-8

2. Run locale-gen to generate locale

locale-gen
Output:
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.

3. Create UTF-8 Language export in your root login and user account

cat ~/.utf8
export LANG=en_US.UTF-8

4. Include the UTF-8 export in your root or other users .profile

cat ~/.profile
# ~/.profile: executed by Bourne-compatible login shells.

<snip>

. ~/.utf8

5. Install unicode

apt-get install xfonts-efont-unicode
apt-get install xfonts-efont-unicode-ib

6. Reboot. Upon the system is up, Samba should present to the display on your other machine directory explorer, finder, ... utf-8 compliance file names.

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
echowarrior108,

How do you connect the serial cable to the pogoplug?

Can you check what you see on the serial if the sata drive is not connected?

How do you power the sata drive?

Thanks

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
@nailman23: Happy to hear that others are interested. Do you have a serial console yet?

@bodhi: Okay, if i understand you correctly i should still use the dtb from your Debian/linux Images. We also do not need the kernel config. The only thing which is missing (at the moment) is the USB power.

So i was thinking, the dts, which is used for this box does indeed not enable USB power on boot. We can see that, since i was not able to boot the box with stock kernel and dtb from usb.
But there are other dts files for 385/388 processors, which show how to enable usb power. The talk about gpio pin 12 in gpio1 (there seem to be to gpio groups 0 and 1).
I'll attach the dts files to this post.
The armada-38x-modular.dts shows also how to power up USB via a "gpio expander".

Re: cmake complains g++-7 is not able to compile a simple test program.

$
0
0
renojim Wrote:
-------------------------------------------------------
> If you run c++ --help is -c listed as an option?
>
Yes and indeed -c listed as an option. So, it ought to be a cmake problem?
[root@debian:/root 4%] # c++ --help
Usage: c++ [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase.
  --help                   Display this information.
  --target-help            Display target specific command line options.
  --help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].
                           Display specific types of command line options.
  (Use '-v --help' to display command line options of sub-processes).
  --version                Display compiler version information.
  -dumpspecs               Display all of the built in spec strings.
  -dumpversion             Display the version of the compiler.
  -dumpmachine             Display the compiler's target processor.
  -print-search-dirs       Display the directories in the compiler's search path.
  -print-libgcc-file-name  Display the name of the compiler's companion library.
  -print-file-name=<lib>   Display the full path to library <lib>.
  -print-prog-name=<prog>  Display the full path to compiler component <prog>.
  -print-multiarch         Display the target's normalized GNU triplet, used as
                           a component in the library path.
  -print-multi-directory   Display the root directory for versions of libgcc.
  -print-multi-lib         Display the mapping between command line options and
                           multiple library search directories.
  -print-multi-os-directory Display the relative path to OS libraries.
  -print-sysroot           Display the target libraries directory.
  -print-sysroot-headers-suffix Display the sysroot suffix used to find headers.
  -Wa,<options>            Pass comma-separated <options> on to the assembler.
  -Wp,<options>            Pass comma-separated <options> on to the preprocessor.
  -Wl,<options>            Pass comma-separated <options> on to the linker.
  -Xassembler <arg>        Pass <arg> on to the assembler.
  -Xpreprocessor <arg>     Pass <arg> on to the preprocessor.
  -Xlinker <arg>           Pass <arg> on to the linker.
  -save-temps              Do not delete intermediate files.
  -save-temps=<arg>        Do not delete intermediate files.
  -no-canonical-prefixes   Do not canonicalize paths when building relative
                           prefixes to other gcc components.
  -pipe                    Use pipes rather than intermediate files.
  -time                    Time the execution of each subprocess.
  -specs=<file>            Override built-in specs with the contents of <file>.
  -std=<standard>          Assume that the input sources are for <standard>.
  --sysroot=<directory>    Use <directory> as the root directory for headers
                           and libraries.
  -B <directory>           Add <directory> to the compiler's search paths.
  -v                       Display the programs invoked by the compiler.
  -###                     Like -v but options quoted and commands not executed.
  -E                       Preprocess only; do not compile, assemble or link.
  -S                       Compile only; do not assemble or link.
  -c                       Compile and assemble, but do not link.
  -o <file>                Place the output into <file>.
  -pie                     Create a position independent executable.
  -shared                  Create a shared library.
  -x <language>            Specify the language of the following input files.
                           Permissible languages include: c c++ assembler none
                           'none' means revert to the default behavior of
                           guessing the language based on the file's extension.

Options starting with -g, -f, -m, -O, -W, or --param are automatically
 passed on to the various sub-processes invoked by c++.  In order to pass
 other options on to these processes the -W<letter> options must be used.

For bug reporting instructions, please see:
<file:///usr/share/doc/gcc-7/README.Bugs>.
[root@debian:/root 5%] #

Re: Garbage characters on directory and/or file name

$
0
0
renojim Wrote:
-------------------------------------------------------
> It could a setting in the terminal program your using to access your Dockstar. I use PuTTY with the Window Translation set to UTF-8 and I can view file names with Chinese characters properly on my Dockstar. I don't believe I've ever installed anything extra.
>
> -JT
>
My OpenSUSE Linux Desktop computer correctly displays the Chinese characters. However, when I connect to my Seagate Dockstar through an SSH login from the same OpenSUSE Linux Desktop computer, the directory listing shows ????? characters as a filename. Using the same OpenSUSE Linux Desktop computer to connect to another OpenSUSE Linux Desktop computer through an SSH login, I have no problem to list some directories in Chinese characters. As such, I don't think this has anything to do with an SSH session, but rather I suspect it has something to do with the settings and/or missing packages on my Seagate Dockstar.

Re: Garbage characters on directory and/or file name

$
0
0
Bodhi,

I ran into these problems:
  1. I really don't know where to find the locale.gen file.
  2. There was no such locale-gen utility and I had to install the locales package (apt-get install locales) to get the locale-gen utility.
  3. After installing the locales package, I executed locale-gen and it does not produce the ~/.utf8 file as you pointed out above.
[root@debian:/root 28%] # locale-gen
Generating locales (this might take a while)...
Generation complete.
[root@debian:/root 29%] # ls -la
total 40
drwx------  5 root root 4096 Mar 17 08:47 .
drwxr-xr-x 21 root root 4096 Feb 16  2015 ..
-rw-r--r--  1 root root  570 Jan 31  2010 .bashrc
drwx------  3 root root 4096 Jun 14  2013 .config
drwxr-xr-x  2 root root 4096 Jul 23  2017 .nano
-rw-r--r--  1 root root  481 Jul 20  2017 .profile
drwx------  2 root root 4096 Jul 23  2017 .ssh
-rw-------  1 root root 9484 Mar 17 08:47 .viminfo
[root@debian:/root 30%] #

Anyway, when I installed the psmisc package, apt-get spits out some warnings w.r.t locales (see below).
[root@debian:/root 26%] # apt-get install psmisc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  psmisc
0 upgraded, 1 newly installed, 0 to remove and 174 not upgraded.
Need to get 113 kB of archives.
After this operation, 532 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian buster/main armel psmisc armel 23.1-1 [113 kB]
Fetched 113 kB in 0s (123 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_TIME = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_COLLATE = "en_US.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package psmisc.
(Reading database ... 21696 files and directories currently installed.)
Preparing to unpack .../psmisc_23.1-1_armel.deb ...
Unpacking psmisc (23.1-1) ...
Setting up psmisc (23.1-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
10.844u+1.908s=0:34.70e(36.7%) TDSavg=0k+0k+0k max=81664k 160584+80184io 121pf+0sw
[root@debian:/root 27%] #

Re: Garbage characters on directory and/or file name

$
0
0
Bodhi,

After some googling around, I found this article (even though the author did not seem to completely resolve his/her issue) and managed to resolve the issue by re-configuring locales using dpkg-reconfigure locales (see below).
[root@debian:/root 6%] # dpkg-reconfigure locales
 Package configuration
┌────────────────────────────────────────────────────Configuring locales───────────────────────────────────────────────────────┐─
│ Locales are a framework to switch between multiple languages and allow users to use their language, country, characters,     │
│ collation order, etc.                                                                                                        │
│
│ Please choose which locales to generate. UTF-8 locales should be chosen by default, particularly for new installations.      │
│ Other character sets may be useful for backwards compatibility with older systems and software.                              │
│
│ Locales to be generated:                                                                                                     │
│ ┌───────────────────────────────────────────────↑(-)───────────────────────────────────────────────────────────────────────┐ │
│ │                                           [ ] en_US.ISO-8859-15 ISO-8859-15                                              │ │
│ │                                           [*] en_US.UTF-8 UTF-8                                                          │ │
│ │                                           [ ] en_ZA ISO-8859-1                                                           │ │
│ │                                           [ ] en_ZA.UTF-8 UTF-8                                                          │ │
│ │                                           [ ] en_ZM UTF-8                                                                │ │
│ │                                           [ ] en_ZW ISO-8859-1                                                           │ │
│ │                                           [ ] en_ZW.UTF-8 UTF-8                                                          │ │
│ └───────────────────────────────────────────────↓(+)───────────────────────────────────────────────────────────────32%─────┘ │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                           <  OK  >                      <Cancel>                                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  

 Package configuration
 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

┌────────────────────────────────────────────────────Configuring locales───────────────────────────────────────────────────────┐
│ Many packages in Debian use locales to display text in the correct language for the user. You can choose a default locale    │
│ for the system from the generated locales.                                                                                   │
│
│ This will select the default language for the entire system. If this system is a multi-user system where not all users       │
│ are able to speak the default language, they will experience difficulties.                                                   │
│
│ Default locale for the system environment:                                                                                   │
│ ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │                                                      [ ] None                                                            │ │
│ │                                                      [ ] C.UTF-8                                                         │ │
│ │                                                      [*] en_US.UTF-8                                                     │ │
│ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│                                           <  OK  >                      <Cancel>                                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘




Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
14.661u+2.684s=0:43.05e(40.2%) TDSavg=0k+0k+0k max=64212k 512+5744io 14pf+0sw
[root@debian:/root 7%] # dir /srv/
total 4
drwxr-xr-x 2 nobody nogroup 4096 Mar 16 13:05 继父回家
[root@debian:/root 8%] # dir /srv/继父回家/
total 876952
-rw-r--r-- 1 nobody nogroup 178467784 Feb 15 19:15 第一集.mp4
-rw-r--r-- 1 nobody nogroup 180803541 Feb 15 21:18 第三集.mp4
-rw-r--r-- 1 nobody nogroup 182210980 Mar 15 22:32 第二集.mp4
-rw-r--r-- 1 nobody nogroup 177843368 Feb 15 22:20 第五集.mp4
-rw-r--r-- 1 nobody nogroup 178652002 Feb 16 11:56 第四集.mp4
[root@debian:/root 9%] #

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
Hi Shnee. The serial is connect directly from audio connector that fits in the serial port of the with three wires, mine are green for ground, white for txd and black for rxd and going to the USB to ttl with the same configuration. then using a USB port on my desktop pc.
As far as the sata drive, I am really a novice with this thing so I am not sure if the SATA port powers the drive or not. You may be laughing but its ok:) I simply have never done Linux so I am only guessing that this was right:)
My original plan was to simply run it from the USB port and then it lost connection to my ethernet so I am learning this as I go...
ok after writing this I tried this, I turned off everything I connected the power supply from the desktop pc to the other connector on th SATA drive, still got nothing , so then I turned everything off again and reversed the tdx and rdx on the usb adapter and got something, kinda cool I am actually kinda excited to see something but for some reason I cannot copy and pasted the text but I did take a picture (see Attachment) because I could not screenshot it either. so now I have to figure out where to go from there :)



thanks for the help , I really want to make this thing work:) echowarrior108

Choice of init system

$
0
0
Hello!

having recently upgraded my (neglected) Dockstar to Debian stretch (stock install), I was left locked out of the system, which took me some time to fix, because of my being (mis)led into thinking systemd was broken, wheras the real problem was it not starting dropbear, because some previously undetected file system corruption in my /home fs triggered systemd's emergency mode.

I looked up a way to persuade systemd to start dropbear nevertheless, but it just seemed too damn complicated.

Long story short: I'm considering switching the init system to something easier to deal with. bodhi's Debian rootfs is still relying on sysinitv, although, from what I gather, Debian are no longer guaranteeing that it will work in the future.

Even though I have been a Linux user in some capacity for many years, my knowledge is somewhat shallow, and I rely on the system taking care of itself as much as possible.

OpenRC, from Gentoo, is also available as an alternative on Debian that should be working out of the box.

Seeking your wisdom and advice? Thanks!

Re: NFS client R/W problem

$
0
0
Found out what the problem is.

My server directory is owned by root user and root group. When mounted on a Linux Desktop computer, the directory is listed as owned by root user and root group. As such, a non-privilege user has no right to write on to the NFS drive. Once I changed the owner ID of the directory on my NFS server to the same user ID on all my Linux Desktop Computers, the users on all my Linux Desktop Computers can now write to the NFS drive. That makes sense. Now, I think the best way is to make the directory on my NFS server owned by a users group with R/W permission. This way, all regular users on any NFS clients with the same group ID can write to the NFS drive (see below). If you have implemented other ways, I am all ears. Now, it is time to configure samba.

On my Linux desktop computer:
[habibie@linux:/home/local/PEOPLE/habibie/Downloads/junk 703%] ~ cp -a ~/works/ffmpeg/血色黎明/第六集.mp4 /mnt/继父回家/
[habibie@linux:/home/local/PEOPLE/habibie/Downloads/junk 704%] ~ dir /mnt/继父回家/
total 1067648
-rw-r--r-- 1 root    users 178467784 Feb 15 19:15 第一集.mp4
-rw-r--r-- 1 root    users 180803541 Feb 15 21:18 第三集.mp4
-rw-r--r-- 1 root    users 182210980 Mar 15 22:32 第二集.mp4
-rw-r--r-- 1 root    users 177843368 Feb 15 22:20 第五集.mp4
-rw-r--r-- 1 habibie users 195265508 Mar  9 13:35 第六集.mp4
-rw-r--r-- 1 root    users 178652002 Feb 16 11:56 第四集.mp4
[habibie@linux:/home/local/PEOPLE/habibie/Downloads/junk 705%] ~

On my NFS server:
[root@debian:/root 16%] # dir /srv/继父回家/
total 1067648
-rw-r--r-- 1 root   users 178467784 Feb 15 19:15 第一集.mp4
-rw-r--r-- 1 root   users 180803541 Feb 15 21:18 第三集.mp4
-rw-r--r-- 1 root   users 182210980 Mar 15 22:32 第二集.mp4
-rw-r--r-- 1 root   users 177843368 Feb 15 22:20 第五集.mp4
-rw-r--r-- 1 debian users 195265508 Mar  9 13:35 第六集.mp4
-rw-r--r-- 1 root   users 178652002 Feb 16 11:56 第四集.mp4
[root@debian:/root 17%] #
Viewing all 26682 articles
Browse latest View live