March 26, 2023, 12:23:09 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: [1] 2 3 ... 10
1
I would also like to hear ideas
2
No ideas?
3
Hello I have a question that might not be easy to understand or to answer.

I am trying to build a live OS to run a custom aplication.
For that I am using:
1) debootstrap/chroot to build/assemble the a minimal Linux OS
    1.1) Install a kernel
    1.2) Configure and install all the packadges needed
    1.3) Add all the custom application files and scrips
2) mksquashfs to make the image
3) xorriso to make the iso

But I need to protect the custom aplication files (or at least make it dificult to access and read them)

Is there a way to encript the ISO and allow it to run without the user having to input the password?
If there is can you give me any pointers on how to do that?

Thank you.
4
Linux Installation Support / Re: configure: error: !!! no tgetent - no screen
« Last post by soumitra on January 19, 2022, 09:05:18 AM »
The option you are looking for is --enable-install-termcap
5
Linux Installation Support / Unable to dual-boot in to Ubuntu
« Last post by maximealexandre on October 13, 2020, 03:58:02 AM »
Hello guys, I have a Huawei MateBook 13 that comes with Windows home edition. Today for the second time I tried to install Ubuntu (dual-boot) in to it and so I made my Kingston USB drive bootable with Etcher following their tutorial and installed Ubuntu successfully. I allocated a brand new partition for Ubuntu. But the issue is I am unable to actually dual boot it. It doesn't allow me to switch between operating systems and it just boots straightaway to my old Windows operating system. After the first installation, I thought I did something wrong so I re formatted the drive and installed the system again but it didn't fix the issue. I even asked from Stack Overflow and they suggested to adjust some BIOS settings but still the issue remains. Any advice you could give would be much appreciated.


6
Miscellaneous / Centos 7 - no message log at all in /var/log- all blank
« Last post by Saahib on May 18, 2020, 08:26:01 PM »
Hi,

Today I noticed that one of the Centos server I used, there are no logs being updated. Log rotation is working as but all current files are blank.
Nothing in
/var/log/messages
/var/log/maillog

Some logs are working like /var/log/lfd.log ( I am using csf firewall).

I have been going through various topics online where people might have deleted or messed up permission of /var/log folder. But nothing so far . I even did side by side comparison of permission with a similar server. I don't see anything messed, all is good. Interesting thing is that everything is working fine.

Following online advices, I reinstalled rsyslog as it may fix the permission if they are messed:
Code: [Select]
yum remove rsyslogThen
Code: [Select]
yum install rsyslog
Checking rsyslog status say its running .
Interesting thing is that even though no logs are being logged, all services are running fine on server. I think its more than 2 weeks since they are not working.

Is there any command or system to restore default permission of /var/log  ?

I don't want reinstall, it will be lots of headache given amount of data on the server.
7
Linux Servers Support / Re: Regular user Can't SSH using public Key but root can
« Last post by Saahib on May 18, 2020, 08:16:11 PM »
Oh man, it was driving from many days, it was indeed permission problem . I had checked actually , permission were 644 and ownership was also correct (owned by the user) however.

Looking around I found that we need following permission, I am sharing here for future reference:
Code: [Select]
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

Problem was that I was comparing permission with root .ssh and its content but that doesn't work for regular user.
8
Linux Servers Support / Re: Regular user Can't SSH using public Key but root can
« Last post by dalek on May 18, 2020, 01:46:12 AM »
I would check permissions of the key files and also check to be sure the user is a member of the correct groups.  I haven't used ssh in ages but seem to recall it requiring being a member of a certain group.  Given your output, it seems to be trying so that leads me to believe it is a permission issue with the key files.  I'd suggest setting it to be readable by all but only writable by root.  It may be that it can see the file exists but is unable to read the contents of the file. 

Hope that helps.
9
Linux Servers Support / Regular user Can't SSH using public Key but root can
« Last post by Saahib on May 18, 2020, 12:19:59 AM »
Hi,

This is driving me nuts from few days. I have server where I can login as root user through SSH using public key authentication. I then added new user with SSH.

Added new user :
Code: [Select]
adduser  -m newUser
Created password for it :
Code: [Select]
passwd newUser
Added .ssh/authorized_keys with client machines public key (which is I am already using to log into as root from this client)
Code: [Select]
echo "key here from client" >> /home/newUser/.ssh/authorized_keys
I have double checked, triple checked.  Same key works for root login but not for new user.

I tried ssh to ssh with -v ,then last few lines:

Code: [Select]
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Trying private key: /root/.ssh/id_ecdsa
debug1: Trying private key: /root/.ssh/id_ed25519
debug1: Next authentication method: password
newUser@server.com's password:

It looks like its my ssh server is not able read publickey ? I can login using password though.

I have done this in past many times, for root and normal user but this time its not working, driving me nuts...

I am sure I am making some tiny mistake.. but where it is ?
10
HI,

I just started using borg and something weird I notice. Borg Backup is really nice with all its things but one of the recent backup I see that size of repository is way larger than actual files in it.

I have two files on is 66GB and other is 3.5GB, I uploaded them in a repo of BORG, here is its stats:

Code: [Select]
Original size      Compressed size    Deduplicated size
All archives:              144.23 GB             74.51 GB             31.86 GB

                       Unique chunks         Total chunks
Chunk index:                   21015                47457
So what is is , even after compression, its 74GB and there is deduplication data too.

Anyone has got any idea what I am seeing here ?
Pages: [1] 2 3 ... 10